mirror of
https://github.com/mpv-player/mpv
synced 2025-03-03 12:47:49 +00:00
osxbundle: fonts.conf: only look for fonts in ~/.mpv/fonts
This is to avoid the 30s hang while mpv caches fonts. In practice all the fonts an average user is going to use are embedded in mkv files so there is no reason to build fontconfig's cache on all of OS X system directories. I might add something similar for terminal usage, but I am highly undecided.
This commit is contained in:
parent
5249cccfcf
commit
4a9f618d9f
@ -1452,6 +1452,13 @@
|
|||||||
options) are ignored when ASS-subtitles are rendered, unless the
|
options) are ignored when ASS-subtitles are rendered, unless the
|
||||||
``--no-ass`` option is specified.
|
``--no-ass`` option is specified.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
By default the OS X Application Bundle ships with a default fontconfig
|
||||||
|
fonts.conf that looks for fonts in the ``~/.mpv/fonts`` folder. It does
|
||||||
|
not include standard OS X paths to reduce the time spent to build
|
||||||
|
fontconfig's cache.
|
||||||
|
|
||||||
``--osd-font-size=<size>``, ``--sub-text-font-size=<size>``
|
``--osd-font-size=<size>``, ``--sub-text-font-size=<size>``
|
||||||
Specify the OSD/sub font size. The unit is the size in scaled pixels at a
|
Specify the OSD/sub font size. The unit is the size in scaled pixels at a
|
||||||
window height of 720. The actual pixel size is scaled with the window
|
window height of 720. The actual pixel size is scaled with the window
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<dir>/System/Library/Fonts</dir>
|
<dir>~/.mpv/fonts</dir>
|
||||||
<dir>/Library/Fonts</dir>
|
<cachedir>~/.mpv/.fontconfig-cache</cachedir>
|
||||||
<dir>~/Library/Fonts</dir>
|
|
||||||
<dir>/Network/Library/Fonts</dir>
|
|
||||||
<cachedir>~/.fontconfig</cachedir>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Accept deprecated 'mono' alias, replacing it with 'monospace'
|
Accept deprecated 'mono' alias, replacing it with 'monospace'
|
||||||
|
Loading…
Reference in New Issue
Block a user