Interface StbApi
public interface StbApi
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlonglongfont_CreatePackedCharArray(int capacity) longintfont_FindGlyphIndex(StbApi.StbFontInfo info, int codepoint) voidfont_GetFontVMetrics(StbApi.StbFontInfo info, int[] ascent, int[] descent, int[] lineGap) font_GetGlyphBitmap(StbApi.StbFontInfo info, float scaleX, float scaleY, int glyphIndex, int[] w, int[] h, int[] x_off, int[] y_off) voidfont_GetGlyphHMetrics(StbApi.StbFontInfo info, int glyphIndex, int[] advanceWidth, int[] leftSideBearing) font_GetGlyphSDF(StbApi.StbFontInfo info, float scale, int glyphIndex, int padding, byte onEdgeValue, float pixelDistScale, int[] w, int[] h, int[] x_off, int[] y_off) longfont_GetPackedGlyph(long packedCharArray, int index) booleanfont_InitFont(StbApi.StbFontInfo info, ByteBuffer data) booleanfont_PackBegin(long packCtx, ByteBuffer pixels, int width, int height, int strideInBytes, int padding, long allocCtx) voidfont_PackEnd(long packCtx) booleanfont_PackFontRange(long packCtx, ByteBuffer fontData, int fontIndex, float fontSize, int firstUnicodeCodepointInRange, int numCharsInRange, long packedCharArray) voidfont_RangeSetChardata(long range, long packedCharArray) voidfont_RangeSetFirstUnicodeCodepointInRange(long range, int firstUnicodeCodepointInRange) voidfont_RangeSetFontSize(long range, float size) voidfont_RangeSetNumChars(long range, int numCharsInRange) floatfont_ScaleForMappingEmToPixels(StbApi.StbFontInfo info, float pixels) shortglyph_x0(long glyph) shortglyph_x1(long glyph) floatglyph_xadvance(long glyph) floatglyph_xoff(long glyph) shortglyph_y0(long glyph) shortglyph_y1(long glyph) floatglyph_yoff(long glyph) voidimage_free(ByteBuffer image) image_load_from_memory(ByteBuffer buffer, int[] widthOutput, int[] heightOutput, int[] channelsOutput, int desiredChannels) voidimage_write_png(String filename, int w, int h, int comp, ByteBuffer data, int strideInBytes)
-
Method Details
-
image_load_from_memory
ByteBuffer image_load_from_memory(ByteBuffer buffer, int[] widthOutput, int[] heightOutput, int[] channelsOutput, int desiredChannels) -
image_failure_reason
String image_failure_reason() -
image_free
-
image_write_png
-
font_CreateFontInfo
StbApi.StbFontInfo font_CreateFontInfo() -
font_CreatePackRange
long font_CreatePackRange() -
font_CreatePackedCharArray
long font_CreatePackedCharArray(int capacity) -
font_CreatePackContext
long font_CreatePackContext() -
font_InitFont
-
font_FindGlyphIndex
-
font_ScaleForMappingEmToPixels
-
font_GetFontVMetrics
-
font_GetGlyphHMetrics
void font_GetGlyphHMetrics(StbApi.StbFontInfo info, int glyphIndex, int[] advanceWidth, int[] leftSideBearing) -
font_GetGlyphBitmap
ByteBuffer font_GetGlyphBitmap(StbApi.StbFontInfo info, float scaleX, float scaleY, int glyphIndex, int[] w, int[] h, int[] x_off, int[] y_off) -
font_GetGlyphSDF
ByteBuffer font_GetGlyphSDF(StbApi.StbFontInfo info, float scale, int glyphIndex, int padding, byte onEdgeValue, float pixelDistScale, int[] w, int[] h, int[] x_off, int[] y_off) -
font_PackBegin
boolean font_PackBegin(long packCtx, ByteBuffer pixels, int width, int height, int strideInBytes, int padding, long allocCtx) -
font_PackFontRange
boolean font_PackFontRange(long packCtx, ByteBuffer fontData, int fontIndex, float fontSize, int firstUnicodeCodepointInRange, int numCharsInRange, long packedCharArray) -
font_PackEnd
void font_PackEnd(long packCtx) -
font_RangeSetFontSize
void font_RangeSetFontSize(long range, float size) -
font_RangeSetFirstUnicodeCodepointInRange
void font_RangeSetFirstUnicodeCodepointInRange(long range, int firstUnicodeCodepointInRange) -
font_RangeSetNumChars
void font_RangeSetNumChars(long range, int numCharsInRange) -
font_RangeSetChardata
void font_RangeSetChardata(long range, long packedCharArray) -
font_GetPackedGlyph
long font_GetPackedGlyph(long packedCharArray, int index) -
glyph_x0
short glyph_x0(long glyph) -
glyph_y0
short glyph_y0(long glyph) -
glyph_x1
short glyph_x1(long glyph) -
glyph_y1
short glyph_y1(long glyph) -
glyph_xadvance
float glyph_xadvance(long glyph) -
glyph_xoff
float glyph_xoff(long glyph) -
glyph_yoff
float glyph_yoff(long glyph)
-