Skip to content

Ttf FontGlyphMetrics

Tangent 128 edited this page Mar 28, 2015 · 3 revisions

Font:glyphMetrics

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

Method

SYNOPSIS

size, err = function Font:glyphMetrics(ch)

ARGUMENTS

  • ch, the unicode character

RETURNS

  • size, the size table or nil on failure
  • err, the error message
Clone this wiki locally