DSEG7Classic font offset issue #322

Open
opened 2025-04-25 10:11:02 +00:00 by jvalver1 · 1 comment
jvalver1 commented 2025-04-25 10:11:02 +00:00 (Migrated from github.com)

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.

Image

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

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. ![Image](https://github.com/user-attachments/assets/3878a4e1-8dc3-4803-a2e1-10c2784b1b19) 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
nconner-06 commented 2026-07-08 18:44:05 +00:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
No description provided.