diff options
author | Dmitry Batrak <Dmitry.Batrak@jetbrains.com> | 2016-07-07 14:57:17 +0300 |
---|---|---|
committer | Dmitry Batrak <Dmitry.Batrak@jetbrains.com> | 2016-07-07 14:57:48 +0300 |
commit | d170a25c8e53400bc69a56095e8b22e07e979320 (patch) | |
tree | 864277afad244af61e88a3b8a0e61559f0d26a15 | |
parent | f2e3f56885b9f2576bdc8a4232781b1167c9c21b (diff) | |
download | jdk8u_jdk-d170a25c8e53400bc69a56095e8b22e07e979320.tar.gz |
IDEA-150876 OpenJDK fonts for toolwindow names look worse than Oracles's
-rw-r--r-- | src/share/native/sun/font/freetypeScaler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/native/sun/font/freetypeScaler.c b/src/share/native/sun/font/freetypeScaler.c index 2788dd2b8f..5c7a20b0b0 100644 --- a/src/share/native/sun/font/freetypeScaler.c +++ b/src/share/native/sun/font/freetypeScaler.c @@ -56,7 +56,7 @@ #define FTFixedToFloat(x) ((x) / (float)(ftFixed1)) #define FT26Dot6ToFloat(x) ((x) / ((float) (1<<6))) #define FT26Dot6ToDouble(x) ((x) / ((double) (1<<6))) -#define ROUND(x) ((int) (x+0.5)) +#define ROUND(x) ((int) ((x<0) ? (x-0.5) : (x+0.5))) #define DEFAULT_DPI 72 #define ADJUST_FONT_SIZE(X, DPI) (((X)*DEFAULT_DPI + ((DPI)>>1))/(DPI)) |