DSEG7Classic font offset issue #322
Labels
No labels
bug
conflicts
documentation
DO NOT MERGE
duplicate
enhancement
good first issue
hardware
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
greg/info-orbs#322
Loading…
Reference in a new issue
No description provided.
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?
I've configured the clock to use the DSEG7 classic font only to discover there is some kind of problem with the offsets of this font. It doesn't happen with the DESEG7 modern though (I ignore if this happens with any of the other fonts).
I hope the picture will make clear the type of error.
Any idea on how to solve this would be welcomed.
Thanks
PD: I'm using the latest version of the code from the main branch located in the repository
Hi
I’m not sure if you still have an issue, but look in the clockWidget.h file
// Not all digits in DSEG7/14 are aligned identically, therefore we need to offset them
#ifndef CLOCK_DIGITS_OFFSET
#define CLOCK_DIGITS_OFFSET
{
{0, 0}, {1, -5}, {0, 0}, {1, 0}, {0, -5}, {0, 0}, {0, 0}, {0, -5}, {0, 0}, {0, 0}}
// Use zero offset for other fonts (or adjust)
// #define CLOCK_DIGITS_OFFSET { {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0} }
#endif
Zero is on the left and nine is on the right.. you can use these to adjust the placement of the digits on the screen
The variable is used at line 182 & 182 in the ClockWidget.cpp file - from the main branch