Mojca Miklavec wrote:
Hello,
I just wanted to let you know that XeTeX now supports both faking bold and slanted (and the binaries on the garden minimals have that feature already). It's generally a bad idea to use it, but in case that you need it only for small portions of text (if you really have no other way out), it could be handy. (Slanted is less evil to use than "bold".)
The plain syntax is:
\font\a="Gentium" \font\b="Gentium:slant=0.2" % better: \font\b="Gentium/I" \font\c="Gentium:embolden=2" \font\d="Gentium:embolden=2;slant=0.2"
hm, so it's embolden? in that case we need a remap to extend
Some time ago I have posted an example of the (current?) ConTeXt way to use it:
\definefontfeature [slantedandextended] % cloned from the rest of XeTeX, not really needed [method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes, slant=0.25,extend=1.5]
i remember that taco and i discussed it with regards to luatex (i think that we even had a key in the tfm table at some point); i need to look into it
\definefontsynonym [myfont] [file:texgyrepagella-regular][features=slantedandextended]
\starttext \definedfont[myfont] This is slanted and extended \stoptext
----------------------------------------------------------------- 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 -----------------------------------------------------------------