forked from pdfcpu/pdfcpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Helvetica.go
196 lines (190 loc) · 3.12 KB
/
Helvetica.go
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/*
Copyright 2018 The pdfcpu Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Package standard provides font metrics for Adobe standard fonts.
package standard
// StartFontMetrics 4.1
// Comment Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All Rights Reserved.
// Comment Creation Date: Thu May 1 12:38:23 1997
// Comment UniqueID 43054
// Comment VMusage 37069 48094
// FontName Helvetica
// FullName Helvetica
// FamilyName Helvetica
// Weight Medium
// ItalicAngle 0
// IsFixedPitch false
// CharacterSet ExtendedRoman
// FontBBox -166 -225 1000 931
// UnderlinePosition -100
// UnderlineThickness 50
// Version 002.000
// Notice Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All Rights Reserved.Helvetica is a trademark of Linotype-Hell AG and/or its subsidiaries.
// EncodingScheme AdobeStandardEncoding
// CapHeight 718
// XHeight 523
// Ascender 718
// Descender -207
// StdHW 76
// StdVW 88
// FontWidthHelvetica represents the char widths for this font.
var FontWidthHelvetica = map[int]int{
32: 278,
33: 278,
34: 355,
35: 556,
36: 556,
37: 889,
38: 667,
39: 222,
40: 333,
41: 333,
42: 389,
43: 584,
44: 278,
45: 333,
46: 278,
47: 278,
48: 556,
49: 556,
50: 556,
51: 556,
52: 556,
53: 556,
54: 556,
55: 556,
56: 556,
57: 556,
58: 278,
59: 278,
60: 584,
61: 584,
62: 584,
63: 556,
64: 1015,
65: 667,
66: 667,
67: 722,
68: 722,
69: 667,
70: 611,
71: 778,
72: 722,
73: 278,
74: 500,
75: 667,
76: 556,
77: 833,
78: 722,
79: 778,
80: 667,
81: 778,
82: 722,
83: 667,
84: 611,
85: 722,
86: 667,
87: 944,
88: 667,
89: 667,
90: 611,
91: 278,
92: 278,
93: 278,
94: 469,
95: 556,
96: 222,
97: 556,
98: 556,
99: 500,
100: 556,
101: 556,
102: 278,
103: 556,
104: 556,
105: 222,
106: 222,
107: 500,
108: 222,
109: 833,
110: 556,
111: 556,
112: 556,
113: 556,
114: 333,
115: 500,
116: 278,
117: 556,
118: 500,
119: 722,
120: 500,
121: 500,
122: 500,
123: 334,
124: 260,
125: 334,
126: 584,
161: 333,
162: 556,
163: 556,
164: 167,
165: 556,
166: 556,
167: 556,
168: 556,
169: 191,
170: 333,
171: 556,
172: 333,
173: 333,
174: 500,
175: 500,
177: 556,
178: 556,
179: 556,
180: 278,
182: 537,
183: 350,
184: 222,
185: 333,
186: 333,
187: 556,
188: 1000,
189: 1000,
191: 611,
193: 333,
194: 333,
195: 333,
196: 333,
197: 333,
198: 333,
199: 333,
200: 333,
202: 333,
203: 333,
205: 333,
206: 333,
207: 333,
208: 1000,
225: 1000,
227: 370,
232: 556,
233: 778,
234: 1000,
235: 365,
241: 889,
245: 278,
248: 222,
249: 611,
250: 944,
251: 611,
}