public final class ImFontGlyphRangesBuilder
extends java.lang.Object
You can use the ImFontGlyphRangesBuilder helper to create glyph ranges based on text input. For example: for a game where your script is known, if you can feed your entire script to it and only build the characters the game needs.
Direct reimplementation of native ImFontGlyphRangesBuilder in java
| Constructor and Description |
|---|
ImFontGlyphRangesBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChar(char c)
Adds single character to resulting ranges
|
void |
addRanges(short[] ranges)
Copies all given ranges to resulting ranges
|
void |
addText(java.lang.String text)
Adds all characters from the given string to resulting ranges
|
short[] |
buildRanges()
Builds the final result (ordered ranges with all the unique characters submitted)
Result of this function can be directly passed to ImFontAtlas
|
void |
clear() |
boolean |
getBit(int n) |
void |
setBit(int n) |
public void addChar(char c)
public void addText(java.lang.String text)
public void addRanges(short[] ranges)
public short[] buildRanges()
public void clear()
public void setBit(int n)
public boolean getBit(int n)