Browse Source

Add some doku

AnHardt 9 years ago
parent
commit
1d9699be0f
2 changed files with 8 additions and 6 deletions
  1. 5
    4
      Documentation/LCDLanguageFont.md
  2. 3
    2
      Marlin/fonts/README.fonts

+ 5
- 4
Documentation/LCDLanguageFont.md View File

46
   * nl    Dutch
46
   * nl    Dutch
47
   * ca    Catalan
47
   * ca    Catalan
48
   * eu    Basque-Euskera
48
   * eu    Basque-Euskera
49
+  * cn    Chinese
50
+  * jp    Japanese (Katakana)
49
 
51
 
50
-  and recently on [Thingiverse](http://www.thingiverse.com/) a new port to
51
-  * jp    [Japanese](http://www.thingiverse.com/thing:664397)
52
-
53
- appeared.
54
 
52
 
55
 ## The Problem
53
 ## The Problem
56
   All of this languages, except the English, normally use extended symbol sets, not contained in US-ASCII.
54
   All of this languages, except the English, normally use extended symbol sets, not contained in US-ASCII.
132
 
130
 
133
   You'll find all translatable strings in 'language_en.h'. Please don't translate any strings from 'language.h', this may break the serial protocol.
131
   You'll find all translatable strings in 'language_en.h'. Please don't translate any strings from 'language.h', this may break the serial protocol.
134
 
132
 
133
+  For information about fonts see: Marlin\fonts\README.fonts
134
+
135
+
135
 ## User Instructions
136
 ## User Instructions
136
    Define your hardware and the wanted language in 'Configuration.h'.
137
    Define your hardware and the wanted language in 'Configuration.h'.
137
    To find out what charset your hardware is, define language 'test' and compile. In the menu you will see two lines from the upper half of the charset.
138
    To find out what charset your hardware is, define language 'test' and compile. In the menu you will see two lines from the upper half of the charset.

+ 3
- 2
Marlin/fonts/README.fonts View File

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.
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
 
5
 
6
 How to integrate a new font:
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 then 10 pixel height for the symbols.
8
-We use fixed width fonts. To fit 22 Symbols on the 128 pixel wide screen, the symbols can't be wider than 5 pixel. Maybe you can work with half symbols - two places in the charset will than build one wide symbol.
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 then 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. 
9
 
10
 
10
  * Get 'Fony.exe'
11
  * Get 'Fony.exe'
11
  * Copy one of the existing *.fon files and work with this.
12
  * Copy one of the existing *.fon files and work with this.

Loading…
Cancel
Save