fontSizes

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the fontSizes of <fontName>
fontSizes(<fontName>)
Summary

Returns a list of the font sizes available for a specified font.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
fontName

The name of a font that is installed on the system.

Example
the fontSizes of "Arial"
Values
NameTypeDescription
return

The fontSizes function returns a list of numbers that represent point sizes, one per line.

RelatedKeyword: line
Function: fontStyles
Glossary: font, return
Control Structure: function
Description

Use the fontSizes function to determine which font sizes can be displayed or printed without creating "jaggies".

If zero appears in the list returned by the fontSizes function, the font is scalable, meaning that it can be displayed at any size supported by the operating system.

Tagsui