悠闲数学娱乐论坛(第2版)'s Archiver

isee 发表于 2019-12-1 22:09

$\mathrm\LaTeX$无法调用方正字体

以前电脑都好好的,就这次新笔记本无法加载自己安装的方正字体。

今天偶尔在字体文体上右键试了一下:[color=Red]为所有用户安装[/color],竟然OK了

isee 发表于 2019-12-1 22:10

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=34309&ptid=6756]1#[/url] [i]isee[/i] [/b]


准确的说是 xelatex

kuing 发表于 2019-12-2 13:38

$\mathrm X\!\raise-.5ex\exists\mathrm\LaTeX${:lol:}

ymshuibingcheng 发表于 2020-7-14 12:53

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=34309&ptid=6756]1#[/url] [i]isee[/i] [/b]


    我也安装了方正字体,但是就是无法调用字体,怎么设置调用?谢谢

isee 发表于 2020-7-17 13:53

[i=s] 本帖最后由 isee 于 2020-7-17 13:56 编辑 [/i]

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36554&ptid=6756]4#[/url] [i]ymshuibingcheng[/i] [/b]


用 $\mathrm X\!\raise-.5ex\exists\mathrm\LaTeX$编译,这个也许对你用
[url]https://www.cnblogs.com/tsingke/p/12367423.html[/url]

我主楼主的是临时无法调用,后来将字体重新安装给所有用户就OK了

ymshuibingcheng 发表于 2020-7-21 14:45

你安装了方正字体,你调用的时候怎么设置的,能不能把你设置字体的代码看看,谢谢!

isee 发表于 2020-7-21 15:46

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36642&ptid=6756]6#[/url] [i]ymshuibingcheng[/i] [/b]

%%xelatex 编译
%%导言区
\usepackage{xeCJK}
\newCJKfontfamily\FZD{FZDaBiaoSong-B06}  %%中文字体名忘记了
\newCJKfontfamily\FZK{FZKai-Z03}               %%就是方正楷体

%%正文调用
{\FZK 单调性与极值}

isee 发表于 2020-7-21 15:49

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36643&ptid=6756]7#[/url] [i]isee[/i] [/b]


   当然,先加载了 ctex 宏包

kuing 发表于 2020-7-21 18:43

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36643&ptid=6756]7#[/url] [i]isee[/i] [/b]

命令行运行  fc-list :lang=zh-cn  看看中文字体名称啥的

ymshuibingcheng 发表于 2020-7-21 20:43

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36643&ptid=6756]7#[/url] [i]isee[/i] [/b]

FZDaBiaoSong-B06  这个字体名字是怎么弄得?我换成中文名字就是不通过,不知道怎么修改

isee 发表于 2020-7-21 21:38

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36646&ptid=6756]10#[/url] [i]ymshuibingcheng[/i] [/b]

字体名是中文字体名,还是英文字体名都没关系,只要有,都可以用,我个人习惯用英文字体名。

字体中英文名的对应关系,看[color=Red]9#[/color]

另外:FZDaBiaoSong-B06 对应的中文字体名是 方正大标宋_GBK (用9楼使命令查的)

ymshuibingcheng 发表于 2020-7-22 15:45

[attach]8904[/attach]
这个是查询的字体
C:/Windows/fonts/FZSSK.TTF: FZShuSong\-Z01,鏂规涔﹀畫_GBK:style=Regular;
这个方正字体的英文名字就是FZShuSong\-Z01,你们都是横岗,为什么还有一个斜杠。
谢谢

isee 发表于 2020-7-22 17:02

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36648&ptid=6756]12#[/url] [i]ymshuibingcheng[/i] [/b]

显示的\是多余的,要去掉。(才是英文名)
\有什么用,就不懂了

isee 发表于 2020-7-22 17:03

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=36648&ptid=6756]12#[/url] [i]ymshuibingcheng[/i] [/b]

FZShuSong-Z01  这才是英文名,要去掉\

kuing 发表于 2020-7-23 14:37

可能在 dos 里 - 是特殊字符需要用 \ 来转义吧……

isee 发表于 2021-4-23 23:23

[i=s] 本帖最后由 isee 于 2021-4-24 11:35 编辑 [/i]

这真是很奇怪的事儿,win10 x64,[url=http://kuing.orzweb.net/viewthread.php?tid=7777&extra=page%3D1]texlive 2021[/url] 怎么折腾都无法调用方正字体(其他字体没试过)

===

经测试,本地iso镜像文件安装 texlive 2019,texlive 2020 均没有问题——可以调用方正字体,但是texlive 2021 却不可以,不知是个体问题,还是共性。

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.