public final class ImFont extends ImGuiStructDestroyable
ptr
Modifier and Type | Method and Description |
---|---|
protected long |
create() |
float |
getAscent()
Ascent: distance from top to bottom of e.g.
|
short |
getConfigDataCount()
Number of ImFontConfig involved in creating this font.
|
float |
getDescent()
Ascent: distance from top to bottom of e.g.
|
boolean |
getDirtyLookupTables() |
void |
getDisplayOffset(ImVec2 dstImVec2)
Offset font rendering by xx pixels
|
float |
getDisplayOffsetX()
Offset font rendering by xx pixels
|
float |
getDisplayOffsetY()
Offset font rendering by xx pixels
|
short |
getEllipsisChar()
Character used for ellipsis rendering.
|
float |
getFallbackAdvanceX()
= FallbackGlyph.AdvanceX
|
short |
getFallbackChar()
Replacement character if a glyph isn't found.
|
ImFontGlyph |
getFallbackGlyph()
= FindGlyph(FontFallbackChar)
|
float |
getFontSize()
Height of characters/line, set during loading (don't change after loading)
|
int |
getMetricsTotalSurface()
Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)
|
float |
getScale()
Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale()
|
void |
setAscent(float ascent)
Ascent: distance from top to bottom of e.g.
|
void |
setDescent(float descent)
Ascent: distance from top to bottom of e.g.
|
void |
setDirtyLookupTables(boolean dirtyLookupTables) |
void |
setDisplayOffset(float x,
float y)
Offset font rendering by xx pixels
|
void |
setEllipsisChar(short ellipsisChar)
Character used for ellipsis rendering.
|
void |
setFallbackAdvanceX(float fallbackAdvanceX)
= FallbackGlyph.AdvanceX
|
void |
setMetricsTotalSurface(int metricsTotalSurface)
Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)
|
void |
setScale(float scale)
Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale()
|
destroy
protected long create()
create
in class ImGuiStructDestroyable
public float getFallbackAdvanceX()
public void setFallbackAdvanceX(float fallbackAdvanceX)
public float getFontSize()
public ImFontGlyph getFallbackGlyph()
public void getDisplayOffset(ImVec2 dstImVec2)
public float getDisplayOffsetX()
public float getDisplayOffsetY()
public void setDisplayOffset(float x, float y)
public short getConfigDataCount()
public short getFallbackChar()
public short getEllipsisChar()
public void setEllipsisChar(short ellipsisChar)
public boolean getDirtyLookupTables()
public void setDirtyLookupTables(boolean dirtyLookupTables)
public float getScale()
public void setScale(float scale)
public float getAscent()
public void setAscent(float ascent)
public float getDescent()
public void setDescent(float descent)
public int getMetricsTotalSurface()
public void setMetricsTotalSurface(int metricsTotalSurface)