类 JImGuiFontGen
java.lang.Object
org.ice1000.jimgui.JImGuiFontGen
- 直接已知子类:
JImFont
- 从以下版本开始:
- v0.1
-
字段概要
字段 -
方法概要
修饰符和类型方法说明voidaddRemapChar(int dst, int src)Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.voidaddRemapChar(int dst, int src, boolean overwriteDst)Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.voidvoidfloatprotected static floatgetAscent(long nativeObjectPtr)short2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.protected static shortgetConfigDataCount(long nativeObjectPtr)longfloat4%2B4+++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Ascent%3A+distance+from+top+to+bottom+of+e.g.+%27A%27+%5B0..FontSize%5Dprotected static floatgetDescent(long nativeObjectPtr)floatprotected static floatgetFallbackAdvanceX(long nativeObjectPtr)float4+++++%7C%7C+in++%7C%7C++++++++++++%7C%7C+Height+of+characters%7Cline%2C+set+during+loading+%28don%27t+change+after+loading%29%0A++Current%7Cdefault+font+size+%28optional%2C+for+simplified+AddText+overload%29protected static floatgetFontSize(long nativeObjectPtr)static @NotNull JImFontgetInstance(@NotNull JImGui owner)int4+++++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Total+surface+in+pixels+to+get+an+idea+of+the+font+rasterization%7Ctexture+cost+%28not+exact%2C+we+approximate+the+cost+of+padding+between+glyphs%29protected static intgetMetricsTotalSurface(long nativeObjectPtr)floatgetScale()protected static floatgetScale(long nativeObjectPtr)voidgrowIndex(int newSize)boolean1+++++%7C%7C+outstatic booleanisDirtyLookupTables(long nativeObjectPtr)booleanisLoaded()protected static voidrenderChar(long drawList, float size, float posX, float posY, int u32Color, short c, long nativeObjectPtr)voidrenderChar(@NotNull JImDrawList drawList, float size, float posX, float posY, int u32Color, short c)voidsetAscent(float newValue)protected static voidsetAscent(long nativeObjectPtr, float newValue)protected static voidsetConfigDataCount(long nativeObjectPtr, short newValue)voidsetConfigDataCount(short newValue)2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.voidsetDescent(float newValue)4%2B4+++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Ascent%3A+distance+from+top+to+bottom+of+e.g.+%27A%27+%5B0..FontSize%5Dprotected static voidsetDescent(long nativeObjectPtr, float newValue)voidsetDirtyLookupTables(boolean newValue)1+++++%7C%7C+outstatic voidsetDirtyLookupTables(long nativeObjectPtr, boolean newValue)voidsetFallbackAdvanceX(float newValue)protected static voidsetFallbackAdvanceX(long nativeObjectPtr, float newValue)voidsetFallbackChar(int wChar)voidsetFontSize(float newValue)4+++++%7C%7C+in++%7C%7C++++++++++++%7C%7C+Height+of+characters%7Cline%2C+set+during+loading+%28don%27t+change+after+loading%29%0A++Current%7Cdefault+font+size+%28optional%2C+for+simplified+AddText+overload%29protected static voidsetFontSize(long nativeObjectPtr, float newValue)voidsetMetricsTotalSurface(int newValue)4+++++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Total+surface+in+pixels+to+get+an+idea+of+the+font+rasterization%7Ctexture+cost+%28not+exact%2C+we+approximate+the+cost+of+padding+between+glyphs%29protected static voidsetMetricsTotalSurface(long nativeObjectPtr, int newValue)voidsetScale(float newValue)protected static voidsetScale(long nativeObjectPtr, float newValue)
-
字段详细资料
-
nativeObjectPtr
protected long nativeObjectPtrpackage-private by design
-
-
方法详细资料
-
getInstance
-
getFontSize
public float getFontSize()4+++++%7C%7C+in++%7C%7C++++++++++++%7C%7C+Height+of+characters%7Cline%2C+set+during+loading+%28don%27t+change+after+loading%29%0A++Current%7Cdefault+font+size+%28optional%2C+for+simplified+AddText+overload%29 -
getFontSize
protected static float getFontSize(long nativeObjectPtr) -
setFontSize
public void setFontSize(float newValue)4+++++%7C%7C+in++%7C%7C++++++++++++%7C%7C+Height+of+characters%7Cline%2C+set+during+loading+%28don%27t+change+after+loading%29%0A++Current%7Cdefault+font+size+%28optional%2C+for+simplified+AddText+overload%29 -
setFontSize
protected static void setFontSize(long nativeObjectPtr, float newValue) -
getScale
public float getScale() -
getScale
protected static float getScale(long nativeObjectPtr) -
setScale
public void setScale(float newValue) -
setScale
protected static void setScale(long nativeObjectPtr, float newValue) -
getFallbackAdvanceX
public float getFallbackAdvanceX() -
getFallbackAdvanceX
protected static float getFallbackAdvanceX(long nativeObjectPtr) -
setFallbackAdvanceX
public void setFallbackAdvanceX(float newValue) -
setFallbackAdvanceX
protected static void setFallbackAdvanceX(long nativeObjectPtr, float newValue) -
getConfigDataCount
public short getConfigDataCount()2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.+Bigger+than+1+when+merging+multiple+font+sources+into+one+ImFont. -
getConfigDataCount
protected static short getConfigDataCount(long nativeObjectPtr) -
setConfigDataCount
public void setConfigDataCount(short newValue)2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.+Bigger+than+1+when+merging+multiple+font+sources+into+one+ImFont. -
setConfigDataCount
protected static void setConfigDataCount(long nativeObjectPtr, short newValue) -
getAscent
public float getAscent() -
getAscent
protected static float getAscent(long nativeObjectPtr) -
setAscent
public void setAscent(float newValue) -
setAscent
protected static void setAscent(long nativeObjectPtr, float newValue) -
getDescent
public float getDescent()4%2B4+++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Ascent%3A+distance+from+top+to+bottom+of+e.g.+%27A%27+%5B0..FontSize%5D -
getDescent
protected static float getDescent(long nativeObjectPtr) -
setDescent
public void setDescent(float newValue)4%2B4+++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Ascent%3A+distance+from+top+to+bottom+of+e.g.+%27A%27+%5B0..FontSize%5D -
setDescent
protected static void setDescent(long nativeObjectPtr, float newValue) -
getMetricsTotalSurface
public int getMetricsTotalSurface()4+++++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Total+surface+in+pixels+to+get+an+idea+of+the+font+rasterization%7Ctexture+cost+%28not+exact%2C+we+approximate+the+cost+of+padding+between+glyphs%29 -
getMetricsTotalSurface
protected static int getMetricsTotalSurface(long nativeObjectPtr) -
setMetricsTotalSurface
public void setMetricsTotalSurface(int newValue)4+++++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Total+surface+in+pixels+to+get+an+idea+of+the+font+rasterization%7Ctexture+cost+%28not+exact%2C+we+approximate+the+cost+of+padding+between+glyphs%29 -
setMetricsTotalSurface
protected static void setMetricsTotalSurface(long nativeObjectPtr, int newValue) -
isDirtyLookupTables
public boolean isDirtyLookupTables()1+++++%7C%7C+out -
isDirtyLookupTables
public static boolean isDirtyLookupTables(long nativeObjectPtr) -
setDirtyLookupTables
public void setDirtyLookupTables(boolean newValue)1+++++%7C%7C+out -
setDirtyLookupTables
public static void setDirtyLookupTables(long nativeObjectPtr, boolean newValue) -
clearOutputData
public final void clearOutputData() -
setFallbackChar
public final void setFallbackChar(int wChar) -
isLoaded
public final boolean isLoaded() -
getDebugName
public final long getDebugName() -
growIndex
public final void growIndex(int newSize) -
addRemapChar
public final void addRemapChar(int dst, int src, boolean overwriteDst)Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.+Currently+needs+to+be+called+AFTER+fonts+have+been+built. -
addRemapChar
public final void addRemapChar(int dst, int src)Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.+Currently+needs+to+be+called+AFTER+fonts+have+been+built. -
buildLookupTable
public final void buildLookupTable() -
renderChar
protected static void renderChar(long drawList, float size, float posX, float posY, int u32Color, short c, long nativeObjectPtr) -
renderChar
public final void renderChar(@NotNull @NotNull JImDrawList drawList, float size, float posX, float posY, int u32Color, short c)
-