mpv-player / mpv-player/mpv

How to specify specific font weight for OSD and subs?

Open
#18,335 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

I don't know if its currently possible (I didn't get working results for macOS when I looked it up) so I made an issue.

I'm on macOS and want to specify SF Pro Display Medium (from a built-in font family) as the font for OSD and subs. The following didn't work:

  • Just the name like so (this usually works in browser CSS and many other apps): osd-font="SF Pro Display Medium"
  • The name as shown in fc-list: `osd-font="SFProDisplay-Medium"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the handling for the osd-font option and the macOS font lookup path, then determine whether a family and specific weight can be selected. Done means SF Pro Display Medium works for OSD and subtitles through a documented font value.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.