Skip to content

feat(frontend): optional smooth menu fonts - #60

Open
raistlen007 wants to merge 6 commits into
elyosh:mainfrom
raistlen007:feature/smooth-menu-fonts
Open

raistlen007 wants to merge 6 commits into
elyosh:mainfrom
raistlen007:feature/smooth-menu-fonts

Conversation

@raistlen007

Copy link
Copy Markdown
Contributor

Adds an optional Smooth Menu Fonts setting to OpenXWA Video Options, using the renderer's existing linear texture filtering.
The original pixelated appearance is preserved by default.

Changes:
Adds a Smooth Menu Fonts: Off / On option between MSAA and Motion Blur in Video Options.
Off (default): Retains the existing 4× nearest-neighbor font upscaling.
On: Uses the original-resolution font textures with the renderer's existing linear filtering.
Loads both font atlases and switches between them immediately, without requiring a restart.
Saves the preference to video.smooth_menu_fonts in config.yaml.

Implementation:
Both versions of the original frontend fonts are loaded into GPU memory. Switching the setting selects the appropriate atlas without regenerating textures or introducing additional shaders.

The implementation uses the existing font loading, rendering, and video-options infrastructure.

Keep XwaRemasterAssets_Create's signature and set the option right after
creating the assets. Drop the cleanup on a failed 1x atlas, which
AeronFontAtlas_InitRgba8 leaves empty, and leave the 4x scale as it was.
@raistlen007

Copy link
Copy Markdown
Contributor Author

Merged current main and resolved the conflict with the new Target Readout row (row count is 14 now, and my row moved to button ID 72 so the two don't share hover state). Also tidied up: XwaRemasterAssets_Create keeps its original signature, and I removed some redundant cleanup code.

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