CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
985 stars 125 forks source link

使用默认字体会导致中文不渲染 #612

Closed lygamac closed 2 years ago

lygamac commented 2 years ago

示例片段:

\documentclass{ctexart}

\begin{document}
con中文tents.
\end{document}

以XeTex编译以上代码的结果是: image

使用\usepackage{xeCJK}也是同样的结果,改字体的话能解决。

(很久)以前编译出来的没有问题。不知道是什么时候导致的问题。

安装的是上流3月20日打的最新包(aur 的 FandolSong 包也装过,没有变化。本身就内置了的话又没缺失的报错应该不是字体的问题):

local/texlive-bibtexextra 2021.62705-1 (texlive-most)
    TeX Live - Additional BibTeX styles and bibliography databases
local/texlive-bin 2021.59745-2
    TeX Live binaries
local/texlive-core 2021.62793-1 (texlive-most)
    TeX Live core distribution
local/texlive-fontsextra 2021.62623-1 (texlive-most)
    TeX Live - all sorts of extra fonts
local/texlive-formatsextra 2021.62145-1 (texlive-most)
    TeX Live - collection of extra TeX 'formats'
local/texlive-games 2021.62102-1 (texlive-most)
    TeX Live - Setups for typesetting various board games, including chess
local/texlive-humanities 2021.61878-1 (texlive-most)
    TeX Live - LaTeX packages for law, linguistics, social sciences, and humanities
local/texlive-langchinese 2021.62313-1 (texlive-lang)
    TeX Live - Fonts and macro packages to typeset Chinese texts
local/texlive-latexextra 2021.62806-1 (texlive-most)
    TeX Live - Large collection of add-on packages for LaTeX
local/texlive-music 2021.62509-1 (texlive-most)
    TeX Live - Music typesetting packages
local/texlive-pictures 2021.62760-1 (texlive-most)
    TeX Live - Packages for drawings graphics
local/texlive-pstricks 2021.61917-1 (texlive-most)
    TeX Live - Additional PSTricks packages
local/texlive-publishers 2021.62814-1 (texlive-most)
    TeX Live - LaTeX classes and packages for specific publishers
local/texlive-science 2021.62659-1 (texlive-most)
    TeX Live - Typesetting for mathematics, natural and computer sciences

编译输出:

