User Tools

Site Tools


arduino:custom_fonts_for_ucglib

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
arduino:custom_fonts_for_ucglib [2019/09/21 20:17] mithatarduino:custom_fonts_for_ucglib [2019/09/21 20:40] mithat
Line 3: Line 3:
 This is how I built custom fonts for [[https://github.com/olikraus/ucglib | Ucglib]]/[[https://github.com/olikraus/Ucglib_Arduino | Ucglib_Arduino]] on Linux. This is how I built custom fonts for [[https://github.com/olikraus/ucglib | Ucglib]]/[[https://github.com/olikraus/Ucglib_Arduino | Ucglib_Arduino]] on Linux.
  
-The basic process involves+Ucglib uses [[https://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format | BDF]] fonts as a source. The basic process to convert a typical font file for use in Ucglib is
-  * Convering the OTF or TTF font to BDF format using ''otf2bdf'', ''gbdfed'', or ''fontforge''+  * Convert an OTF or TTF font to BDF format using ''[[ http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/otf2bdf ]]'', ''[[http://sofia.nmsu.edu/~mleisher/Software/gbdfed/ | gbdfed]]'', or ''[[https://fontforge.github.io/en-US/fontforge]]''//Check font licenses!// 
-  * Using `bdconfto convert the BDF format to C. +  * Use ''bdconf'' to convert the BDF format to C. 
-  * Adding the new code to the appropriate Ucglib file.+  * Add the new code to the appropriate Ucglib file.
  
 ===== Requirements ===== ===== Requirements =====
-Ucglib uses [[https://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format | BDF]] fonts as a source. You will need: 
-  * OTF and TTF files of the fonts you want to convert. //Check licenses!// 
-  * A way to convert these to BDF format: ''[[ http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/ | otf2bdf ]]'', ''[[http://sofia.nmsu.edu/~mleisher/Software/gbdfed/ | gbdfed]]'', or possibly ''[[https://fontforge.github.io/en-US/ | fontforge]]'' 
-  * A way to convert BDF files to the C structures used in Ucglib: ''bdfconv'', which you will build below. 
  
 ==== Getting otf2bdf and fontforge ==== ==== Getting otf2bdf and fontforge ====
  
-Both ''%%otf2bdf%%'' and '%%fontforge%%'' are available in many Linux distributions.+''%%otf2bdf%%'', ''%%gbdfed%%'' and ''%%fontforge%%'' are available in many Linux distributions.
  
 ==== Building bdfconv ==== ==== Building bdfconv ====
arduino/custom_fonts_for_ucglib.txt · Last modified: 2021/02/04 02:08 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki