Skip to content

* main/main_loop.c, man/mlterm.1, etc/main, etc/main.ja, doc/ja/README.ja: Fix hardcoded font size range default descriptions. - #175

Open
sporteka2 wants to merge 3 commits into
arakiken:masterfrom
sporteka2:fix/font-size-range-help
Open

* main/main_loop.c, man/mlterm.1, etc/main, etc/main.ja, doc/ja/README.ja: Fix hardcoded font size range default descriptions.#175
sporteka2 wants to merge 3 commits into
arakiken:masterfrom
sporteka2:fix/font-size-range-help

Conversation

@sporteka2

@sporteka2 sporteka2 commented Aug 14, 2026

Copy link
Copy Markdown

Summary

The font size range default was hardcoded in several places with values that don't match the actual default. The actual default range is 1-200 when USE_FREETYPE is enabled and 1-10000 otherwise (see uitoolkit/ui_font_manager.c, lines 76-88).

What was wrong

Location Before After
main/main_loop.c help text (-R/--fsrange) [1-100] [1-200] (USE_FREETYPE) / [1-10000] (otherwise)
man/mlterm.1 default 1-10000 default 1-200 (freetype) / 1-10000 (otherwise)
etc/main, etc/main.ja sample configs font_size_range = 1-100 font_size_range = 1-200
doc/ja/README.ja (*1-10000*) (*1-200*)

Changes

  • main/main_loop.c: Correct font_size_range help text via conditional compilation
  • man/mlterm.1: Document both default ranges
  • etc/main, etc/main.ja, doc/ja/README.ja: Use the actual default range
  • ChangeLog: Add entries

Verification

  • ./configure && make compiles successfully
  • mlterm --help and man mlterm show the corrected ranges
  • etc/main / etc/main.ja remain valid sample configs

The help text said "font size range for GUI configurator [1-100]" but the actual default range is 1-200 when USE_FREETYPE is enabled and 1-10000 otherwise. Use conditional compilation to show the correct default.
…rdcoded font size range default descriptions.

The man page said the default is 1-10000 and the sample config files
said 1-100, while the actual default range is 1-200 when USE_FREETYPE
is enabled and 1-10000 otherwise.
@sporteka2 sporteka2 changed the title * main/main_loop.c: Fix misleading font size range help description. * main/main_loop.c, man/mlterm.1, etc/main, etc/main.ja, doc/ja/README.ja: Fix hardcoded font size range default descriptions. Aug 14, 2026
@arakiken

Copy link
Copy Markdown
Owner

Thank you.
I fixed. -> 45b99b6

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.

2 participants