Sfoglia il codice sorgente

Merge pull request #4634 from thinkyhead/rc_lang_disp_char

Set language display charset in language.h
Scott Lahteine 8 anni fa
parent
commit
7427290d3a

+ 8
- 0
Marlin/language.h Vedi File

@@ -25,6 +25,9 @@
25 25
 
26 26
 #include "MarlinConfig.h"
27 27
 
28
+// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
29
+//#define SIMULATE_ROMFONT
30
+
28 31
 // Fallback if no language is set. DON'T CHANGE
29 32
 #ifndef LCD_LANGUAGE
30 33
   #define LCD_LANGUAGE en
@@ -239,6 +242,11 @@
239 242
 #define INCLUDE_LANGUAGE LANGUAGE_INCL(LCD_LANGUAGE)
240 243
 
241 244
 #include INCLUDE_LANGUAGE
245
+
246
+#if DISABLED(SIMULATE_ROMFONT) && DISABLED(DISPLAY_CHARSET_ISO10646_1) && DISABLED(DISPLAY_CHARSET_ISO10646_5) && DISABLED(DISPLAY_CHARSET_ISO10646_KANA) && DISABLED(DISPLAY_CHARSET_ISO10646_GREEK) && DISABLED(DISPLAY_CHARSET_ISO10646_CN)
247
+  #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
248
+#endif
249
+
242 250
 #include "language_en.h"
243 251
 
244 252
 #endif //__LANGUAGE_H

+ 0
- 2
Marlin/language_an.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_AN_H
31 31
 #define LANGUAGE_AN_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " parada."

+ 0
- 2
Marlin/language_bg.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_BG_H
32 32
 
33 33
 #define MAPPER_D0D1                // For Cyrillic
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_5
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " Готов."

+ 0
- 2
Marlin/language_ca.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_CA_H
32 32
 
33 33
 #define MAPPER_C2C3  // because of "ó"
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_1
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " preparada."

+ 0
- 2
Marlin/language_cz.h Vedi File

@@ -34,8 +34,6 @@
34 34
 #ifndef LANGUAGE_CZ_H
35 35
 #define LANGUAGE_CZ_H
36 36
 
37
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
38
-//#define SIMULATE_ROMFONT
39 37
 #define DISPLAY_CHARSET_ISO10646_1
40 38
 
41 39
 #define WELCOME_MSG                         MACHINE_NAME " pripraven."

+ 0
- 2
Marlin/language_da.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_DA_H
32 32
 
33 33
 #define MAPPER_C2C3
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_1
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " er klar"

+ 0
- 2
Marlin/language_de.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_DE_H
32 32
 
33 33
 #define MAPPER_C2C3
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_1
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " bereit"

+ 0
- 3
Marlin/language_el-gr.h Vedi File

@@ -30,9 +30,6 @@
30 30
 #ifndef LANGUAGE_EL_GR_H
31 31
 #define LANGUAGE_EL_GR_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35
-
36 33
 //#define MAPPER_CECF
37 34
 //#define DISPLAY_CHARSET_ISO10646_GREEK
38 35
 

+ 0
- 3
Marlin/language_el.h Vedi File

@@ -30,9 +30,6 @@
30 30
 #ifndef LANGUAGE_EL_H
31 31
 #define LANGUAGE_EL_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35
-
36 33
 #define MAPPER_CECF
37 34
 #define DISPLAY_CHARSET_ISO10646_GREEK
38 35
 

+ 0
- 5
Marlin/language_en.h Vedi File

@@ -30,11 +30,6 @@
30 30
 #ifndef LANGUAGE_EN_H
31 31
 #define LANGUAGE_EN_H
32 32
 
33
-//#define SIMULATE_ROMFONT //Comment in to see what is seen on the character based displays
34
-#if DISABLED(SIMULATE_ROMFONT) && DISABLED(DISPLAY_CHARSET_ISO10646_1) && DISABLED(DISPLAY_CHARSET_ISO10646_5) && DISABLED(DISPLAY_CHARSET_ISO10646_KANA) && DISABLED(DISPLAY_CHARSET_ISO10646_GREEK) && DISABLED(DISPLAY_CHARSET_ISO10646_CN)
35
-  #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
36
-#endif
37
-
38 33
 #ifndef WELCOME_MSG
