public final class ImFont
extends java.lang.Object
Constructor and Description |
---|
ImFont()
This class will create a native structure.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
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
|
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()
|
public ImFont()
destroy()
method to manually free used memory.public void destroy()
public float getFallbackAdvanceX()
public void setFallbackAdvanceX(float fallbackAdvanceX)
public float getFontSize()
public ImFontGlyph getFallbackGlyph()
public void getDisplayOffset(ImVec2 dstImVec2)
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)