类 JImGuiFontGen

java.lang.Object
org.ice1000.jimgui.JImGuiFontGen
直接已知子类:
JImFont

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

    字段
    修饰符和类型
    字段
    说明
    protected long
    package-private by design
  • 方法概要

    修饰符和类型
    方法
    说明
    final void
    addRemapChar(int dst, int src)
    Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.
    final void
    addRemapChar(int dst, int src, boolean overwriteDst)
    Makes+%27dst%27+character%7Cglyph+points+to+%27src%27+character%7Cglyph.
    final void
     
    final void
     
    float
     
    protected static float
    getAscent(long nativeObjectPtr)
     
    short
    2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.
    protected static short
    getConfigDataCount(long nativeObjectPtr)
     
    final long
     
    float
    4%2B4+++%7C%7C+out+%7C%7C++++++++++++%7C%7C+Ascent%3A+distance+from+top+to+bottom+of+e.g.+%27A%27+%5B0..FontSize%5D
    protected static float
    getDescent(long nativeObjectPtr)
     
    float
     
    protected static float
    getFallbackAdvanceX(long nativeObjectPtr)
     
    float
    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
    protected static float
    getFontSize(long nativeObjectPtr)
     
    static @NotNull JImFont
    getInstance(@NotNull JImGui owner)
     
    int
    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
    protected static int
    getMetricsTotalSurface(long nativeObjectPtr)
     
    float
     
    protected static float
    getScale(long nativeObjectPtr)
     
    final void
    growIndex(int newSize)
     
    boolean
    1+++++%7C%7C+out
    static boolean
    isDirtyLookupTables(long nativeObjectPtr)
     
    final boolean
     
    protected static void
    renderChar(long drawList, float size, float posX, float posY, int u32Color, short c, long nativeObjectPtr)
     
    final void
    renderChar(@NotNull JImDrawList drawList, float size, float posX, float posY, int u32Color, short c)
     
    void
    setAscent(float newValue)
     
    protected static void
    setAscent(long nativeObjectPtr, float newValue)
     
    protected static void
    setConfigDataCount(long nativeObjectPtr, short newValue)
     
    void
    setConfigDataCount(short newValue)
    2+++++%7C%7C+in++%7C%7C+%7E+1++++++++%7C%7C+Number+of+ImFontConfig+involved+in+creating+this+font.
    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
    protected static void
    setDescent(long nativeObjectPtr, float newValue)
     
    void
    setDirtyLookupTables(boolean newValue)
    1+++++%7C%7C+out
    static void
    setDirtyLookupTables(long nativeObjectPtr, boolean newValue)
     
    void
    setFallbackAdvanceX(float newValue)
     
    protected static void
    setFallbackAdvanceX(long nativeObjectPtr, float newValue)
     
    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
    protected static void
    setFontSize(long nativeObjectPtr, float newValue)
     
    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
    protected static void
    setMetricsTotalSurface(long nativeObjectPtr, int newValue)
     
    void
    setScale(float newValue)
     
    protected static void
    setScale(long nativeObjectPtr, float newValue)
     

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

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

    • nativeObjectPtr

      protected long nativeObjectPtr
      package-private by design
  • 方法详细资料

    • getInstance

      @Contract(pure=true) @NotNull public static @NotNull JImFont getInstance(@NotNull @NotNull JImGui owner)
    • 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()
    • 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)