[XeTeX] fontspec and fonts without certain styles

RD Holkar rohit.d.holkar at gmail.com
Fri Oct 27 07:42:13 CEST 2017


Thank you!
I had the same issue with the Devanagari fonts.

With best regards,
-Rohit.

On Thu, Oct 26, 2017 at 3:03 PM, Ulrike Fischer <news3 at nililand.de> wrote:

> Am Wed, 25 Oct 2017 14:25:25 -0400 schrieb maxwell:
>
> > For many of the fonts we use, there is no italic version (and in some
> > cases no bold).  This is natural for Arabic and Thaana scripts, since
> > there is no tradition of italicizing them.  (Nasta'liq is quite a
> > different sort of style...)
> >
> > When I include a font loading command for one of these fonts, like--
> >      \setmainfont[Script=Arabic]{Scheherazade}
> > or
> >      \newfontfamily\naskhfont[Script=Arabic]{Scheherazade}
> > --fontspec outputs something that could be taken as a warning, but is
> > probably more like information:
> >      Could not resolve font "Scheherazade/I" (it probably doesn't exist).
> >
> > Is there a way to tell fontspec not to bother looking for an italicized
> > (or bold) version of particular fonts, and thereby prevent its
> > outputting this message?
>
> If you set the font explicitly the messages disappear:
>
> \documentclass[a4paper, oneside]{book}
>  \usepackage{fontspec}
>
>
> \setmainfont{Scheherazade}[Script=Arabic,ItalicFont=*,
> BoldFont=*,BoldItalicFont=*]
>
>  \begin{document}
>  ybc
>  \end{document}
>
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20171027/fe80092b/attachment.html>


More information about the XeTeX mailing list