[XeTeX] problem with xetex/fontspec

Sun w sunwch at hotmail.com
Thu Nov 18 11:20:24 CET 2010


Dear All,
 
I have trouble with xetex/fontspec.  The following example shows that it might select a wrong font.
Attached please find a pdf and a log file for this example.
 
Note that the problem disappear if the macro \get at external@font is removed.
 
Best,
Wenchang
 
======================================
% -*- coding: utf-8 -*-
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\makeatletter
 \XeTeXinterchartokenstate=1
 \XeTeXcharclass `A=1
 \def\test{\fontspec{Arial}}
\XeTeXinterchartoks 0 1{\bgroup\test\get at external@font}
\XeTeXinterchartoks 1 0{\egroup}
\bfseries\itshape aAa
\bfseries\slshape aAa !!!
\XeTeXinterchartoks 0 1{\bgroup\test}
\bfseries\itshape aAa
\bfseries\slshape aAa
\end{document}
========================================== 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20101118/d37d1e2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.tex
Type: application/octet-stream
Size: 451 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101118/d37d1e2d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.pdf
Type: application/pdf
Size: 12746 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101118/d37d1e2d/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.log
Type: application/octet-stream
Size: 17753 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101118/d37d1e2d/attachment-0003.obj>


More information about the XeTeX mailing list