Commit b73ce282 authored by Tiziano Munaro's avatar Tiziano Munaro

Improve readability of texts in spider charts

Issue-Ref: 3452
Issue-Url: https://af3-developer.fortiss.org/issues/3452Signed-off-by: Tiziano Munaro's avatarTiziano Munaro <munaro@fortiss.org>
parent f40c6303
ColorStyleBase.java ca05f515764870da3d814f0ac38b32186f582132 YELLOW ColorStyleBase.java ca05f515764870da3d814f0ac38b32186f582132 YELLOW
FillStyle.java 198ea42987a2f02a07ed7d855b34a09e1deba28e YELLOW FillStyle.java 198ea42987a2f02a07ed7d855b34a09e1deba28e YELLOW
FontStyle.java ab25b918bfee12eccbaad941b00adbc0bba29228 YELLOW FontStyle.java 4edae307ef7e7b97d553466ac7f401172bc4420a YELLOW
LineStyle.java e2d64254bdb62d9e53cee33577291ec67c3ce047 YELLOW LineStyle.java e2d64254bdb62d9e53cee33577291ec67c3ce047 YELLOW
StrokeStyle.java 703b573d91c469f064e146b683e744eda6f3d8ed YELLOW StrokeStyle.java 703b573d91c469f064e146b683e744eda6f3d8ed YELLOW
...@@ -12,6 +12,7 @@ package org.fortiss.tooling.common.ui.javafx.style; ...@@ -12,6 +12,7 @@ package org.fortiss.tooling.common.ui.javafx.style;
import static javafx.scene.paint.Color.BLACK; import static javafx.scene.paint.Color.BLACK;
import static javafx.scene.text.Font.font; import static javafx.scene.text.Font.font;
import static javafx.scene.text.FontSmoothingType.LCD;
import javafx.geometry.Bounds; import javafx.geometry.Bounds;
import javafx.geometry.Dimension2D; import javafx.geometry.Dimension2D;
...@@ -51,6 +52,7 @@ public final class FontStyle extends ColorStyleBase { ...@@ -51,6 +52,7 @@ public final class FontStyle extends ColorStyleBase {
gc.setStroke(getColor()); gc.setStroke(getColor());
gc.setFill(getColor()); gc.setFill(getColor());
gc.setFont(font); gc.setFont(font);
gc.setFontSmoothingType(LCD);
} }
/** Draws the given text at the given location. */ /** Draws the given text at the given location. */
...@@ -58,7 +60,6 @@ public final class FontStyle extends ColorStyleBase { ...@@ -58,7 +60,6 @@ public final class FontStyle extends ColorStyleBase {
gc.save(); gc.save();
applyStyle(gc); applyStyle(gc);
gc.fillText(text, x, y); gc.fillText(text, x, y);
gc.strokeText(text, x, y);
gc.restore(); gc.restore();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment