Browse Source

Move font data to a subfolder

pull/1/head
Scott Lahteine 6 years ago
parent
commit
8055ed24ff
  1. 2
      Marlin/src/core/language.h
  2. 0
      Marlin/src/lcd/dogm/fontdata/fontdata_6x9_marlin.h
  3. 0
      Marlin/src/lcd/dogm/fontdata/fontdata_ISO10646_1.h
  4. 0
      Marlin/src/lcd/dogm/fontdata/language_data_an.h
  5. 0
      Marlin/src/lcd/dogm/fontdata/language_data_bg.h
  6. 0
      Marlin/src/lcd/dogm/fontdata/language_data_ca.h
  7. 0
      Marlin/src/lcd/dogm/fontdata/language_data_cz.h
  8. 0
      Marlin/src/lcd/dogm/fontdata/language_data_da.h
  9. 0
      Marlin/src/lcd/dogm/fontdata/language_data_de.h
  10. 0
      Marlin/src/lcd/dogm/fontdata/language_data_el-gr.h
  11. 0
      Marlin/src/lcd/dogm/fontdata/language_data_el.h
  12. 0
      Marlin/src/lcd/dogm/fontdata/language_data_en.h
  13. 0
      Marlin/src/lcd/dogm/fontdata/language_data_es.h
  14. 0
      Marlin/src/lcd/dogm/fontdata/language_data_eu.h
  15. 0
      Marlin/src/lcd/dogm/fontdata/language_data_fi.h
  16. 0
      Marlin/src/lcd/dogm/fontdata/language_data_fr.h
  17. 0
      Marlin/src/lcd/dogm/fontdata/language_data_gl.h
  18. 0
      Marlin/src/lcd/dogm/fontdata/language_data_hr.h
  19. 0
      Marlin/src/lcd/dogm/fontdata/language_data_it.h
  20. 0
      Marlin/src/lcd/dogm/fontdata/language_data_jp-kana.h
  21. 0
      Marlin/src/lcd/dogm/fontdata/language_data_ko_KR.h
  22. 0
      Marlin/src/lcd/dogm/fontdata/language_data_nl.h
  23. 0
      Marlin/src/lcd/dogm/fontdata/language_data_pl.h
  24. 0
      Marlin/src/lcd/dogm/fontdata/language_data_pt-br.h
  25. 0
      Marlin/src/lcd/dogm/fontdata/language_data_pt.h
  26. 0
      Marlin/src/lcd/dogm/fontdata/language_data_ru.h
  27. 0
      Marlin/src/lcd/dogm/fontdata/language_data_sk.h
  28. 0
      Marlin/src/lcd/dogm/fontdata/language_data_test.h
  29. 0
      Marlin/src/lcd/dogm/fontdata/language_data_tr.h
  30. 0
      Marlin/src/lcd/dogm/fontdata/language_data_uk.h
  31. 0
      Marlin/src/lcd/dogm/fontdata/language_data_zh_CN.h
  32. 0
      Marlin/src/lcd/dogm/fontdata/language_data_zh_TW.h
  33. 6
      Marlin/src/lcd/dogm/ultralcd_impl_DOGM.cpp
  34. 6
      buildroot/share/fonts/genallfont.sh

2
Marlin/src/core/language.h

@ -264,7 +264,7 @@
// LCD Menu Messages
#define LANGUAGE_DATA_INCL_(M) STRINGIFY_(language_data_##M.h)
#define LANGUAGE_DATA_INCL_(M) STRINGIFY_(fontdata/language_data_##M.h)
#define LANGUAGE_DATA_INCL(M) LANGUAGE_DATA_INCL_(M)
#define INCLUDE_LANGUAGE_DATA LANGUAGE_DATA_INCL(LCD_LANGUAGE)

0
Marlin/src/lcd/dogm/dogm_font_data_6x9_marlin.h → Marlin/src/lcd/dogm/fontdata/fontdata_6x9_marlin.h

0
Marlin/src/lcd/dogm/dogm_font_data_ISO10646_1.h → Marlin/src/lcd/dogm/fontdata/fontdata_ISO10646_1.h

0
Marlin/src/lcd/dogm/language_data_an.h → Marlin/src/lcd/dogm/fontdata/language_data_an.h

0
Marlin/src/lcd/dogm/language_data_bg.h → Marlin/src/lcd/dogm/fontdata/language_data_bg.h

0
Marlin/src/lcd/dogm/language_data_ca.h → Marlin/src/lcd/dogm/fontdata/language_data_ca.h

0
Marlin/src/lcd/dogm/language_data_cz.h → Marlin/src/lcd/dogm/fontdata/language_data_cz.h

0
Marlin/src/lcd/dogm/language_data_da.h → Marlin/src/lcd/dogm/fontdata/language_data_da.h

0
Marlin/src/lcd/dogm/language_data_de.h → Marlin/src/lcd/dogm/fontdata/language_data_de.h

0
Marlin/src/lcd/dogm/language_data_el-gr.h → Marlin/src/lcd/dogm/fontdata/language_data_el-gr.h

0
Marlin/src/lcd/dogm/language_data_el.h → Marlin/src/lcd/dogm/fontdata/language_data_el.h

0
Marlin/src/lcd/dogm/language_data_en.h → Marlin/src/lcd/dogm/fontdata/language_data_en.h

0
Marlin/src/lcd/dogm/language_data_es.h → Marlin/src/lcd/dogm/fontdata/language_data_es.h

0
Marlin/src/lcd/dogm/language_data_eu.h → Marlin/src/lcd/dogm/fontdata/language_data_eu.h

0
Marlin/src/lcd/dogm/language_data_fi.h → Marlin/src/lcd/dogm/fontdata/language_data_fi.h

0
Marlin/src/lcd/dogm/language_data_fr.h → Marlin/src/lcd/dogm/fontdata/language_data_fr.h

0
Marlin/src/lcd/dogm/language_data_gl.h → Marlin/src/lcd/dogm/fontdata/language_data_gl.h

0
Marlin/src/lcd/dogm/language_data_hr.h → Marlin/src/lcd/dogm/fontdata/language_data_hr.h

0
Marlin/src/lcd/dogm/language_data_it.h → Marlin/src/lcd/dogm/fontdata/language_data_it.h

0
Marlin/src/lcd/dogm/language_data_jp-kana.h → Marlin/src/lcd/dogm/fontdata/language_data_jp-kana.h

0
Marlin/src/lcd/dogm/language_data_ko_KR.h → Marlin/src/lcd/dogm/fontdata/language_data_ko_KR.h

0
Marlin/src/lcd/dogm/language_data_nl.h → Marlin/src/lcd/dogm/fontdata/language_data_nl.h

0
Marlin/src/lcd/dogm/language_data_pl.h → Marlin/src/lcd/dogm/fontdata/language_data_pl.h

0
Marlin/src/lcd/dogm/language_data_pt-br.h → Marlin/src/lcd/dogm/fontdata/language_data_pt-br.h

0
Marlin/src/lcd/dogm/language_data_pt.h → Marlin/src/lcd/dogm/fontdata/language_data_pt.h

0
Marlin/src/lcd/dogm/language_data_ru.h → Marlin/src/lcd/dogm/fontdata/language_data_ru.h

0
Marlin/src/lcd/dogm/language_data_sk.h → Marlin/src/lcd/dogm/fontdata/language_data_sk.h

0
Marlin/src/lcd/dogm/language_data_test.h → Marlin/src/lcd/dogm/fontdata/language_data_test.h

0
Marlin/src/lcd/dogm/language_data_tr.h → Marlin/src/lcd/dogm/fontdata/language_data_tr.h

0
Marlin/src/lcd/dogm/language_data_uk.h → Marlin/src/lcd/dogm/fontdata/language_data_uk.h

0
Marlin/src/lcd/dogm/language_data_zh_CN.h → Marlin/src/lcd/dogm/fontdata/language_data_zh_CN.h

0
Marlin/src/lcd/dogm/language_data_zh_TW.h → Marlin/src/lcd/dogm/fontdata/language_data_zh_TW.h

6
Marlin/src/lcd/dogm/ultralcd_impl_DOGM.cpp

@ -60,7 +60,7 @@
#include "../../feature/bedlevel/ubl/ubl.h"
#endif
// The Marlin special symbols is now in the dogm_font_data_ISO10646_1.h
// The Marlin special symbols is now in the fontdata_ISO10646_1.h
#define FONT_SPECIAL_NAME ISO10646_1_5x7
// Only Western languages support big / small fonts
@ -70,7 +70,7 @@
#endif
#if ENABLED(USE_SMALL_INFOFONT)
#include "dogm_font_data_6x9_marlin.h"
#include "fontdata/fontdata_6x9_marlin.h"
#define FONT_STATUSMENU_NAME u8g_font_6x9
#define INFO_FONT_HEIGHT 7
#else
@ -80,7 +80,7 @@
#include LANGUAGE_DATA_INCL(LCD_LANGUAGE)
#include "dogm_font_data_ISO10646_1.h"
#include "fontdata/fontdata_ISO10646_1.h"
#define FONT_MENU_NAME ISO10646_1_5x7
// DOGM parameters (size in pixels)

6
buildroot/share/fonts/genallfont.sh

@ -64,13 +64,13 @@ for LANG in ${MARLIN_LANGS:=$LANGS_DEFAULT} ; do
${EXEC_WXGGEN} "${FN_FONT}"
sed -i fontutf8-data.h -e 's|fonts//|fonts/|g' -e 's|fonts//|fonts/|g' -e 's|[/0-9a-zA-Z_\-]*buildroot/share/fonts|buildroot/share/fonts|' 2>/dev/null
cd ../
mv ${DN_WORK}/fontutf8-data.h src/lcd/dogm/language_data_${LANG}.h
mv ${DN_WORK}/fontutf8-data.h src/lcd/dogm/fontdata/language_data_${LANG}.h
rm -rf ${DN_WORK}/
done
#
# Generate default ASCII font (char range 0-255):
# Marlin/src/lcd/dogm/dogm_font_data_ISO10646_1.h
# Marlin/src/lcd/dogm/fontdata/fontdata_ISO10646_1.h
#
#if [ "${MARLIN_LANGS}" == "${LANGS_DEFAULT}" ]; then
if [ 1 = 1 ]; then
@ -82,7 +82,7 @@ if [ 1 = 1 ]; then
TMP1=$(cat tmp1.h) ; rm tmp1.h
TMP2=$(cat tmp2.h) ; rm tmp2.h
cat <<EOF >../src/lcd/dogm/dogm_font_data_ISO10646_1.h
cat <<EOF >../src/lcd/dogm/fontdata/fontdata_ISO10646_1.h
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Loading…
Cancel
Save