[XeTeX] How to create a fake slanted font variant with fontspec
Peter Dyballa
Peter_Dyballa at Web.DE
Sun Dec 4 22:28:58 CET 2011
Hello!
When fontspec is loaded it tries to set a slanted font variant to keep NFSS2 satisfied. But when there is no such variant in a font family \textsl{some slanted text} is left as is (default). When I then try
\newfontface\slanted[RawFeature={slant=0.149}]{Font Family}
\DeclareRobustCommand{\textsl}[1]{{\slanted #1}}
it has the disadvantage that no bold variant is available and that a new font family instance is created:
.................................................
. fontspec info: "defining-font"
.
. Font family 'FontFamily(1)' created for font 'Font Family' with options
. [Mapping=tex-text,
. Renderer=ICU,BoldFont={},ItalicFont={},SmallCapsFont={},RawFeature={slant=0.194}].
.
. This font family consists of the following shapes:
.
. * 'normal' with NFSS spec.:
. <->"Font Family/ICU:mapping=tex-text;slant=0.149;"
.................................................
Is there another way to create fake slanted variants from the upright normal and upright bold variants?
--
Greetings
Pete
Remember: use logout to logout.
More information about the XeTeX
mailing list