public final class ImFontConfig extends ImGuiStructDestroyable
ptr
Constructor and Description |
---|
ImFontConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addFontBuilderFlags(int flags)
Settings for custom font builder.
|
protected long |
create() |
ImFont |
getDstFont() |
short |
getEllipsisChar()
Explicitly specify unicode codepoint of ellipsis character.
|
int |
getFontBuilderFlags()
Settings for custom font builder.
|
byte[] |
getFontData()
TTF/OTF data
|
boolean |
getFontDataOwnedByAtlas()
TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
int |
getFontDataSize()
TTF/OTF data size
|
int |
getFontNo()
Index of font within TTF/OTF file
|
ImVec2 |
getGlyphExtraSpacing()
Extra spacing (in pixels) between glyphs.
|
void |
getGlyphExtraSpacing(ImVec2 dst)
Extra spacing (in pixels) between glyphs.
|
float |
getGlyphExtraSpacingX()
Extra spacing (in pixels) between glyphs.
|
float |
getGlyphExtraSpacingY()
Extra spacing (in pixels) between glyphs.
|
float |
getGlyphMaxAdvanceX()
Maximum AdvanceX for glyphs
|
float |
getGlyphMinAdvanceX()
Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font
|
ImVec2 |
getGlyphOffset()
Offset all glyphs from this font input.
|
void |
getGlyphOffset(ImVec2 dst)
Offset all glyphs from this font input.
|
float |
getGlyphOffsetX()
Offset all glyphs from this font input.
|
float |
getGlyphOffsetY()
Offset all glyphs from this font input.
|
short[] |
getGlyphRanges()
Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
boolean |
getMergeMode()
Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
int |
getOversampleH()
Rasterize at higher quality for sub-pixel positioning.
|
int |
getOversampleV()
Rasterize at higher quality for sub-pixel positioning.
|
boolean |
getPixelSnapH()
Align every glyph to pixel boundary.
|
float |
getRasterizerMultiply()
Brighten (
> 1.0f) or darken (< 1.0f) font output. |
float |
getSizePixels()
Size in pixels for rasterizer (more or less maps to the resulting font height).
|
boolean |
hasFontBuilderFlags(int flags)
Settings for custom font builder.
|
void |
removeFontBuilderFlags(int flags)
Settings for custom font builder.
|
void |
setDstFont(ImFont value) |
void |
setEllipsisChar(short value)
Explicitly specify unicode codepoint of ellipsis character.
|
void |
setFontBuilderFlags(int value)
Settings for custom font builder.
|
void |
setFontData(byte[] fontData)
TTF/OTF data
|
void |
setFontDataOwnedByAtlas(boolean value)
TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
void |
setFontDataSize(int value)
TTF/OTF data size
|
void |
setFontNo(int value)
Index of font within TTF/OTF file
|
void |
setGlyphExtraSpacing(float valueX,
float valueY)
Extra spacing (in pixels) between glyphs.
|
void |
setGlyphExtraSpacing(ImVec2 value)
Extra spacing (in pixels) between glyphs.
|
void |
setGlyphMaxAdvanceX(float value)
Maximum AdvanceX for glyphs
|
void |
setGlyphMinAdvanceX(float value)
Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font
|
void |
setGlyphOffset(float valueX,
float valueY)
Offset all glyphs from this font input.
|
void |
setGlyphOffset(ImVec2 value)
Offset all glyphs from this font input.
|
void |
setGlyphRanges(short[] glyphRanges)
Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
void |
setMergeMode(boolean value)
Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
void |
setName(java.lang.String name)
Name (strictly to ease debugging)
|
void |
setOversampleH(int value)
Rasterize at higher quality for sub-pixel positioning.
|
void |
setOversampleV(int value)
Rasterize at higher quality for sub-pixel positioning.
|
void |
setPixelSnapH(boolean value)
Align every glyph to pixel boundary.
|
void |
setRasterizerMultiply(float value)
Brighten (
> 1.0f) or darken (< 1.0f) font output. |
void |
setSizePixels(float value)
Size in pixels for rasterizer (more or less maps to the resulting font height).
|
destroy
isNotValidPtr, isValidPtr
protected long create()
create
in class ImGuiStructDestroyable
public byte[] getFontData()
public void setFontData(byte[] fontData)
public int getFontDataSize()
public void setFontDataSize(int value)
public boolean getFontDataOwnedByAtlas()
public void setFontDataOwnedByAtlas(boolean value)
public int getFontNo()
public void setFontNo(int value)
public float getSizePixels()
public void setSizePixels(float value)
public int getOversampleH()
public void setOversampleH(int value)
public int getOversampleV()
public void setOversampleV(int value)
public boolean getPixelSnapH()
public void setPixelSnapH(boolean value)
public ImVec2 getGlyphExtraSpacing()
public float getGlyphExtraSpacingX()
public float getGlyphExtraSpacingY()
public void getGlyphExtraSpacing(ImVec2 dst)
public void setGlyphExtraSpacing(ImVec2 value)
public void setGlyphExtraSpacing(float valueX, float valueY)
public ImVec2 getGlyphOffset()
public float getGlyphOffsetX()
public float getGlyphOffsetY()
public void getGlyphOffset(ImVec2 dst)
public void setGlyphOffset(ImVec2 value)
public void setGlyphOffset(float valueX, float valueY)
public short[] getGlyphRanges()
public void setGlyphRanges(short[] glyphRanges)
public float getGlyphMinAdvanceX()
public void setGlyphMinAdvanceX(float value)
public float getGlyphMaxAdvanceX()
public void setGlyphMaxAdvanceX(float value)
public boolean getMergeMode()
public void setMergeMode(boolean value)
public int getFontBuilderFlags()
public void setFontBuilderFlags(int value)
public void addFontBuilderFlags(int flags)
public void removeFontBuilderFlags(int flags)
public boolean hasFontBuilderFlags(int flags)
public float getRasterizerMultiply()
>
1.0f) or darken (<
1.0f) font output. Brightening small fonts may be a good workaround to make them more readable.public void setRasterizerMultiply(float value)
>
1.0f) or darken (<
1.0f) font output. Brightening small fonts may be a good workaround to make them more readable.public short getEllipsisChar()
public void setEllipsisChar(short value)
public void setName(java.lang.String name)
public ImFont getDstFont()
public void setDstFont(ImFont value)