Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
fonts.cpp
00001 #include "fonts.h" 00002 00003 #include "smallFont.h" 00004 #include "grotesk.h" 00005 #include "moyen.h" 00006 00007 Font *fonts[3]; 00008 00009 Font::Font(int l, int h, int nb, uint8_t *d) 00010 { 00011 larg = l; 00012 haut = h; 00013 nbCarac = nb; 00014 data = d; 00015 } 00016 00017 uint8_t Font::octet(int carac, int i, int j) 00018 { 00019 carac = carac - ' '; 00020 if (carac>nbCarac) return 0; 00021 return data[carac*larg*haut+i*larg+j]; 00022 } 00023 00024 void initFonts() 00025 { 00026 fonts[0] = new Font(2, 16, 94, (uint8_t *)franklingothic_normal); 00027 fonts[1] = new Font(2, 32, 94, (uint8_t *)Grotesk16x32); 00028 fonts[2] = new Font(4, 64, 94, (uint8_t *)grotesk32x64); 00029 } 00030
Generated on Tue Jul 12 2022 19:38:24 by
