diff --git a/buildroot/share/PlatformIO/scripts/common-dependencies.h b/buildroot/share/PlatformIO/scripts/common-dependencies.h index 63bd885eb271..2def0d88b683 100644 --- a/buildroot/share/PlatformIO/scripts/common-dependencies.h +++ b/buildroot/share/PlatformIO/scripts/common-dependencies.h @@ -115,29 +115,208 @@ #define UI_INCL(W, H) UI_INCL_(W, H) #include UI_INCL(TFT_WIDTH, TFT_HEIGHT) + #define Latin_Extended_A 1 + #define Cyrillic 2 + #define Greek 3 + #define Katakana 4 + #define Korean 5 + #define Vietnamese 6 + #define Simplified_Chinese 7 + #define Traditional_Chinese 8 + #if TFT_FONT == NOTOSANS #if FONT_SIZE == 14 #define TFT_FONT_NOTOSANS_14 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_14_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_14_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_14_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_14_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_14_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_14_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_14_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_14_ZH_TW + #endif #elif FONT_SIZE == 16 #define TFT_FONT_NOTOSANS_16 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_16_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_16_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_16_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_16_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_16_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_16_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_16_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_16_ZH_TW + #endif #elif FONT_SIZE == 19 #define TFT_FONT_NOTOSANS_19 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_19_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_19_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_19_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_19_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_19_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_19_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_19_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_19_ZH_TW + #endif #elif FONT_SIZE == 26 #define TFT_FONT_NOTOSANS_26 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_26_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_26_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_26_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_26_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_26_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_26_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_26_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_26_ZH_TW + #endif #elif FONT_SIZE == 27 #define TFT_FONT_NOTOSANS_27 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_27_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_27_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_27_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_27_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_27_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_27_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_27_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_27_ZH_TW + #endif #elif FONT_SIZE == 28 #define TFT_FONT_NOTOSANS_28 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_28_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_28_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_28_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_28_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_28_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_28_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_28_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_28_ZH_TW + #endif #elif FONT_SIZE == 29 #define TFT_FONT_NOTOSANS_29 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_NOTOSANS_29_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_NOTOSANS_29_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_NOTOSANS_29_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_NOTOSANS_29_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_NOTOSANS_29_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_NOTOSANS_29_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_NOTOSANS_29_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_NOTOSANS_29_ZH_TW + #endif #endif #elif TFT_FONT == UNIFONT #if FONT_SIZE == 10 #define TFT_FONT_UNIFONT_10 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_UNIFONT_10_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_UNIFONT_10_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_UNIFONT_10_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_UNIFONT_10_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_UNIFONT_10_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_UNIFONT_10_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_UNIFONT_10_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_UNIFONT_10_ZH_TW + #endif #elif FONT_SIZE == 20 #define TFT_FONT_UNIFONT_20 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_UNIFONT_20_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_UNIFONT_20_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_UNIFONT_20_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_UNIFONT_20_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_UNIFONT_20_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_UNIFONT_20_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_UNIFONT_20_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_UNIFONT_20_ZH_TW + #endif #elif FONT_SIZE == 30 #define TFT_FONT_UNIFONT_30 + #if FONT_EXTRA == Latin_Extended_A + #define TFT_FONT_UNIFONT_30_LATIN + #elif FONT_EXTRA == Cyrillic + #define TFT_FONT_UNIFONT_30_CYRIL + #elif FONT_EXTRA == Greek + #define TFT_FONT_UNIFONT_30_GREEK + #elif FONT_EXTRA == Katakana + #define TFT_FONT_UNIFONT_30_KATA + #elif FONT_EXTRA == Korean + #define TFT_FONT_UNIFONT_30_KO + #elif FONT_EXTRA == Vietnamese + #define TFT_FONT_UNIFONT_30_VI + #elif FONT_EXTRA == Simplified_Chinese + #define TFT_FONT_UNIFONT_30_ZH_CN + #elif FONT_EXTRA == Traditional_Chinese + #define TFT_FONT_UNIFONT_30_ZH_TW + #endif #endif #elif TFT_FONT == HELVETICA #if FONT_SIZE == 14 diff --git a/ini/features.ini b/ini/features.ini index 009177bc5fa2..2b1d09e20f25 100644 --- a/ini/features.ini +++ b/ini/features.ini @@ -60,18 +60,110 @@ HAS_GRAPHICAL_TFT = build_src_filter=+ - HAS_UI_480X.+ = build_src_filter=+ HAS_UI_1024X.+ = build_src_filter=+ +# Helvetica 14 TFT_FONT_HELVETICA_14 = build_src_filter=+ +# Helvetica 19 TFT_FONT_HELVETICA_19 = build_src_filter=+ -TFT_FONT_NOTOSANS_14 = build_src_filter=+ -TFT_FONT_NOTOSANS_16 = build_src_filter=+ -TFT_FONT_NOTOSANS_19 = build_src_filter=+ -TFT_FONT_NOTOSANS_26 = build_src_filter=+ -TFT_FONT_NOTOSANS_27 = build_src_filter=+ -TFT_FONT_NOTOSANS_28 = build_src_filter=+ -TFT_FONT_NOTOSANS_29 = build_src_filter=+ -TFT_FONT_UNIFONT_10 = build_src_filter=+ -TFT_FONT_UNIFONT_20 = build_src_filter=+ -TFT_FONT_UNIFONT_30 = build_src_filter=+ +# Notosans 14 +TFT_FONT_NOTOSANS_14 = build_src_filter=+ + +TFT_FONT_NOTOSANS_14_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_14_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_14_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_14_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_14_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_14_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_14_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_14_VI = build_src_filter=+ +# Notosans 16 +TFT_FONT_NOTOSANS_16 = build_src_filter=+ + +TFT_FONT_NOTOSANS_16_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_16_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_16_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_16_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_16_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_16_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_16_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_16_VI = build_src_filter=+ +# Notosans 19 +TFT_FONT_NOTOSANS_19 = build_src_filter=+ + +TFT_FONT_NOTOSANS_19_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_19_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_19_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_19_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_19_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_19_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_19_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_19_VI = build_src_filter=+ +# Notosans 26 +TFT_FONT_NOTOSANS_26 = build_src_filter=+ + +TFT_FONT_NOTOSANS_26_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_26_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_26_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_26_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_26_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_26_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_26_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_26_VI = build_src_filter=+ +# Notosans 27 +TFT_FONT_NOTOSANS_27 = build_src_filter=+ + +TFT_FONT_NOTOSANS_27_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_27_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_27_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_27_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_27_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_27_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_27_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_27_VI = build_src_filter=+ +# Notosans 28 +TFT_FONT_NOTOSANS_28 = build_src_filter=+ + +TFT_FONT_NOTOSANS_28_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_28_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_28_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_28_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_28_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_28_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_28_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_28_VI = build_src_filter=+ +# Notosans 29 +TFT_FONT_NOTOSANS_29 = build_src_filter=+ + +TFT_FONT_NOTOSANS_29_LATIN = build_src_filter=+ +TFT_FONT_NOTOSANS_29_CYRIL = build_src_filter=+ +TFT_FONT_NOTOSANS_29_GREEK = build_src_filter=+ +TFT_FONT_NOTOSANS_29_KATA = build_src_filter=+ +TFT_FONT_NOTOSANS_29_KO = build_src_filter=+ +TFT_FONT_NOTOSANS_29_ZH_CN = build_src_filter=+ +TFT_FONT_NOTOSANS_29_ZH_TW = build_src_filter=+ +TFT_FONT_NOTOSANS_29_VI = build_src_filter=+ +# Unifont 10 +TFT_FONT_UNIFONT_10 = build_src_filter=+ + +TFT_FONT_UNIFONT_10_LATIN = build_src_filter=+ +TFT_FONT_UNIFONT_10_CYRIL = build_src_filter=+ +TFT_FONT_UNIFONT_10_GREEK = build_src_filter=+ +TFT_FONT_UNIFONT_10_KATA = build_src_filter=+ +TFT_FONT_UNIFONT_10_KO = build_src_filter=+ +TFT_FONT_UNIFONT_10_ZH_CN = build_src_filter=+ +TFT_FONT_UNIFONT_10_ZH_TW = build_src_filter=+ +TFT_FONT_UNIFONT_10_VI = build_src_filter=+ +# Unifont 20 +TFT_FONT_UNIFONT_20 = build_src_filter=+ + +TFT_FONT_UNIFONT_20_LATIN = build_src_filter=+ +TFT_FONT_UNIFONT_20_CYRIL = build_src_filter=+ +TFT_FONT_UNIFONT_20_GREEK = build_src_filter=+ +TFT_FONT_UNIFONT_20_KATA = build_src_filter=+ +TFT_FONT_UNIFONT_20_KO = build_src_filter=+ +TFT_FONT_UNIFONT_20_ZH_CN = build_src_filter=+ +TFT_FONT_UNIFONT_20_ZH_TW = build_src_filter=+ +TFT_FONT_UNIFONT_20_VI = build_src_filter=+ +# Unifont 30 +TFT_FONT_UNIFONT_30 = build_src_filter=+ + +TFT_FONT_UNIFONT_30_LATIN = build_src_filter=+ +TFT_FONT_UNIFONT_30_CYRIL = build_src_filter=+ +TFT_FONT_UNIFONT_30_GREEK = build_src_filter=+ +TFT_FONT_UNIFONT_30_KATA = build_src_filter=+ +TFT_FONT_UNIFONT_30_KO = build_src_filter=+ +TFT_FONT_UNIFONT_30_ZH_CN = build_src_filter=+ +TFT_FONT_UNIFONT_30_ZH_TW = build_src_filter=+ +TFT_FONT_UNIFONT_30_VI = build_src_filter=+ IS_TFTGLCD_PANEL = build_src_filter=+ HAS_TOUCH_BUTTONS = build_src_filter=+ HAS_MARLINUI_MENU = build_src_filter=+ -