Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/classes/sun/font/NativeFont.java
32287 views
1
/*
2
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package sun.font;
27
28
import java.awt.FontFormatException;
29
import java.awt.font.FontRenderContext;
30
import java.awt.geom.GeneralPath;
31
import java.awt.geom.Point2D;
32
import java.awt.geom.Rectangle2D;
33
34
/*
35
* This class should never be invoked on the windows implementation
36
* So the constructor throws a FontFormatException, which is caught
37
* and the font is ignored.
38
*/
39
40
public class NativeFont extends PhysicalFont {
41
42
/**
43
* Verifies native font is accessible.
44
* @throws FontFormatException - if the font can't be located.
45
*/
46
public NativeFont(String platName, boolean isBitmapDelegate)
47
throws FontFormatException {
48
49
throw new FontFormatException("NativeFont not used on Windows");
50
}
51
52
static boolean hasExternalBitmaps(String platName) {
53
return false;
54
}
55
56
public CharToGlyphMapper getMapper() {
57
return null;
58
}
59
60
PhysicalFont getDelegateFont() {
61
return null;
62
}
63
64
FontStrike createStrike(FontStrikeDesc desc) {
65
return null;
66
}
67
68
public Rectangle2D getMaxCharBounds(FontRenderContext frc) {
69
return null;
70
}
71
72
StrikeMetrics getFontMetrics(long pScalerContext) {
73
return null;
74
}
75
76
public GeneralPath getGlyphOutline(long pScalerContext,
77
int glyphCode,
78
float x, float y) {
79
return null;
80
}
81
82
public GeneralPath getGlyphVectorOutline(long pScalerContext,
83
int[] glyphs, int numGlyphs,
84
float x, float y) {
85
return null;
86
}
87
88
89
long getGlyphImage(long pScalerContext, int glyphCode) {
90
return 0L;
91
}
92
93
94
void getGlyphMetrics(long pScalerContext, int glyphCode,
95
Point2D.Float metrics) {
96
}
97
98
99
float getGlyphAdvance(long pScalerContext, int glyphCode) {
100
return 0f;
101
}
102
103
Rectangle2D.Float getGlyphOutlineBounds(long pScalerContext,
104
int glyphCode) {
105
return new Rectangle2D.Float(0f, 0f, 0f, 0f);
106
}
107
}
108
109