mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #97] X Y Coordination "Center" specification in template #1150
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 @Draexl on GitHub (Aug 4, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/97
Json template:
It would be great if it were possible to specify the X Y coordinates as the center. So that the alignment remains the same for different long texts.
@nlimper commented on GitHub (Aug 4, 2023):
you can already add the horizontal alignment in the last parameter of the text:
{ "text": [x, y, "text", "fontname", color, alignment] }0: left, 1: center, 2: right
Vertical alignment is always 'top', as the baseline of a font is not always the same, and the perceptual center of gravity of a line of text is not always in the middle.
@Draexl commented on GitHub (Aug 4, 2023):
Thanks for the Info. But with die Small Letter e.g. t0_14b_tf is center not possible
@nlimper commented on GitHub (Aug 5, 2023):
ah, I see. I will add it soon!
@nlimper commented on GitHub (Aug 5, 2023):
Thanks for noticing. Fixed in the next commit.