Commit 26d42cd7 authored by Alexander Diewald's avatar Alexander Diewald

Merge branch '3452' of https://git.fortiss.org/af3/kernel.git into 3452

Conflicts:
	org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/style/.ratings
Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parents 07a12ffb b73ce282
ColorStyleBase.java acc012483c59b69c5868d0b9e81bfb4aed3364fb YELLOW ColorStyleBase.java acc012483c59b69c5868d0b9e81bfb4aed3364fb YELLOW
FillStyle.java fa1094afff36fefdee7c651c7bb9da959a5e29a2 YELLOW FillStyle.java fa1094afff36fefdee7c651c7bb9da959a5e29a2 YELLOW
FontStyle.java 8c11fadf66744203318c24b7aaa230030a4b8d3a YELLOW FontStyle.java dbd259c98503150885b93697d88ba86b51b5eb99 YELLOW
LineStyle.java acf3686cae785673a1be2e34ee2eb3ef3ac2e0b6 YELLOW LineStyle.java acf3686cae785673a1be2e34ee2eb3ef3ac2e0b6 YELLOW
StrokeStyle.java aacf3f7de43849eac12bc0ecf5b673f2f522a647 YELLOW StrokeStyle.java aacf3f7de43849eac12bc0ecf5b673f2f522a647 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;
...@@ -53,6 +54,7 @@ public final class FontStyle extends ColorStyleBase { ...@@ -53,6 +54,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. */
...@@ -60,7 +62,6 @@ public final class FontStyle extends ColorStyleBase { ...@@ -60,7 +62,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