arduino:custom_fonts_for_ucglib
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
arduino:custom_fonts_for_ucglib [2018/11/15 17:36] – mithat | arduino:custom_fonts_for_ucglib [2019/09/21 20:17] – mithat | ||
---|---|---|---|
Line 2: | Line 2: | ||
This is how I built custom fonts for [[https:// | This is how I built custom fonts for [[https:// | ||
+ | |||
+ | The basic process involves: | ||
+ | * Convering the OTF or TTF font to BDF format using '' | ||
+ | * Using `bdconf` to convert the BDF format to C. | ||
+ | * Adding the new code to the appropriate Ucglib file. | ||
===== Requirements ===== | ===== Requirements ===== | ||
Line 8: | Line 13: | ||
* A way to convert these to BDF format: '' | * A way to convert these to BDF format: '' | ||
* A way to convert BDF files to the C structures used in Ucglib: '' | * A way to convert BDF files to the C structures used in Ucglib: '' | ||
+ | |||
+ | ==== Getting otf2bdf and fontforge ==== | ||
+ | |||
+ | Both '' | ||
==== Building bdfconv ==== | ==== Building bdfconv ==== | ||
- | Download the [[https:// | + | You will probably have to build '' |
<code shell> | <code shell> | ||
Line 29: | Line 38: | ||
</ | </ | ||
- | '' | + | '' |
- | View the result using '' | + | View the result using '' |
+ | |||
+ | Once the font is in BDF format, you can use '' | ||
==== Convert the BDF file to C using bdfconv ==== | ==== Convert the BDF file to C using bdfconv ==== | ||
Line 44: | Line 55: | ||
==== Add new code to Ucglib ==== | ==== Add new code to Ucglib ==== | ||
- | Paste the content of the new file to '' | + | Paste the content of the new C file to '' |
+ | |||
+ | <code c> | ||
+ | #include " | ||
+ | </ | ||
- | Add an '' | + | Add an '' |
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat