-
Notifications
You must be signed in to change notification settings - Fork 73
Ttf FontGlyphMetrics
Tangent 128 edited this page Mar 28, 2015
·
3 revisions
Get the size of a unicode character. The table returned has the following fields:
- minx, minimum x offset
- maxx, maximum x offset
- miny, minimum y offset
- maxy, maximum y offset
- advance, advance offset
size, err = function Font:glyphMetrics(ch)
- ch, the unicode character
- size, the size table or nil on failure
- err, the error message