Font protrusion and expansion
Hello to all. I am writing to you just to know if the following code, with which I would like to activate the protrusion and expansion of characters in my document, is correct. Is the command order okay? If I wanted to use another font, are there other things to write? Thank you in advance Tommaso The code: \mainlanguage[it] \definefontfeature [default] [default] [expansion=quality,protrusion=quality] \usetypescript[modern-base] \setupalign[hz,hanging] \setupbodyfont[modern] \starttext ... \stoptext
On 11/7/20 7:54 PM, Tommaso Gordini wrote:
Hello to all.
I am writing to you just to know if the following code, with which I would like to activate the protrusion and expansion of characters in my document, is correct. Is the command order okay?
If I wanted to use another font, are there other things to write?
Hi Tommaso, in the next sample, replace TeX Gyre Pagella with the font family name and it will work fine: \definefontfeature [default] [default] [expansion=quality,protrusion=quality] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \setupalign[hz,hanging] \starttext \input{zapf} \stoptext Pablo -- http://www.ousia.tk
Thanks Hans and thanks Pablo. So, \usetypescript is not needed?
Tommaso
Il sab 7 nov 2020, 21:24 Pablo Rodriguez
On 11/7/20 7:54 PM, Tommaso Gordini wrote:
Hello to all.
I am writing to you just to know if the following code, with which I would like to activate the protrusion and expansion of characters in my document, is correct. Is the command order okay?
If I wanted to use another font, are there other things to write?
Hi Tommaso,
in the next sample, replace TeX Gyre Pagella with the font family name and it will work fine:
\definefontfeature [default] [default] [expansion=quality,protrusion=quality] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \setupalign[hz,hanging] \starttext \input{zapf} \stoptext
Pablo -- http://www.ousia.tk
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
On 11/7/20 9:51 PM, Tommaso Gordini wrote:
Thanks Hans and thanks Pablo. So, \usetypescript is not needed?
Hi Tommaso, I never used (or needed) any typescript. But I think they aren’t needed anymore with \definefontfamily and \definefallbackfamily. Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Tommaso Gordini