Skip to content

Commit d4c4093

Browse files
authored
Merge pull request #9 from TcMenu/main-font-correct
#8 font name fixes, bump version
2 parents 429f3e6 + af81f24 commit d4c4093

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"dependencies": [],
17-
"version": "1.0.0",
17+
"version": "1.1.0",
1818
"license": "Apache-2.0",
1919
"frameworks": "arduino,mbed",
2020
"platforms": "*"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
name=tcUnicodeHelper
7-
version=1.0.0
7+
version=1.1.0
88
maintainer=https://www.thecoderscorner.com
99
author=davetcc
1010
category=Other

src/Fonts/OpenSansCyrillicLatin12.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// Approximate size: 11473 bytes
44
// Source file: OpenSans-Regular.ttf
55
// Point size: 12pt
6-
// Variable name: OpenSansRegular12pt
6+
// Variable name: OpenSansCyrillicLatin12
77

88
#include <UnicodeFontDefs.h>
99

1010
// Bitmaps for Cyrillic
11-
const uint8_t OpenSansRegular12ptBitmaps_8[] PROGMEM = {
11+
const uint8_t OpenSansCyrillicLatin12Bitmaps_8[] PROGMEM = {
1212
0x60,0x81,0x00,0xfe,0x08,0x20,0x83,0xf8,0x20,0x82,0x08,0x3f,0x49,0x20,0x00,0xfe,0x08,0x20,0x83,0xf8,
1313
0x20,0x82,0x08,0x3f,0xff,0x02,0x00,0x40,0x08,0x01,0x00,0x3f,0x84,0x18,0x81,0x10,0x22,0x04,0x41,0x88,
1414
0xe0,0x0c,0x21,0x00,0xfe,0x08,0x20,0x82,0x08,0x20,0x82,0x08,0x20,0x1f,0x98,0x58,0x18,0x0c,0x07,0xfb,
@@ -206,7 +206,7 @@ const uint8_t OpenSansRegular12ptBitmaps_8[] PROGMEM = {
206206
};
207207

208208
// Glyphs for Cyrillic
209-
const UnicodeFontGlyph OpenSansRegular12ptGlyphs_8[] PROGMEM = {
209+
const UnicodeFontGlyph OpenSansCyrillicLatin12Glyphs_8[] PROGMEM = {
210210
{ 0, 0, 6, 16, 9, 2, -16} /* [Ѐ] 1024*/ ,
211211
{ 1, 12, 6, 16, 9, 2, -16} /* [Ё] 1025*/ ,
212212
{ 2, 24, 11, 12, 12, 0, -12} /* [Ђ] 1026*/ ,
@@ -461,7 +461,7 @@ const UnicodeFontGlyph OpenSansRegular12ptGlyphs_8[] PROGMEM = {
461461
};
462462

463463
// Bitmaps for Latin Extended-A
464-
const uint8_t OpenSansRegular12ptBitmaps_2[] PROGMEM = {
464+
const uint8_t OpenSansCyrillicLatin12Bitmaps_2[] PROGMEM = {
465465
0x1f,0x00,0x00,0x10,0x07,0x00,0xa0,0x34,0x04,0xc0,0x88,0x21,0x87,0xf1,0x82,0x20,0x64,0x05,0x80,0xc0,
466466
0x3e,0x01,0xf2,0x30,0x20,0x5f,0xe1,0x83,0x8d,0xe8,0x11,0x03,0xc0,0x00,0x02,0x00,0xe0,0x14,0x06,0x80,
467467
0x98,0x11,0x04,0x30,0xfe,0x30,0x44,0x0c,0x80,0xb0,0x18,0x22,0x78,0x03,0xe4,0x60,0x40,0xbf,0xc3,0x07,
@@ -555,7 +555,7 @@ const uint8_t OpenSansRegular12ptBitmaps_2[] PROGMEM = {
555555
};
556556

557557
// Glyphs for Latin Extended-A
558-
const UnicodeFontGlyph OpenSansRegular12ptGlyphs_2[] PROGMEM = {
558+
const UnicodeFontGlyph OpenSansCyrillicLatin12Glyphs_2[] PROGMEM = {
559559
{ 0, 0, 11, 14, 11, 0, -14} /* [Ā] 256*/ ,
560560
{ 1, 20, 7, 11, 9, 1, -11} /* [ā] 257*/ ,
561561
{ 2, 30, 11, 15, 11, 0, -15} /* [Ă] 258*/ ,
@@ -686,7 +686,7 @@ const UnicodeFontGlyph OpenSansRegular12ptGlyphs_2[] PROGMEM = {
686686
};
687687

688688
// Bitmaps for Basic Latin
689-
const uint8_t OpenSansRegular12ptBitmaps_0[] PROGMEM = {
689+
const uint8_t OpenSansCyrillicLatin12Bitmaps_0[] PROGMEM = {
690690
0x00,0x00,0xf5,0x55,0x0f,0xdc,0xe5,0x20,0x08,0x81,0x10,0x24,0x3f,0xf1,0x10,0x22,0x04,0x47,0xfe,0x12,
691691
0x04,0x40,0x88,0x11,0x00,0x10,0x7e,0xd2,0x90,0xd0,0x70,0x1e,0x13,0x13,0x96,0xfc,0x10,0x10,0x70,0x49,
692692
0x08,0x89,0x88,0x90,0x8a,0xe8,0xa9,0x95,0x17,0x51,0x09,0x11,0x91,0x10,0x93,0x0e,0x3c,0x0c,0xc1,0x08,
@@ -739,7 +739,7 @@ const uint8_t OpenSansRegular12ptBitmaps_0[] PROGMEM = {
739739
};
740740

741741
// Glyphs for Basic Latin
742-
const UnicodeFontGlyph OpenSansRegular12ptGlyphs_0[] PROGMEM = {
742+
const UnicodeFontGlyph OpenSansCyrillicLatin12Glyphs_0[] PROGMEM = {
743743
{ 31, 0, 1, 1, 10, 0, -1} /* [] 31*/ ,
744744
{ 32, 1, 1, 1, 4, 0, -1} /* [ ] 32*/ ,
745745
{ 33, 2, 2, 12, 4, 1, -12} /* [!] 33*/ ,
@@ -838,10 +838,10 @@ const UnicodeFontGlyph OpenSansRegular12ptGlyphs_0[] PROGMEM = {
838838
{ 126, 969, 8, 2, 10, 1, -7} /* [~] 126*/
839839
};
840840

841-
const UnicodeFontBlock OpenSansRegular12ptBlocks[] PROGMEM = {
842-
{1024, OpenSansRegular12ptBitmaps_8, OpenSansRegular12ptGlyphs_8, 255} /* Cyrillic */,
843-
{256, OpenSansRegular12ptBitmaps_2, OpenSansRegular12ptGlyphs_2, 127} /* Latin Extended-A */,
844-
{0, OpenSansRegular12ptBitmaps_0, OpenSansRegular12ptGlyphs_0, 127} /* Basic Latin */
841+
const UnicodeFontBlock OpenSansCyrillicLatin12Blocks[] PROGMEM = {
842+
{1024, OpenSansCyrillicLatin12Bitmaps_8, OpenSansCyrillicLatin12Glyphs_8, 255} /* Cyrillic */,
843+
{256, OpenSansCyrillicLatin12Bitmaps_2, OpenSansCyrillicLatin12Glyphs_2, 127} /* Latin Extended-A */,
844+
{0, OpenSansCyrillicLatin12Bitmaps_0, OpenSansCyrillicLatin12Glyphs_0, 127} /* Basic Latin */
845845
};
846846

847-
const UnicodeFont OpenSansRegular12pt[] PROGMEM = { {OpenSansRegular12ptBlocks, 3, 19, TCFONT_ONE_BIT_PER_PIXEL} };
847+
const UnicodeFont OpenSansCyrillicLatin12[] PROGMEM = { {OpenSansCyrillicLatin12Blocks, 3, 19, TCFONT_ONE_BIT_PER_PIXEL} };

src/Fonts/RobotoMedium18.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Approximate size: 2937 bytes
44
// Source file: Roboto-Medium.ttf
55
// Point size: 18pt
6-
// Variable name: RobotoMedium18pt
6+
// Variable name: RobotoMedium18
77

8-
const uint8_t RobotoMedium18ptBitmaps[] PROGMEM = {
8+
const uint8_t RobotoMedium18Bitmaps[] PROGMEM = {
99
0xff,0xe0,0xf0,0x78,0x5a,0x2d,0x26,0x53,0x31,0x88,0xc4,0x66,0x32,0x9a,0x4d,0x17,0x0b,0x83,0xc1,0xff,
1010
0xc0,0x00,0xff,0xff,0xff,0xff,0xfe,0x07,0xfc,0xcf,0x3c,0xf3,0xcf,0x30,0x06,0x30,0x18,0xc0,0x63,0x01,
1111
0x9c,0x06,0x61,0xff,0xf7,0xff,0xc3,0x18,0x0c,0x60,0x33,0x01,0xcc,0x3f,0xfe,0xff,0xf8,0x63,0x01,0x9c,
@@ -116,7 +116,7 @@ const uint8_t RobotoMedium18ptBitmaps[] PROGMEM = {
116116
0xc3,0x8e,0x38,0x20,0x3c,0x1b,0xf0,0xf9,0xcf,0x87,0xec,0x1e,0x00
117117
};
118118

119-
const GFXglyph RobotoMedium18ptGlyphs[] PROGMEM = {
119+
const GFXglyph RobotoMedium18Glyphs[] PROGMEM = {
120120
{ 0, 9, 18, 11, 1, -18 } /* [] 31 */,
121121
{ 21, 1, 1, 6, 0, -1 } /* [ ] 32 */,
122122
{ 22, 3, 18, 7, 2, -18 } /* [!] 33 */,
@@ -215,9 +215,9 @@ const GFXglyph RobotoMedium18ptGlyphs[] PROGMEM = {
215215
{ 2144, 13, 5, 17, 2, -10 } /* [~] 126 */
216216
};
217217

218-
const GFXfont RobotoMedium18pt PROGMEM = {
219-
(uint8_t*)RobotoMedium18ptBitmaps,
220-
(GFXglyph*)RobotoMedium18ptGlyphs,
218+
const GFXfont RobotoMedium18 PROGMEM = {
219+
(uint8_t*)RobotoMedium18Bitmaps,
220+
(GFXglyph*)RobotoMedium18Glyphs,
221221
31, 126,
222222
26
223223
};

src/Fonts/RobotoMedium24.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <UnicodeFontDefs.h>
99

1010
// Bitmaps for Basic Latin
11-
const uint8_t RobotoMedium24ptBitmaps_0[] PROGMEM = {
11+
const uint8_t RobotoMedium24Bitmaps_0[] PROGMEM = {
1212
0xff,0xf8,0x0f,0x01,0xe0,0x5a,0x0b,0x41,0x64,0x4c,0x89,0x92,0x31,0x46,0x28,0xc2,0x18,0x43,0x14,0x62,
1313
0x8c,0x91,0x91,0x32,0x26,0x82,0xd0,0x5c,0x0b,0x80,0xf0,0x1f,0xff,0x00,0xfb,0xde,0xf7,0xbd,0xce,0x73,
1414
0x9c,0xe7,0x39,0xce,0x70,0x00,0x07,0x7f,0xee,0xcf,0x9f,0x3e,0x7c,0xf9,0xf3,0xe7,0x03,0x86,0x00,0xe3,
@@ -204,7 +204,7 @@ const uint8_t RobotoMedium24ptBitmaps_0[] PROGMEM = {
204204
};
205205

206206
// Glyphs for Basic Latin
207-
const UnicodeFontGlyph RobotoMedium24ptGlyphs_0[] PROGMEM = {
207+
const UnicodeFontGlyph RobotoMedium24Glyphs_0[] PROGMEM = {
208208
{ 31, 0, 11, 24, 15, 2, -24} /* [] 31*/ ,
209209
{ 32, 33, 1, 1, 8, 0, -1} /* [ ] 32*/ ,
210210
{ 33, 34, 5, 24, 9, 2, -24} /* [!] 33*/ ,
@@ -303,8 +303,8 @@ const UnicodeFontGlyph RobotoMedium24ptGlyphs_0[] PROGMEM = {
303303
{ 126, 3820, 18, 7, 22, 2, -13} /* [~] 126*/
304304
};
305305

306-
const UnicodeFontBlock RobotoMedium24ptBlocks[] PROGMEM = {
307-
{0, RobotoMedium24ptBitmaps_0, RobotoMedium24ptGlyphs_0, 127} /* Basic Latin */
306+
const UnicodeFontBlock RobotoMedium24Blocks[] PROGMEM = {
307+
{0, RobotoMedium24Bitmaps_0, RobotoMedium24Glyphs_0, 127} /* Basic Latin */
308308
};
309309

310-
const UnicodeFont RobotoMedium24pt[] PROGMEM = { {RobotoMedium24ptBlocks, 1, 33, TCFONT_ONE_BIT_PER_PIXEL} };
310+
const UnicodeFont RobotoMedium24[] PROGMEM = { {RobotoMedium24Blocks, 1, 33, TCFONT_ONE_BIT_PER_PIXEL} };

0 commit comments

Comments
 (0)