mpv는 자막에 포함된 글꼴을 사용하지 않습니다.

mpv는 자막에 포함된 글꼴을 사용하지 않습니다.

그것은 어떤 모습이어야 하는가 어떤 모습이어야 할까요?

어때 보여? 어떻게 보입니까?

mpv 로그에서 mkv 파일에 포함된 올바른 글꼴인 Murga가 필요하다는 것을 알 수 있지만 결국 BitstreamVeraSans-Roman으로 돌아갑니다.

[sub/ass] fontselect: (Murga, 400, 0) -> /usr/share/fonts/truetype/emoji/TwitterColorEmoji-SVGinOT.ttf, 0, TwitterColorEmojiSVGinOT
[sub/ass] Glyph 0x45 not found, selecting one more font for (Murga, 400, 0)
[sub/ass] fontselect: (Murga, 400, 0) -> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf, 0, BitstreamVeraSans-Roman

이를 제거하면 /etc/fonts/fonts.conf문제가 해결되는 것 같지만, 이를 해결하기 위해 일종의 규칙을 추가할 수 있는지 궁금합니다. 내 Fonts.conf의 내용은 다음과 같습니다.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
    DO NOT EDIT THIS FILE.
    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
    LOCAL CHANGES BELONG IN 'local.conf'.

    The intent of this standard configuration file is to be adequate for
    most environments.  If you have a reasonably normal environment and
    have found problems with this configuration, they are probably
    things that others will also want fixed.  Please submit any
    problems to the fontconfig bugzilla system located at fontconfig.org

    Note that the normal 'make install' procedure for fontconfig is to
    replace any existing fonts.conf file with the new version.  Place
    any local customizations in local.conf which this file references.

    Keith Packard
-->

<!-- Font directory list -->

    <dir>/usr/share/fonts</dir>
    <dir>/usr/local/share/fonts</dir>
    <dir prefix="xdg">fonts</dir>
    <!-- the following element will be removed in the future -->
    <dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>mono</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans serif</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>sans-serif</string>
        </edit>
    </match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>sans-serif</string>
        </edit>
    </match>

<!--
  Ignore dpkg temporary files created in fonts directories
-->
    <selectfont>
        <rejectfont>
            <glob>*.dpkg-tmp</glob>
        </rejectfont>
    </selectfont>
    <selectfont>
        <rejectfont>
            <glob>*.dpkg-new</glob>
        </rejectfont>
    </selectfont>

<!--
  Load local system customization file
-->
    <include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

    <cachedir>/var/cache/fontconfig</cachedir>
    <cachedir prefix="xdg">fontconfig</cachedir>
    <!-- the following element will be removed in the future -->
    <cachedir>~/.fontconfig</cachedir>

    <config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
        <rescan>
            <int>30</int>
        </rescan>
    </config>

</fontconfig>

답변1

이로 인해 발생하는 것으로 밝혀졌습니다.https://github.com/eosrei/twemoji-color-font, 특히 파일의 다음 블록은 다음과 같습니다 $HOME/.config/fontconfig/conf.d/56-twemoji-color.conf.

  <match target="pattern">
    <!-- If the requested font is sans-serif -->
    <test qual="any" name="family">
        <string>sans-serif</string>
    </test>
    <!-- Make Bitstream Vera Sans the first result -->
    <edit name="family" mode="prepend_first">
      <string>Bitstream Vera Sans</string>
    </edit>
    <!-- Followed by Twitter Color Emoji -->
    <edit name="family" mode="prepend_first">
      <string>Twitter Color Emoji</string>
    </edit>
  </match>

에도 동일한 블록이 존재합니다 /etc/fonts/conf.d/56-twemoji-color.conf.

관련 정보