Mod
Polymer Font Utils
No reviews yet
API for generating font files
Provides a framework or library for other mods to use.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
Polymer Font Utils
API for generating font files. Uses polymer resource pack api.
Example
repositories {
maven { url "https://api.modrinth.com/maven" }
}
dependencies {
modImplementation include("maven.modrinth:pfu:0.2.3+1.21.4")
}
public class PolymerFontUtilsTest implements ModInitializer {
public static FontResourceManager manager;
public static FontResource resource;
public static TextResource text;
public static BitmapGlyph glyph;
@Override
public void onInitialize() {
PolymerResourcePackUtils.addModAssets("pfut");
manager = FontResourceManager.create("pfut");
resource = manager.requestFont("test");
text = manager.requestText(-20); // Font identifier: pfut:text/default_-20
glyph = resource.requestGlyph("font/icon.png", 128, 32);
FontSpaceUtils.requestAdvance(-256);
FontSpaceUtils.requestAdvances(-128, 1, 3);
FontSpaceUtils.requestRange(2, 19);
}
}
You can get list of all bitmaps from manager using command /pfu pfut:test

Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers