Using mycrotypography features with simplefont module and OTF/TTF
Dear all, I'm trying to enable protrusion on a text composed with a ttf font (tried otf converted from ttf as well) and using the simplefont module. We have tried different things but did not see any difference in the results. Our context version is 2011.07.20 14:10 The full context code is visible here: http://dpaste.com/574351/ The relevant chunk is this: % USING SIMPLEFONT: FAILS % %\usemodule[simplefonts][protrusion=quality,expansion=quality] %\setmainfont[umepmincho] % USING TYPESCRIPT: FAILS TOO % \starttypescript [serif] [umepmincho] \definefontsynonym [Serif] [name:umepmincho] \stoptypescript \definetypeface [umepmincho] [rm] [serif] [umepmincho] \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \setupbodyfont[umepmincho, 10pt] \definebodyfontenvironment[default][x=0.75 ,a=1.5, b=1.75, c=2,d=3.4] % defines higher sizes of fonts Is there a way to make it work? Thanks! Alex
Am 22.07.2011 um 15:56 schrieb Alexandre Leray:
Dear all,
I'm trying to enable protrusion on a text composed with a ttf font (tried otf converted from ttf as well) and using the simplefont module. We have tried different things but did not see any difference in the results.
Our context version is 2011.07.20 14:10
The full context code is visible here: http://dpaste.com/574351/
The relevant chunk is this:
% USING SIMPLEFONT: FAILS % %\usemodule[simplefonts][protrusion=quality,expansion=quality] %\setmainfont[umepmincho]
For all fonts: \setupsimplefonts[protrusion=...,expansion=…] For only one font: \set(main|sans|…)font[...][expansion=...,protrusion=...] Wolfgang
Thanks a lot, it works! btw could you tell me how to achieve the same with typescripts for future works? Alex Le ven. 22 juil. 2011 16:07:24 CEST, Wolfgang Schuster a écrit :
Am 22.07.2011 um 15:56 schrieb Alexandre Leray:
Dear all,
I'm trying to enable protrusion on a text composed with a ttf font (tried otf converted from ttf as well) and using the simplefont module. We have tried different things but did not see any difference in the results.
Our context version is 2011.07.20 14:10
The full context code is visible here: http://dpaste.com/574351/
The relevant chunk is this:
% USING SIMPLEFONT: FAILS % %\usemodule[simplefonts][protrusion=quality,expansion=quality] %\setmainfont[umepmincho]
For all fonts: \setupsimplefonts[protrusion=...,expansion=…]
For only one font: \set(main|sans|…)font[...][expansion=...,protrusion=...]
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- <stdin> Alexandre Leray & Stéphanie Vilayphiou http://stdin.fr/ +32 (0)4 89 00 88 59
participants (3)
-
Alexandre Leray
-
stdin
-
Wolfgang Schuster