Skip to content
Myr

document stbtt_Rasterize

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent 83d36fd · Browse files · 1 file+12 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−2 removed

  • other:+12 added−2 removed

1 file+12 added−2 removed

modified:stb_truetype.h+12 added-2 removed
1// stb_truetype.h - v1.07 - public domain1// stb_truetype.h - v1.08 - public domain2// authored from 2009-2015 by Sean Barrett / RAD Game Tools3//4// This library processes TrueType files:5// parse files
40 unmodified lines
46// Ryan Gordon47//48// VERSION HISTORY49//50// 1.08 (2015-09-13) document stbtt_Rasterize()51// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints;52// variant PackFontRanges to pack and render in separate phases;53// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?);54// fixed an assert() bug in the new rasterizer
748 unmodified lines
803 int w,h,stride;804 unsigned char *pixels;805} stbtt__bitmap;806806STBTT_DEF 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);807// rasterize a shape with quadratic beziers into a bitmap808STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into809 float flatness_in_pixels, // allowable error of curve in pixels810 stbtt_vertex *vertices, // array of vertices defining shape811 int num_verts, // number of vertices in above array812 float scale_x, float scale_y, // scale applied to input vertices813 float shift_x, float shift_y, // translation applied to input vertices814 int x_off, int y_off, // another translation applied to input815 int invert, // if non-zero, vertically flip shape816 void *userdata); // context for to STBTT_MALLOC817818//////////////////////////////////////////////////////////////////////////////819//820// Finding the right font...
2411 unmodified lines