GlyType 0.0.7
a ultra lightweight font renderer and font
|
GlyType Renderer. More...
Functions | |
void | gly_type_render (unsigned char x, unsigned char y, unsigned char s, const char *t, const void *const f) |
a ultra lightweight font renderer and font
The 8 bit/segment it is a special line, its size varies, from bottom to top it stops when it hits the first fixed segment G
or A
There are special characters, which would be x , v and z to differentiate them from all other characters, they have their own internal rendering function, are flagged as segment H
without segment G
or A
void gly_type_render | ( | unsigned char | x, |
unsigned char | y, | ||
unsigned char | s, | ||
const char * | t, | ||
const void *const | f ) |
[in] | x | in pixels |
[in] | y | in pixels |
[in] | size | in pixels |
[in] | text | with null char terminator |
[in] | fptr | clojure to drawn line with interface: function(x1, y1, x2, y2) |
length(text) * (size+1)
min(count(text, 0x0A), 1) * (size+1)