类 JImGuiFontConfigGen

java.lang.Object
org.ice1000.jimgui.JImGuiFontConfigGen
直接已知子类:
JImFontConfig

public class JImGuiFontConfigGen extends Object
从以下版本开始:
v0.4
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected long
     
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    0++++++++%7C%7C+Settings+for+custom+font+builder.
    protected static int
    getFontBuilderFlags​(long nativeObjectPtr)
     
    int
    TTF%7COTF+data+size
    protected static int
    getFontDataSize​(long nativeObjectPtr)
     
    int
    0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+file
    protected static int
    getFontNo​(long nativeObjectPtr)
     
    float
    0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.
    float
    0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.
    float
    FLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphs
    protected static float
    getGlyphMaxAdvanceX​(long nativeObjectPtr)
     
    float
    0++++++++%7C%7C+Minimum+AdvanceX+for+glyphs%2C+set+Min+to+align+font+icons%2C+set+both+Min%7CMax+to+enforce+mono-space+font
    protected static float
    getGlyphMinAdvanceX​(long nativeObjectPtr)
     
    float
    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
    float
    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
    int
    3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.
    protected static int
    getOversampleH​(long nativeObjectPtr)
     
    int
    1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.
    protected static int
    getOversampleV​(long nativeObjectPtr)
     
    float
    1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.
    protected static float
    getRasterizerMultiply​(long nativeObjectPtr)
     
    float
    Size+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29.
    protected static float
    getSizePixels​(long nativeObjectPtr)
     
    boolean
    true+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29.
    static boolean
    isFontDataOwnedByAtlas​(long nativeObjectPtr)
     
    boolean
    false++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.
    static boolean
    isMergeMode​(long nativeObjectPtr)
     
    boolean
    false++++%7C%7C+Align+every+glyph+to+pixel+boundary.
    static boolean
    isPixelSnapH​(long nativeObjectPtr)
     
    void
    setFontBuilderFlags​(int newValue)
    0++++++++%7C%7C+Settings+for+custom+font+builder.
    protected static void
    setFontBuilderFlags​(long nativeObjectPtr, int newValue)
     
    void
    setFontDataOwnedByAtlas​(boolean newValue)
    true+++++%7C%7C+TTF%7COTF+data+ownership+taken+by+the+container+ImFontAtlas+%28will+delete+memory+itself%29.
    static void
    setFontDataOwnedByAtlas​(long nativeObjectPtr, boolean newValue)
     
    void
    setFontDataSize​(int newValue)
    TTF%7COTF+data+size
    protected static void
    setFontDataSize​(long nativeObjectPtr, int newValue)
     
    void
    setFontNo​(int newValue)
    0++++++++%7C%7C+Index+of+font+within+TTF%7COTF+file
    protected static void
    setFontNo​(long nativeObjectPtr, int newValue)
     
    void
    setGlyphExtraSpacingX​(float newValue)
    0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.
    void
    setGlyphExtraSpacingY​(float newValue)
    0%2C+0+++++%7C%7C+Extra+spacing+%28in+pixels%29+between+glyphs.
    void
    setGlyphMaxAdvanceX​(float newValue)
    FLT_MAX++%7C%7C+Maximum+AdvanceX+for+glyphs
    protected static void
    setGlyphMaxAdvanceX​(long nativeObjectPtr, float newValue)
     
    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
    protected static void
    setGlyphMinAdvanceX​(long nativeObjectPtr, float newValue)
     
    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
    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
    void
    setMergeMode​(boolean newValue)
    false++++%7C%7C+Merge+into+previous+ImFont%2C+so+you+can+combine+multiple+inputs+font+into+one+ImFont+%28e.g.
    static void
    setMergeMode​(long nativeObjectPtr, boolean newValue)
     
    void
    setOversampleH​(int newValue)
    3++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.
    protected static void
    setOversampleH​(long nativeObjectPtr, int newValue)
     
    void
    setOversampleV​(int newValue)
    1++++++++%7C%7C+Rasterize+at+higher+quality+for+sub-pixel+positioning.
    protected static void
    setOversampleV​(long nativeObjectPtr, int newValue)
     
    void
    setPixelSnapH​(boolean newValue)
    false++++%7C%7C+Align+every+glyph+to+pixel+boundary.
    static void
    setPixelSnapH​(long nativeObjectPtr, boolean newValue)
     
    void
    setRasterizerMultiply​(float newValue)
    1.0f+++++%7C%7C+Brighten+%28%3E1.0f%29+or+darken+%28%3C1.0f%29+font+output.
    protected static void
    setRasterizerMultiply​(long nativeObjectPtr, float newValue)
     
    void
    setSizePixels​(float newValue)
    Size+in+pixels+for+rasterizer+%28more+or+less+maps+to+the+resulting+font+height%29.
    protected static void
    setSizePixels​(long nativeObjectPtr, float newValue)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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)