| 123456789101112131415161718192021222324252627282930313233343536373839 |
- return {
- summary = 'Get the height of a glyph, or the font.',
- description = 'Returns the height of a glyph, or the maximum height of any glyph.',
- arguments = {
- character = {
- type = 'string',
- description = 'A character.'
- },
- codepoint = {
- type = 'number',
- description = 'A codepoint.'
- }
- },
- returns = {
- height = {
- type = 'number',
- description = 'The height, in pixels.'
- }
- },
- variants = {
- {
- arguments = { 'character' },
- returns = { 'height' }
- },
- {
- arguments = { 'codepoint' },
- returns = { 'height' }
- },
- {
- arguments = {},
- returns = { 'height' }
- }
- },
- related = {
- 'Rasterizer:getWidth',
- 'Rasterizer:getDimensions',
- 'Rasterizer:getBoundingBox'
- }
- }
|