/usr/share/fonts/IBM_Plex_Mono:缓存,新的缓存内容:0 个字体,0 个目录

/usr/share/fonts/IBM_Plex_Mono:缓存,新的缓存内容:0 个字体,0 个目录

我已经将 Latex 2013(小型安装)安装到高山并在 docker 中运行它,当我尝试使用此命令显示 alpine 字体列表时:

/usr/share/fonts/IBM_Plex_Serif # fc-list

输出为空,如何知道该字体适用于 xelatex?我应该怎么做才能让xelatex加载系统字体?我尝试使用此命令来刷新字体:

fc-cache -fv

显示如下输出:

/usr/share/fonts/IBM_Plex_Serif # fc-cache -fv
Font directories:
    /root/.local/share/fonts
    /usr/local/share/fonts
    /usr/share/fonts
    /root/.fonts
    /usr/share/fonts/IBM_Plex_Mono
    /usr/share/fonts/IBM_Plex_Serif
    /usr/share/fonts/LM_Roman_10
    /usr/share/fonts/Main
    /usr/share/fonts/noto
    /usr/share/fonts/source-han-sans
    /usr/share/fonts/source-han-serif
    /usr/share/fonts/zh_CN-Adobe
/root/.local/share/fonts: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/usr/share/fonts: caching, new cache contents: 0 fonts, 8 dirs
/usr/share/fonts/IBM_Plex_Mono: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/IBM_Plex_Serif: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/LM_Roman_10: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/Main: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/noto: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/source-han-sans: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/source-han-serif: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/zh_CN-Adobe: caching, new cache contents: 0 fonts, 0 dirs
/root/.fonts: skipping, no such directory
/usr/share/fonts/IBM_Plex_Mono: skipping, looped directory detected
/usr/share/fonts/IBM_Plex_Serif: skipping, looped directory detected
/usr/share/fonts/LM_Roman_10: skipping, looped directory detected
/usr/share/fonts/Main: skipping, looped directory detected
/usr/share/fonts/noto: skipping, looped directory detected
/usr/share/fonts/source-han-sans: skipping, looped directory detected
/usr/share/fonts/source-han-serif: skipping, looped directory detected
/usr/share/fonts/zh_CN-Adobe: skipping, looped directory detected
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

我检查了字体文件夹,它看起来像这样:

/usr/share/fonts/IBM_Plex_Serif # ls
IBMPlexSerif-Bold.ttf              IBMPlexSerif-ExtraLightItalic.ttf  IBMPlexSerif-LightItalic.ttf       IBMPlexSerif-Regular.ttf           IBMPlexSerif-Thin.ttf
IBMPlexSerif-BoldItalic.ttf        IBMPlexSerif-Italic.ttf            IBMPlexSerif-Medium.ttf            IBMPlexSerif-SemiBold.ttf          IBMPlexSerif-ThinItalic.ttf
IBMPlexSerif-ExtraLight.ttf        IBMPlexSerif-Light.ttf             IBMPlexSerif-MediumItalic.ttf      IBMPlexSerif-SemiBoldItalic.ttf    OFL.txt

好像 alpine 没有加载字体。

相关内容