sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
543 stars 248 forks source link

Add LCD font #264

Closed guyou closed 3 years ago

guyou commented 3 years ago

In order to design some watchface, it would be useful to have an Liquid Crystal font. Idealy both for digits and characters and in different sizes.

guyou commented 3 years ago

Looking at https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library they embed some fonts and some of them came from http://oleddisplay.squix.ch/ This service propose fonts like 7 segments or 14 segments.

sharandac commented 3 years ago

add "font" option in the label section, possible name is "Ubuntu" or "LCD". Is no font set, Ubuntu is set as default. Font size option is the same. And it is backward compatible.

screen and an additional shadow layer :) screen

guyou commented 3 years ago

Wonderful! Thanks!

sharandac commented 3 years ago

add optional "hide_interval" option for labels. a positive hide interval means hide/show interval and a negative hide interval means show/hide interval. so it is possible to make a second pointer or a switching information label.