xelatex引擎调用系统字体
2014-10-04 17:39
399 查看
作者:金良(golden1314521@gmail.com) csdn博客:http://blog.csdn.net/u012176591
由于TEX文件中用到了本地操作系统字库,所以用XeLaTeX编译,发现缺少某些字体
1.首先,下载相应字体,如OpenType 字体文件 (.otf)、 TTF (.TTF)等
2.打开控制面板->字体,将字体文件拖进去,如下图:
这样字体就安装成功了。
再次用XeLaTeX编译,发现不能生成DVI或PDF:
Google上查了好久,貌似这是xelatex引擎的一个bug,无奈,我删除了所有指定本地操作系统的字体的语句,例如
再次编译,发现正常了。
后来发现不是这儿的问题,问题之处在这儿
由于TEX文件中用到了本地操作系统字库,所以用XeLaTeX编译,发现缺少某些字体
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "[KaiTi]" cannot be found. ! ! See the fontspec documentation for further information. ! For immediate help type H <return>. !...............................................怎么解决呢?下面是步骤:
1.首先,下载相应字体,如OpenType 字体文件 (.otf)、 TTF (.TTF)等
2.打开控制面板->字体,将字体文件拖进去,如下图:
这样字体就安装成功了。
再次用XeLaTeX编译,发现不能生成DVI或PDF:
<span style="font-size:18px;">** WARNING ** Obsolete four arguments of "endchar" will be used for Type 1 "seac" operator. ** ERROR ** This font using the "seac" command for accented characters... Output file removed. ) (see the transcript file for additional information) Error 1 (driver return code) generating output;</span>
Google上查了好久,貌似这是xelatex引擎的一个bug,无奈,我删除了所有指定本地操作系统的字体的语句,例如
{\fontspec{Inconsolata} Inconsolata}
再次编译,发现正常了。
后来发现不是这儿的问题,问题之处在这儿
\begin{itemize} \item[] {\small \fontspec{Latin Modern Mono} printf("Hello \%s\<span style="font-family: Arial, Helvetica, sans-serif;">\textbackslash </span> n", name);} [cmtt] \item[] {\small \fontspec[Mapping=tex-text-tt]{Inconsolata} printf("Hello \%s\textbackslash n", name);} [Inconsolata] \end{itemize}第二行的“;”挪到字体外边(不知道为什么第一条就不用挪位置),就可以了。不明白为什么会出现那样的错误。修改后如下:
\begindot \item[] {\small \fontspec{Latin Modern Mono} printf("Hello \%s\textbackslash n", name);}[cmtt] \item[] {\small \fontspec[Mapping=tex-text-tt]{Inconsolata} printf("Hello \%s\textbackslash n", name)};[Inconsolata] \myenddot
相关文章推荐
- xeLaTex调用系统字体
- c# asp.net 调用系统设置字体文本框,设置label或页面字体,大小,FontDialog
- KlayGE引擎的字体系统
- Android学习笔记之,调用系统图库,添加自定义字体,屏幕截图
- 调用系统相册或拍照时使用中文字体显示
- CSS怎么调用系统没有的字体
- Windows 系统调用.COM.微软语言引擎简单应用(C#)
- 自己的转态栏颜色是白色,调用系统相册回来后转态栏字体变成黑色
- c# asp.net 调用系统设置字体文本框
- 实例:调用系统字体
- asp.net调用系统设置字体文本框的方法
- 外部系统调用规则引擎接口
- 通过反射机制获得系统字体Size【ActivityManagerNative无法调用问题】
- c# asp.net 调用系统设置字体文本框
- C#调用Illustrator CS4生成系统所有字体列表并保存为AI文件(Illustrator矢量图形编程之4)
- 外部系统调用规则引擎接口
- 外部系统调用规则引擎接口
- asp.net调用系统设置字体文本框的方法
- 调用系统图库,添加自定义字体,屏幕截图
- 接上外部系统调用规则引擎接口