Fonts/Typescripts examples/Linux Libertine Typescript
Jump to navigation
Jump to search
Starting from Context 2010.05.21 there is the libertine typescript already defined. It points to the fonts shipped with TeXlive2010 (they have a different name than the upstream). You have to define script=latn
if you want the ligatures in the Bold Italic font (until the upstream doesn't set a default script). See
http://archive.contextgarden.net/thread/20101108.150757.a6a9040d.en.html
% use microtypography \definefontfeature[default][default][protrusion=quality,expansion=quality,script=latn] \usetypescript[libertine] \setupalign[hz,hanging] \setupbodyfont[libertine,10pt] \starttext \input tufte \stoptext
The complete code, which should work for ConTeXt shipped with TeXlive 2010 is:
\definefontfeature[default][default] [protrusion=quality, expansion=quality, script=latn] \starttypescriptcollection[linuxlibertine] \starttypescript [serif] [linuxlibertine] \definefontsynonym [Libertine-Regular] [file:fxlr.otf] \definefontsynonym [Libertine-Italic] [file:fxlri.otf] \definefontsynonym [Libertine-Bold] [file:fxlb.otf] \definefontsynonym [Libertine-BoldItalic] [file:fxlbi.otf] \stoptypescript \starttypescript [serif] [linuxlibertine] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [Libertine-Regular] [features=default] \definefontsynonym [SerifItalic] [Libertine-Italic] [features=default] \definefontsynonym [SerifBold] [Libertine-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [Libertine-BoldItalic] [features=default] \definefontsynonym [SerifCaps] [Libertine-Regular] [features=smallcaps] \stoptypescript \starttypescript [sans] [biolinum] \setups[font:fallback:sans] \definefontsynonym [Biolinum-Regular] [file:fxbr.otf] \definefontsynonym [Biolinum-Bold] [file:fxbb.otf] \definefontsynonym [Biolinum-Italic] [file:fxbri.otf] \definefontsynonym [Biolinum-Slanted] [file:fxbro.otf] \definefontsynonym [Biolinum-BoldItalic] [file:fxbbo.otf] \stoptypescript \starttypescript [sans] [biolinum] [name] \setups[font:fallback:sans] \definefontsynonym [Sans] [Biolinum-Regular] [features=default] \definefontsynonym [SansBold] [Biolinum-Bold] [features=default] \definefontsynonym [SansItalic] [Biolinum-Italic] [features=default] \definefontsynonym [SansSlanted] [Biolinum-Slanted] [features=default] \definefontsynonym [SansBoldItalic] [Biolinum-BoldItalic] [features=default] \definefontsynonym [SansCaps] [Biolinum-Regular] [features=smallcaps] \stoptypescript \starttypescript [linuxlibertine] \definetypeface [linuxlibertine] [rm] [serif] [linuxlibertine] [default] \definetypeface [linuxlibertine] [ss] [sans] [biolinum] [default] \definetypeface [linuxlibertine] [tt] [mono] [default] [default] %definetypeface [libertine] [mm] [math] [times] [default] \quittypescriptscanning \stoptypescript \stoptypescriptcollection \usetypescript[linuxlibertine] \setupbodyfont[linuxlibertine,10pt] % use the microtype \setupalign[hz,hanging] \starttext \input tufte \stoptext