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 $0.00033 $0.02217
Sonnet 5 $0.00013 $0.00887
Haiku 4.5 $0.00007 $0.00443

Measured 12d ago against content hash 65634dc784da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 12d 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. 12d 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 (4 stars, last pushed 7mo ago), licensed MIT. It adds 66 tokens to every session and 4,433 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

gpt-pro

Operate ChatGPT Pro through Browser Use/Playwright or Computer Use. Use when the user asks Codex to ask GPT Pro, prompt GPT Pro, use ChatGPT Pro, send a prompt to ChatGPT Pro/GPT Pro, or wait for a GPT Pro result. Checks whether Browser Use/Playwright and/or Computer Use are available, asks for a first-run default…

scasella/codex-gpt-pro · 130 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens

design-patterns

Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.

decebals/claude-code-java · 47 tokens

java-migration

Guide for upgrading Java projects between major versions (8→11→17→21→25). Use when user says "upgrade Java", "migrate to Java 25", "update Java version", or when modernizing legacy projects.

decebals/claude-code-java · 51 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens