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)
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)