From: Andres Conrado Montoya <andresconrado@gmail.com>
To: ntg-context@ntg.nl
Subject: Auto selecting optical sizes for a font
Date: Fri, 21 Jun 2013 18:43:09 -0500 [thread overview]
Message-ID: <CAGhDZhBcyb+czPVSp0Qp712=95C85i7HyRco5nsneaWNG4xaAQ@mail.gmail.com> (raw)
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. :)
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2013-06-21 23:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 23:43 Andres Conrado Montoya [this message]
2013-06-22 12:04 ` Pablo Rodríguez
2013-06-22 12:07 ` Hans Hagen
[not found] <mailman.1409.1371913028.2084.ntg-context@ntg.nl>
2013-06-23 22:28 ` Georg Duffner
2013-06-24 8:02 ` Keith J. Schultz
2013-06-24 17:44 ` Hans Hagen
2013-06-24 17:42 ` Hans Hagen
[not found] <mailman.1416.1372062425.2084.ntg-context@ntg.nl>
2013-06-24 9:49 ` Georg Duffner
2013-06-24 17:50 ` Hans Hagen
2013-06-25 4:16 Andres Conrado Montoya
2013-06-25 8:32 ` Hans Hagen
2013-06-25 21:16 Andres Conrado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGhDZhBcyb+czPVSp0Qp712=95C85i7HyRco5nsneaWNG4xaAQ@mail.gmail.com' \
--to=andresconrado@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).