arduino:custom_fonts_for_ucglib
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
arduino:custom_fonts_for_ucglib [2018/11/15 20:28] – [Add new code to Ucglib] 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 32: | Line 41: | ||
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 ==== |
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat