Skip to content

Fix: make the default font style configurable - #829

Closed
nborodikhin wants to merge 1 commit into
LoveRetro:mainfrom
nborodikhin:fix/default-font-style
Closed

Fix: make the default font style configurable#829
nborodikhin wants to merge 1 commit into
LoveRetro:mainfrom
nborodikhin:fix/default-font-style

Conversation

@nborodikhin

@nborodikhin nborodikhin commented Sep 6, 2026

Copy link
Copy Markdown

Description

The issue:

  • NextUI setting "Font Style" does nothing for the stock fonts

Brief history of the default NextUI font:

  • 2025-02-01 - v0.01-beta - BPreplay Bold
  • 2025-02-28 - v1.7.1-release - Rounded Mplus 1c Bold
  • 2025-02-28 - v1.7.2-release - ChillRoundM Regular
  • 2025-03-01 - v1.8.0-release - Rounded Mplus 1c Bold
  • 2025-04-09 - v3.0.0-release - Rounded Mplus 1c Bold

There was no option to control the style of the font, it was dictated by the font file.

The setting is passed as TTF_SetFontStyle(font.large, CFG_getFontStyle()); with the caveat:

  • SDL_ttf does not bold the Bold font more, and it does not de-bold a Bold font
  • SDL_ttf can use regular font to construct a synthetic bold
  • As a result, the setting does nothing for a bold font
  • Since the default fonts shipped with NextUI are bold, the setting is a no-op.

This change replaces the default font Rounded Mplus 1c Bold font with its regular-weight variant Rounded Mplus 1c Regular, which makes the setting effective. Since the default setting CFG_DEFAULT_FONT_STYLE is Bold, the change has limited impact on users that use only supplied fonts.

This is not ideal though - regular-made-bold font has irregular thickness, see screenshots below and #748

A possible solution would be for NextUI to ship both regular and bold font files per font family, and introduce a configuration function to resolve font file per style (not a single font style).

Change

Testing

  • compare the Normal and Bold styles with the Next font
Old/New Settings Tools
old, style regular default-normal
old, style bold default-bold default-bold-tools
new, style bold regular-bold regular-bold-tools
new, style regular regular-regular regular-regular-tools

MinUI added TTF_STYLE_BOLD while its bundled BPreplay face was already bold. NextUI briefly used a regular face, then replaced it with Rounded Mplus 1c Bold before exposing Normal and Bold as a setting. The style selection therefore had no visual effect with either stock font.

Replace the default face with the matching Google Fonts Regular weight. Normal now uses the face as supplied, while Bold lets SDL_ttf synthesize the requested weight.
@nborodikhin
nborodikhin marked this pull request as ready for review September 6, 2026 05:33
@nborodikhin

Copy link
Copy Markdown
Author

Closing in favor of #830

@nborodikhin nborodikhin closed this Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant