Index
Modules:
stb_truetype
,
stb_truetype/wrapper
.
API symbols
findGlyphIndex:
stb_truetype: findGlyphIndex(font: Font; unicode_codepoint: int): int
Font:
stb_truetype: Font
getCodepointSDF:
stb_truetype: getCodepointSDF(font: Font; scale: float; codepoint: int; padding: int; onedge_value: uint8; pixel_dist_scale: float): Option[SDF]
getFontOffsetForIndex:
stb_truetype: getFontOffsetForIndex(data: openArray[cuchar]; index: int): int
getFontVMetrics:
stb_truetype: getFontVMetrics(font: Font): VMetrics
getGlyphHMetrics:
stb_truetype: getGlyphHMetrics(font: Font; glyph: int): HMetrics
getGlyphKernAdvance:
stb_truetype: getGlyphKernAdvance(font: Font; glyph1: int; glyph2: int): int
getGlyphSDF:
stb_truetype: getGlyphSDF(font: Font; scale: float; glyph_index: int; padding: int; onedge_value: uint8; pixel_dist_scale: float): Option[SDF]
getNumberOfFonts:
stb_truetype: getNumberOfFonts(data: openArray[cuchar]): int
HMetrics:
stb_truetype: HMetrics
initFont:
stb_truetype: initFont(data: openArray[cuchar]): Option[Font]
isGlyphEmpty:
stb_truetype: isGlyphEmpty(font: Font; glyph: int): bool
pixels:
stb_truetype: pixels(sdf: SDF): uint8
scaleForPixelHeight:
stb_truetype: scaleForPixelHeight(font: Font; pixels: float): float
SDF:
stb_truetype: SDF
stbrp_rect:
wrapper: stbrp_rect
stbtt_aligned_quad:
wrapper: stbtt_aligned_quad
stbtt_bakedchar:
wrapper: stbtt_bakedchar
stbtt_BakeFontBitmap:
wrapper: stbtt_BakeFontBitmap(data: ptr cuchar; offset: cint; pixel_height: cfloat; pixels: ptr cuchar; pw: cint; ph: cint; first_char: cint; num_chars: cint; chardata: ptr stbtt_bakedchar): cint
stbtt_bitmap:
wrapper: stbtt_bitmap
stbtt_buf:
wrapper: stbtt_buf
stbtt_CompareUTF8toUTF16_bigendian:
wrapper: stbtt_CompareUTF8toUTF16_bigendian(s1: cstring; len1: cint; s2: cstring; len2: cint): cint
stbtt_FindGlyphIndex:
wrapper: stbtt_FindGlyphIndex(info: ptr stbtt_fontinfo; unicode_codepoint: cint): cint
stbtt_FindMatchingFont:
wrapper: stbtt_FindMatchingFont(fontdata: ptr cuchar; name: cstring; flags: cint): cint
stbtt_FindSVGDoc:
wrapper: stbtt_FindSVGDoc(info: ptr stbtt_fontinfo; gl: cint): ptr cuchar
stbtt_fontinfo:
wrapper: stbtt_fontinfo
stbtt_FreeBitmap:
wrapper: stbtt_FreeBitmap(bitmap: ptr cuchar; userdata: pointer)
stbtt_FreeSDF:
wrapper: stbtt_FreeSDF(bitmap: ptr cuchar; userdata: pointer)
stbtt_FreeShape:
wrapper: stbtt_FreeShape(info: ptr stbtt_fontinfo; vertices: ptr stbtt_vertex)
stbtt_GetBakedQuad:
wrapper: stbtt_GetBakedQuad(chardata: ptr stbtt_bakedchar; pw: cint; ph: cint; char_index: cint; xpos: ptr cfloat; ypos: ptr cfloat; q: ptr stbtt_aligned_quad; opengl_fillrule: cint)
stbtt_GetCodepointBitmap:
wrapper: stbtt_GetCodepointBitmap(info: ptr stbtt_fontinfo; scale_x: cfloat; scale_y: cfloat; codepoint: cint; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetCodepointBitmapBox:
wrapper: stbtt_GetCodepointBitmapBox(font: ptr stbtt_fontinfo; codepoint: cint; scale_x: cfloat; scale_y: cfloat; ix0: ptr cint; iy0: ptr cint; ix1: ptr cint; iy1: ptr cint)
stbtt_GetCodepointBitmapBoxSubpixel:
wrapper: stbtt_GetCodepointBitmapBoxSubpixel(font: ptr stbtt_fontinfo; codepoint: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; ix0: ptr cint; iy0: ptr cint; ix1: ptr cint; iy1: ptr cint)
stbtt_GetCodepointBitmapSubpixel:
wrapper: stbtt_GetCodepointBitmapSubpixel(info: ptr stbtt_fontinfo; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; codepoint: cint; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetCodepointBox:
wrapper: stbtt_GetCodepointBox(info: ptr stbtt_fontinfo; codepoint: cint; x0: ptr cint; y0: ptr cint; x1: ptr cint; y1: ptr cint): cint
stbtt_GetCodepointHMetrics:
wrapper: stbtt_GetCodepointHMetrics(info: ptr stbtt_fontinfo; codepoint: cint; advanceWidth: ptr cint; leftSideBearing: ptr cint)
stbtt_GetCodepointKernAdvance:
wrapper: stbtt_GetCodepointKernAdvance(info: ptr stbtt_fontinfo; ch1: cint; ch2: cint): cint
stbtt_GetCodepointSDF:
wrapper: stbtt_GetCodepointSDF(info: ptr stbtt_fontinfo; scale: cfloat; codepoint: cint; padding: cint; onedge_value: cuchar; pixel_dist_scale: cfloat; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetCodepointShape:
wrapper: stbtt_GetCodepointShape(info: ptr stbtt_fontinfo; unicode_codepoint: cint; vertices: ptr ptr stbtt_vertex): cint
stbtt_GetCodepointSVG:
wrapper: stbtt_GetCodepointSVG(info: ptr stbtt_fontinfo; unicode_codepoint: cint; svg: cstringArray): cint
stbtt_GetFontBoundingBox:
wrapper: stbtt_GetFontBoundingBox(info: ptr stbtt_fontinfo; x0: ptr cint; y0: ptr cint; x1: ptr cint; y1: ptr cint)
stbtt_GetFontNameString:
wrapper: stbtt_GetFontNameString(font: ptr stbtt_fontinfo; length: ptr cint; platformID: cint; encodingID: cint; languageID: cint; nameID: cint): cstring
stbtt_GetFontOffsetForIndex:
wrapper: stbtt_GetFontOffsetForIndex(data: ptr cuchar; index: cint): cint
stbtt_GetFontVMetrics:
wrapper: stbtt_GetFontVMetrics(info: ptr stbtt_fontinfo; ascent: ptr cint; descent: ptr cint; lineGap: ptr cint)
stbtt_GetFontVMetricsOS2:
wrapper: stbtt_GetFontVMetricsOS2(info: ptr stbtt_fontinfo; typoAscent: ptr cint; typoDescent: ptr cint; typoLineGap: ptr cint): cint
stbtt_GetGlyphBitmap:
wrapper: stbtt_GetGlyphBitmap(info: ptr stbtt_fontinfo; scale_x: cfloat; scale_y: cfloat; glyph: cint; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetGlyphBitmapBox:
wrapper: stbtt_GetGlyphBitmapBox(font: ptr stbtt_fontinfo; glyph: cint; scale_x: cfloat; scale_y: cfloat; ix0: ptr cint; iy0: ptr cint; ix1: ptr cint; iy1: ptr cint)
stbtt_GetGlyphBitmapBoxSubpixel:
wrapper: stbtt_GetGlyphBitmapBoxSubpixel(font: ptr stbtt_fontinfo; glyph: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; ix0: ptr cint; iy0: ptr cint; ix1: ptr cint; iy1: ptr cint)
stbtt_GetGlyphBitmapSubpixel:
wrapper: stbtt_GetGlyphBitmapSubpixel(info: ptr stbtt_fontinfo; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; glyph: cint; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetGlyphBox:
wrapper: stbtt_GetGlyphBox(info: ptr stbtt_fontinfo; glyph_index: cint; x0: ptr cint; y0: ptr cint; x1: ptr cint; y1: ptr cint): cint
stbtt_GetGlyphHMetrics:
wrapper: stbtt_GetGlyphHMetrics(info: ptr stbtt_fontinfo; glyph_index: cint; advanceWidth: ptr cint; leftSideBearing: ptr cint)
stbtt_GetGlyphKernAdvance:
wrapper: stbtt_GetGlyphKernAdvance(info: ptr stbtt_fontinfo; glyph1: cint; glyph2: cint): cint
stbtt_GetGlyphSDF:
wrapper: stbtt_GetGlyphSDF(info: ptr stbtt_fontinfo; scale: cfloat; glyph: cint; padding: cint; onedge_value: cuchar; pixel_dist_scale: cfloat; width: ptr cint; height: ptr cint; xoff: ptr cint; yoff: ptr cint): ptr cuchar
stbtt_GetGlyphShape:
wrapper: stbtt_GetGlyphShape(info: ptr stbtt_fontinfo; glyph_index: cint; vertices: ptr ptr stbtt_vertex): cint
stbtt_GetGlyphSVG:
wrapper: stbtt_GetGlyphSVG(info: ptr stbtt_fontinfo; gl: cint; svg: cstringArray): cint
stbtt_GetKerningTable:
wrapper: stbtt_GetKerningTable(info: ptr stbtt_fontinfo; table: ptr stbtt_kerningentry; table_length: cint): cint
stbtt_GetKerningTableLength:
wrapper: stbtt_GetKerningTableLength(info: ptr stbtt_fontinfo): cint
stbtt_GetNumberOfFonts:
wrapper: stbtt_GetNumberOfFonts(data: ptr cuchar): cint
stbtt_GetPackedQuad:
wrapper: stbtt_GetPackedQuad(chardata: ptr stbtt_packedchar; pw: cint; ph: cint; char_index: cint; xpos: ptr cfloat; ypos: ptr cfloat; q: ptr stbtt_aligned_quad; align_to_integer: cint)
stbtt_GetScaledFontVMetrics:
wrapper: stbtt_GetScaledFontVMetrics(fontdata: ptr cuchar; index: cint; size: cfloat; ascent: ptr cfloat; descent: ptr cfloat; lineGap: ptr cfloat)
stbtt_InitFont:
wrapper: stbtt_InitFont(info: ptr stbtt_fontinfo; data: ptr cuchar; offset: cint): cint
stbtt_IsGlyphEmpty:
wrapper: stbtt_IsGlyphEmpty(info: ptr stbtt_fontinfo; glyph_index: cint): cint
stbtt_kerningentry:
wrapper: stbtt_kerningentry
STBTT_MAC_EID_ARABIC:
wrapper: STBTT_MAC_EID_ARABIC
STBTT_MAC_EID_CHINESE_TRAD:
wrapper: STBTT_MAC_EID_CHINESE_TRAD
STBTT_MAC_EID_GREEK:
wrapper: STBTT_MAC_EID_GREEK
STBTT_MAC_EID_HEBREW:
wrapper: STBTT_MAC_EID_HEBREW
STBTT_MAC_EID_JAPANESE:
wrapper: STBTT_MAC_EID_JAPANESE
STBTT_MAC_EID_KOREAN:
wrapper: STBTT_MAC_EID_KOREAN
STBTT_MAC_EID_ROMAN:
wrapper: STBTT_MAC_EID_ROMAN
STBTT_MAC_EID_RUSSIAN:
wrapper: STBTT_MAC_EID_RUSSIAN
STBTT_MAC_LANG_ARABIC:
wrapper: STBTT_MAC_LANG_ARABIC
STBTT_MAC_LANG_CHINESE_SIMPLIFIED:
wrapper: STBTT_MAC_LANG_CHINESE_SIMPLIFIED
STBTT_MAC_LANG_CHINESE_TRAD:
wrapper: STBTT_MAC_LANG_CHINESE_TRAD
STBTT_MAC_LANG_DUTCH:
wrapper: STBTT_MAC_LANG_DUTCH
STBTT_MAC_LANG_ENGLISH:
wrapper: STBTT_MAC_LANG_ENGLISH
STBTT_MAC_LANG_FRENCH:
wrapper: STBTT_MAC_LANG_FRENCH
STBTT_MAC_LANG_GERMAN:
wrapper: STBTT_MAC_LANG_GERMAN
STBTT_MAC_LANG_HEBREW:
wrapper: STBTT_MAC_LANG_HEBREW
STBTT_MAC_LANG_ITALIAN:
wrapper: STBTT_MAC_LANG_ITALIAN
STBTT_MAC_LANG_JAPANESE:
wrapper: STBTT_MAC_LANG_JAPANESE
STBTT_MAC_LANG_KOREAN:
wrapper: STBTT_MAC_LANG_KOREAN
STBTT_MAC_LANG_RUSSIAN:
wrapper: STBTT_MAC_LANG_RUSSIAN
STBTT_MAC_LANG_SPANISH:
wrapper: STBTT_MAC_LANG_SPANISH
STBTT_MAC_LANG_SWEDISH:
wrapper: STBTT_MAC_LANG_SWEDISH
STBTT_MACSTYLE_BOLD:
wrapper: STBTT_MACSTYLE_BOLD
STBTT_MACSTYLE_DONTCARE:
wrapper: STBTT_MACSTYLE_DONTCARE
STBTT_MACSTYLE_ITALIC:
wrapper: STBTT_MACSTYLE_ITALIC
STBTT_MACSTYLE_NONE:
wrapper: STBTT_MACSTYLE_NONE
STBTT_MACSTYLE_UNDERSCORE:
wrapper: STBTT_MACSTYLE_UNDERSCORE
stbtt_MakeCodepointBitmap:
wrapper: stbtt_MakeCodepointBitmap(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; codepoint: cint)
stbtt_MakeCodepointBitmapSubpixel:
wrapper: stbtt_MakeCodepointBitmapSubpixel(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; codepoint: cint)
stbtt_MakeCodepointBitmapSubpixelPrefilter:
wrapper: stbtt_MakeCodepointBitmapSubpixelPrefilter(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; oversample_x: cint; oversample_y: cint; sub_x: ptr cfloat; sub_y: ptr cfloat; codepoint: cint)
stbtt_MakeGlyphBitmap:
wrapper: stbtt_MakeGlyphBitmap(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; glyph: cint)
stbtt_MakeGlyphBitmapSubpixel:
wrapper: stbtt_MakeGlyphBitmapSubpixel(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; glyph: cint)
stbtt_MakeGlyphBitmapSubpixelPrefilter:
wrapper: stbtt_MakeGlyphBitmapSubpixelPrefilter(info: ptr stbtt_fontinfo; output: ptr cuchar; out_w: cint; out_h: cint; out_stride: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; oversample_x: cint; oversample_y: cint; sub_x: ptr cfloat; sub_y: ptr cfloat; glyph: cint)
STBTT_MS_EID_SHIFTJIS:
wrapper: STBTT_MS_EID_SHIFTJIS
STBTT_MS_EID_SYMBOL:
wrapper: STBTT_MS_EID_SYMBOL
STBTT_MS_EID_UNICODE_BMP:
wrapper: STBTT_MS_EID_UNICODE_BMP
STBTT_MS_EID_UNICODE_FULL:
wrapper: STBTT_MS_EID_UNICODE_FULL
STBTT_MS_LANG_CHINESE:
wrapper: STBTT_MS_LANG_CHINESE
STBTT_MS_LANG_DUTCH:
wrapper: STBTT_MS_LANG_DUTCH
STBTT_MS_LANG_ENGLISH:
wrapper: STBTT_MS_LANG_ENGLISH
STBTT_MS_LANG_FRENCH:
wrapper: STBTT_MS_LANG_FRENCH
STBTT_MS_LANG_GERMAN:
wrapper: STBTT_MS_LANG_GERMAN
STBTT_MS_LANG_HEBREW:
wrapper: STBTT_MS_LANG_HEBREW
STBTT_MS_LANG_ITALIAN:
wrapper: STBTT_MS_LANG_ITALIAN
STBTT_MS_LANG_JAPANESE:
wrapper: STBTT_MS_LANG_JAPANESE
STBTT_MS_LANG_KOREAN:
wrapper: STBTT_MS_LANG_KOREAN
STBTT_MS_LANG_RUSSIAN:
wrapper: STBTT_MS_LANG_RUSSIAN
STBTT_MS_LANG_SPANISH:
wrapper: STBTT_MS_LANG_SPANISH
STBTT_MS_LANG_SWEDISH:
wrapper: STBTT_MS_LANG_SWEDISH
stbtt_PackBegin:
wrapper: stbtt_PackBegin(spc: ptr stbtt_pack_context; pixels: ptr cuchar; width: cint; height: cint; stride_in_bytes: cint; padding: cint; alloc_context: pointer): cint
stbtt_pack_context:
wrapper: stbtt_pack_context
stbtt_packedchar:
wrapper: stbtt_packedchar
stbtt_PackEnd:
wrapper: stbtt_PackEnd(spc: ptr stbtt_pack_context)
stbtt_PackFontRange:
wrapper: stbtt_PackFontRange(spc: ptr stbtt_pack_context; fontdata: ptr cuchar; font_index: cint; font_size: cfloat; first_unicode_char_in_range: cint; num_chars_in_range: cint; chardata_for_range: ptr stbtt_packedchar): cint
stbtt_PackFontRanges:
wrapper: stbtt_PackFontRanges(spc: ptr stbtt_pack_context; fontdata: ptr cuchar; font_index: cint; ranges: ptr stbtt_pack_range; num_ranges: cint): cint
stbtt_PackFontRangesGatherRects:
wrapper: stbtt_PackFontRangesGatherRects(spc: ptr stbtt_pack_context; info: ptr stbtt_fontinfo; ranges: ptr stbtt_pack_range; num_ranges: cint; rects: ptr stbrp_rect): cint
stbtt_PackFontRangesPackRects:
wrapper: stbtt_PackFontRangesPackRects(spc: ptr stbtt_pack_context; rects: ptr stbrp_rect; num_rects: cint)
stbtt_PackFontRangesRenderIntoRects:
wrapper: stbtt_PackFontRangesRenderIntoRects(spc: ptr stbtt_pack_context; info: ptr stbtt_fontinfo; ranges: ptr stbtt_pack_range; num_ranges: cint; rects: ptr stbrp_rect): cint
stbtt_pack_range:
wrapper: stbtt_pack_range
stbtt_PackSetOversampling:
wrapper: stbtt_PackSetOversampling(spc: ptr stbtt_pack_context; h_oversample: cuint; v_oversample: cuint)
stbtt_PackSetSkipMissingCodepoints:
wrapper: stbtt_PackSetSkipMissingCodepoints(spc: ptr stbtt_pack_context; skip: cint)
STBTT_PLATFORM_ID_ISO:
wrapper: STBTT_PLATFORM_ID_ISO
STBTT_PLATFORM_ID_MAC:
wrapper: STBTT_PLATFORM_ID_MAC
STBTT_PLATFORM_ID_MICROSOFT:
wrapper: STBTT_PLATFORM_ID_MICROSOFT
STBTT_PLATFORM_ID_UNICODE:
wrapper: STBTT_PLATFORM_ID_UNICODE
STBTT_POINT_SIZE:
wrapper: STBTT_POINT_SIZE(x: untyped): untyped
stbtt_Rasterize:
wrapper: stbtt_Rasterize(result: ptr stbtt_bitmap; flatness_in_pixels: cfloat; vertices: ptr stbtt_vertex; num_verts: cint; scale_x: cfloat; scale_y: cfloat; shift_x: cfloat; shift_y: cfloat; x_off: cint; y_off: cint; invert: cint; userdata: pointer)
stbtt_ScaleForMappingEmToPixels:
wrapper: stbtt_ScaleForMappingEmToPixels(info: ptr stbtt_fontinfo; pixels: cfloat): cfloat
stbtt_ScaleForPixelHeight:
wrapper: stbtt_ScaleForPixelHeight(info: ptr stbtt_fontinfo; pixels: cfloat): cfloat
STBTT_UNICODE_EID_ISO_10646:
wrapper: STBTT_UNICODE_EID_ISO_10646
STBTT_UNICODE_EID_UNICODE_1_0:
wrapper: STBTT_UNICODE_EID_UNICODE_1_0
STBTT_UNICODE_EID_UNICODE_1_1:
wrapper: STBTT_UNICODE_EID_UNICODE_1_1
STBTT_UNICODE_EID_UNICODE_2_0_BMP:
wrapper: STBTT_UNICODE_EID_UNICODE_2_0_BMP
STBTT_UNICODE_EID_UNICODE_2_0_FULL:
wrapper: STBTT_UNICODE_EID_UNICODE_2_0_FULL
stbtt_vertex:
wrapper: stbtt_vertex
VMetrics:
stb_truetype: VMetrics