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
52 lines (34 loc) · 1.06 KB
/
fontStyles.lcdoc
File metadata and controls
52 lines (34 loc) · 1.06 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
41
42
43
44
45
46
47
48
49
50
51
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, 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: function (control structure), fontSizes (function),
fontNames (function), font (glossary), return (glossary),
textStyle (property), printTextStyle (property)
Tags: ui