obsproject / obsproject/obs-studio
Century font includes added padding at the end of the string when "Custom Text Extents" is disabled
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 76.4k
- Forks
- 10.2k
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 12
Description
Operating System Info
Windows 11
Other OS
No response
OBS Studio Version
Other
OBS Studio Version (Other)
32.0.4
OBS Studio Log URL
https://obsproject.com/logs/r5tIzp2ulXA7kDKo
OBS Studio Crash Log URL
No response
Expected Behavior
All fonts behave the same the same way within the bounding box
Current Behavior
Using Century font creates a large gap on the right side of the bounding box that's inconsistent with the behavior of the other fonts, thus making alignment difficult.
Sidebearing shouldn't impact the end of the string more than it impacts the beginning of the string or the kerning between letters.
Steps to Reproduce
- Add a GDI+ text source
- Add text in the default font--notice how it fills the bounding box
- Change the font to Century--notice how the right side of the bounding box suddenly jumps away from the text
- Change the font back--notice how the bounding box jumps back to be against the text
Anything else we should know?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using a GDI+ text source on Windows 11 with Century and a default font while Custom Text Extents is disabled. Compare the bounding-box behavior and relevant OBS logs; done means Century no longer leaves an inconsistent right-side gap relative to the rendered text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100