39 34
   #define WELCOME_MSG                         MACHINE_NAME " ready."
40 35
 #endif

+ 0
- 2
Marlin/language_es.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_ES_H
31 31
 #define LANGUAGE_ES_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " lista."

+ 0
- 2
Marlin/language_eu.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_EU_H
31 31
 #define LANGUAGE_EU_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " prest."

+ 0
- 2
Marlin/language_fi.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_FI_H
32 32
 
33 33
 #define MAPPER_C2C3
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_1
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " valmis."

+ 0
- 2
Marlin/language_fr.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_FR_H
31 31
 #define LANGUAGE_FR_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " prete."

+ 0
- 2
Marlin/language_gl.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_GL_H
32 32
 
33 33
 #define MAPPER_C2C3
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_1
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " lista."

+ 0
- 3
Marlin/language_hr.h Vedi File

@@ -30,9 +30,6 @@
30 30
 #ifndef LANGUAGE_HR_H
31 31
 #define LANGUAGE_HR_H
32 32
 
33
-
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 33
 #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
37 34
 
38 35
 #define WELCOME_MSG                         MACHINE_NAME " spreman."

+ 0
- 2
Marlin/language_it.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_IT_H
31 31
 #define LANGUAGE_IT_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " pronto."

+ 0
- 2
Marlin/language_kana_utf8.h Vedi File

@@ -32,8 +32,6 @@
32 32
 #define LANGUAGE_KANA_UTF_H
33 33
 
34 34
 #define MAPPER_E382E383
35
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
36
-//#define SIMULATE_ROMFONT
37 35
 #define DISPLAY_CHARSET_ISO10646_KANA
38 36
 
39 37
 // This just to show the potential benefit of unicode.

+ 0
- 2
Marlin/language_nl.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_NL_H
31 31
 #define LANGUAGE_NL_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " gereed."

+ 0
- 2
Marlin/language_pl.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_PL_H
31 31
 #define LANGUAGE_PL_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " gotowy."

+ 0
- 2
Marlin/language_pt-br.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_PT_BR_H
31 31
 #define LANGUAGE_PT_BR_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " pronto."

+ 0
- 2
Marlin/language_pt-br_utf8.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_PT_BR_UTF_H
31 31
 #define LANGUAGE_PT_BR_UTF_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " pronto."

+ 0
- 2
Marlin/language_pt.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_PT_H
31 31
 #define LANGUAGE_PT_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " pronto."

+ 0
- 2
Marlin/language_pt_utf8.h Vedi File

@@ -30,8 +30,6 @@
30 30
 #ifndef LANGUAGE_PT_UTF_H
31 31
 #define LANGUAGE_PT_UTF_H
32 32
 
33
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
34
-//#define SIMULATE_ROMFONT
35 33
 #define DISPLAY_CHARSET_ISO10646_1
36 34
 
37 35
 #define WELCOME_MSG                         MACHINE_NAME " pronto."

+ 0
- 2
Marlin/language_ru.h Vedi File

@@ -31,8 +31,6 @@
31 31
 #define LANGUAGE_RU_H
32 32
 
33 33
 #define MAPPER_D0D1                // For Cyrillic
34
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
35
-//#define SIMULATE_ROMFONT
36 34
 #define DISPLAY_CHARSET_ISO10646_5
37 35
 
38 36
 #define WELCOME_MSG                         MACHINE_NAME " Готов."

+ 0
- 2
Marlin/language_test.h Vedi File

@@ -51,8 +51,6 @@
51 51
 //#define MAPPER_E382E383    // For Katakana
52 52
 //#define MAPPER_NON         // For direct ascii codes. Fall back mapper - if no other is defined.
53 53
 
54
-// Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
55
-//#define SIMULATE_ROMFONT
56 54
 
57 55
 // Select the better font for full graphic displays.
58 56
 //#define DISPLAY_CHARSET_ISO10646_1

Loading…
Annulla
Salva