< prev index next >
src/java.desktop/share/classes/sun/font/FileFontStrike.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 220,247 ****
matrix[0] == matrix[3] &&
matrix[0] >= 3.0 && matrix[0] <= 100.0) &&
!((TrueTypeFont)fileFont).useEmbeddedBitmapsForSize(intPtSize)) {
useNatives = true;
}
- else if (fileFont.checkUseNatives() && desc.aaHint==0 && !algoStyle) {
- /* Check its a simple scale of a pt size in the range
- * where native bitmaps typically exist (6-36 pts) */
- if (matrix[1] == 0.0 && matrix[2] == 0.0 &&
- matrix[0] >= 6.0 && matrix[0] <= 36.0 &&
- matrix[0] == matrix[3]) {
- useNatives = true;
- int numNatives = fileFont.nativeFonts.length;
- nativeStrikes = new NativeStrike[numNatives];
- /* Maybe initialise these strikes lazily?. But we
- * know we need at least one
- */
- for (int i=0; i<numNatives; i++) {
- nativeStrikes[i] =
- new NativeStrike(fileFont.nativeFonts[i], desc, false);
- }
- }
- }
if (FontUtilities.isLogging() && FontUtilities.isWindows) {
FontUtilities.getLogger().info
("Strike for " + fileFont + " at size = " + intPtSize +
" use natives = " + useNatives +
" useJavaRasteriser = " + fileFont.useJavaRasterizer +
--- 220,229 ----
< prev index next >