Parcourir la source

Rename README file for fonts

Scott Lahteine il y a 8 ans
Parent
révision
3613c550fa
2 fichiers modifiés avec 30 ajouts et 23 suppressions
  1. 0
    23
      Marlin/fonts/README.fonts
  2. 30
    0
      Marlin/fonts/README.md

+ 0
- 23
Marlin/fonts/README.fonts Voir le fichier

@@ -1,23 +0,0 @@
1
-The fonts are created with Fony.exe (http://hukka.ncn.fi/?fony) because Fontforge didn't do what I want (probably lack of 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>', replace 'U8G_FONT_SECTION' with 'U8G_SECTION', insert '.progmem.' right behind the first '"' and moved to the main directory.
5
-
6
-How to integrate a new font:
7
-Currently we are limited to 256 symbols per font. We use a menu system with 5 lines, on a display with 64 pixel height. That means we have 12 pixel for a line. To have some space in between the lines we can't use more than 10 pixel height for the symbols. For up to 11 pixel set TALL_FONT_CORRECTION 1 when loading the font.
8
-To fit 22 Symbols on the 128 pixel wide screen, the symbols can't be wider than 5 pixel, for the first 128 symbols.
9
-For the second half of the font we now support up to 11x11 pixel.
10
-
11
- * Get 'Fony.exe'
12
- * Copy one of the existing *.fon files and work with this.
13
- * Change the pixels. Don't change width or height.
14
- * Export as *.bdf
15
- * Use 'bdf2u8g.exe' to produce the *.h file. Examples for the existing fonts are in 'make_fonts.bat'
16
- * Edit the produced .h file to match our needs. See hints in 'README.fonts' or the other 'dogm_font_data_.h' files.
17
- * Make a new entry in the font list in 'dogm_lcd_implementation.h' before the '#else // fall back'
18
-    #elif ENABLED(DISPLAY_CHARSET_NEWNAME)
19
-      #include "dogm_font_data_yourfont.h"
20
-      #define FONT_MENU_NAME YOURFONTNAME
21
-    #else // fall-back
22
- * Add your font to the list of permitted fonts in 'language_en.h'
23
-    ... || ENABLED(DISPLAY_CHARSET_YOUR_NEW_FONT) ... )

+ 30
- 0
Marlin/fonts/README.md Voir le fichier

@@ -0,0 +1,30 @@
1
+The fonts are created with Fony.exe (http://hukka.ncn.fi/?fony) because Fontforge didn't do what I want (probably lack of experience).
2
+
3
+In Fony export the fonts to bdf-format. (Maybe another one can edit them with Fontforge.) Then run `make_fonts.bat` which calls `bdf2u8g.exe` with the parameters needed to produce the `.h` files. The `.h` files must be edited and moved:
4
+- Replace `#include "u8g.h"` with `#include <utility/u8g.h>`,
5
+- Replace `U8G_FONT_SECTION` with `U8G_SECTION`,
6
+- Insert `.progmem.` right after the first quote `"`,
7
+- Move the file to the main directory.
8
+
9
+How to integrate a new font:
10
+Currently we are limited to 256 symbols per font. We use a menu system with 5 lines, on a display with 64 pixel height. That means we have 12 pixels per line. So to have any space between the lines we can use no more than 10 pixel height for the symbols. For up to 11 pixels set TALL_FONT_CORRECTION 1 when loading the font.
11
+To fit 22 Symbols on the 128 pixel wide screen, the symbols can't be wider than 5 pixel, for the first 128 symbols.
12
+For the second half of the font we now support up to 11x11 pixel.
13
+
14
+- Get `Fony.exe` from [hukka.ncn.fi](http://hukka.ncn.fi/?fony)
15
+- Copy one of the existing `*.fon` files and use the copy for your work.
16
+- Only change the pixels. Don't change width or height.
17
+- Export as a `*.bdf` file
18
+- Use `bdf2u8g.exe` to produce the `.h` file. Examples for the existing fonts are in `make_fonts.bat`.
19
+- Edit the produced `.h` file to match our needs. Find hints in the `dogm_font_data_.h` files.
20
+- Make a new entry in the font list in `dogm_lcd_implementation.h` before the `#else // fall-back` line:
21
+```cpp
22
+    #elif ENABLED(DISPLAY_CHARSET_NEWNAME)
23
+      #include "dogm_font_data_yourfont.h"
24
+      #define FONT_MENU_NAME YOURFONTNAME
25
+    #else // fall-back
26
+```
27
+- Add your font to the list of permitted fonts in 'language_en.h'
28
+```cpp
29
+    ... || ENABLED(DISPLAY_CHARSET_YOUR_NEW_FONT) ... )
30
+```

Chargement…
Annuler
Enregistrer