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.
Diff: Fonts/BPG_Arial10x10.h
- Revision:
- 161:0215d0eec1a4
- Parent:
- 158:b656dcf02e14
--- a/Fonts/BPG_Arial10x10.h Sat Jan 12 21:40:51 2019 +0000
+++ b/Fonts/BPG_Arial10x10.h Sun Jan 13 19:02:36 2019 +0000
@@ -1,3 +1,32 @@
+//
+// This script modifies a font file which was generated with a tool by
+// MikroElektronika - GLD Font Creator.
+//
+// That tool creates the font data set for an embedded system from a Windows
+// True Type font. The user is encouraged to ensure that the font used is
+// properly licenses, or drawn from a source that does not have a license
+// restriction.
+//
+// This script will read and then modify the file for a few specific purposes:
+// * <space> character is redefined to set the width to 1/4 the height.
+// * '0' - '9' characters are redefined to set the width equal to width('0')
+// or to the user override value.
+//
+// And just because it can, it then improves upon the documentation in the
+// resulting data structure.
+//
+// This script was created by Smartware Computing, and is provided 'as is'
+// with no warranty or suitability of fitness for any purpose. Anyone may use
+// or modify it subject to the agreement that:
+// * The Smartware copyright statement remains intact.
+// * Modifications for derivative use are clearly stated in this header.
+//
+// Modifications from the original:
+// * none.
+//
+// Script Activation:
+// ParseMikroeFont BPG_Arial10x10.h New_BPG_Arial10x10.h
+
//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
//MikroElektrnika 2011
//http://www.mikroe.com
@@ -5,13 +34,6 @@
//GLCD FontName : BPG_Arial10x10
//GLCD FontSize : 10 x 10
-
-// This font, originally created with MikroElektronika GLCD Font Creator
-// has been modified with a tool by Smartware Computing, to normalize
-// the width of a few characters as follows:
-// * The <space> character width will be modified to be 1/2 the font height.
-// * The digits '0' - '9' will be fixed to the width of the zero.
-
const unsigned char BPG_Arial10x10[] = {
// Font Info
0x00, // Unknown #1
@@ -20,8 +42,8 @@
0x7F,0x00, // LastChar
0x0A, // FontHeight
0x00, // Unknown #3
- // Directory of Chars [Width] [Offset-L] [Offset-H] [0x00]
- 0x05,0x88,0x01,0x00, // 0x20 ' '
+ // Directory of Chars [Width] [Offset-L] [Offset-M] [Offset-H]
+ 0x02,0x88,0x01,0x00, // 0x20 ' '
0x02,0x92,0x01,0x00, // 0x21 '!'
0x03,0x9C,0x01,0x00, // 0x22 '"'
0x06,0xA6,0x01,0x00, // 0x23 '#'
@@ -37,16 +59,16 @@
0x03,0x14,0x02,0x00, // 0x2D '-'
0x02,0x1E,0x02,0x00, // 0x2E '.'
0x03,0x28,0x02,0x00, // 0x2F '/'
- 0x06,0x32,0x02,0x00, // 0x30 '0'
- 0x06,0x3C,0x02,0x00, // 0x31 '1'
- 0x06,0x46,0x02,0x00, // 0x32 '2'
- 0x06,0x50,0x02,0x00, // 0x33 '3'
- 0x06,0x5A,0x02,0x00, // 0x34 '4'
- 0x06,0x64,0x02,0x00, // 0x35 '5'
- 0x06,0x6E,0x02,0x00, // 0x36 '6'
- 0x06,0x78,0x02,0x00, // 0x37 '7'
- 0x06,0x82,0x02,0x00, // 0x38 '8'
- 0x06,0x8C,0x02,0x00, // 0x39 '9'
+ 0x07,0x32,0x02,0x00, // 0x30 '0'
+ 0x07,0x3C,0x02,0x00, // 0x31 '1'
+ 0x07,0x46,0x02,0x00, // 0x32 '2'
+ 0x07,0x50,0x02,0x00, // 0x33 '3'
+ 0x07,0x5A,0x02,0x00, // 0x34 '4'
+ 0x07,0x64,0x02,0x00, // 0x35 '5'
+ 0x07,0x6E,0x02,0x00, // 0x36 '6'
+ 0x07,0x78,0x02,0x00, // 0x37 '7'
+ 0x07,0x82,0x02,0x00, // 0x38 '8'
+ 0x07,0x8C,0x02,0x00, // 0x39 '9'
0x02,0x96,0x02,0x00, // 0x3A ':'
0x02,0xA0,0x02,0x00, // 0x3B ';'
0x06,0xAA,0x02,0x00, // 0x3C '<'