< prev index next >

modules/graphics/src/main/java/javafx/scene/text/Text.java

Print this page

        

*** 40,49 **** --- 40,50 ---- import com.sun.javafx.scene.text.TextLine; import com.sun.javafx.scene.text.TextSpan; import com.sun.javafx.sg.prism.NGNode; import com.sun.javafx.sg.prism.NGShape; import com.sun.javafx.sg.prism.NGText; + import com.sun.javafx.text.FontHelper; import com.sun.javafx.tk.Toolkit; import javafx.beans.DefaultProperty; import javafx.beans.InvalidationListener; import javafx.beans.binding.DoubleBinding; import javafx.beans.binding.ObjectBinding;
*** 488,498 **** * @return the font */ private Object getFontInternal() { Font font = getFont(); if (font == null) font = Font.getDefault(); ! return font.impl_getNativeFont(); } public final ObjectProperty<Font> fontProperty() { if (font == null) { font = new StyleableObjectProperty<Font>(Font.getDefault()) { --- 489,499 ---- * @return the font */ private Object getFontInternal() { Font font = getFont(); if (font == null) font = Font.getDefault(); ! return FontHelper.getNativeFont(font); } public final ObjectProperty<Font> fontProperty() { if (font == null) { font = new StyleableObjectProperty<Font>(Font.getDefault()) {
< prev index next >