Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8312483

[TextFlow]: empty Text corrupts styling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx20
    • javafx
    • None

      Adding a Text instance with a styled empty string to a TextFlow corrupts the styling of the first character belonging to a different Text instance that follows.

      The rendered TextFlow should have no red color, but it does (see the screenshot):

              TextFlow f = new TextFlow(
                  t("gray", GRAY),
                  // should be no red color in the output because this Text is empty
                  t("", RED),
                  t("GRAY", GRAY),
                  t("black", BLACK)
              );

      reproduced on macOS 13.3.1(a)

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: