This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathfontNames.lcdoc
More file actions
87 lines (62 loc) · 2.79 KB
/
fontNames.lcdoc
File metadata and controls
87 lines (62 loc) · 2.79 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Name: fontNames
Type: function
Syntax: the fontNames
Syntax: fontNames ([printer])
Summary:
<return|Returns> a list of the currently installed <font|fonts>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
the fontNames
Example:
fontNames ()
Example:
fontNames (printer)
Example:
if "Monaco" is among the lines of the fontNames \
then set the textFont of me to "Monaco"
Returns:
The <fontNames> <function> <return|returns> a list of <font> names, one
per <line>.
Description:
Use the <fontNames> <function> to find out whether a particular <font>
is available before using it, or to display a list of <font|fonts>.
The fontNames (printer) form returns the names of fonts available on the
currently selected printer. Use this form when printing on a printer
with its own resident fonts (such as a Postscript printer) to ensure
that the fonts you're using are available on the printer.
If you do not specify 'printer', the fonts installed on the system and
available to the application for screen display are listed.
In Android, iOS 3.2 and later it is possible to bundle custom fonts with
an application, that only that application can use. To take advantage of
this feature, you need to reference the files of any fonts you wish to
include in the 'Copy Files' pane. These files can either be a direct
file references, or contained in one of the folder references. The
'Standalone Builder' treats any files that end with the extension '.ttf'
or '.ttc' as font files to use in this way. Any fonts included in this
way appear in the <fontNames> and can be used in the same way as any
other font on the system.
The list of font names includes a set of special-purpose names which
automatically select the matching font for the platform. You can use
these to request "the font used for buttons" without having to hard-code
platform-specific font names. These fonts are:
- `(Text)` - the font used for fields and other controls with editable
content
- `(Menu)` - the font used for menu items
- `(Message)` - the font used for buttons, labels and other
communication from the app
- `(Styled Text)` - the font used by default for rich text
- `(System)` - the font for controls not covered by another category
- `(Tooltip)` - the font used for displaying tooltips
- `(Default)` - selects one of the UI fonts automatically based on the
control type
>*Important:* Make sure you have an appropriate license for the fonts
> you choose to bundle with your iOS app like you would any other media
> such as sounds, images and videos.
The fontNames (printer) form was introduced in version 2.0.
Changes:
The fontNames () form was introduced to iOS in version 4.5.3.
References: function (control structure),
fontStyles (function), font (glossary), return (glossary), line (keyword)
Tags: ui