ソースを参照

[2.0.x] Fix problems compiling with Arduino IDE (#10441)

* Fix problems compiling u8glib utf8 support on Arduino
* Change header in auto-generated font data
* Change include in font gen scripts
Chris Pepper 7年前
コミット
744bcaee61
34個のファイルの変更52行の追加52行の削除
  1. 1
    1
      Marlin/src/lcd/dogm/dogm_font_data_ISO10646_1.h
  2. 1
    1
      Marlin/src/lcd/dogm/language_data_an.h
  3. 1
    1
      Marlin/src/lcd/dogm/language_data_bg.h
  4. 1
    1
      Marlin/src/lcd/dogm/language_data_ca.h
  5. 1
    1
      Marlin/src/lcd/dogm/language_data_cz.h
  6. 1
    1
      Marlin/src/lcd/dogm/language_data_da.h
  7. 1
    1
      Marlin/src/lcd/dogm/language_data_de.h
  8. 1
    1
      Marlin/src/lcd/dogm/language_data_el-gr.h
  9. 1
    1
      Marlin/src/lcd/dogm/language_data_el.h
  10. 1
    1
      Marlin/src/lcd/dogm/language_data_en.h
  11. 1
    1
      Marlin/src/lcd/dogm/language_data_es.h
  12. 1
    1
      Marlin/src/lcd/dogm/language_data_eu.h
  13. 1
    1
      Marlin/src/lcd/dogm/language_data_fi.h
  14. 1
    1
      Marlin/src/lcd/dogm/language_data_fr.h
  15. 1
    1
      Marlin/src/lcd/dogm/language_data_gl.h
  16. 1
    1
      Marlin/src/lcd/dogm/language_data_hr.h
  17. 1
    1
      Marlin/src/lcd/dogm/language_data_it.h
  18. 1
    1
      Marlin/src/lcd/dogm/language_data_jp-kana.h
  19. 1
    1
      Marlin/src/lcd/dogm/language_data_nl.h
  20. 1
    1
      Marlin/src/lcd/dogm/language_data_pl.h
  21. 1
    1
      Marlin/src/lcd/dogm/language_data_pt-br.h
  22. 1
    1
      Marlin/src/lcd/dogm/language_data_pt.h
  23. 1
    1
      Marlin/src/lcd/dogm/language_data_ru.h
  24. 1
    1
      Marlin/src/lcd/dogm/language_data_sk.h
  25. 1
    1
      Marlin/src/lcd/dogm/language_data_test.h
  26. 1
    1
      Marlin/src/lcd/dogm/language_data_tr.h
  27. 1
    1
      Marlin/src/lcd/dogm/language_data_uk.h
  28. 1
    1
      Marlin/src/lcd/dogm/language_data_zh_CN.h
  29. 1
    1
      Marlin/src/lcd/dogm/language_data_zh_TW.h
  30. 0
    1
      Marlin/src/lcd/fontutils.cpp
  31. 21
    17
      Marlin/src/lcd/u8g_fontutf8.cpp
  32. 1
    1
      Marlin/src/lcd/u8g_fontutf8.h
  33. 0
    3
      buildroot/share/fonts/genallfont.sh
  34. 1
    1
      buildroot/share/fonts/uxggenpages.sh

+ 1
- 1
Marlin/src/lcd/dogm/dogm_font_data_ISO10646_1.h ファイルの表示

20
  *
20
  *
21
  */
21
  */
22
 
22
 
23
-#include <clib/u8g.h>
23
+#include <U8glib.h>
24
 
24
 
25
 #if defined(__AVR__) && ENABLED(NOT_EXTENDED_ISO10646_1_5X7)
25
 #if defined(__AVR__) && ENABLED(NOT_EXTENDED_ISO10646_1_5X7)
26
   // reduced font (only sysmbols 1 - 127) - saves about 1278 bytes of FLASH
26
   // reduced font (only sysmbols 1 - 127) - saves about 1278 bytes of FLASH

+ 1
- 1
Marlin/src/lcd/dogm/language_data_an.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_bg.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_8_144_149[96] U8G_FONT_SECTION("fontpage_8_144_149") = {
7
 const u8g_fntpgm_uint8_t fontpage_8_144_149[96] U8G_FONT_SECTION("fontpage_8_144_149") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x90,0x95,0x00,0x07,0xff,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x90,0x95,0x00,0x07,0xff,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_ca.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_cz.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_2_140_141[49] U8G_FONT_SECTION("fontpage_2_140_141") = {
7
 const u8g_fntpgm_uint8_t fontpage_2_140_141[49] U8G_FONT_SECTION("fontpage_2_140_141") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x8c,0x8d,0x00,0x0b,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x8c,0x8d,0x00,0x0b,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_da.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_de.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_el-gr.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_7_136_136[31] U8G_FONT_SECTION("fontpage_7_136_136") = {
7
 const u8g_fntpgm_uint8_t fontpage_7_136_136[31] U8G_FONT_SECTION("fontpage_7_136_136") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x88,0x88,0x00,0x08,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x88,0x88,0x00,0x08,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_el.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_7_136_136[31] U8G_FONT_SECTION("fontpage_7_136_136") = {
7
 const u8g_fntpgm_uint8_t fontpage_7_136_136[31] U8G_FONT_SECTION("fontpage_7_136_136") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x88,0x88,0x00,0x08,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x88,0x88,0x00,0x08,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_en.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_es.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_eu.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_fi.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_fr.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_gl.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_hr.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_2_135_135[32] U8G_FONT_SECTION("fontpage_2_135_135") = {
7
 const u8g_fntpgm_uint8_t fontpage_2_135_135[32] U8G_FONT_SECTION("fontpage_2_135_135") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x87,0x87,0x00,0x09,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x87,0x87,0x00,0x09,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_it.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_jp-kana.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_97_161_164[61] U8G_FONT_SECTION("fontpage_97_161_164") = {
7
 const u8g_fntpgm_uint8_t fontpage_97_161_164[61] U8G_FONT_SECTION("fontpage_97_161_164") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xa1,0xa4,0x00,0x06,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xa1,0xa4,0x00,0x06,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_nl.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_pl.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_2_133_133[31] U8G_FONT_SECTION("fontpage_2_133_133") = {
7
 const u8g_fntpgm_uint8_t fontpage_2_133_133[31] U8G_FONT_SECTION("fontpage_2_133_133") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x85,0x85,0x00,0x06,0xfe,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x85,0x85,0x00,0x06,0xfe,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_pt-br.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_pt.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
7
 #define FONTDATA_ITEM(page, begin, end, data) {page, begin, end, NUM_ARRAY(data), data}
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {
8
 static const uxg_fontinfo_t g_fontinfo[] PROGMEM = {

+ 1
- 1
Marlin/src/lcd/dogm/language_data_ru.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_8_144_152[135] U8G_FONT_SECTION("fontpage_8_144_152") = {
7
 const u8g_fntpgm_uint8_t fontpage_8_144_152[135] U8G_FONT_SECTION("fontpage_8_144_152") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x90,0x98,0x00,0x07,0xff,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x90,0x98,0x00,0x07,0xff,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_sk.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_2_140_143[80] U8G_FONT_SECTION("fontpage_2_140_143") = {
7
 const u8g_fntpgm_uint8_t fontpage_2_140_143[80] U8G_FONT_SECTION("fontpage_2_140_143") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x8c,0x8f,0x00,0x0b,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x8c,0x8f,0x00,0x0b,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_test.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_8_128_255[1255] U8G_FONT_SECTION("fontpage_8_128_255") = {
7
 const u8g_fntpgm_uint8_t fontpage_8_128_255[1255] U8G_FONT_SECTION("fontpage_8_128_255") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0x00,0x08,0xff,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0x00,0x08,0xff,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_tr.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_2_159_159[34] U8G_FONT_SECTION("fontpage_2_159_159") = {
7
 const u8g_fntpgm_uint8_t fontpage_2_159_159[34] U8G_FONT_SECTION("fontpage_2_159_159") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x9f,0x9f,0x00,0x09,0xfe,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x9f,0x9f,0x00,0x09,0xfe,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_uk.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_8_134_134[30] U8G_FONT_SECTION("fontpage_8_134_134") = {
7
 const u8g_fntpgm_uint8_t fontpage_8_134_134[30] U8G_FONT_SECTION("fontpage_8_134_134") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x86,0x86,0x00,0x07,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x86,0x86,0x00,0x07,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_zh_CN.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_69_191_191[41] U8G_FONT_SECTION("fontpage_69_191_191") = {
7
 const u8g_fntpgm_uint8_t fontpage_69_191_191[41] U8G_FONT_SECTION("fontpage_69_191_191") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xbf,0xbf,0x00,0x0a,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xbf,0xbf,0x00,0x0a,0x00,0x00,

+ 1
- 1
Marlin/src/lcd/dogm/language_data_zh_TW.h ファイルの表示

2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
2
 /* This file is generated automatically, any changes to the file may be REPLACED by future processing. */
3
 /* Please turn to the tools call this script to change the contents! */
3
 /* Please turn to the tools call this script to change the contents! */
4
 
4
 
5
-#include <clib/u8g.h>
5
+#include <U8glib.h>
6
 
6
 
7
 const u8g_fntpgm_uint8_t fontpage_69_191_191[41] U8G_FONT_SECTION("fontpage_69_191_191") = {
7
 const u8g_fntpgm_uint8_t fontpage_69_191_191[41] U8G_FONT_SECTION("fontpage_69_191_191") = {
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xbf,0xbf,0x00,0x0a,0x00,0x00,
8
   0x00,0x06,0x0a,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0xbf,0xbf,0x00,0x0a,0x00,0x00,

+ 0
- 1
Marlin/src/lcd/fontutils.cpp ファイルの表示

7
  * @copyright GPL/BSD
7
  * @copyright GPL/BSD
8
  */
8
  */
9
 
9
 
10
-#include "../inc/MarlinConfigPre.h"
11
 #include "../inc/MarlinConfig.h"
10
 #include "../inc/MarlinConfig.h"
12
 
11
 
13
 #if ENABLED(ULTRA_LCD)
12
 #if ENABLED(ULTRA_LCD)

Marlin/src/lcd/u8g_fontutf8.c → Marlin/src/lcd/u8g_fontutf8.cpp ファイルの表示

7
  * @copyright GPL/BSD
7
  * @copyright GPL/BSD
8
  */
8
  */
9
 
9
 
10
+#include "../inc/MarlinConfig.h"
11
+
12
+#if ENABLED(ULTRA_LCD)
13
+
10
 #include <string.h>
14
 #include <string.h>
11
 #include "fontutils.h"
15
 #include "fontutils.h"
12
 #include "u8g_fontutf8.h"
16
 #include "u8g_fontutf8.h"
13
 
17
 
14
 ////////////////////////////////////////////////////////////
18
 ////////////////////////////////////////////////////////////
15
-#define font_t void
19
+typedef void font_t;
16
 
20
 
17
 #ifndef PSTR
21
 #ifndef PSTR
18
 #define PSTR(a) a
22
 #define PSTR(a) a
19
 
23
 
20
-void *
21
-memcpy_from_rom(void *dest, const void * rom_src, size_t sz)
22
-{
24
+void* memcpy_from_rom(void *dest, const void * rom_src, size_t sz) {
23
   uint8_t * p;
25
   uint8_t * p;
24
   uint8_t * s;
26
   uint8_t * s;
25
 
27
 
26
   FU_ASSERT(NULL != dest);
28
   FU_ASSERT(NULL != dest);
27
-  p = dest;
28
-  s = rom_src;
29
+  p = (uint8_t*)dest;
30
+  s = (uint8_t*)rom_src;
29
   uint8_t c;
31
   uint8_t c;
30
   while ((p - (uint8_t *)dest) < sz) {
32
   while ((p - (uint8_t *)dest) < sz) {
31
     *p = pgm_read_byte(s);
33
     *p = pgm_read_byte(s);
79
   uxg_fontinfo_t *fntinfo = (uxg_fontinfo_t*)userdata;
81
   uxg_fontinfo_t *fntinfo = (uxg_fontinfo_t*)userdata;
80
   uxg_fontinfo_t localval;
82
   uxg_fontinfo_t localval;
81
   memcpy_from_rom(&localval, fntinfo + idx, sizeof(localval));
83
   memcpy_from_rom(&localval, fntinfo + idx, sizeof(localval));
82
-  return fontinfo_compare(&localval, data_pin);
84
+  return fontinfo_compare(&localval, (uxg_fontinfo_t*)data_pin);
83
 }
85
 }
84
 
86
 
85
 typedef struct _font_group_t {
87
 typedef struct _font_group_t {
95
 }
97
 }
96
 
98
 
97
 static const font_t* fontgroup_find(font_group_t * root, wchar_t val) {
99
 static const font_t* fontgroup_find(font_group_t * root, wchar_t val) {
98
-  uxg_fontinfo_t vcmp = {val / 128, val % 128 + 128, val % 128 + 128, 0, 0};
100
+  uxg_fontinfo_t vcmp = {(uint16_t)(val / 128), (uint8_t)(val % 128 + 128), (uint8_t)(val % 128 + 128), 0, 0};
99
   size_t idx = 0;
101
   size_t idx = 0;
100
 
102
 
101
   if (val < 256) return NULL;
103
   if (val < 256) return NULL;
178
 };
180
 };
179
 
181
 
180
 static int fontgroup_cb_draw_u8g (void *userdata, const font_t *fnt_current, const char *msg) {
182
 static int fontgroup_cb_draw_u8g (void *userdata, const font_t *fnt_current, const char *msg) {
181
-  struct _uxg_drawu8_data_t * pdata = userdata;
183
+  struct _uxg_drawu8_data_t * pdata = (_uxg_drawu8_data_t*)userdata;
182
 
184
 
183
   FU_ASSERT(NULL != userdata);
185
   FU_ASSERT(NULL != userdata);
184
   if (pdata->fnt_prev != fnt_current) {
186
   if (pdata->fnt_prev != fnt_current) {
185
-    u8g_SetFont(pdata->pu8g, fnt_current);
187
+    u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
186
     //u8g_SetFontPosBottom(pdata->pu8g);
188
     //u8g_SetFontPosBottom(pdata->pu8g);
187
     pdata->fnt_prev = fnt_current;
189
     pdata->fnt_prev = fnt_current;
188
   }
190
   }
225
   data.max_width = max_width;
227
   data.max_width = max_width;
226
   data.fnt_prev = NULL;
228
   data.fnt_prev = NULL;
227
   fontgroup_drawwchar(group, fnt_default, ch, (void*)&data, fontgroup_cb_draw_u8g);
229
   fontgroup_drawwchar(group, fnt_default, ch, (void*)&data, fontgroup_cb_draw_u8g);
228
-  u8g_SetFont(pu8g, fnt_default);
230
+  u8g_SetFont(pu8g, (const u8g_fntpgm_uint8_t*)fnt_default);
229
 
231
 
230
   return data.adv;
232
   return data.adv;
231
 }
233
 }
259
   data.max_width = max_width;
261
   data.max_width = max_width;
260
   data.fnt_prev = NULL;
262
   data.fnt_prev = NULL;
261
   fontgroup_drawstring(group, fnt_default, utf8_msg, strlen(utf8_msg), read_byte_ram, (void*)&data, fontgroup_cb_draw_u8g);
263
   fontgroup_drawstring(group, fnt_default, utf8_msg, strlen(utf8_msg), read_byte_ram, (void*)&data, fontgroup_cb_draw_u8g);
262
-  u8g_SetFont(pu8g, fnt_default);
264
+  u8g_SetFont(pu8g, (const u8g_fntpgm_uint8_t*)fnt_default);
263
 
265
 
264
   return data.adv;
266
   return data.adv;
265
 }
267
 }
296
   TRACE("call fontgroup_drawstring");
298
   TRACE("call fontgroup_drawstring");
297
   fontgroup_drawstring(group, fnt_default, utf8_msg, my_strlen_P(utf8_msg), read_byte_rom, (void*)&data, fontgroup_cb_draw_u8g);
299
   fontgroup_drawstring(group, fnt_default, utf8_msg, my_strlen_P(utf8_msg), read_byte_rom, (void*)&data, fontgroup_cb_draw_u8g);
298
   TRACE("restore font");
300
   TRACE("restore font");
299
-  u8g_SetFont(pu8g, fnt_default);
301
+  u8g_SetFont(pu8g, (const u8g_fntpgm_uint8_t*)fnt_default);
300
 
302
 
301
   TRACE("return %d", data.adv);
303
   TRACE("return %d", data.adv);
302
   return data.adv;
304
   return data.adv;
303
 }
305
 }
304
 
306
 
305
 static int fontgroup_cb_draw_u8gstrlen(void *userdata, const font_t *fnt_current, const char *msg) {
307
 static int fontgroup_cb_draw_u8gstrlen(void *userdata, const font_t *fnt_current, const char *msg) {
306
-  struct _uxg_drawu8_data_t * pdata = userdata;
308
+  struct _uxg_drawu8_data_t * pdata = (_uxg_drawu8_data_t*)userdata;
307
 
309
 
308
   FU_ASSERT(NULL != userdata);
310
   FU_ASSERT(NULL != userdata);
309
   if (pdata->fnt_prev != fnt_current) {
311
   if (pdata->fnt_prev != fnt_current) {
310
-    u8g_SetFont(pdata->pu8g, fnt_current);
312
+    u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
311
     u8g_SetFontPosBottom(pdata->pu8g);
313
     u8g_SetFontPosBottom(pdata->pu8g);
312
     pdata->fnt_prev = fnt_current;
314
     pdata->fnt_prev = fnt_current;
313
   }
315
   }
339
   data.pu8g = pu8g;
341
   data.pu8g = pu8g;
340
   data.adv = 0;
342
   data.adv = 0;
341
   fontgroup_drawstring(group, fnt_default, utf8_msg, strlen(utf8_msg), read_byte_ram, (void*)&data, fontgroup_cb_draw_u8gstrlen);
343
   fontgroup_drawstring(group, fnt_default, utf8_msg, strlen(utf8_msg), read_byte_ram, (void*)&data, fontgroup_cb_draw_u8gstrlen);
342
-  u8g_SetFont(pu8g, fnt_default);
344
+  u8g_SetFont(pu8g, (const u8g_fntpgm_uint8_t*)fnt_default);
343
 
345
 
344
   return data.adv;
346
   return data.adv;
345
 }
347
 }
367
   data.pu8g = pu8g;
369
   data.pu8g = pu8g;
368
   data.adv = 0;
370
   data.adv = 0;
369
   fontgroup_drawstring(group, fnt_default, utf8_msg, my_strlen_P(utf8_msg), read_byte_rom, (void*)&data, fontgroup_cb_draw_u8gstrlen);
371
   fontgroup_drawstring(group, fnt_default, utf8_msg, my_strlen_P(utf8_msg), read_byte_rom, (void*)&data, fontgroup_cb_draw_u8gstrlen);
370
-  u8g_SetFont(pu8g, fnt_default);
372
+  u8g_SetFont(pu8g, (const u8g_fntpgm_uint8_t*)fnt_default);
371
   return data.adv;
373
   return data.adv;
372
 }
374
 }
375
+
376
+#endif // ENABLED(ULTRA_LCD)

+ 1
- 1
Marlin/src/lcd/u8g_fontutf8.h ファイルの表示

9
 #ifndef _UXG_FONTUTF8_H
9
 #ifndef _UXG_FONTUTF8_H
10
 #define _UXG_FONTUTF8_H 1
10
 #define _UXG_FONTUTF8_H 1
11
 
11
 
12
-#include <clib/u8g.h>
12
+#include <U8glib.h>
13
 #include "fontutils.h"
13
 #include "fontutils.h"
14
 
14
 
15
 #ifdef __cplusplus
15
 #ifdef __cplusplus

+ 0
- 3
buildroot/share/fonts/genallfont.sh ファイルの表示

101
 
101
 
102
 #endif
102
 #endif
103
 EOF
103
 EOF
104
-    sed -e 's|#include "u8g.h"|#include <clib/u8g.h>|' -i tmp3.h
105
 
104
 
106
     cd ..
105
     cd ..
107
     mv ${DN_WORK}/tmp3.h src/lcd/dogm/dogm_font_data_ISO10646_1.h
106
     mv ${DN_WORK}/tmp3.h src/lcd/dogm/dogm_font_data_ISO10646_1.h
108
 fi
107
 fi
109
-
110
-

+ 1
- 1
buildroot/share/fonts/uxggenpages.sh ファイルの表示

154
 echo "/* This file is generated automatically, any changes to the file may be REPLACED by future processing. */" >> fontutf8-data.h
154
 echo "/* This file is generated automatically, any changes to the file may be REPLACED by future processing. */" >> fontutf8-data.h
155
 echo "/* Please turn to the tools call this script to change the contents! */" >> fontutf8-data.h
155
 echo "/* Please turn to the tools call this script to change the contents! */" >> fontutf8-data.h
156
 echo "" >> fontutf8-data.h
156
 echo "" >> fontutf8-data.h
157
-echo "#include <u8g.h>" >> fontutf8-data.h
157
+echo "#include <U8glib.h>" >> fontutf8-data.h
158
 #echo "#include \"fontutf8u8g.h\"" >> fontutf8-data.h
158
 #echo "#include \"fontutf8u8g.h\"" >> fontutf8-data.h
159
 echo "" >> fontutf8-data.h
159
 echo "" >> fontutf8-data.h
160
 cat tmpa >> fontutf8-data.h
160
 cat tmpa >> fontutf8-data.h

読み込み中…
キャンセル
保存