|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -109,19 +109,10 @@ public class FileFontStrike extends PhysicalStrike {
|
109 | 109 | NativeStrike[] nativeStrikes;
|
110 | 110 |
|
111 | 111 | static final int MAX_IMAGE_SIZE = OutlineTextRenderer.THRESHHOLD;
|
| 112 | + |
112 | 113 | /* Used only for communication to native layer */
|
113 | 114 | private int intPtSize;
|
114 | 115 |
|
115 |
| - /* Perform global initialisation needed for Windows native rasterizer */ |
116 |
| - private static native boolean initNative(); |
117 |
| - private static boolean isXPorLater = false; |
118 |
| - static { |
119 |
| - if (FontUtilities.isWindows && !FontUtilities.useJDKScaler && |
120 |
| - !GraphicsEnvironment.isHeadless()) { |
121 |
| - isXPorLater = initNative(); |
122 |
| - } |
123 |
| - } |
124 |
| - |
125 | 116 | FileFontStrike(FileFont fileFont, FontStrikeDesc desc) {
|
126 | 117 | super(fileFont, desc);
|
127 | 118 | this.fileFont = fileFont;
|
@@ -212,7 +203,7 @@ public class FileFontStrike extends PhysicalStrike {
|
212 | 203 | * except that the advance returned by GDI is always overwritten by
|
213 | 204 | * the JDK rasteriser supplied one (see getGlyphImageFromWindows()).
|
214 | 205 | */
|
215 |
| - if (FontUtilities.isWindows && isXPorLater && |
| 206 | + if (FontUtilities.isWindows && |
216 | 207 | !FontUtilities.useJDKScaler &&
|
217 | 208 | !GraphicsEnvironment.isHeadless() &&
|
218 | 209 | !fileFont.useJavaRasterizer &&
|
|
0 commit comments