Skip to content

Commit 0456745

Browse files
committed
IDEA-57233 Editor font antialising/appearance problems on Linux
Used desktop DPI instead of hard-coded 72 Compensated increased glyph bitmap size by adjusting font size Added LCD filter for sub-pixel rendering Use fontconfig library to provide right rendering options for fonts Corrected sizes passed to fontconfig library and hinting disabling policy Added logging and versioned fontconfig lib loading Resolved font rendering problem in lenses
1 parent 9b4b3fb commit 0456745

File tree

3 files changed

+1386
-50
lines changed

3 files changed

+1386
-50
lines changed

src/java.desktop/share/classes/sun/font/FreetypeFontScaler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
package sun.font;
2727

28+
import java.awt.*;
2829
import java.awt.geom.GeneralPath;
2930
import java.awt.geom.Point2D;
3031
import java.awt.geom.Rectangle2D;
@@ -47,10 +48,10 @@ class FreetypeFontScaler extends FontScaler {
4748
/* At the moment fontmanager library depends on freetype library
4849
and therefore no need to load it explicitly here */
4950
FontManagerNativeLibrary.load();
50-
initIDs(FreetypeFontScaler.class);
51+
initIDs(FreetypeFontScaler.class, Toolkit.class, PhysicalFont.class);
5152
}
5253

53-
private static native void initIDs(Class<?> FFS);
54+
private static native void initIDs(Class<?> FFS, Class<?> toolkitClass, Class<?> pfClass);
5455

5556
private void invalidateScaler() throws FontScalerException {
5657
nativeScaler = 0;

0 commit comments

Comments
 (0)