How to specify font and font weight? #18318
Replies: 1 comment 3 replies
|
For mpv's OSD, there is not a separate The documented OSD font controls are basically: osd-font="Font Family Name"
osd-bold=yes|no
osd-font-provider=auto|none|fontconfig
osd-fonts-dir=...
Things worth trying: # If CoreText exposes the weight as a separate face name
osd-font="SF Pro Display Medium"
osd-bold=noIf that does not work, mpv probably cannot select that specific weight through the OSD options on your build. The reliable workaround is to use a font file whose internal family/style resolves the way you want, put it in mpv's fonts dir, and point osd-fonts-dir="~~/fonts"
osd-font="Your Medium Font Family"
osd-bold=noYou can also check whether your mpv build has fontconfig support and force it: mpv --osd-font-provider=fontconfig --osd-font='SF Pro Display:style=Medium' ...but the manual says If this answers the config behavior, please mark it as answered so macOS users do not keep chasing |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm on macOS, in my
mpv.conffile,osd-font="SF Pro Display"works but I want the Medium weight of the font, how do I specify that? I tried asSF Pro Display:style=Mediumshown with thefc-listcommand but that doesn't work.All reactions