WrapperFontData.java
10.6 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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.agl.util.ULocale
*/
package com.adobe.fontengine.font;
import com.adobe.agl.util.ULocale;
import com.adobe.fontengine.font.CatalogDescription;
import com.adobe.fontengine.font.CoolTypeScript;
import com.adobe.fontengine.font.Font;
import com.adobe.fontengine.font.FontData;
import com.adobe.fontengine.font.InvalidFontException;
import com.adobe.fontengine.font.InvalidGlyphException;
import com.adobe.fontengine.font.LineMetrics;
import com.adobe.fontengine.font.OutlineConsumer;
import com.adobe.fontengine.font.PDFFontDescription;
import com.adobe.fontengine.font.Permission;
import com.adobe.fontengine.font.Rect;
import com.adobe.fontengine.font.SWFFont4Description;
import com.adobe.fontengine.font.SWFFontDescription;
import com.adobe.fontengine.font.Scaler;
import com.adobe.fontengine.font.ScanConverter;
import com.adobe.fontengine.font.Subset;
import com.adobe.fontengine.font.UnderlineMetrics;
import com.adobe.fontengine.font.UnsupportedFontException;
import com.adobe.fontengine.font.XDCFontDescription;
import com.adobe.fontengine.fontmanagement.CacheSupportInfo;
import com.adobe.fontengine.fontmanagement.Platform;
import com.adobe.fontengine.fontmanagement.fxg.FXGFontDescription;
import com.adobe.fontengine.fontmanagement.platform.PlatformFontDescription;
import com.adobe.fontengine.fontmanagement.postscript.PostscriptFontDescription;
import com.adobe.fontengine.inlineformatting.css20.CSS20Attribute;
import com.adobe.fontengine.inlineformatting.css20.CSS20FontDescription;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Set;
public class WrapperFontData
extends FontData {
protected FontData fontData;
public WrapperFontData(FontData fontData) {
super(fontData.getContainerFingerprint());
this.fontData = fontData;
}
public FontData getFontData() throws InvalidFontException, UnsupportedFontException {
return this.fontData;
}
public Subset createSubset() throws InvalidFontException, UnsupportedFontException {
return this.fontData.createSubset();
}
public boolean equals(Object obj) {
return this.fontData.equals(obj);
}
public byte[] getContainerFingerprint() {
return this.fontData.getContainerFingerprint();
}
public double getCoolTypeCapHeight() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeCapHeight();
}
public Rect getCoolTypeFontBBox() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCoolTypeFontBBox();
}
public Rect getCoolTypeGlyphBBox(int glyphID) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeGlyphBBox(glyphID);
}
public int getCoolTypeGlyphForChar(int unicodeScalarValue) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCoolTypeGlyphForChar(unicodeScalarValue);
}
public Rect getCoolTypeIcfBox() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeIcfBox();
}
public Rect getCoolTypeIdeoEmBox() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeIdeoEmBox();
}
public LineMetrics getCoolTypeLineMetrics() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeLineMetrics();
}
public boolean getCoolTypeProportionalRomanFromFontProperties() throws InvalidFontException {
return this.fontData.getCoolTypeProportionalRomanFromFontProperties();
}
public CoolTypeScript getCoolTypeScript() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeScript();
}
public UnderlineMetrics getCoolTypeUnderlineMetrics() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeUnderlineMetrics();
}
public double getCoolTypeUnitsPerEm() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeUnitsPerEm();
}
public double getCoolTypeXHeight() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCoolTypeXHeight();
}
public CSS20FontDescription[] getCSS20FontDescription() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCSS20FontDescription();
}
public Permission getEmbeddingPermission(boolean wasEmbedded) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getEmbeddingPermission(wasEmbedded);
}
public Rect getFontBBox() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getFontBBox();
}
public FXGFontDescription[] getFXGFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getFXGFontDescription(platform, locale);
}
public Rect getGlyphBBox(int gid) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getGlyphBBox(gid);
}
public int getGlyphForChar(int unicodeScalarValue) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getGlyphForChar(unicodeScalarValue);
}
public void getGlyphOutline(int gid, OutlineConsumer consumer) throws InvalidFontException, UnsupportedFontException {
this.fontData.getGlyphOutline(gid, consumer);
}
public double getHorizontalAdvance(int gid) throws InvalidGlyphException, UnsupportedFontException, InvalidFontException {
return this.fontData.getHorizontalAdvance(gid);
}
public LineMetrics getLineMetrics() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getLineMetrics();
}
public int getNumGlyphs() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getNumGlyphs();
}
public PDFFontDescription getPDFFontDescription(Font font) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getPDFFontDescription(font);
}
public PlatformFontDescription[] getPlatformFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getPlatformFontDescription(platform, locale);
}
public double[] getPointSizeRange() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getPointSizeRange();
}
public PostscriptFontDescription[] getPostscriptFontDescription() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getPostscriptFontDescription();
}
public CSS20FontDescription getPreferredCSS20FontDescription() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getPreferredCSS20FontDescription();
}
public Scaler getScaler() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getScaler();
}
public Scaler getScaler(ScanConverter c) throws InvalidFontException, UnsupportedFontException {
return this.fontData.getScaler(c);
}
public CatalogDescription getSelectionDescription() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getSelectionDescription();
}
public SWFFont4Description getSWFFont4Description(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getSWFFont4Description(wasEmbedded);
}
public SWFFontDescription getSWFFontDescription(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getSWFFontDescription(wasEmbedded);
}
public double getUnitsPerEmX() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getUnitsPerEmX();
}
public double getUnitsPerEmY() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getUnitsPerEmY();
}
public XDCFontDescription getXDCFontDescription(Font font) throws UnsupportedFontException, InvalidFontException {
return this.fontData.getXDCFontDescription(font);
}
public boolean hasCoolTypeProportionalRoman() throws InvalidFontException, UnsupportedFontException {
return this.fontData.hasCoolTypeProportionalRoman();
}
public int hashCode() {
return this.fontData.hashCode();
}
public boolean isSymbolic() throws UnsupportedFontException, InvalidFontException {
return this.fontData.isSymbolic();
}
public void subsetAndStream(Subset subset, OutputStream out, boolean preserveROS) throws InvalidFontException, UnsupportedFontException, IOException {
this.fontData.subsetAndStream(subset, out, preserveROS);
}
public String toString() {
return this.fontData.toString();
}
protected Rect getCoolTypeRawFontBBox() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCoolTypeFontBBox();
}
protected Set getCSSFamilyNames() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCSSFamilyNames();
}
protected CSS20Attribute.CSSStretchValue getCSSStretchValue() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCSSStretchValue();
}
protected int getCSSWeight() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getCSSWeight();
}
protected String getPreferredCSSFamilyName() throws InvalidFontException, UnsupportedFontException {
return this.fontData.getPreferredCSSFamilyName();
}
protected boolean isCSSStyleItalic() throws InvalidFontException, UnsupportedFontException {
return this.fontData.isCSSStyleItalic();
}
protected boolean isCSSStyleNormal() throws InvalidFontException, UnsupportedFontException {
return this.fontData.isCSSStyleNormal();
}
protected boolean isCSSStyleOblique() throws InvalidFontException, UnsupportedFontException {
return this.fontData.isCSSStyleOblique();
}
protected boolean isCSSVariantNormal() throws InvalidFontException, UnsupportedFontException {
return this.fontData.isCSSVariantNormal();
}
protected boolean isCSSVariantSmallCaps() throws InvalidFontException, UnsupportedFontException {
return this.fontData.isCSSVariantSmallCaps();
}
public CacheSupportInfo getCacheSupportInfo() throws UnsupportedFontException, InvalidFontException {
return this.fontData.getCacheSupportInfo();
}
}