Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6259af9

Browse files
committed
An interface to the font manager
1 parent c8a9949 commit 6259af9

5 files changed

Lines changed: 637 additions & 0 deletions

File tree

Mac/Lib/toolbox/Fonts.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Generated from 'flap:CodeWarrior:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Fonts.h'
2+
3+
systemFont = 0
4+
applFont = 1
5+
newYork = 2
6+
geneva = 3
7+
monaco = 4
8+
venice = 5
9+
london = 6
10+
athens = 7
11+
sanFran = 8
12+
toronto = 9
13+
cairo = 11
14+
losAngeles = 12
15+
times = 20
16+
helvetica = 21
17+
courier = 22
18+
symbol = 23
19+
mobile = 24
20+
commandMark = 17
21+
checkMark = 18
22+
diamondMark = 19
23+
appleMark = 20
24+
propFont = 36864
25+
prpFntH = 36865
26+
prpFntW = 36866
27+
prpFntHW = 36867
28+
fixedFont = 45056
29+
fxdFntH = 45057
30+
fxdFntW = 45058
31+
fxdFntHW = 45059
32+
fontWid = 44208

Mac/Modules/fm/Fmgen.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Generated from 'flap:CodeWarrior:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Fonts.h'
2+
3+
f = Function(void, 'InitFonts',
4+
)
5+
functions.append(f)
6+
7+
f = Function(void, 'GetFontName',
8+
(short, 'familyID', InMode),
9+
(Str255, 'name', OutMode),
10+
)
11+
functions.append(f)
12+
13+
f = Function(void, 'GetFNum',
14+
(ConstStr255Param, 'name', InMode),
15+
(short, 'familyID', OutMode),
16+
)
17+
functions.append(f)
18+
19+
f = Function(Boolean, 'RealFont',
20+
(short, 'fontNum', InMode),
21+
(short, 'size', InMode),
22+
)
23+
functions.append(f)
24+
25+
f = Function(void, 'SetFontLock',
26+
(Boolean, 'lockFlag', InMode),
27+
)
28+
functions.append(f)
29+
30+
f = Function(void, 'SetFScaleDisable',
31+
(Boolean, 'fscaleDisable', InMode),
32+
)
33+
functions.append(f)
34+
35+
f = Function(void, 'FontMetrics',
36+
(FMetricRecPtr, 'theMetrics', OutMode),
37+
)
38+
functions.append(f)
39+
40+
f = Function(void, 'SetFractEnable',
41+
(Boolean, 'fractEnable', InMode),
42+
)
43+
functions.append(f)
44+
45+
f = Function(short, 'GetDefFontSize',
46+
)
47+
functions.append(f)
48+
49+
f = Function(Boolean, 'IsOutline',
50+
(Point, 'numer', InMode),
51+
(Point, 'denom', InMode),
52+
)
53+
functions.append(f)
54+
55+
f = Function(void, 'SetOutlinePreferred',
56+
(Boolean, 'outlinePreferred', InMode),
57+
)
58+
functions.append(f)
59+
60+
f = Function(Boolean, 'GetOutlinePreferred',
61+
)
62+
functions.append(f)
63+
64+
f = Function(void, 'SetPreserveGlyph',
65+
(Boolean, 'preserveGlyph', InMode),
66+
)
67+
functions.append(f)
68+
69+
f = Function(Boolean, 'GetPreserveGlyph',
70+
)
71+
functions.append(f)
72+
73+
f = Function(OSErr, 'FlushFonts',
74+
)
75+
functions.append(f)
76+
77+
f = Function(short, 'GetSysFont',
78+
)
79+
functions.append(f)
80+
81+
f = Function(short, 'GetAppFont',
82+
)
83+
functions.append(f)
84+

0 commit comments

Comments
 (0)