-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load fonts from external folder #8338
Comments
You can already load fonts from |
Yes, I can load fonts from specific folders like ~/.fonts/, but required fonts for subtitles are in the subs/fonts folder I just downloaded.
I want to be able to set a directory for loading additional fonts like in the ffmpeg example above. |
https://github.com/yzwduck/FontLoaderSub |
recently the update of mpc remind me of this feature , unfortunately it hasn't been implemented in mpv. |
Be really good just load fonts from SUBDIR/fonts with ignoring capitalization letters for "fonts" dir |
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
To anyone interested, I have submitted PR #9856, which adds a For the record, libass (which is in charge of loading the fonts) only supports a single directory¹, thus precluding a plural "paths" option. Furthermore, since there's already a default location ( ¹ Despite what the documentation might seem to imply, this directory is not searched recursively, so we can't trick our way around this limitation. |
I feel a bit embarrassed for not thinking about it right away, but this is something a script could easily do. So I wrote sub-fonts-dir-auto, which does exactly that (i.e. pick any |
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes mpv-player#8338
These options make it possible to specify the directory that will be passed to ass_set_fonts_dir(), akin to VLC's `--ssa-fontsdir` and FFmpeg's `fontsdir`. Fixes #8338
Expected behavior of the wanted feature
Option like --sub-file-paths=, but for fonts folders.
For example:
sub-file-paths=subs:/or/absolute/path/to/
font-file-paths=subs/fonts:/or/absolute/path/to/
ffmpeg has similar functionality:
https://ffmpeg.org/ffmpeg-filters.html#subtitles-1
The text was updated successfully, but these errors were encountered: