From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83133 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Auto selecting optical sizes for a font Date: Sat, 22 Jun 2013 14:07:22 +0200 Message-ID: <51C5937A.3000002@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040500000402090403050803" X-Trace: ger.gmane.org 1371902884 10789 80.91.229.3 (22 Jun 2013 12:08:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Jun 2013 12:08:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 22 14:08:07 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UqMbu-0000kM-VL for gctc-ntg-context-518@m.gmane.org; Sat, 22 Jun 2013 14:08:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64199101EB; Sat, 22 Jun 2013 14:08:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JtsOQzjXGeTC; Sat, 22 Jun 2013 14:08:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 77172101E6; Sat, 22 Jun 2013 14:08:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D9A6101E6 for ; Sat, 22 Jun 2013 14:08:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c7Frf+yilv2U for ; Sat, 22 Jun 2013 14:07:57 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id CAEF8101E0 for ; Sat, 22 Jun 2013 14:07:47 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5MC7koA012388 for ; Sat, 22 Jun 2013 14:07:46 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 8632-1713362 for ; Sat, 22 Jun 2013 14:07:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04JPo7KwM - 8ed22ceebc05 - 20130622 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83133 Archived-At: This is a multi-part message in MIME format. --------------040500000402090403050803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 6/22/2013 1:43 AM, Andres Conrado Montoya wrote: > Hello friends. > I'm trying to design a book using the typescript you can find at the > end of this message. I'm using the beautiful EBGaramond fonts from > Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font > provides optical sizes to be used in different sizes (named "12" for > 10.1pt or more, and "8" for 10 or less. These fonts automatically work > as expected in latex, thanks to a recent package included in CTAN > (ebgaramond package), selecting the correct font for the appropriate > size. However, the typescript I'm using selects the "8" size for > everything, without taking the type size into consideration. Is there > any way to make ConTeXt do this automatic selection of fonts regarding > of type size? I'm using version 2013.06.10 22:51. We have no feature 'size' (or I must have forgotten about it). As there is no consistency in designsizes and there is always some esthetic choice involved no automatic mechanism is (and will be) build in. However, as the traditional tex fonts come in designsizes we do have a way to deal with them via so called font goodies. I made you a goodie file for ebgaramond as well as typescript. (You need to convince Mojca to add the otf fonts to the distribution.) Just put the goodie and typescript files in the base path and run mtxrun --generate after that. We need to choose a proper matching math font (or seek funding for a gust garamond math font project). The demo file shows how to kick in Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- --------------040500000402090403050803 Content-Type: text/plain; charset=windows-1252; name="ebgaramond.lfg" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ebgaramond.lfg" return { name = "eb garamond", version = "1.00", comment = "Goodies that complement eb garamond.", author = "Hans Hagen", copyright = "ConTeXt development team", designsizes = { ["EBGaramond-Italic"] = { ["8pt"] = "file:EBGaramond08-Italic", ["9pt"] = "file:EBGaramond08-Italic", ["10pt"] = "file:EBGaramond08-Italic", ["11pt"] = "file:EBGaramond12-Italic", ["12pt"] = "file:EBGaramond12-Italic", default = "file:EBGaramond12-Italic", }, ["EBGaramond-Regular"] = { ["8pt"] = "file:EBGaramond08-Regular", ["9pt"] = "file:EBGaramond08-Regular", ["10pt"] = "file:EBGaramond08-Regular", ["11pt"] = "file:EBGaramond12-Regular", ["12pt"] = "file:EBGaramond12-Regular", default = "file:EBGaramond12-Regular", }, ["EBGaramond-SC"] = { ["8pt"] = "file:EBGaramond08-SC", ["9pt"] = "file:EBGaramond08-SC", ["10pt"] = "file:EBGaramond08-SC", ["11pt"] = "file:EBGaramond12-SC", ["12pt"] = "file:EBGaramond12-SC", default = "file:EBGaramond12-SC", }, ["EBGaramond-Bold"] = { default = "file:EBGaramond12-Bold", }, ["EBGaramond-AllSC"] = { default = "file:EBGaramond12-AllSC", }, ["EBGaramond-Initials"] = { default = "file:EBGaramondInitials", }, ["EBGaramond-InitialsF1"] = { default = "file:EBGaramondInitialsF1", }, ["EBGaramond-InitialsF2"] = { default = "file:EBGaramondInitialsF2", }, } } --------------040500000402090403050803 Content-Type: text/plain; charset=windows-1252; name="type-imp-ebgaramond.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="type-imp-ebgaramond.tex" %D \module %D [ file=type-imp-ebgaramond, %D version=2013.06.22, %D title=\CONTEXT\ Typescript Macros, %D subtitle=EB Garamond, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \definefontfeature [eb-garamond-normal] [default] [mode=node,ccmp=yes,calt=yes, liga=yes,dlig=yes,hlig=yes, kern=yes,mark=yes,mkmk=yes, onum=yes,pnum=yes,salt=yes, script=latn] \definefontfeature [eb-garamond-smallcaps] [eb-garamond-normal] [smcp=yes,c2sc=yes] \starttypescriptcollection[ebgaramond] \starttypescript [serif] [ebgaramond] \loadfontgoodies[ebgaramond] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:ebgaramond-regular] [features=eb-garamond-normal] \definefontsynonym [SerifItalic] [file:ebgaramond-italic] [features=eb-garamond-normal] \definefontsynonym [SerifBold] [file:ebgaramond-bold] [features=eb-garamond-normal] \definefontsynonym [SerifCaps] [Serif] [features=eb-garamond-smallcaps] \stoptypescript \starttypescript[ebgaramond] \definetypeface [ebgaramond] [rm] [serif] [ebgaramond] [default] [designsize=auto] \definetypeface [ebgaramond] [tt] [mono] [dejavu] [default] \definetypeface [ebgaramond] [mm] [math] [bonum] [default] \stoptypescript \stoptypescriptcollection --------------040500000402090403050803 Content-Type: text/plain; charset=windows-1252; name="designsizes-003.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="designsizes-003.tex" \loadtypescriptfile[ebgaramond] \definefontfeature [quality] [expansion=quality, protrusion=quality] \definefontfeature [eb-garamond-normal] [eb-garamond-normal,quality] \definefontfeature [eb-garamond-smallcaps] [eb-garamond-smallcaps,quality] \setupbodyfont[ebgaramond,12pt] \setupcapitals[sc=yes] \setupbodyfontenvironment[default][em=italic] \setupinterlinespace[line=3.2ex] \setupalign[lesshyphenation,hz,hanging] \showframe \starttext \dostepwiserecurse {8} {12} {1} { \switchtobodyfont[#1pt] \input tufte \blank } \stoptext --------------040500000402090403050803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --------------040500000402090403050803--