A font should never run code on your PC.
A public exploit turns a Minecraft server resource pack into native code execution through a crafted TrueType font. FontGuard stands guard with two layers of protection.
- Minecraft 26.3
- Fabric Loader ≥ 0.19.5
- Java 25
- MIT

A font is a program, and FreeType runs it.
TrueType fonts can carry bytecode for "hinting". Minecraft bundles FreeType and lets it execute that bytecode while rendering text.
A bug in the interpreter lets a hostile font take over the game process. The bug is in Minecraft's bundled FreeType, not in any mod.
26.4-pre-1.
Malicious pack. A server sends a resource pack with specially crafted TrueType fonts.
Glyph is hinted. Minecraft draws text and asks FreeType to hint the glyph, running the font's own bytecode.
Code execution. The interpreter bug becomes native code execution on the player's PC.
exploit fonts blocked in testing — 0 streams opened, 0 native parser calls
settings, network calls or extra files
Server-delivered TrueType fonts are blocked before they're opened. Anything still allowed through loads with FT_LOAD_NO_HINTING, so the font's own bytecode never runs.
The gate, in short
Rejects by source, then by digest, before any native font call.
if (source == SERVER || id.startsWith("server/"))
throw blocked("server-provided TrueType font");
// exact digest match for the exploit's 144 fonts
if (DENIED.contains(sha256(bytes)))
throw blocked("known exploit font");
// anything that still loads:
flags |= FT_LOAD_NO_HINTING | FT_LOAD_NO_AUTOHINT;
-

Local fonts still work
Tested with unmodified Arial/Consolas: normal local fonts keep loading.
Client only
No settings, no network access, no extra files. Never install it on a server.
Fails closed
A missing or broken denylist stops the mod from loading, instead of silently turning protection off.
Requirements
FontGuard works alongside your other mods — no Fabric API needed.
What FontGuard is, and is not.
✓ It is
- A gate that blocks server-delivered TrueType fonts before FreeType ever sees them — 144/144 of the exploit's own files rejected, 0 streams opened, 0 native parser calls
- Hinting disabled for any font still allowed through, so embedded bytecode can't run that way either
- Tested with unmodified local Arial/Consolas fonts to confirm normal fonts keep loading
✕ It is not
- An official fix. Mojang's patch is already landing in
26.4-pre-1— install it once stable. - General malware protection. It only gates this one font-delivery path.
- Selective about harmless server fonts: all server-delivered TrueType fonts are blocked on purpose, not just malicious ones. Affected text falls back to replacement glyphs.
FontGuard 1.1.0
For Minecraft 26.3 · Fabric Loader ≥ 0.19.5 · Java 25 · about 14 KB
- Install Fabric Loader 0.19.5 or newer for Minecraft 26.3 from fabricmc.net. Fabric API is not needed.
- Drop the jar into
.minecraft/mods. - Start the game. No config, no menu. It just works.
1.1.0 — server-delivered TrueType fonts are now blocked before they're opened, plus a SHA-256 denylist for the exploit's 144 fonts. 1.0.1 — fixed a second, previously unprotected glyph call. 1.0.0 — initial hinting-flag mitigation.