[XeTeX] Diacritic marks in various fonts

Ulrike Fischer news3 at nililand.de
Thu Jun 23 18:22:09 CEST 2011


Am Thu, 23 Jun 2011 04:31:01 -0400 schrieb
nathan.sidoli at utoronto.ca:

> I'm having some issues with the dot diacritic under m and n, \d{m} and  
> \d{n} or ? and ?, with italicized typeface in some fonts, particularly  
> Junicode.
> 
> Whenever I use Junicode or Times Translit, I get blank spaces for  
> these terms, and a warning message such as the following:
> 
> LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <8.5> not available
> (Font)              size <8> substituted on input line 75.

The warning is probably from something else. 

> 
> 
> When I use Times, New Times Roman, Gentium Plus, etc. I get the same  
> warning, but the characters are displaying properly. I suppose this is  
> a problem with the fonts themselves, but I'm wondering if anyone has a  
> suggested work-around.

You can try to undeclare \d{n}. If it doesn't help you will have to
build your accent with the help of OT1 encoding.



\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Calibri} % insert your font here
\UndeclareUTFcomposite[\UTFencname]{x1E47}{\d}{n}

\newcommand\mydaccent[1]{%
 {\fontencoding{OT1}\selectfont
   \d{\fontencoding{EU1}\selectfont #1}}}
\begin{document}
\d{A}, \d{n}

\mydaccent{n}, \mydaccent{A}
\end{document}



-- 
Ulrike Fischer 



More information about the XeTeX mailing list