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 [2018/11/15 20:25] – [Building bdfconv] mithat | arduino:custom_fonts_for_ucglib [2021/02/04 02:08] (current) – [Add new code to Ucglib] 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. | ||
+ | |||
+ | Details are provided below. | ||
===== 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 39: | ||
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 53: | ||
==== 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 '' | + | |
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat