类 JImFontAtlas
java.lang.Object
org.ice1000.jimgui.JImGuiFontAtlasGen
org.ice1000.jimgui.JImFontAtlas
- 所有已实现的接口:
AutoCloseable,DeallocatableObject
- 从以下版本开始:
- v0.1
-
字段概要
从类继承的字段 org.ice1000.jimgui.JImGuiFontAtlasGen
nativeObjectPtr -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddCustomRectFontGlyph(@NotNull JImFont font, char id, int width, int height, float advanceX)@NotNull JImFont@NotNull JImFontaddDefaultFont(@NotNull JImFontConfig config)@NotNull JImFontaddFontFromFile(@NotNull String path)@NotNull JImFontaddFontFromFile(@NotNull String path, float sizePixels)@NotNull JImFontaddFontFromFile(@NotNull String path, float sizePixels, @NotNull JImFontConfig config)@NotNull JImFontaddFontFromFile(@NotNull String path, float sizePixels, @NotNull JImFontConfig config, @NotNull NativeShort glyphRange)@NotNull JImFontaddFontFromFile(@NotNull String path, float sizePixels, @NotNull NativeShort glyphRange)@NotNull JImFontaddFontFromMemoryCompressedBase85(@NotNull String compressedFontDataBase85, float sizePixels)void@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer@NotNull NativeShortDo NOT deallocate the returned pointer从类继承的方法 org.ice1000.jimgui.JImGuiFontAtlasGen
addCustomRectFontGlyph, addCustomRectFontGlyph, addCustomRectFontGlyph, addCustomRectFontGlyph, addCustomRectRegular, addFont, addFont, addFont, addFontDefault, addFontDefault, addFontDefault, addFontDefault, addFontFromMemoryCompressedBase85TTF, addFontFromMemoryCompressedBase85TTF, addFontFromMemoryCompressedBase85TTF, addFontFromMemoryCompressedBase85TTF, addFontFromMemoryCompressedBase85TTF, build, clear, clearFonts, clearInputData, clearTexData, getFlags, getFlags, getGlyphRangesChineseFull, getGlyphRangesChineseFull, getGlyphRangesChineseSimplifiedCommon, getGlyphRangesChineseSimplifiedCommon, getGlyphRangesCyrillic, getGlyphRangesCyrillic, getGlyphRangesDefault, getGlyphRangesDefault, getGlyphRangesJapanese, getGlyphRangesJapanese, getGlyphRangesKorean, getGlyphRangesKorean, getGlyphRangesThai, getGlyphRangesThai, getGlyphRangesVietnamese, getGlyphRangesVietnamese, getTexDesiredWidth, getTexDesiredWidth, getTexGlyphPadding, getTexGlyphPadding, getTexHeight, getTexHeight, getTexUvScaleX, getTexUvScaleY, getTexUvWhitePixelX, getTexUvWhitePixelY, getTexWidth, getTexWidth, isBuilt, setFlags, setFlags, setTexDesiredWidth, setTexDesiredWidth, setTexGlyphPadding, setTexGlyphPadding, setTexHeight, setTexHeight, setTexID, setTexID, setTexUvScaleX, setTexUvScaleY, setTexUvWhitePixelX, setTexUvWhitePixelY, setTexWidth, setTexWidth从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.ice1000.jimgui.cpp.DeallocatableObject
close
-
构造器详细资料
-
JImFontAtlas
@Contract public JImFontAtlas()- 另请参阅:
JImFont.getContainerAtlas(),JImGui(int, int, JImFontAtlas, String)- API Note:
- Should call
deallocateNativeObject().
-
-
方法详细资料
-
addCustomRectFontGlyph
public void addCustomRectFontGlyph(@NotNull @NotNull JImFont font, char id, int width, int height, float advanceX) -
addDefaultFont
- 返回:
- the font
-
addDefaultFont
- 返回:
- the font
-
addFontFromFile
- 参数:
path- path to a ttf file- 返回:
- the font
-
addFontFromFile
@NotNull public @NotNull JImFont addFontFromFile(@NotNull @NotNull String path, float sizePixels, @NotNull @NotNull JImFontConfig config)- 参数:
path- path to a ttf filesizePixels- font size- 返回:
- the font
-
addFontFromFile
- 参数:
path- path to a ttf filesizePixels- font size- 返回:
- the font
-
addFontFromFile
@NotNull public @NotNull JImFont addFontFromFile(@NotNull @NotNull String path, float sizePixels, @NotNull @NotNull NativeShort glyphRange)- 参数:
path- path to a ttf filesizePixels- font sizeglyphRange- seegetGlyphRangesForChineseFull(),getGlyphRangesForChineseSimplifiedCommon(),getGlyphRangesForDefault(),getGlyphRangesForJapanese(),getGlyphRangesForCyrillic(),getGlyphRangesForVietnamese(),getGlyphRangesForThai(),getGlyphRangesForKorean()- 返回:
- the font
-
addFontFromFile
@NotNull public @NotNull JImFont addFontFromFile(@NotNull @NotNull String path, float sizePixels, @NotNull @NotNull JImFontConfig config, @NotNull @NotNull NativeShort glyphRange)- 参数:
path- path to a ttf filesizePixels- font sizeglyphRange- seegetGlyphRangesForChineseFull(),getGlyphRangesForChineseSimplifiedCommon(),getGlyphRangesForDefault(),getGlyphRangesForJapanese(),getGlyphRangesForCyrillic(),getGlyphRangesForVietnamese(),getGlyphRangesForThai(),getGlyphRangesForKorean()- 返回:
- the font
-
getGlyphRangesForDefault
Do NOT deallocate the returned pointer -
getGlyphRangesForKorean
Do NOT deallocate the returned pointer -
getGlyphRangesForJapanese
Do NOT deallocate the returned pointer -
getGlyphRangesForChineseFull
Do NOT deallocate the returned pointer -
getGlyphRangesForChineseSimplifiedCommon
@Contract(pure=true) @NotNull public @NotNull NativeShort getGlyphRangesForChineseSimplifiedCommon()Do NOT deallocate the returned pointer -
getGlyphRangesForCyrillic
Do NOT deallocate the returned pointer -
getGlyphRangesForVietnamese
Do NOT deallocate the returned pointer -
getGlyphRangesForThai
Do NOT deallocate the returned pointer -
addFontFromMemoryCompressedBase85
@NotNull public @NotNull JImFont addFontFromMemoryCompressedBase85(@NotNull @NotNull String compressedFontDataBase85, float sizePixels)- 参数:
compressedFontDataBase85- in-memory base85 compressed ttf font datasizePixels- font size- 返回:
- the font
-
deallocateNativeObject
public void deallocateNativeObject()- 指定者:
deallocateNativeObject在接口中DeallocatableObject
-