Mapping TeX Fonts

I am using a package written on top of XeLaTeX. This package uses fontspec to specify fonts for different parts of your text: latin, non-latin, math, ...

The package comes with several sample files. I was able to xelatex most of them, which depend on regular ttf or otf files. However, one of them is trying to set the font of numbers in mathematical mode to some font, for example, "NonLatin Digits". But the font does not seem to be a regular font. There are two files in the same directory as "nonlatindigits.map" and "nonlatindigits.tec". TECkit uses these mapping files to generate TeX fonts. However, for some reason, it does not create files, and xelatex produces the following error message.

 kpathsea: Invalid fontname `NonLatin Digits', contains ' '

 ! Font \zf@basefont="NonLatin Digits" at 10.0pt not loadable: Metric (TFM) file or
 installed font not found.

Kpathsea complains about spaces, but removing spaces eliminates the problem of loading the TFM file.

Any clues what am I doing wrong?

+3
4

? XeTeX, , Windows ( ). , .

, kpathsea : , , XeTeX TeX, XeTeX TFM, .

TECkit , ; , , , , ( ). .

+5

, XeTeX, , . xelatex pdflatex, .tex .

, , : Linux Libertine Computer Modern Unicode. OpenSuSE LinuxLibertine cm-unicode; , .

:

\usepackage{xunicode,fontspec,xltxtra}
\usepackage[english]{polyglossia}
% EXAMPLE: \setotherlanguages{russian} % set as "other" so English hyphenation active

( ),

\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\setromanfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmonofont[Scale=0.9]{Courier New}

, Computer Modern,

\setromanfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
+1

xetex xelatex, poitn , tex, .

, . html + css, tex- .

:

 \documentclass[12pt,letterpaper]{article}

 \usepackage{fontspec}% provides font selecting commands
 \usepackage{xunicode}% provides unicode character macros
 \usepackage{xltxtra} % provides some fixes/extras

 \setromanfont[Mapping=tex-text]{Font Name}

[Mapping = tex-text] .

0
source

Parsi Digits is a font that you don't currently have, and the error you get is that you don't have a font. Just replace Parsi Digits' with another font and it all should go fine. \setdigitfont is a command that makes digits in math mode Persian and it can acceptScale 'as an option.

0
source

Source: https://habr.com/ru/post/1719424/


All Articles