[XeTeX] "if" tests for italic / bold into new command?

Kārlis Repsons karlis.repsons at gmail.com
Wed Dec 23 15:14:53 CET 2009

On Wednesday 23 December 2009 13:18:39 Joseph Wright wrote:
> On 23/12/2009 12:52, Kārlis Repsons wrote:
> > Not sure if XeTeX is very relevant, but maybe someone knows how could I
> > make a new command, which has some if-then automations depending on if
> > the specified font has italic or bold shapes?
> Are we talking at the time the font is used or in the abstract? For the
> former case, you can test the NFSS flags:

I personally train in LaTeX + write a font review, which has commands for font 
feature demonstration. Some fonts have italic/bold, others don't. So if I type 
in \demonstrateFeatureX{Linux Libertine}, demonstrateFeatureX has to figure out 
what font shapes L.L. has.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://tug.org/pipermail/xetex/attachments/20091223/1d14f0ea/attachment-0001.bin>

More information about the XeTeX mailing list