Polymer Font Utils has been archived. Polymer Font Utils will not receive any further updates unless the author decides to unarchive the project.
Compatibility
Minecraft: Java Edition
1.21.2–1.21.4
Platforms
Supported environments
Links
Details
Changelog
FontResourceManager
Fully rewrited, for creation requires only mod id, use this class to create FontResource
FontResource
Works like previous version of FontResourceManager
FontSpaceUtils
For resource pack smaller size, all spaces from each mod will be in one file, pfu:spaces, by default it empty, to request space use requestAdvance, requestAdvances or requestRange, to get space MutableText use FontSpaceUtils.spaceMap
Examples
public class PolymerFontUtilsTest implements ModInitializer {
public static FontResourceManager manager;
public static FontResource resource;
public static BitmapGlyph glyph;
@Override
public void onInitialize() {
PolymerResourcePackUtils.addModAssets("pfut");
manager = FontResourceManager.create("pfut");
resource = manager.requestFont("test"); // Creates font file "assets/pfut/font/test.json"
glyph = resource.requestGlyph("font/icon.png", 128, 32);
FontSpaceUtils.requestAdvance(-256);
FontSpaceUtils.requestAdvances(-128, 1, 3);
FontSpaceUtils.requestRange(2, 19);
}
}
Files
Metadata
Release channel
BetaVersion number
0.2.0+1.21.4Loaders
Game versions
1.21.4Downloads
42Publication date
December 7, 2024 at 11:40 AMPublisher

mazik
Developer



