mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #126] Fonts not consistently vertically aligned when using Json template #3376
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PieterBoeren on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/126
Describe the bug
(This might be a documentation issue)
When using different fonts, I noticed that the vertical alignment is not consistent. When using "Bahnschrift", all is well, but when using the plaintext fonts (for example "glasstown"), text is differently aligned, resulting (in my case) text to be (partly) outside the display.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In this case, I would expect all of the text to be visible on the display
@nlimper commented on GitHub (Sep 4, 2023):
That's right. The small bitmap fonts have their origin at the left bottom corner. The vlw bitmap fonts have their origin at the top left. And the origin of the truetype fonts is as much as possible at the baseline, but that can differ depending on the font. So, it's a bit trial and error. Won't fix.
The use of the different types of fonts is completely different (you will not use a bitmap font for a heading, and no truetype font for plain text, because they don't render very well in small sizes), so it's just something minor. Also, you won't make a new json template every way. I will add it to the wiki documentation.