fontStyles

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
fontStyles (<fontName>, <fontSize>)
Summary

Returns a list of styles available for a font and size.

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

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

fontSize

A point size that exists for the font.

Example
fontStyles ("Helvetica", 9)
fontStyles (thisFont, 0)
Values
NameTypeDescription
return

The fontStyles function returns a list of available styles, one per line.

RelatedProperty: textStyle, printTextStyle
Function: fontSizes, fontNames
Glossary: font, return
Control Structure: function
Description

Use the fontStyles function to determine which font styles can be displayed or printed.

If you specify a fontSize of zero, the styles returned are the ones that are scalable for the specified font. The font styles are returned in a return delimited list, such as the following one:

plain
bold
italic
bold-italic

Tagsui