Hello, I tried hanging punctuation with Trebuchet font but without any success whereas for Latin Modern or Libertine (without simplefonts) it works OK. Is the \setupalign feature for hanging punctuation available for simplefonts module? Or did I forget some option? Minimal example: % CTX from TeXlive 2013 \usemodule[simplefonts] \setmainfont[Trebuchet MS] \setupalign[hz,hyphenated,justified,hanging] \starttext \input knuth \stoptext Thanks Tomáš Hála
Am 22.06.2014 um 20:51 schrieb Tomas Hala
Hello,
I tried hanging punctuation with Trebuchet font but without any success whereas for Latin Modern or Libertine (without simplefonts) it works OK.
Is the \setupalign feature for hanging punctuation available for simplefonts module? Or did I forget some option?
Minimal example:
% CTX from TeXlive 2013 \usemodule[simplefonts] \setmainfont[Trebuchet MS] \setupalign[hz,hyphenated,justified,hanging] \starttext \input knuth \stoptext
You have to enable the feature for the font before you can use it, to do this add \definefontfeature[default][default][expansion=quality,protrusion=quality] before \setmainfont. Wolfgang
I tried it, but unfortunately it does not work, either before, or after.
Is there any other way how to enable it?
Tomas
Mon, Jun 23, 2014 ve 10:39:49AM +0200 Wolfgang Schuster napsal(a):
#
# Am 22.06.2014 um 20:51 schrieb Tomas Hala
On 06/24/2014 09:42 AM, Tomas Hala wrote:
I tried it, but unfortunately it does not work, either before, or after. Is there any other way how to enable it?
Tomas, the following works (but not for ConTeXt from TeXLive 2013): \showframe \definefontfeature[default][default] [expansion=quality,protrusion=quality] \definefontfamily[mainface][serif][Trebuchet MS] \setupbodyfont[mainface] \setupalign[hz,hanging] \starttext \input knuth \stoptext Output available at http://www.ousia.tk/protrusion.pdf. I suggest that you install the ConTeXt Suite (instructions available at http://wiki.contextgarden.net/ConTeXt_Standalone). You don’t need to uninstall anything. It is always worth having the latest beta version. I hope it helps, Pablo -- http://www.ousia.tk
Am 24.06.2014 um 20:56 schrieb Pablo Rodriguez
On 06/24/2014 09:42 AM, Tomas Hala wrote:
I tried it, but unfortunately it does not work, either before, or after. Is there any other way how to enable it?
Tomas,
the following works (but not for ConTeXt from TeXLive 2013):
\showframe \definefontfeature[default][default] [expansion=quality,protrusion=quality] \definefontfamily[mainface][serif][Trebuchet MS]
You don’t need the \definefontfeature command when you write \definefontfamily[mainface][serif][Trebuchet MS][features={default,quality}]
\setupbodyfont[mainface] \setupalign[hz,hanging] \starttext \input knuth \stoptext
Output available at http://www.ousia.tk/protrusion.pdf.
I suggest that you install the ConTeXt Suite (instructions available at http://wiki.contextgarden.net/ConTeXt_Standalone). You don’t need to uninstall anything. It is always worth having the latest beta version.
The \definefontfamily command works also with Texlive 2014. Wolfgang
I installed ConTeXt from TL 2014 and this solution works. Thank you (and Wolfgang as well) for help. Tomas Tue, Jun 24, 2014 ve 08:56:05PM +0200 Pablo Rodriguez napsal(a): # On 06/24/2014 09:42 AM, Tomas Hala wrote: # > # > I tried it, but unfortunately it does not work, either before, or after. # > Is there any other way how to enable it? # # Tomas, # # the following works (but not for ConTeXt from TeXLive 2013): # # \showframe # \definefontfeature[default][default] # [expansion=quality,protrusion=quality] # \definefontfamily[mainface][serif][Trebuchet MS] # \setupbodyfont[mainface] # \setupalign[hz,hanging] # \starttext # \input knuth # \stoptext # # Output available at http://www.ousia.tk/protrusion.pdf. # # I suggest that you install the ConTeXt Suite (instructions available at # http://wiki.contextgarden.net/ConTeXt_Standalone). You don’t need to # uninstall anything. It is always worth having the latest beta version. # # I hope it helps, # # # 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://tex.aanhet.net # archive : http://foundry.supelec.fr/projects/contextrev/ # wiki : http://contextgarden.net # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala
participants (3)
-
Pablo Rodriguez
-
Tomas Hala
-
Wolfgang Schuster