libgdx-bitmap-font-text

libgdx-bitmap-font-text is a skill for Claude Code from kyu-n/gdx-claude-skills. It costs 66 tokens per session (4,433 once invoked), scanned A, original, MIT.

Guidance for displaying and measuring text in libGDX, a Java and Kotlin framework for making games, including bitmap fonts and scalable panels.

In plain words
What is it for?
Writing or debugging BitmapFont, GlyphLayout, and BitmapFontCache code, using DistanceFieldFont, applying text colour markup, and working with NinePatch graphics.
Why use it?
It helps fix misplaced or blurry text, incorrect text measurements, and graphics that stretch incorrectly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gdx-claude-skills plugin — 28 skills shipped together

Good fit Writing or debugging BitmapFont, GlyphLayout, and BitmapFontCache code, using DistanceFieldFont, applying text colour markup, and working with NinePatch graphics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kyu-n/gdx-claude-skills --skill libgdx-bitmap-font-text
Clone the repo
git clone --depth 1 https://github.com/kyu-n/gdx-claude-skills

Made for: Claude Code.

Or install gdx-claude-skills, the plugin that ships this one along with the rest of its 28 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for libgdx-bitmap-font-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text/github.svg)](https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text)
Your own site
<a href="https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text"><img src="https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for libgdx-bitmap-font-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text"><img src="https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-bitmap-font-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.04433
Opus 5.5 $0.00026 $0.01773
Sonnet 5.5 $0.00013 $0.00887
Haiku 4.5 $0.00007 $0.00443

Measured 2mo ago against content hash 65634dc784da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

libgdx-bitmap-font-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/libgdx-bitmap-font-text/SKILL.md · 413 lines

How it starts

The opening of the file, as written. The whole thing — 413 lines — stays where its author put it; the contents beside it link to each section on GitHub.

libGDX BitmapFont, Text & NinePatch

Quick reference for BitmapFont text rendering, GlyphLayout measurement, BitmapFontCache, NinePatch, DistanceFieldFont, and color markup. Covers com.badlogic.gdx.graphics.g2d.BitmapFont, GlyphLayout, BitmapFontCache, NinePatch, DistanceFieldFont.

BitmapFont

Pre-rendered font stored as texture(s) + .fnt descriptor. Created with Hiero, BMFont, or at runtime via FreeType (see libgdx-freetype skill).

Default Font

BitmapFont font = new BitmapFont(); // Built-in 15px Liberation Sans

Useful for prototyping only. The default font is bundled in the libGDX JAR.

Constructors

new BitmapFont()                                              // default 15px Liberation Sans
new BitmapFont(boolean flip)                                  // default font, flipped
new BitmapFont(FileHandle fontFile)                           // load from .fnt
new BitmapFont(FileHandle fontFile, boolean flip)
new BitmapFont(FileHandle fontFile, FileHandle imageFile, boolean flip)
new BitmapFont(FileHandle fontFile, FileHandle imageFile, boolean flip, boolean integer)
new BitmapFont(FileHandle fontFile, TextureRegion region)     // custom texture
new BitmapFont(FileHandle fontFile, TextureRegion region, boolean flip)
new BitmapFont(BitmapFontData data, TextureRegion region, boolean integer)
new BitmapFont(BitmapFontData data, Array<TextureRegion> pageRegions, boolean integer)
  • flip: If true, Y=0 is top (top-down coordinates). Default false (Y-up, libGDX standard). Scene2D uses unflipped fonts.
  • integer: If true, positions are rounded to integers to reduce filtering artifacts. Default true.

draw() Methods — CRITICAL

The y parameter is the top of capital letters (cap height), NOT the baseline, NOT the bottom of text.

// All return GlyphLayout except the GlyphLayout overload which returns void
GlyphLayout draw(Batch batch, CharSequence str, float x, float y)
GlyphLayout draw(Batch batch, CharSequence str, float x, float y,
    float targetWidth, int halign, boolean wrap)
GlyphLayout draw(Batch batch, CharSequence str, float x, float y,
    int start, int end, float targetWidth, int halign, boolean wrap)
GlyphLayout draw(Batch batch, CharSequence str, float x, float y,
    int start, int end, float targetWidth, int halign, boolean wrap, String truncate)
void draw(Batch batch, GlyphLayout layout, float x, float y)  // pre-computed layout

Read the full file on GitHub · 413 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 413 lines · 66 tokens per session scan A 65634dc784da

Subscribe to this mod's changes

libgdx-bitmap-font-text is a skill published in the GitHub repository kyu-n/gdx-claude-skills (5 stars, last pushed 8mo ago), licensed MIT. It adds 66 tokens to every session and 4,433 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

libgdx-bitmap-font-text compared with skills from other repositories

libgdx-bitmap-font-text next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
libgdx-bitmap-font-textkyu-n/gdx-claude-skillsSkill58mo agoMITA66Claude Code
gpt-proscasella/codex-gpt-proSkill46mo agoMITA130Codex
build-android-binarymicrosoft/power-platform-skillsSkill1.1kyesterdayMITA150Claude Code
design-patternsdecebals/claude-code-javaSkill7708d agoMITA47Claude Code, Codex
java-migrationdecebals/claude-code-javaSkill7708d agoMITA51Claude Code, Codex
jpa-patternsdecebals/claude-code-javaSkill7708d agoMITA47Claude Code, Codex
solid-principlesdecebals/claude-code-javaSkill7708d agoMITA73Claude Code, Codex