stbtt_GetCodepointBitmap

Allocates a large-enough single-channel 8bpp bitmap and renders the specified character/glyph at the specified scale into it, with antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). *width & *height are filled out with the width & height of the bitmap, which is stored left-to-right, top-to-bottom.

xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap

nothrow @nogc
ubyte*
stbtt_GetCodepointBitmap
(,
float scale_x
,
float scale_y
,,
int* width
,
int* height
,
int* xoff
,
int* yoff
)

Meta