Class GuiTextEngine
java.lang.Object
com.render.api.gui.GuiTextEngine
Browser-style itemize, shape, line-layout, and positioned-glyph engine.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voidstatic voidCancels pending remote loads belonging to one family without disturbing unrelated family downloads or retained layouts.static GuiTextLayoutlayout(GuiRichText richText, GuiTextConstraints constraints) static GuiTextLayoutlayout(String text, GuiTextStyle style, GuiTextConstraints constraints) static GuiTextLayoutlayout(net.minecraft.network.chat.Component component, GuiTextStyle style, GuiTextConstraints constraints) static voidprewarm(GuiTextStyle style, Iterable<String> labels, float deviceScale) Shapes and queues glyphs for known labels before their first visible frame.static booleanrender(net.minecraft.client.gui.GuiGraphicsExtractor graphics, GuiTextLayout layout, float x, float y, float deviceScale, float opacity) Submits a previously shaped layout in raw extracted-GUI coordinates.static GuiFontStatsstats()
-
Method Details
-
bootstrap
public static void bootstrap() -
layout
-
layout
public static GuiTextLayout layout(net.minecraft.network.chat.Component component, GuiTextStyle style, GuiTextConstraints constraints) -
layout
-
stats
-
render
public static boolean render(net.minecraft.client.gui.GuiGraphicsExtractor graphics, GuiTextLayout layout, float x, float y, float deviceScale, float opacity) Submits a previously shaped layout in raw extracted-GUI coordinates.The layout remains in GUI coordinates.
deviceScalecontrols only the physical glyph raster resolution, so a GUI scale above one does not enlarge a low-resolution atlas image. -
available
public static boolean available() -
prewarm
Shapes and queues glyphs for known labels before their first visible frame. -
cancelPendingRemoteFonts
Cancels pending remote loads belonging to one family without disturbing unrelated family downloads or retained layouts.- Parameters:
family- family whose remote requests should be cancelled
-