Auto selecting optical sizes for a font
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. Here is my example: %%%%%%%%%%%%%%%%%%%%%%%%%%% \enableregime[utf-8] \mainlanguage[es] \setupcapitals[sc=yes] \definefontfeature[default][default] [mode=node,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \definefontfeature[smallcaps][smallcaps] [mode=node,script=latn,smcp=yes,c2sc=yes,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \starttypescript[serif][ebgaramond] \setups[font:fallback:serif] \definefontsynonym [EBGaramond-Regular] [name:EBGaramond-Regular] \definefontsynonym [EBGaramond-Italic] [name:EBGaramond-Italic] \stoptypescript \starttypescript[serif][ebgaramond] \definefontsynonym [Serif] [EBGaramond-Regular] [features=default] \definefontsynonym [SerifItalic] [EBGaramond-Italic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \definetypeface[ebg][rm][serif][ebgaramond][default] \setupbodyfont[ebg,12pt] \setupbodyfontenvironment[default][em=italic] \setupinterlinespace[line=3.2ex] \setupalign[lesshyphenation,hz,hanging] \doublehyphendemerits=30000 \setupspacing[packed] \starttext \showframe \showgrid \input tufte \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%% Thank so much for all your good work and help. :)
On 22/06/13 01:43, 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.
Hi Andrés, sorry for not giving more information on this, because I don't understand how it works. Here you have an example: http://wiki.contextgarden.net/Optical_Size. (I guess you forgot the font assignment.) Wolfgang, wouldn't it be possible to implement optical sizes in simplefonts? So the user could benefit from ease of use. Pablo -- http://www.ousia.tk
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 -----------------------------------------------------------------
participants (3)
-
Andres Conrado Montoya
-
Hans Hagen
-
Pablo Rodríguez