Ldlib Wiki

Ldlib Wiki & Guide
wiki.9minecraft.net/ldlib-mod/
A library mod offering shared code and utilities for other mods, including a test block.
Blocks
Configuration
Every setting in the mod config file, with what it changes.
| Option | What it does |
|---|---|
fontAtlasSizeAtlas Page Size | Edge length in pixels of one glyph atlas page. Larger pages fit more glyphs, so a screen full of text costs fewer draw calls. |
textLayoutCacheCache Text Layout | Reuse where each glyph goes between frames instead of working it out again every frame. Turn off only if text ever renders with the wrong styling. |
sdfEmSizeDistance Field Resolution | Pixel height one em is rasterized at when building the distance field. Higher keeps sharp corners sharper at large text sizes, at the cost of atlas space. |
sdfSharpnessEdge Sharpness | Multiplier on the width of the anti aliased edge. Above 1 is crisper, below 1 is softer. |
fontRasterMaxSizeRaster Size Limit | Largest text size, in device pixels, that will be rasterized at its drawn size. Anything larger uses the distance field instead. A text element's size works out to font size times GUI scale. |
fontRasterEvictSecondsRaster Size Timeout | Seconds a rasterized size may go undrawn before its atlas is freed. Keeps zooming through many sizes from using memory without bound. |
fontRenderModeRenderer | Vanilla hands text to Minecraft untouched. SDF samples one scalable atlas: smooth at any size or angle, a little soft up close. Raster redraws each glyph at the size it appears at: sharpest, but a separate atlas per size. Auto uses raster for still text on the |
sdfWeightStem Weight | Thickens or thins strokes by a fraction of a pixel. Raise slightly if small text looks too thin. |
fontText Rendering | How LDLib draws the text in its own interfaces. Does not affect vanilla screens or other mods. |
Font
| Option | What it does |
|---|---|
auto | Automatic |
sdf | Distance Field |
raster | Rasterized |
vanilla | Vanilla |
Frequently asked questions
What does Ldlib do?
Ldlib is a library mod for custom rendering and modular GUIs. It provides renderers, a modular GUI framework, emissive texture support, custom shaders, and particle systems.
What is Ldlib used for?
It is a library and utility mod that gives mod authors a foundation for UI, rendering, synchronization, persistence, and in-game editors. It is not a content mod on its own.
Which Minecraft versions does Ldlib support?
The Modrinth project page lists 1.21, 1.21.1, 26.1.1, 26.1.2, 26.2, and 26.3.
Which mod loaders does Ldlib support?
Ldlib is available for Fabric, Forge, and NeoForge.
Related mods
Other mod wikis on the site.
Test Block 2
LavaSponge Mod
Lazier AE2 Mod
Lazy Language Loader Mod
LazyDFU Mod
Leave My Bars Alone Mod
Leaves Be Gone Mod
Ledger Mod