[XeTeX] Unable to read OpenType/TrueType unicode cmap table.

Herbert Schulz herbs at wideopenwest.com
Fri Mar 1 16:54:38 CET 2013


On Mar 1, 2013, at 3:03 AM, "Nannilam, Baskaran (TNQSoftware)" <n.k.baskaran at tnqsoftware.co.in> wrote:

> Hi,
> 
> I am new to XeLaTeX
> I have installed MiKTeX latest version with Xelatex.
> 
> I need some math symbols in STIXGeneral font. Here I attached small file. When I compile the below tex coding..
> The following error comes
> 
> ** WARNING ** Unable to read OpenType/TrueType unicode cmap table.
> ** WARNING ** Failed to load ToUnicode CMap for font "STIXGeneral-Regular"
> 
> Note: When I call \newfontfamily\testfont{STIXGeneral}, It works fine:
> 
> 
> Kindly suggest and guide me
> 
> Regards
> Baskar
> 
> 
> %-----------------------------------------------TeX file start --------------------------------------------------
> \documentclass{article}
> \usepackage{mathspec}
> 
> \DeclareFontFamily{EU1}{STIXGeneral}{}
> \DeclareSymbolFont{operator}{EU1}{STIXGeneral}{m}{n}
> \SetSymbolFont{operator}   {normal}{EU1}{STIXGeneral}{m}{n}
> 
> \DeclareFontShape{EU1}{STIXGeneral}{m}{n}%
>    {<-5.5>    "[STIXGeneral]:mapping=tex-text"     <5.5-6.5> "[STIXGeneral]:mapping=tex-text"
>     <6.5-7.5> "[STIXGeneral]:mapping=tex-text"     <7.5-8.5> "[STIXGeneral]:mapping=tex-text"
>     <8.5-9.5> "[STIXGeneral]:mapping=tex-text"     <9.5-11> "[STIXGeneral]:mapping=tex-text"
>     <11-15>   "[STIXGeneral]:mapping=tex-text"
>     <15-> "[STIXGeneral]:mapping=tex-text"
>     }{}
> 
> \DeclareMathSymbol{+}{\mathbin}  {operator}{'024}
> \DeclareMathSymbol{-}{\mathbin}  {operator}{'020}
> 
> \begin{document}
> 
> This is the text. The {\bfseries\itshape bolditalic} vvvvvv\textit{textit}mmmmm\textbf{textbf} yyyyyy
> $$(abc+bzc-\sin\theta)\left[\frac{a}{b}\longrightarrow\right]$$
> \end{document}
> %-----------------------------------------------TeX file end--------------------------------------------------


Howdy,

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIXGeneral}
\begin{document}
This is the text. The {\bfseries\itshape bolditalic} vvvvvv\textit{textit}mmmmm\textbf{textbf} yyyyyy
$$(abc+bzc-\sin\theta)\left[\frac{a}{b}\longrightarrow\right]$$
\end{document}


Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the XeTeX mailing list