类 JImGuiFontConfigGen
java.lang.Object
org.ice1000.jimgui.JImGuiFontConfigGen
- 直接已知子类:
JImFontConfig
- 从以下版本开始:
- v0.4
-
字段概要
字段 -
方法概要
修饰符和类型方法说明int0++++++++%7C%7C+Settings+for+custom+font+builder.protected static intgetFontBuilderFlags(long nativeObjectPtr)intTTF%7COTF+data+sizeprotected static intgetFontDataSize(long nativeObjectPtr)int0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+fileprotected static intgetFontNo(long nativeObjectPtr)float0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.float0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.floatFLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphsprotected static floatgetGlyphMaxAdvanceX(long nativeObjectPtr)float0++++++++%7C%7C+Minimum+AdvanceX+for+glyphs%2C+set+Min+to+align+font+icons%2C+set+both+Min%7CMax+to+enforce+mono-space+fontprotected static floatgetGlyphMinAdvanceX(long nativeObjectPtr)float0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offsetfloat0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offsetint3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.protected static intgetOversampleH(long nativeObjectPtr)int1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.protected static intgetOversampleV(long nativeObjectPtr)float1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.protected static floatgetRasterizerMultiply(long nativeObjectPtr)floatSize+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29.protected static floatgetSizePixels(long nativeObjectPtr)booleantrue+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29.static booleanisFontDataOwnedByAtlas(long nativeObjectPtr)booleanfalse++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.static booleanisMergeMode(long nativeObjectPtr)booleanfalse++++%7C%7C+Align+every+glyph+to+pixel+boundary.static booleanisPixelSnapH(long nativeObjectPtr)voidsetFontBuilderFlags(int newValue)0++++++++%7C%7C+Settings+for+custom+font+builder.protected static voidsetFontBuilderFlags(long nativeObjectPtr, int newValue)voidsetFontDataOwnedByAtlas(boolean newValue)true+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29.static voidsetFontDataOwnedByAtlas(long nativeObjectPtr, boolean newValue)voidsetFontDataSize(int newValue)TTF%7COTF+data+sizeprotected static voidsetFontDataSize(long nativeObjectPtr, int newValue)voidsetFontNo(int newValue)0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+fileprotected static voidsetFontNo(long nativeObjectPtr, int newValue)voidsetGlyphExtraSpacingX(float newValue)0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.voidsetGlyphExtraSpacingY(float newValue)0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.voidsetGlyphMaxAdvanceX(float newValue)FLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphsprotected static voidsetGlyphMaxAdvanceX(long nativeObjectPtr, float newValue)voidsetGlyphMinAdvanceX(float newValue)0++++++++%7C%7C+Minimum+AdvanceX+for+glyphs%2C+set+Min+to+align+font+icons%2C+set+both+Min%7CMax+to+enforce+mono-space+fontprotected static voidsetGlyphMinAdvanceX(long nativeObjectPtr, float newValue)voidsetGlyphOffsetX(float newValue)0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offsetvoidsetGlyphOffsetY(float newValue)0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offsetvoidsetMergeMode(boolean newValue)false++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.static voidsetMergeMode(long nativeObjectPtr, boolean newValue)voidsetOversampleH(int newValue)3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.protected static voidsetOversampleH(long nativeObjectPtr, int newValue)voidsetOversampleV(int newValue)1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.protected static voidsetOversampleV(long nativeObjectPtr, int newValue)voidsetPixelSnapH(boolean newValue)false++++%7C%7C+Align+every+glyph+to+pixel+boundary.static voidsetPixelSnapH(long nativeObjectPtr, boolean newValue)voidsetRasterizerMultiply(float newValue)1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.protected static voidsetRasterizerMultiply(long nativeObjectPtr, float newValue)voidsetSizePixels(float newValue)Size+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29.protected static voidsetSizePixels(long nativeObjectPtr, float newValue)
-
字段详细资料
-
nativeObjectPtr
protected long nativeObjectPtr
-
-
方法详细资料
-
setGlyphExtraSpacingX
public void setGlyphExtraSpacingX(float newValue)0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.+Only+X+axis+is+supported+for+now. -
getGlyphExtraSpacingX
public float getGlyphExtraSpacingX()0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.+Only+X+axis+is+supported+for+now. -
setGlyphExtraSpacingY
public void setGlyphExtraSpacingY(float newValue)0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.+Only+X+axis+is+supported+for+now. -
getGlyphExtraSpacingY
public float getGlyphExtraSpacingY()0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.+Only+X+axis+is+supported+for+now. -
setGlyphOffsetX
public void setGlyphOffsetX(float newValue)0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offset -
getGlyphOffsetX
public float getGlyphOffsetX()0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offset -
setGlyphOffsetY
public void setGlyphOffsetY(float newValue)0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offset -
getGlyphOffsetY
public float getGlyphOffsetY()0%2C+0+++++%7C%7C+Offset+all+glyphs+from+this+font+input.%0A++Input++++%7C%7C+For+custom+font+glyphs+only%3A+glyph+display+offset -
getFontDataSize
public int getFontDataSize()TTF%7COTF+data+size -
getFontDataSize
protected static int getFontDataSize(long nativeObjectPtr) -
setFontDataSize
public void setFontDataSize(int newValue)TTF%7COTF+data+size -
setFontDataSize
protected static void setFontDataSize(long nativeObjectPtr, int newValue) -
getFontNo
public int getFontNo()0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+file -
getFontNo
protected static int getFontNo(long nativeObjectPtr) -
setFontNo
public void setFontNo(int newValue)0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+file -
setFontNo
protected static void setFontNo(long nativeObjectPtr, int newValue) -
getOversampleH
public int getOversampleH()3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.+Note+the+difference+between+2+and+3+is+minimal+so+you+can+reduce+this+to+2+to+save+memory.+Read+https%3A%7C%7Cgithub.com%7Cnothings%7Cstb%7Cblob%7Cmaster%7Ctests%7Coversample%7CREADME.md+for+details. -
getOversampleH
protected static int getOversampleH(long nativeObjectPtr) -
setOversampleH
public void setOversampleH(int newValue)3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.+Note+the+difference+between+2+and+3+is+minimal+so+you+can+reduce+this+to+2+to+save+memory.+Read+https%3A%7C%7Cgithub.com%7Cnothings%7Cstb%7Cblob%7Cmaster%7Ctests%7Coversample%7CREADME.md+for+details. -
setOversampleH
protected static void setOversampleH(long nativeObjectPtr, int newValue) -
getOversampleV
public int getOversampleV()1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.+This+is+not+really+useful+as+we+don%27t+use+sub-pixel+positions+on+the+Y+axis. -
getOversampleV
protected static int getOversampleV(long nativeObjectPtr) -
setOversampleV
public void setOversampleV(int newValue)1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.+This+is+not+really+useful+as+we+don%27t+use+sub-pixel+positions+on+the+Y+axis. -
setOversampleV
protected static void setOversampleV(long nativeObjectPtr, int newValue) -
getFontBuilderFlags
public int getFontBuilderFlags()0++++++++%7C%7C+Settings+for+custom+font+builder.+THIS+IS+BUILDER+IMPLEMENTATION+DEPENDENT.+Leave+as+zero+if+unsure.%0A++Shared+flags+%28for+all+fonts%29+for+custom+font+builder.+THIS+IS+BUILD+IMPLEMENTATION+DEPENDENT.+Per-font+override+is+also+available+in+ImFontConfig. -
getFontBuilderFlags
protected static int getFontBuilderFlags(long nativeObjectPtr) -
setFontBuilderFlags
public void setFontBuilderFlags(int newValue)0++++++++%7C%7C+Settings+for+custom+font+builder.+THIS+IS+BUILDER+IMPLEMENTATION+DEPENDENT.+Leave+as+zero+if+unsure.%0A++Shared+flags+%28for+all+fonts%29+for+custom+font+builder.+THIS+IS+BUILD+IMPLEMENTATION+DEPENDENT.+Per-font+override+is+also+available+in+ImFontConfig. -
setFontBuilderFlags
protected static void setFontBuilderFlags(long nativeObjectPtr, int newValue) -
getSizePixels
public float getSizePixels()Size+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29. -
getSizePixels
protected static float getSizePixels(long nativeObjectPtr) -
setSizePixels
public void setSizePixels(float newValue)Size+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29. -
setSizePixels
protected static void setSizePixels(long nativeObjectPtr, float newValue) -
getRasterizerMultiply
public float getRasterizerMultiply()1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.+Brightening+small+fonts+may+be+a+good+workaround+to+make+them+more+readable. -
getRasterizerMultiply
protected static float getRasterizerMultiply(long nativeObjectPtr) -
setRasterizerMultiply
public void setRasterizerMultiply(float newValue)1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.+Brightening+small+fonts+may+be+a+good+workaround+to+make+them+more+readable. -
setRasterizerMultiply
protected static void setRasterizerMultiply(long nativeObjectPtr, float newValue) -
getGlyphMinAdvanceX
public float getGlyphMinAdvanceX()0++++++++%7C%7C+Minimum+AdvanceX+for+glyphs%2C+set+Min+to+align+font+icons%2C+set+both+Min%7CMax+to+enforce+mono-space+font -
getGlyphMinAdvanceX
protected static float getGlyphMinAdvanceX(long nativeObjectPtr) -
setGlyphMinAdvanceX
public void setGlyphMinAdvanceX(float newValue)0++++++++%7C%7C+Minimum+AdvanceX+for+glyphs%2C+set+Min+to+align+font+icons%2C+set+both+Min%7CMax+to+enforce+mono-space+font -
setGlyphMinAdvanceX
protected static void setGlyphMinAdvanceX(long nativeObjectPtr, float newValue) -
getGlyphMaxAdvanceX
public float getGlyphMaxAdvanceX()FLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphs -
getGlyphMaxAdvanceX
protected static float getGlyphMaxAdvanceX(long nativeObjectPtr) -
setGlyphMaxAdvanceX
public void setGlyphMaxAdvanceX(float newValue)FLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphs -
setGlyphMaxAdvanceX
protected static void setGlyphMaxAdvanceX(long nativeObjectPtr, float newValue) -
isFontDataOwnedByAtlas
public boolean isFontDataOwnedByAtlas()true+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29. -
isFontDataOwnedByAtlas
public static boolean isFontDataOwnedByAtlas(long nativeObjectPtr) -
setFontDataOwnedByAtlas
public void setFontDataOwnedByAtlas(boolean newValue)true+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29. -
setFontDataOwnedByAtlas
public static void setFontDataOwnedByAtlas(long nativeObjectPtr, boolean newValue) -
isPixelSnapH
public boolean isPixelSnapH()false++++%7C%7C+Align+every+glyph+to+pixel+boundary.+Useful+e.g.+if+you+are+merging+a+non-pixel+aligned+font+with+the+default+font.+If+enabled%2C+you+can+set+OversampleH%7CV+to+1. -
isPixelSnapH
public static boolean isPixelSnapH(long nativeObjectPtr) -
setPixelSnapH
public void setPixelSnapH(boolean newValue)false++++%7C%7C+Align+every+glyph+to+pixel+boundary.+Useful+e.g.+if+you+are+merging+a+non-pixel+aligned+font+with+the+default+font.+If+enabled%2C+you+can+set+OversampleH%7CV+to+1. -
setPixelSnapH
public static void setPixelSnapH(long nativeObjectPtr, boolean newValue) -
isMergeMode
public boolean isMergeMode()false++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.+ASCII+font+%2B+icons+%2B+Japanese+glyphs%29.+You+may+want+to+use+GlyphOffset.y+when+merge+font+of+different+heights. -
isMergeMode
public static boolean isMergeMode(long nativeObjectPtr) -
setMergeMode
public void setMergeMode(boolean newValue)false++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.+ASCII+font+%2B+icons+%2B+Japanese+glyphs%29.+You+may+want+to+use+GlyphOffset.y+when+merge+font+of+different+heights. -
setMergeMode
public static void setMergeMode(long nativeObjectPtr, boolean newValue)
-