Changes

Jump to navigation Jump to search
1,421 bytes added ,  14:26, 6 February 2006
Hz example
\input tufte
\stopframedtext
\stoptext
</context>
 
==Hz adjustments==
For more radical effects, where you need to fit to a fixed, narrow measure, you can enable Hz-style font adjustments, wherein individual characters are adjusted by miniscule amounts as necessary. These are enabled by the '''hz''', '''quality''', and '''highquality''' options listed above. Usage is with such lines as:
 
<texcode>
\usetypescript[serif][hz][quality] % this creates the 'handling' synonyms
\setupalign[hanging,hz] % this turns on the hanging and hz features
</texcode>
 
The example shows how slight font expansion improves the fitting to the margin without changing the tolerance on the inter-word spacing. The first passage is with ''hanging'' alone enabled, and the second is with ''hanging'' and ''hz'' both enabled. It's not for everyone, as the process can distort letter shapes.
 
 
<context>
\usetypescript[postscript][ec]
\usetypescript[adobekb][ec]
\setupfonthandling[hz][min=30,max=30,step=10]
\usetypescript[serif][hz][quality] % this creates the 'handling' synonyms
\setupalign[hanging] % this actually triggers the feature
\setupbodyfont[postscript]
\setupcolors[state=start]
\setupframedtexts[width=4.6cm,rightframe=on,frame=off,offset=none,framecolor=middlegray,tolerance=verystrict]
\starttext
\startframedtext[align=hanging]
\input ward
\stopframedtext
\startframedtext[align={hanging,hz}]
\input ward
\stopframedtext
\stoptext
</context>
[[Category:Fonts]]

Navigation menu