Add scalable OpenSans font test GUI and /kamkeel testfont command #255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
kamkeel.npcs.client.gui.GuiFontTestthat draws a title, debug info (renderer path, atlas size, GUI scale, scale factor), and sample lines at sizes 8, 12, 16, 24, 32, 48, 64 with baseline guide lines for alignment verification.kamkeel.npcs.client.renderer.font.ScalableFontRendererwhich loadsassets/customnpcs/OpenSans.ttffrom the classpath, builds an SDF atlas and uses an OpenGL shader path for sharp scaling, and falls back to true per-size rebaking (cached atlases) if shader setup fails; texture parameters use linear filtering and CLAMP_TO_EDGE and GL state is preserved around rendering.GuiFontTestOpenPacketand a new data packet enum value so the GUI can be opened from server-side code, and addedkamkeel.npcs.command.TestCommandregistered under Kamkeel commands to expose/kamkeel testfontfor players.CommandKamkeelcommand list updated to wire the packet and command into existing systems.Testing
src/main/resources/assets/customnpcs/OpenSans.ttf../gradlew compileJavaand confirmed a successful build:BUILD SUCCESSFUL(no Java compile errors reported).Codex Task