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:38] – [Convert OTF or TTF to BDF] mithat | arduino:custom_fonts_for_ucglib [2019/09/21 20:40] – mithat | ||
---|---|---|---|
Line 2: | Line 2: | ||
This is how I built custom fonts for [[https:// | This is how I built custom fonts for [[https:// | ||
+ | |||
+ | Ucglib uses [[https:// | ||
+ | * Convert an OTF or TTF font to BDF format using '' | ||
+ | * Use '' | ||
+ | * Add the new code to the appropriate Ucglib file. | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | Ucglib uses [[https:// | + | |
- | * OTF and TTF files of the fonts you want to convert. //Check licenses!// | + | ==== Getting otf2bdf |
- | * A way to convert these to BDF format: | + | |
- | * A way to convert BDF files to the C structures used in Ucglib: '' | + | '' |
==== Building bdfconv ==== | ==== Building bdfconv ==== | ||
- | Download the [[https:// | + | You will probably have to build '' |
<code shell> | <code shell> | ||
Line 32: | Line 37: | ||
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 51: | ||
==== 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