arduino:custom_fonts_for_ucglib
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:custom_fonts_for_ucglib [2019/09/21 20:17] – mithat | arduino:custom_fonts_for_ucglib [2021/02/04 02:08] (current) – [Add new code to Ucglib] mithat | ||
---|---|---|---|
Line 3: | Line 3: | ||
This is how I built custom fonts for [[https:// | This is how I built custom fonts for [[https:// | ||
- | The basic process | + | Ucglib uses [[https:// |
- | * Convering the OTF or TTF font to BDF format using '' | + | * Convert an OTF or TTF font to BDF format using '' |
- | * Using `bdconf` to convert the BDF format to C. | + | * Use '' |
- | * Adding | + | * Add the new code to the appropriate Ucglib file. |
+ | |||
+ | Details are provided below. | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | Ucglib uses [[https:// | ||
- | * OTF and TTF files of the fonts you want to convert. //Check licenses!// | ||
- | * A way to convert these to BDF format: '' | ||
- | * A way to convert BDF files to the C structures used in Ucglib: '' | ||
==== Getting otf2bdf and fontforge ==== | ==== Getting otf2bdf and fontforge ==== | ||
- | Both '' | + | '' |
==== Building bdfconv ==== | ==== Building bdfconv ==== | ||
Line 55: | Line 53: | ||
==== Add new code to Ucglib ==== | ==== Add new code to Ucglib ==== | ||
- | Paste the content of the new C file to '' | + | - Paste the content of the new C file to '' |
- | + | | |
- | <code c> | + | |
- | #include " | + | |
- | </ | + | |
- | + | ||
- | Add an '' | + | |
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat