From ff2aed2b56e43665e2b10acf06fa107877799bec Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 25 Sep 2019 22:11:39 +0200 Subject: sub: make font provider user-selectable libass had an API to configure this since 2013. mpv always used ASS_FONTPROVIDER_AUTODETECT, because usually there's little reason to use anything else. The intention of the now added option is to allow users to disable use of system fonts. I didn't consider it worth the trouble to add the coretext and directwrite enum items from ASS_DefaultFontProvider. The "auto" choice will have the same effect if they're available. Also, the part of the code which defines the option does not necessarily have libass available (it's still optional!), so defining all enum items as choices is icky. I still added fontconfig, since that may be nice to emulate a nostalgic 2010 feeling of mpv freezing on fontconfig. The option for OSD is even less useful. (But you get it for free, and why pass up a chance to add yet another useless option?) This is not quite what was requested in #6947, but as close as it gets. --- sub/osd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sub/osd.h') diff --git a/sub/osd.h b/sub/osd.h index 114ab4a8f1..660a828767 100644 --- a/sub/osd.h +++ b/sub/osd.h @@ -137,6 +137,7 @@ struct osd_style_opts { int bold; int italic; int justify; + int font_provider; }; extern const struct m_sub_options osd_style_conf; -- cgit v1.2.3