Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichTextDemo Fonts Don't Display Correctly #1184

Open
darkwyrm opened this issue Apr 17, 2023 · 2 comments
Open

RichTextDemo Fonts Don't Display Correctly #1184

darkwyrm opened this issue Apr 17, 2023 · 2 comments

Comments

@darkwyrm
Copy link

darkwyrm commented Apr 17, 2023

The RichTextDemo does not display different font families correctly. Symptoms are not consistent -- I can't figure out what pattern the symptoms follow, but applying a different font family to selected text results in a different font being used, but not the one selected. For example, choosing Century Gothic results in some serif font being used. I have confirmed symptoms under both Windows and Linux Mint 21.

Below is a screenshot demonstrating the symptoms along with how the same text appears in LibreOffice Writer for comparison purposes.

Font Display Issue

It almost appears that Arial is being used by RichTextDemo for both Arial and Wingdings, but some kind of serif font for Century Gothic.


Expected Behavior

Select text, apply font family, and selected text is changed to selected font family

Actual Behavior

Select text, apply font family, and selected text is changed to some other font than what is chosen

Reproducible Demo

Run the RichTextDemo from current on the main branch, type in some text and select it, and choose a different font from the dropdown.

Environment info:

  • RichTextFX Version: 0.11.0
  • Operating System: Windows 10, Linux Mint Cinnamon 21
  • Java version: Java 17
@cyfung1031
Copy link

It might be due to javafx.
There is no simple solution for the font issue in javafx.

@darkwyrm
Copy link
Author

darkwyrm commented May 1, 2023

I can confirm that it isn't JavaFX -- I have a different project which uses just a regular JavaFX TextArea and Century Gothic looks like it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants