瀏覽代碼

Added font tools

AnHardt 9 年之前
父節點
當前提交
b14270b029
共有 3 個文件被更改,包括 12 次插入0 次删除
  1. 6
    0
      Marlin/scripts/Fonts/README.fonts
  2. 二進制
      Marlin/scripts/Fonts/bdf2u8g.exe
  3. 6
    0
      Marlin/scripts/Fonts/make_fonts.bat

+ 6
- 0
Marlin/scripts/Fonts/README.fonts 查看文件

@@ -0,0 +1,6 @@
1
+The fonts are created with Fony.exe (http://hukka.ncn.fi/?fony) because Fontforge didn't do what I want (probably lack off experience). 
2
+In Fony export the fonts to bdf-format. Maybe another one can edit them with Fontforge.
3
+Then run make_fonts.bat what calls bdf2u8g.exe with the needed parameters to produce the .h files.
4
+The .h files must be edited to replace '#include "u8g.h"' with '#include <utility/u8g.h>' and moved to the main directory.
5
+
6
+Especially the Kana and Cyrillic fonts should be revised by someone who knows what he/she does. I am only a west-European with very little knowledge about this scripts.

二進制
Marlin/scripts/Fonts/bdf2u8g.exe 查看文件


+ 6
- 0
Marlin/scripts/Fonts/make_fonts.bat 查看文件

@@ -0,0 +1,6 @@
1
+.\bdf2u8g.exe -b 1 -e 9 Marlin_symbols.bdf Marlin_symbols dogm_font_data_Marlin_symbols.h
2
+.\bdf2u8g.exe -b 16 -e 255 HD44780_W.bdf HD44780_W_5x7 dogm_font_data_HD44780_W.h
3
+.\bdf2u8g.exe -b 32 -e 255 HD44780_C.bdf HD44780_C_5x7 dogm_font_data_HD44780_C.h
4
+.\bdf2u8g.exe -b 32 -e 255 HD44780_J.bdf HD44780_J_5x7 dogm_font_data_HD44780_J.h
5
+.\bdf2u8g.exe -b 32 -e 255 ISO10646_5_Cyrillic.bdf ISO10646_5_Cyrillic_5x7 dogm_font_data_ISO10646_5_Cyrillic.h
6
+.\bdf2u8g.exe -b 32 -e 255 ISO10646_Kana.bdf ISO10646_Kana_5x7 dogm_font_data_ISO10646_Kana.h

Loading…
取消
儲存