[XeTeX] About Microsoft YaHei font

Dongsheng Song dongsheng.song at gmail.com
Tue May 29 10:08:46 CEST 2007


Is there any free tool for correct the Fontname field of the msyhbd.ttf ?

2007/5/29, Nikola Lecic <nlecic at eunet.yu>:
> I was a bit precipitous. The example I sent
>
> \documentclass[a4paper,11pt]{report}
> \usepackage{fontspec}
> \setromanfont{微软雅黑}
> \begin{document}
>       Hello, \bf{Hello}.
> \end{document}
>
> works if you correct the Fontname field of the msyhbd.ttf to be
> 'MicrosoftYaHeiBold' instead of 'MicrosoftYaHei'. Then this code
> produces the result I attached, without manual invoking the font by
> file name.
>
> This is essentially the same problem as the one described in archived
> mailinglist thread. In both cases there is a name mismatch within the
> font(s). In that case and in this one, fc-list shows the same font
> names, before and after correction, but without changing the
> font name fields, fontspec confuses XeTeX and it can't load the font.
>
> I don't know if the licence permits this little correction, but you can
> ask them to correct that themselves if it doesn't.
>
> Nikola Lečić
>


More information about the XeTeX mailing list