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

Bad kerning in entry editor type label #12478

Open
madmini opened this issue Feb 10, 2025 · 0 comments
Open

Bad kerning in entry editor type label #12478

madmini opened this issue Feb 10, 2025 · 0 comments
Labels
status: depends-on-external A bug or issue that depends on an update of an external library

Comments

@madmini
Copy link

madmini commented Feb 10, 2025

The entry type label (vertical banner on the left of the entry editor) has bad kerning: Article is displayed as Artide and letter spacing is off for many other letter combinations as well (depending on the font-size).
This happens with the default theme and font-size on JabRef 5.15 and 6.0-alpha.1 and when building from source (main @ c6e317d) on Windows 11.

Workarounds
The text displays better (at least no cl=>d) when overriding the default font-size (9) to 10 or higher.
Similarly, in the theme Base.css for #entryEditor #typeLabel changing -fx-font-size: 1.166667em; to 1.2em also fixes this particular issue (but makes the vertical banner wider).
JavaFX does not seem to support letter-spacing, as adding -fx-letter-spacing does not work.
Another (hacky and not too pretty) workaround could be to insert hair spaces (U+200A, zero-width spaces do not work) between letters for this label: .replaceAll("(.)","$1\u200A").

Possible Cause
This seems like a bug in JavaFX as removing rotate="270" in EntryEditor.fxml fixes the kerning (and strangely, for rotate="90" the kerning is not as bad, but still off).

Image

@Siedlerchr Siedlerchr added the status: depends-on-external A bug or issue that depends on an update of an external library label Feb 18, 2025
@github-project-automation github-project-automation bot moved this to Normal priority in Prioritization Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: depends-on-external A bug or issue that depends on an update of an external library
Projects
Status: Normal priority
Development

No branches or pull requests

2 participants