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:16] – [Convert the BDF file to C using bdfconv] mithat | arduino:custom_fonts_for_ucglib [2018/11/15 20:28] – [Add new code to Ucglib] mithat | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Requirements ===== | ===== Requirements ===== | ||
Ucglib uses [[https:// | Ucglib uses [[https:// | ||
- | * OTF (or TTF?) files of the fonts you want to convert. //Check licenses!// | + | * 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 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: '' | ||
Line 11: | Line 11: | ||
==== Building bdfconv ==== | ==== Building bdfconv ==== | ||
- | Download the [[https:// | + | Download the [[https:// |
<code shell> | <code shell> | ||
Line 17: | Line 17: | ||
</ | </ | ||
- | This will build a '' | + | This will build a '' |
===== The process ===== | ===== The process ===== | ||
- | ==== Convert OTF (and TTF?) to BDF ==== | + | ==== Convert OTF or TTF to BDF ==== |
Using '' | Using '' | ||
Line 29: | Line 29: | ||
</ | </ | ||
- | '' | + | '' |
- | View the result using '' | + | View the result using '' |
==== Convert the BDF file to C using bdfconv ==== | ==== Convert the BDF file to C using bdfconv ==== | ||
Line 44: | Line 44: | ||
==== 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 '' |
- | Add an '' | + | <code c> |
+ | #include " | ||
+ | </ | ||
+ | |||
+ | Add an '' | ||
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat