arsd.ttf

TrueType Font rendering.

More...

Members

Aliases

STBTT_memcpy
alias STBTT_memcpy = core.stdc.string.memcpy
Undocumented in source.
STBTT_memset
alias STBTT_memset = core.stdc.string.memset
Undocumented in source.
STBTT_sort
alias STBTT_sort = core.stdc.stdlib.qsort
Undocumented in source.
STBTT_strlen
alias STBTT_strlen = core.stdc.string.strlen
Undocumented in source.
stbtt__check_size16
alias stbtt__check_size16 = char[(stbtt_int16.sizeof) == 2 ? 1 : -1]
Undocumented in source.
stbtt__check_size32
alias stbtt__check_size32 = char[(stbtt_int32.sizeof) == 4 ? 1 : -1]
Undocumented in source.
stbtt_int16
alias stbtt_int16 = short
Undocumented in source.
stbtt_int32
alias stbtt_int32 = int
Undocumented in source.
stbtt_int8
alias stbtt_int8 = byte
Undocumented in source.
stbtt_uint16
alias stbtt_uint16 = ushort
Undocumented in source.
stbtt_uint32
alias stbtt_uint32 = uint
Undocumented in source.
stbtt_uint8
alias stbtt_uint8 = ubyte
Undocumented in source.
stbtt_vertex_type
alias stbtt_vertex_type = short
Undocumented in source.

Enums

STBTT_MAC_EID_ROMAN
anonymousenum STBTT_MAC_EID_ROMAN
Undocumented in source.
STBTT_MAC_LANG_ENGLISH
anonymousenum STBTT_MAC_LANG_ENGLISH
Undocumented in source.
STBTT_MS_EID_SYMBOL
anonymousenum STBTT_MS_EID_SYMBOL
Undocumented in source.
STBTT_MS_LANG_ENGLISH
anonymousenum STBTT_MS_LANG_ENGLISH
Undocumented in source.
STBTT_PLATFORM_ID_UNICODE
anonymousenum STBTT_PLATFORM_ID_UNICODE
Undocumented in source.
STBTT_UNICODE_EID_UNICODE_1_0
anonymousenum STBTT_UNICODE_EID_UNICODE_1_0
Undocumented in source.
STBTT_vmove
anonymousenum STBTT_vmove

///////////////////////////////////////////////////////////////////////////

Functions

STBTT_free
void STBTT_free(void* x, void* u)
Undocumented in source. Be warned that the author may not have intended to support it.
STBTT_iceil
int STBTT_iceil(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
STBTT_ifloor
int STBTT_ifloor(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
STBTT_malloc
void* STBTT_malloc(size_t x, void* u)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_BakeFontBitmap
int stbtt_BakeFontBitmap(ubyte* data, int offset, float pixel_height, ubyte* pixels, int pw, int ph, int first_char, int num_chars, stbtt_bakedchar* chardata)

///////////////////////////////////////////////////////////////////////////

stbtt_CompareUTF8toUTF16_bigendian
int stbtt_CompareUTF8toUTF16_bigendian(char* s1, int len1, char* s2, int len2)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_FindGlyphIndex
int stbtt_FindGlyphIndex(stbtt_fontinfo* info, int unicode_codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_FindMatchingFont
int stbtt_FindMatchingFont(ubyte* font_collection, char* name_utf8, stbtt_int32 flags)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_FlattenCurves
stbtt__point* stbtt_FlattenCurves(stbtt_vertex* vertices, int num_verts, float objspace_flatness, int** contour_lengths, int* num_contours, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_FreeBitmap
void stbtt_FreeBitmap(ubyte* bitmap, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_FreeShape
void stbtt_FreeShape(stbtt_fontinfo* info, stbtt_vertex* v)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetBakedQuad
void stbtt_GetBakedQuad(stbtt_bakedchar* chardata, int pw, int ph, int char_index, float* xpos, float* ypos, stbtt_aligned_quad* q, int opengl_fillrule)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointBitmap
ubyte* stbtt_GetCodepointBitmap(stbtt_fontinfo* info, float scale_x, float scale_y, int codepoint, int* width, int* height, int* xoff, int* yoff)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointBitmapBox
void stbtt_GetCodepointBitmapBox(stbtt_fontinfo* font, int codepoint, float scale_x, float scale_y, int* ix0, int* iy0, int* ix1, int* iy1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointBitmapBoxSubpixel
void stbtt_GetCodepointBitmapBoxSubpixel(stbtt_fontinfo* font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int* ix0, int* iy0, int* ix1, int* iy1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointBitmapSubpixel
ubyte* stbtt_GetCodepointBitmapSubpixel(stbtt_fontinfo* info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int* width, int* height, int* xoff, int* yoff)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointBox
int stbtt_GetCodepointBox(stbtt_fontinfo* info, int codepoint, int* x0, int* y0, int* x1, int* y1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointHMetrics
void stbtt_GetCodepointHMetrics(stbtt_fontinfo* info, int codepoint, int* advanceWidth, int* leftSideBearing)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointKernAdvance
int stbtt_GetCodepointKernAdvance(stbtt_fontinfo* info, int ch1, int ch2)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetCodepointShape
int stbtt_GetCodepointShape(stbtt_fontinfo* info, int unicode_codepoint, stbtt_vertex** vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetFontBoundingBox
void stbtt_GetFontBoundingBox(stbtt_fontinfo* info, int* x0, int* y0, int* x1, int* y1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetFontNameString
const(char)* stbtt_GetFontNameString(stbtt_fontinfo* font, int* length, int platformID, int encodingID, int languageID, int nameID)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetFontOffsetForIndex
int stbtt_GetFontOffsetForIndex(ubyte* font_collection, int index)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetFontVMetrics
void stbtt_GetFontVMetrics(stbtt_fontinfo* info, int* ascent, int* descent, int* lineGap)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphBitmap
ubyte* stbtt_GetGlyphBitmap(stbtt_fontinfo* info, float scale_x, float scale_y, int glyph, int* width, int* height, int* xoff, int* yoff)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphBitmapBox
void stbtt_GetGlyphBitmapBox(stbtt_fontinfo* font, int glyph, float scale_x, float scale_y, int* ix0, int* iy0, int* ix1, int* iy1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphBitmapBoxSubpixel
void stbtt_GetGlyphBitmapBoxSubpixel(stbtt_fontinfo* font, int glyph, float scale_x, float scale_y, float shift_x, float shift_y, int* ix0, int* iy0, int* ix1, int* iy1)

///////////////////////////////////////////////////////////////////////////

stbtt_GetGlyphBitmapSubpixel
ubyte* stbtt_GetGlyphBitmapSubpixel(stbtt_fontinfo* info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int* width, int* height, int* xoff, int* yoff)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphBox
int stbtt_GetGlyphBox(stbtt_fontinfo* info, int glyph_index, int* x0, int* y0, int* x1, int* y1)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphHMetrics
void stbtt_GetGlyphHMetrics(stbtt_fontinfo* info, int glyph_index, int* advanceWidth, int* leftSideBearing)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphKernAdvance
int stbtt_GetGlyphKernAdvance(stbtt_fontinfo* info, int glyph1, int glyph2)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_GetGlyphShape
int stbtt_GetGlyphShape(stbtt_fontinfo* info, int glyph_index, stbtt_vertex** pvertices)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_InitFont
int stbtt_InitFont(stbtt_fontinfo* info, ubyte* data2, int fontstart)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_IsGlyphEmpty
int stbtt_IsGlyphEmpty(stbtt_fontinfo* info, int glyph_index)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_MakeCodepointBitmap
void stbtt_MakeCodepointBitmap(stbtt_fontinfo* info, ubyte* output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_MakeCodepointBitmapSubpixel
void stbtt_MakeCodepointBitmapSubpixel(stbtt_fontinfo* info, ubyte* output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_MakeGlyphBitmap
void stbtt_MakeGlyphBitmap(stbtt_fontinfo* info, ubyte* output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_MakeGlyphBitmapSubpixel
void stbtt_MakeGlyphBitmapSubpixel(stbtt_fontinfo* info, ubyte* output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_Rasterize
void stbtt_Rasterize(stbtt__bitmap* result, float flatness_in_pixels, stbtt_vertex* vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_ScaleForMappingEmToPixels
float stbtt_ScaleForMappingEmToPixels(stbtt_fontinfo* info, float pixels)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_ScaleForPixelHeight
float stbtt_ScaleForPixelHeight(stbtt_fontinfo* info, float height)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__edge_compare
int stbtt__edge_compare(void* p, void* q)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_tag
bool stbtt_tag(stbtt_uint8* p, char* str)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_tag4
bool stbtt_tag4(stbtt_uint8* p, int c0, int c1, int c2, int c3)
Undocumented in source. Be warned that the author may not have intended to support it.
ttBYTE
stbtt_uint8 ttBYTE(stbtt_uint8* p)

//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// / / IMPLEMENTATION / / ///////////////////////////////////////////////////////////////////////

ttCHAR
stbtt_int8 ttCHAR(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttFixed
stbtt_int32 ttFixed(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttLONG
stbtt_int32 ttLONG(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttLONG
stbtt_int32 ttLONG(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttSHORT
stbtt_int16 ttSHORT(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttSHORT
stbtt_int16 ttSHORT(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttULONG
stbtt_uint32 ttULONG(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttULONG
stbtt_uint32 ttULONG(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttUSHORT
stbtt_uint16 ttUSHORT(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.
ttUSHORT
stbtt_uint16 ttUSHORT(stbtt_uint8* p)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

FIX
enum FIX;
Undocumented in source.
FIXMASK
enum FIXMASK;
Undocumented in source.
FIXSHIFT
enum FIXSHIFT;
Undocumented in source.
STBTT_MACSTYLE_BOLD
enum STBTT_MACSTYLE_BOLD;
Undocumented in source.
STBTT_MACSTYLE_DONTCARE
enum STBTT_MACSTYLE_DONTCARE;

///////////////////////////////////////////////////////////////////////////

STBTT_MACSTYLE_ITALIC
enum STBTT_MACSTYLE_ITALIC;
Undocumented in source.
STBTT_MACSTYLE_NONE
enum STBTT_MACSTYLE_NONE;
Undocumented in source.
STBTT_MACSTYLE_UNDERSCORE
enum STBTT_MACSTYLE_UNDERSCORE;
Undocumented in source.

Static functions

new_active
stbtt__active_edge* new_active(stbtt__edge* e, int off_x, float start_point, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__CompareUTF8toUTF16_bigendian_prefix
stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8* s1, stbtt_int32 len1, const(stbtt_uint8)* s2, stbtt_int32 len2)

///////////////////////////////////////////////////////////////////////////

stbtt__GetGlyfOffset
int stbtt__GetGlyfOffset(stbtt_fontinfo* info, int glyph_index)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__add_point
void stbtt__add_point(stbtt__point* points, int n, float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__close_shape
int stbtt__close_shape(stbtt_vertex* vertices, int num_vertices, int was_off, int start_off, stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__fill_active_edges
void stbtt__fill_active_edges(ubyte* scanline, int len, stbtt__active_edge* e, int max_weight)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__find_table
stbtt_uint32 stbtt__find_table(const(stbtt_uint8)* data, stbtt_uint32 fontstart, char* tag)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__isfont
int stbtt__isfont(stbtt_uint8* font)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__matches
int stbtt__matches(stbtt_uint8* fc, stbtt_uint32 offset, stbtt_uint8* name, stbtt_int32 flags)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__matchpair
int stbtt__matchpair(stbtt_uint8* fc, stbtt_uint32 nm, stbtt_uint8* name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__rasterize
void stbtt__rasterize(stbtt__bitmap* result, stbtt__point* pts, int* wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__rasterize_sorted_edges
void stbtt__rasterize_sorted_edges(stbtt__bitmap* result, stbtt__edge* e, int n, int vsubsample, int off_x, int off_y, void* userdata)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt__tesselate_curve
int stbtt__tesselate_curve(stbtt__point* points, int* num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
stbtt_setvertex
void stbtt_setvertex(stbtt_vertex* v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TtfFont
struct TtfFont
stbtt__active_edge
struct stbtt__active_edge
Undocumented in source.
stbtt__bitmap
struct stbtt__bitmap
Undocumented in source.
stbtt__edge
struct stbtt__edge
Undocumented in source.
stbtt__point
struct stbtt__point
Undocumented in source.
stbtt_aligned_quad
struct stbtt_aligned_quad
Undocumented in source.
stbtt_bakedchar
struct stbtt_bakedchar

///////////////////////////////////////////////////////////////////////////

stbtt_fontinfo
struct stbtt_fontinfo

///////////////////////////////////////////////////////////////////////////

stbtt_vertex
struct stbtt_vertex
Undocumented in source.

Detailed Description

Started as a copy of stb_truetype by Sean Barrett. It will be changing more later.

Meta