This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./1.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24>
(/usr/share/texmf-dist/tex/latex/ctex/ctexart.cls
(/usr/share/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
(|extractbb --version)))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texmf-dist/tex/latex/ctex/ctexhook.sty)
(/usr/share/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(/usr/share/texmf-dist/tex/latex/base/fix-cm.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/share/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(/usr/share/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(/usr/share/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(/usr/share/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(/usr/share/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def
(/usr/share/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(/usr/share/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(/usr/share/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def

Package fontspec Warning: Font "FandolSong-Regular" does not contain requested
(fontspec)                Script "CJK".

)) (/usr/share/texmf-dist/tex/latex/ctex/config/ctex.cfg)
No file 1.aux.
[1] (./1.aux) )
Output written on 1.pdf (1 page).
Transcript written on 1.log.

日志:

This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/Arch Linux) (preloaded format=xelatex 2022.3.27)  9 APR 2022 23:02
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**1.tex
(./1.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24>
(/usr/share/texmf-dist/tex/latex/ctex/ctexart.cls
(/usr/share/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg
File: ctexbackend.cfg 2021/12/12 v2.5.8 Backend configuration file (CTEX)
)
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2022-02-24 L3 programming layer (loader) 

(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
File: l3backend-xetex.def 2022-02-07 L3 backend support: XeTeX

(|extractbb --version)
\c__kernel_sys_dvipdfmx_version_int=\count181
\l__color_backend_stack_int=\count182
\g__color_backend_stack_int=\count183
\g__graphics_track_int=\count184
\l__pdf_internal_box=\box50
\g__pdf_backend_object_int=\count185
\g__pdf_backend_annotation_int=\count186
\g__pdf_backend_link_int=\count187
))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2022-01-12 L3 Experimental document command parser
)
(/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
Package: l3keys2e 2022-01-12 LaTeX2e option processing using LaTeX3 keys
)
(/usr/share/texmf-dist/tex/latex/ctex/ctexhook.sty
Package: ctexhook 2021/12/12 v2.5.8 Document and package hooks (CTEX)
)
(/usr/share/texmf-dist/tex/latex/ctex/ctexpatch.sty
Package: ctexpatch 2021/12/12 v2.5.8 Patching commands (CTEX)
)
(/usr/share/texmf-dist/tex/latex/base/fix-cm.sty
Package: fix-cm 2020/11/24 v1.1t fixes to LaTeX

(/usr/share/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding TS1 on input line 47.
))
\l__ctex_tmp_int=\count188
\l__ctex_tmp_box=\box51
\l__ctex_tmp_dim=\dimen138
\g__ctex_section_depth_int=\count189
\g__ctex_font_size_int=\count190

(/usr/share/texmf-dist/tex/latex/ctex/config/ctexopts.cfg
File: ctexopts.cfg 2021/12/12 v2.5.8 Option configuration file (CTEX)
)
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count191
\c@section=\count192
\c@subsection=\count193
\c@subsubsection=\count194
\c@paragraph=\count195
\c@subparagraph=\count196
\c@figure=\count197
\c@table=\count198
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen139
)
(/usr/share/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
File: ctex-engine-xetex.def 2021/12/12 v2.5.8 XeLaTeX adapter (CTEX)

(/usr/share/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
Package: xeCJK 2021/12/12 v3.8.8 Typesetting CJK scripts with XeLaTeX

(/usr/share/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty
Package: xtemplate 2022-01-12 L3 Experimental prototype document functions
\l__xtemplate_tmp_dim=\dimen140
\l__xtemplate_tmp_int=\count199
\l__xtemplate_tmp_muskip=\muskip16
\l__xtemplate_tmp_skip=\skip49
)
\l__xeCJK_tmp_int=\count266
\l__xeCJK_tmp_box=\box52
\l__xeCJK_tmp_dim=\dimen141
\l__xeCJK_tmp_skip=\skip50
\g__xeCJK_space_factor_int=\count267
\l__xeCJK_begin_int=\count268
\l__xeCJK_end_int=\count269
\c__xeCJK_CJK_class_int=\XeTeXcharclass1
\c__xeCJK_FullLeft_class_int=\XeTeXcharclass2
\c__xeCJK_FullRight_class_int=\XeTeXcharclass3
\c__xeCJK_HalfLeft_class_int=\XeTeXcharclass4
\c__xeCJK_HalfRight_class_int=\XeTeXcharclass5
\c__xeCJK_NormalSpace_class_int=\XeTeXcharclass6
\c__xeCJK_CM_class_int=\XeTeXcharclass7
\c__xeCJK_HangulJamo_class_int=\XeTeXcharclass8
\l__xeCJK_last_skip=\skip51
\g__xeCJK_node_int=\count270
\c__xeCJK_CJK_node_dim=\dimen142
\c__xeCJK_CJK-space_node_dim=\dimen143
\c__xeCJK_default_node_dim=\dimen144
\c__xeCJK_default-space_node_dim=\dimen145
\c__xeCJK_CJK-widow_node_dim=\dimen146
\c__xeCJK_normalspace_node_dim=\dimen147
\l__xeCJK_ccglue_skip=\skip52
\l__xeCJK_ecglue_skip=\skip53
\l__xeCJK_punct_kern_skip=\skip54
\l__xeCJK_last_penalty_int=\count271
\l__xeCJK_last_bound_dim=\dimen148
\l__xeCJK_last_kern_dim=\dimen149
\l__xeCJK_widow_penalty_int=\count272

Package xtemplate Info: Declaring object type 'xeCJK/punctuation' taking 0
(xtemplate)             argument(s) on line 2337.

\l__xeCJK_fixed_punct_width_dim=\dimen150
\l__xeCJK_mixed_punct_width_dim=\dimen151
\l__xeCJK_middle_punct_width_dim=\dimen152
\l__xeCJK_fixed_margin_width_dim=\dimen153
\l__xeCJK_mixed_margin_width_dim=\dimen154
\l__xeCJK_middle_margin_width_dim=\dimen155
\l__xeCJK_bound_punct_width_dim=\dimen156
\l__xeCJK_bound_margin_width_dim=\dimen157
\l__xeCJK_margin_minimum_dim=\dimen158
\l__xeCJK_kerning_total_width_dim=\dimen159
\l__xeCJK_same_align_margin_dim=\dimen160
\l__xeCJK_different_align_margin_dim=\dimen161
\l__xeCJK_kerning_margin_width_dim=\dimen162
\l__xeCJK_kerning_margin_minimum_dim=\dimen163
\l__xeCJK_bound_dim=\dimen164
\l__xeCJK_reverse_bound_dim=\dimen165
\l__xeCJK_margin_dim=\dimen166
\l__xeCJK_minimum_bound_dim=\dimen167
\l__xeCJK_kerning_margin_dim=\dimen168
\g__xeCJK_family_int=\count273
\l__xeCJK_fam_int=\count274
\g__xeCJK_fam_allocation_int=\count275
\l__xeCJK_verb_case_int=\count276
\l__xeCJK_verb_exspace_skip=\skip55

(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty
Package: fontspec 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTeX

(/usr/share/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
Package: fontspec-xetex 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTe
X
\l__fontspec_script_int=\count277
\l__fontspec_language_int=\count278
\l__fontspec_strnum_int=\count279
\l__fontspec_tmp_int=\count280
\l__fontspec_tmpa_int=\count281
\l__fontspec_tmpb_int=\count282
\l__fontspec_tmpc_int=\count283
\l__fontspec_em_int=\count284
\l__fontspec_emdef_int=\count285
\l__fontspec_strong_int=\count286
\l__fontspec_strongdef_int=\count287
\l__fontspec_tmpa_dim=\dimen169
\l__fontspec_tmpb_dim=\dimen170
\l__fontspec_tmpc_dim=\dimen171

(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
)
(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg
File: xeCJK.cfg 2021/12/12 v3.8.8 Configuration file for xeCJK package
))
\ccwd=\dimen172
\l__ctex_ccglue_skip=\skip56
)
\l__ctex_ziju_dim=\dimen173

(/usr/share/texmf-dist/tex/latex/zhnumber/zhnumber.sty
Package: zhnumber 2020/05/01 v2.8 Typesetting numbers with Chinese glyphs
\l__zhnum_scale_int=\count288

(/usr/share/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg
File: zhnumber-utf8.cfg 2020/05/01 v2.8 Chinese numerals with UTF8 encoding
))
\l__ctex_heading_skip=\skip57

(/usr/share/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def
File: ctex-scheme-chinese-article.def 2021/12/12 v2.5.8 Chinese scheme for arti
cle (CTEX)

(/usr/share/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg
File: ctex-name-utf8.cfg 2021/12/12 v2.5.8 Caption with encoding UTF-8 (CTEX)
))
(/usr/share/texmf-dist/tex/latex/ctex/ctex-c5size.clo
File: ctex-c5size.clo 2021/12/12 v2.5.8 c5size option (CTEX)
)
(/usr/share/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def
File: ctex-fontset-fandol.def 2021/12/12 v2.5.8 Fandol fonts definition (CTEX)

Package fontspec Warning: Font "FandolSong-Regular" does not contain requested
(fontspec)                Script "CJK".

Package fontspec Info: Font family 'FandolSong-Regular(0)' created for font
(fontspec)             'FandolSong-Regular' with options
(fontspec)             [Script={CJK},Extension={.otf},BoldFont={FandolSong-Bold
},ItalicFont={FandolKai-Regular}].
(fontspec)              
(fontspec)              This font family consists of the following NFSS
(fontspec)             series/shapes:
(fontspec)              
(fontspec)             - 'normal' (m/n) with NFSS spec.:
(fontspec)             <->"[FandolSong-Regular.otf]/OT:language=dflt;"
(fontspec)             - 'small caps'  (m/sc) with NFSS spec.: 
(fontspec)             - 'bold' (b/n) with NFSS spec.:
(fontspec)             <->"[FandolSong-Bold.otf]/OT:language=dflt;"
(fontspec)             - 'bold small caps'  (b/sc) with NFSS spec.: 
(fontspec)             - 'italic' (m/it) with NFSS spec.:
(fontspec)             <->"[FandolKai-Regular.otf]/OT:language=dflt;"
(fontspec)             - 'italic small caps'  (m/scit) with NFSS spec.: 

)) (/usr/share/texmf-dist/tex/latex/ctex/config/ctex.cfg
File: ctex.cfg 2021/12/12 v2.5.8 Configuration file (CTEX)
)
No file 1.aux.
\openout1 = `1.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.

Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid
(fontspec)             this).

\symlegacymaths=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `legacymaths' in version `bold'
(Font)                  OT1/cmr/m/n --> OT1/cmr/bx/n on input line 3.
LaTeX Font Info:    Redeclaring math accent \acute on input line 3.
LaTeX Font Info:    Redeclaring math accent \grave on input line 3.
LaTeX Font Info:    Redeclaring math accent \ddot on input line 3.
LaTeX Font Info:    Redeclaring math accent \tilde on input line 3.
LaTeX Font Info:    Redeclaring math accent \bar on input line 3.
LaTeX Font Info:    Redeclaring math accent \breve on input line 3.
LaTeX Font Info:    Redeclaring math accent \check on input line 3.
LaTeX Font Info:    Redeclaring math accent \hat on input line 3.
LaTeX Font Info:    Redeclaring math accent \dot on input line 3.
LaTeX Font Info:    Redeclaring math accent \mathring on input line 3.
LaTeX Font Info:    Redeclaring math symbol \colon on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Gamma on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Delta on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Theta on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Lambda on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Xi on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Pi on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Sigma on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Upsilon on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Phi on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Psi on input line 3.
LaTeX Font Info:    Redeclaring math symbol \Omega on input line 3.
LaTeX Font Info:    Redeclaring math symbol \mathdollar on input line 3.
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 3.
LaTeX Font Info:    Encoding `OT1' has changed to `TU' for symbol font
(Font)              `operators' in the math version `normal' on input line 3.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> TU/lmr/m/n on input line 3.
LaTeX Font Info:    Encoding `OT1' has changed to `TU' for symbol font
(Font)              `operators' in the math version `bold' on input line 3.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> TU/lmr/m/n on input line 3.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  TU/lmr/m/n --> TU/lmr/m/n on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> TU/lmr/m/it on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> TU/lmr/b/n on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> TU/lmss/m/n on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> TU/lmtt/m/n on input line 3.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  TU/lmr/m/n --> TU/lmr/b/n on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> TU/lmr/b/it on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> TU/lmss/b/n on input line 3.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> TU/lmtt/b/n on input line 3.
[1

] (./1.aux) ) 
Here is how much of TeX's memory you used:
 6512 strings out of 476180
 195172 string characters out of 5815297
 535668 words of memory out of 5000000
 27244 multiletter control sequences out of 15000+600000
 470997 words of font info for 42 fonts, out of 8000000 for 9000
 1348 hyphenation exceptions out of 8191
 89i,5n,97p,340b,270s stack positions out of 5000i,500n,10000p,200000b,80000s

Output written on 1.pdf (1 page).
muzimuzhi commented 2 years ago

在哪些 pdf 阅读器里能复现?能提供 pdf 文件更好

lygamac commented 2 years ago

在哪些 pdf 阅读器里能复现?

部分网盘自带的 pdf 预览,okular, zathura (mupdf), xournalpp, inkscape 都能复现。

福昕阅读器没有问题,浏览器自身的预览(火狐,edge)没有问题,手机上网盘的预览也没有问题。疑似只有在基于 linux 发行版依赖的系统上才能复现。

1.pdf

lygamac commented 2 years ago

似乎是直接跳过CJK字体了。 复制不了显示不出来的中文部分,终端用的pdf预览也获取不到中文字体。

CoelacanthusHex commented 2 years ago

@lygamac 是否安装了poppler data,这是poppler based pdf viewer显示中文字体的必须组件

stone-zeng commented 2 years ago

根据 @clerkma 的说法,「凡是中文显示不出来的,poppler 没配置全的问题基本上占这一类问题的九成」,所以请试试装一下 poppler-data

lygamac commented 2 years ago

这是poppler based pdf viewer显示中文字体的必须组件

装了 poppler-data 确实可以了。不过像 office 或者 xournalpp 里写中文导出 pdf 并不会导致在没有 poppler-data 的情况下显示不出中文字体。

是因为默认字体依赖于 poppler-data 吗?

CoelacanthusHex commented 2 years ago

@lygamac 那可能是是字体被曲线化了,也就是pdf里面已经存的不是字和字体,而是直接绘制那个字的形状的绘图指令(仅作猜测

RuixiZhang42 commented 2 years ago

@CoelacanthusHex

那可能是是字体被曲线化了

可能不是,我之前也报给了 MikTeX,https://github.com/MiKTeX/miktex/issues/214 然而不了了之(哭)。看起来字体是成功 embed subset 了,但是自带的 PDF viewer 就是显示不出来……生成的 PDF 通过 pdftocairo 转图片也是一大串报错。

lygamac commented 2 years ago

@RuixiZhang42 应该是解码问题。poppler-data 本身就是解码数据,加上换别的字体就没问题了应该就是一般的 pdf 工具没有内置 Fandol 字体的解码功能