fontStyles

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

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

fontStyles (fontName, fontSize)

# Params

- fontName : The name of a font that is installed on the system. - fontSize : A point size that exists for the font.

# Examples

fontStyles ("Helvetica", 9)

fontStyles (thisFont, 0)

# Description

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

If you specify a fontSize of zero, the styles return 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

# Tags

ui,

# See

- **property:** textStyle, printTextStyle - **function:** fontSizes, fontNames - **glossary:** font, return - **control structure:** function