obsproject / obsproject/obs-studio

Text (FreeType 2) renders blank with some TTF fonts although font preview works

Open
#13,659 3 comments 0 reactions 0 assignees View on GitHub

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

32.2.0-rc1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/5S5kEHXPCSyOciP6

OBS Studio Crash Log URL

No response

Expected Behavior

The selected font should render correctly in the Text (FreeType 2) source after clicking OK, matching the preview shown in the font selection dialog.

Current Behavior

Some TrueType fonts can be selected successfully and display correctly in the font selection preview.

However, after clicking OK, the Text (FreeType 2) source only displays an empty bounding box with no rendered text.

The same fonts work correctly in Windows applications such as Notepad and Microsoft Word.

No error messages appear in the OBS log.

Steps to Reproduce
  1. Create a new "Text (FreeType 2)" source.
  2. Enter any text (for example: 測試).
  3. Select one of the affected fonts (JasonHandwriting series).
  4. Click OK.
  5. The source becomes an empty box with no rendered text.
Anything else we should know?

Test environment:

  • Windows 11
  • OBS Studio 32.1.2 (64-bit)
  • Official OBS installer from obsproject.com

The issue has also been reproduced with a clean Portable installation.

Additional testing performed:

  • Created completely new Text (FreeType 2) sources
  • Tested with both Traditional Chinese and English UI
  • Reinstalled OBS
  • Tested with OBS Portable
  • Windows Font Cache service is running normally

Fonts tested:

Working:

  • JF JinXuan
  • Tears 1.0
  • Nihana

Not working:

  • JasonHandwriting1
  • JasonHandwriting2
  • JasonHandwriting3
  • JasonHandwriting4
  • JasonHandwriting5P
  • JasonHandwriting6
  • JasonHandwriting7
  • JasonHandwriting8
  • JasonHandwriting9

These are only the fonts I have tested so far.
I suspect the issue is not limited to the JasonHandwriting font family, as I have encountered similar behavior with other fonts, although I have not tested them systematically yet.

The fonts are valid TrueType (.ttf) fonts and work correctly in Windows applications such as Notepad and Microsoft Word.

The font selection dialog inside OBS is also able to preview these fonts correctly.

The problem only occurs after the font is applied to a Text (FreeType 2) source. The font selection dialog can preview the font correctly, but the text source itself renders only an empty bounding box.

The issue is also reproducible with a clean OBS Portable installation.

The affected fonts are publicly available on GitHub:
https://github.com/jasonhandwriting/JasonHandwriting

Contributor guide

Open the contributing guide

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

No source file or test is named. Start by reproducing the issue with the JasonHandwriting fonts in a Text (FreeType 2) source and inspect the linked OBS log while comparing it with the working font-preview path. Done means affected TrueType fonts render their text after clicking OK, rather than showing only an empty bounding box.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.