forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfontStyles.lcdoc
More file actions
40 lines (25 loc) · 1.04 KB
/
Copy pathfontStyles.lcdoc
File metadata and controls
40 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Name: fontStyles
Type: function
Syntax: fontStyles (<fontName>, <fontSize>)
Summary: <return|Returns> a list of styles available for a <font> and size.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
fontStyles ("Helvetica", 9)
Example:
fontStyles (thisFont, 0)
Parameters:
fontName: The name of a font that is installed on the system.
fontSize: A point size that exists for the font.
Returns: The <fontStyles> <function> <return|returns> a list of available styles, one per line.
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|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
References: textStyle (property), printTextStyle (property), fontSizes (function), fontNames (function), font (glossary), return (glossary), function (control_st)
Tags: ui