* hz MkIV @ 2008-10-03 11:46 Steffen Wolfrum 2008-10-03 11:53 ` Hans Hagen 2008-10-03 22:25 ` Hans Hagen 0 siblings, 2 replies; 4+ messages in thread From: Steffen Wolfrum @ 2008-10-03 11:46 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Taco Hoekwater Hi, in MkIV hz is bound to the found (thus the speed increase). Now, how do I assign different degrees of hz to different areas? Say, moderate hz in the normal text and more drastic in controlled situation, like this: % main text: \setupbodyfont[postscript,10pt] \setupalign[block,hanging,hz] % and in controlled situation: \setupwhatever[align=hzXXL,style=...] This doesn't work: fonts.expansions.classes['NormalQuality'] = { stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 } fonts.expansions.classes['DrasticQuality'] = { stretch = 2, shrink = 2, step = .5, vector = 'default', factor = 1 } \definefontfeature[hz][default] [protrusion=pure,expansion=sstquality,mode=node,script=latn] \definefontfeature[hzXXL][default] [protrusion=pure,expansion=sstquality,mode=node,script=latn] \usetypescript[postscript] \definetypeface[postscript][rm][serif][times][default][features=hz]% <- what to do with hzXXL ??? Steffen ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: hz MkIV 2008-10-03 11:46 hz MkIV Steffen Wolfrum @ 2008-10-03 11:53 ` Hans Hagen 2008-10-03 22:25 ` Hans Hagen 1 sibling, 0 replies; 4+ messages in thread From: Hans Hagen @ 2008-10-03 11:53 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Taco Hoekwater Steffen Wolfrum wrote: > Hi, > > in MkIV hz is bound to the found (thus the speed increase). > > Now, how do I assign different degrees of hz to different areas? > Say, moderate hz in the normal text and more drastic in controlled > situation, like this: remind me end of next week ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: hz MkIV 2008-10-03 11:46 hz MkIV Steffen Wolfrum 2008-10-03 11:53 ` Hans Hagen @ 2008-10-03 22:25 ` Hans Hagen 2008-10-05 20:23 ` Steffen Wolfrum 1 sibling, 1 reply; 4+ messages in thread From: Hans Hagen @ 2008-10-03 22:25 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Taco Hoekwater Steffen Wolfrum wrote: > Hi, > > in MkIV hz is bound to the found (thus the speed increase). > > Now, how do I assign different degrees of hz to different areas? > Say, moderate hz in the normal text and more drastic in controlled > situation, like this: > > % main text: > \setupbodyfont[postscript,10pt] > \setupalign[block,hanging,hz] > > % and in controlled situation: > \setupwhatever[align=hzXXL,style=...] > > > This doesn't work: > > fonts.expansions.classes['NormalQuality'] = { > stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 > } > > fonts.expansions.classes['DrasticQuality'] = { > stretch = 2, shrink = 2, step = .5, vector = 'default', factor = 1 > } > > > \definefontfeature[hz][default] > [protrusion=pure,expansion=sstquality,mode=node,script=latn] > \definefontfeature[hzXXL][default] > [protrusion=pure,expansion=sstquality,mode=node,script=latn] > > \usetypescript[postscript] > \definetypeface[postscript][rm][serif][times][default][features=hz]% > <- what to do with hzXXL ??? just define an extra typeface with different characteristics (i can imagine that at some point we can have an extra multiplication factor, like (lowlevel) \effactor or so but that demands a patch of luatex) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: hz MkIV 2008-10-03 22:25 ` Hans Hagen @ 2008-10-05 20:23 ` Steffen Wolfrum 0 siblings, 0 replies; 4+ messages in thread From: Steffen Wolfrum @ 2008-10-05 20:23 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen Am 04.10.2008 um 00:25 schrieb Hans Hagen: > Steffen Wolfrum wrote: >> Hi, >> >> in MkIV hz is bound to the found (thus the speed increase). >> >> Now, how do I assign different degrees of hz to different areas? >> Say, moderate hz in the normal text and more drastic in controlled >> situation, like this: >> >> % main text: >> \setupbodyfont[postscript,10pt] >> \setupalign[block,hanging,hz] >> >> % and in controlled situation: >> \setupwhatever[align=hzXXL,style=...] >> >> >> This doesn't work: >> >> fonts.expansions.classes['NormalQuality'] = { >> stretch = 1, shrink = 1, step = .5, vector = 'default', factor >> = 1 >> } >> >> fonts.expansions.classes['DrasticQuality'] = { >> stretch = 2, shrink = 2, step = .5, vector = 'default', factor >> = 1 >> } >> >> >> \definefontfeature[hz][default] >> [protrusion=pure,expansion=sstquality,mode=node,script=latn] >> \definefontfeature[hzXXL][default] >> [protrusion=pure,expansion=sstquality,mode=node,script=latn] >> >> \usetypescript[postscript] >> \definetypeface[postscript][rm][serif][times][default][features=hz]% >> <- what to do with hzXXL ??? > > just define an extra typeface with different characteristics Well, how to define an extra typeface to a hidden predefined typescript "postscript"? The following might work, but it is admittedly a very, very ugly hack (redefining poor sans helvetica ...). Thus, please: any improvement very welcome!! Thanks, Steffen ===== \starttypescript [sans] [helvetica] \definefontsynonym [Helvetica] [file:texgyretermes- regular] [features=default] \definefontsynonym [Helvetica-Oblique] [file:texgyretermes- italic] [features=default] \definefontsynonym [Helvetica-Bold] [file:texgyretermes- bold] [features=default] \definefontsynonym [Helvetica-BoldOblique] [file:texgyretermes- bolditalic] [features=default] \definefontsynonym [Helvetica-Caps] [file:texgyretermes- regular] [features=smallcaps] \stoptypescript \starttypescript [postscript] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=2] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \definetypeface [postscript] [mm] [math] [times] [default] \quittypescriptscanning \stoptypescript \startluacode fonts.expansions.classes['extraquality'] = { stretch = 2, shrink = 2, step = .5, vector = 'default', factor = 1 } \stopluacode % \definefontfeature[hz][default] [protrusion=pure,expansion=quality,mode=node,script=latn] \definefontfeature[extrahz][default] [protrusion=pure,expansion=extraquality,mode=node,script=latn] \usetypescript[postscript] \definetypeface[postscript][rm][serif][times][default][features=hz] \definetypeface[postscript][ss][sans][helvetica][default] [features=extrahz] \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt] \setupalign[line,block,hanging,hz] \starttext \showframe \input tufte {\ss \input tufte } \input tufte \stoptext ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-05 20:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-10-03 11:46 hz MkIV Steffen Wolfrum 2008-10-03 11:53 ` Hans Hagen 2008-10-03 22:25 ` Hans Hagen 2008-10-05 20:23 ` Steffen Wolfrum
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).