Menu

#1268 Some fonts not rendering in the internal preview in XeTeX-compiled documents under OS X

None
fixed
nobody
None
1
2015-03-14
2015-03-14
Fang Zhang
No

Recently I switched to XeTeX for easier CJK character and font handling. However, it turns out that some OpenType fonts fail to render in the internal preview of TXS when the document is compiled by XeTeX. Under Windows everything works well.

A working example is as follows. The result is attached along with the PDF rendered by the OS X Preview.app in which all fonts show up normally.

% !TeX encoding = UTF-8
% !TeX program = xelatex
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{SimSun} % ttc
This is a test. 这是一个测试。

\setmainfont{SimHei} % ttf
This is a test. 这是一个测试。

\setmainfont{Hiragino Sans GB W3} % otf
This is a test. 这是一个测试。

\setmainfont{Adobe Song Std} % otf
This is a test. 这是一个测试。

\setmainfont{SimSun} % ttc
This is the end of test.
\end{document}

Environment: OS X 10.10.2 Yosemite, TeXstudio 2.9.0.
SimSun and SimHei are shipped with Windows; Hiragino Sans GB is shipped with OS X; Adobe Song Std is shipped with Adobe Reader.

1 Attachments

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-03-14

    fixed
    poppler-data was missing on developer machine
    will be included in all subsequent releases

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-03-14
    • status: open --> fixed
    • Group: -->
     

Log in to post a comment.