Forgot password?
 Create new account
View 1935|Reply 15

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

[Copy link]

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2019-12-1 22:09:09 |Read mode
以前电脑都好好的,就这次新笔记本无法加载自己安装的方正字体。

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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2019-12-1 22:10:52
回复 1# isee


准确的说是 xelatex

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2019-12-2 13:38:21
$\mathrm X\!\raise-.5ex\exists\mathrm\LaTeX$

0

Threads

4

Posts

24

Credits

Credits
24

Show all posts

ymshuibingcheng Posted at 2020-7-14 12:53:03
回复 1# isee


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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-17 13:53:46
回复 4# ymshuibingcheng


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

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

0

Threads

4

Posts

24

Credits

Credits
24

Show all posts

ymshuibingcheng Posted at 2020-7-21 14:45:16
你安装了方正字体,你调用的时候怎么设置的,能不能把你设置字体的代码看看,谢谢!

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-21 15:46:41
回复 6# ymshuibingcheng

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

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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-21 15:49:18
回复 7# isee


   当然,先加载了 ctex 宏包

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2020-7-21 18:43:11
回复 7# isee

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

0

Threads

4

Posts

24

Credits

Credits
24

Show all posts

ymshuibingcheng Posted at 2020-7-21 20:43:53
回复 7# isee

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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-21 21:38:41
回复 10# ymshuibingcheng

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

字体中英文名的对应关系,看9#

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

0

Threads

4

Posts

24

Credits

Credits
24

Show all posts

ymshuibingcheng Posted at 2020-7-22 15:45:36
QQ图片20200722154108.png
这个是查询的字体
C:/Windows/fonts/FZSSK.TTF: FZShuSong\-Z01,鏂规涔﹀畫_GBK:style=Regular;
这个方正字体的英文名字就是FZShuSong\-Z01,你们都是横岗,为什么还有一个斜杠。
谢谢

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-22 17:02:15
回复 12# ymshuibingcheng

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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2020-7-22 17:03:30
回复 12# ymshuibingcheng

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

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2020-7-23 14:37:40
可能在 dos 里 - 是特殊字符需要用 \ 来转义吧……

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

 Author| isee Posted at 2021-4-23 23:23:43
Last edited by isee at 2021-4-24 11:35:00这真是很奇怪的事儿,win10 x64,texlive 2021 怎么折腾都无法调用方正字体(其他字体没试过)

===

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

手机版Mobile version|Leisure Math Forum

2025-4-20 22:27 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list