Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyrillic fonts for your library #11

Open
sfrwmaker opened this issue Aug 20, 2016 · 6 comments
Open

Cyrillic fonts for your library #11

sfrwmaker opened this issue Aug 20, 2016 · 6 comments

Comments

@sfrwmaker
Copy link

Dear sir,
I appreciate the library you created. I would like to add some new cyrillic fonts to your library. How can i send you a file with the font data?

@olikraus
Copy link
Owner

Hi
The project is now continued here: https://github.com/olikraus/u8g2/

Font data should be a bdf file or a ttf file.
For a ttf file i need to know the desired target size.
In both cases, please provide the unicode ranges.

@sfrwmaker
Copy link
Author

Hello!

I have already converted the .bdf font into .c file and have put it into
my copy of the library like this:

/* Cronyx WinCP1251 Fonts */
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1c[]
U8G_FONT_SECTION("u8g_font_cronyx1c");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1cb[]
U8G_FONT_SECTION("u8g_font_cronyx1cb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1cbo[]
U8G_FONT_SECTION("u8g_font_cronyx1cbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1co[]
U8G_FONT_SECTION("u8g_font_cronyx1co");
extern const u8g_fntpgm_uint8_t u8g_font_cronx1h[]
U8G_FONT_SECTION("u8g_font_cronx1h");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1t[]
U8G_FONT_SECTION("u8g_font_cronyx1t");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1tb[]
U8G_FONT_SECTION("u8g_font_cronyx1tb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx1to[]
U8G_FONT_SECTION("u8g_font_cronyx1to");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2c[]
U8G_FONT_SECTION("u8g_font_cronyx2c");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2cb[]
U8G_FONT_SECTION("u8g_font_cronyx2cb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2cbo[]
U8G_FONT_SECTION("u8g_font_cronyx2cbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2co[]
U8G_FONT_SECTION("u8g_font_cronyx2co");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2h[]
U8G_FONT_SECTION("u8g_font_cronyx2h");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2hb[]
U8G_FONT_SECTION("u8g_font_cronyx2hb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2hbo[]
U8G_FONT_SECTION("u8g_font_cronyx2hbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2ho[]
U8G_FONT_SECTION("u8g_font_cronyx2ho");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2t[]
U8G_FONT_SECTION("u8g_font_cronyx2t");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2tb[]
U8G_FONT_SECTION("u8g_font_cronyx2tb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2tbo[]
U8G_FONT_SECTION("u8g_font_cronyx2tbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx2to[]
U8G_FONT_SECTION("u8g_font_cronyx2to");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3c[]
U8G_FONT_SECTION("u8g_font_cronyx3c");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3cb[]
U8G_FONT_SECTION("u8g_font_cronyx3cb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3cbo[]
U8G_FONT_SECTION("u8g_font_cronyx3cbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3co[]
U8G_FONT_SECTION("u8g_font_cronyx3co");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3h[]
U8G_FONT_SECTION("u8g_font_cronyx3h");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3hb[]
U8G_FONT_SECTION("u8g_font_cronyx3hb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3hbo[]
U8G_FONT_SECTION("u8g_font_cronyx3hbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3ho[]
U8G_FONT_SECTION("u8g_font_cronyx3ho");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3t[]
U8G_FONT_SECTION("u8g_font_cronyx3t");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3tb[]
U8G_FONT_SECTION("u8g_font_cronyx3tb");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3tbo[]
U8G_FONT_SECTION("u8g_font_cronyx3tbo");
extern const u8g_fntpgm_uint8_t u8g_font_cronyx3to[]
U8G_FONT_SECTION("u8g_font_cronyx3to");

and
/*
Fontname: -Cronyx-Courier-Medium-R-Normal--8-80-75-75-M-50-RAWIN-R
Copyright: Copyright (C) 1990, 1991 EWT Consulting, Portions
Copyright (C) 1994 Cronyx Ltd.
Capital A Height: 9, '1' Height: 9
Calculated Max Values w= 8 h=12 x= 4 y=11 dx= 8 dy= 0 ascent=11 len=12
Font Bounding box w= 8 h=13 x= 0 y=-2
Calculated Min Values x= 0 y=-2 dx= 0 dy= 0
Pure Font ascent = 9 descent=-2
X Font ascent = 9 descent=-2
Max Font ascent =11 descent=-2
*/
#include "u8g.h"
const u8g_fntpgm_uint8_t u8g_font_cronyx1c[2603]
U8G_FONT_SECTION("u8g_font_cronyx1c") = {
0,8,13,0,254,9,1,193,3,142,32,255,254,11,254,9,
254,0,0,0,8,0,11,1,9,9,8,4,0,128,128,128,
128,128,128,128,0,128,3,3,3,8,3,6,160,160,160,7,
9,9,8,1,0,20,20,126,40,40,40,252,80,80,5,9,
9,8,2,0,32,112,136,128,112,8,136,112,32,7,9,9,
8,1,0,64,162,68,8,16,32,68,138,4,7,9,9,8,
1,0,48,64,64,32,96,146,148,136,118,1,3,3,8,4,
6,128,128,128,3,11,11,8,3,254,32,64,64,128,128,128,
128,128,64,64,32,3,11,11,8,3,254,128,64,64,32,32,
32,32,32,64,64,128,7,5,5,8,1,2,108,56,254,56,
108,7,7,7,8,1,0,16,16,16,254,16,16,16,2,2,
2,8,3,255,64,128,7,1,1,8,1,3,254,1,1,1,
8,4,0,128,7,7,7,8,1,1,2,4,8,16,32,64,
128,5,9,9,8,2,0,112,136,136,136,136,136,136,136,112,
5,9,9,8,2,0,32,224,32,32,32,32,32,32,248,5,
9,9,8,2,0,112,136,8,8,16,32,64,128,248,5,9,
9,8,2,0,112,136,8,8,48,8,8,136,112,5,9,9,
8,2,0,16,48,48,80,80,144,248,16,56,5,9,9,8,
2,0,248,128,128,128,240,8,8,136,112,5,9,9,8,2,
0,48,64,128,128,240,136,136,136,112,5,9,9,8,2,0,
248,136,8,16,16,32,32,64,64,5,9,9,8,2,0,112,
136,136,136,112,136,136,136,112,5,9,9,8,2,0,112,136,
136,136,120,8,8,16,96,1,6,6,8,4,0,128,0,0,
0,0,128,2,7,7,8,3,255,64,0,0,0,0,64,128,
4,7,7,8,2,0,16,32,64,128,64,32,16,5,3,3,
8,2,3,248,0,248,4,7,7,8,3,0,128,64,32,16,
32,64,128,5,9,9,8,2,0,112,136,8,8,16,32,32,
0,32,7,9,9,8,1,0,60,66,154,170,170,170,156,64,
56,7,9,9,8,1,0,48,16,16,40,40,68,124,68,238,
7,9,9,8,1,0,252,66,66,66,124,66,66,66,252,7,
9,9,8,1,0,60,66,128,128,128,128,128,66,60,7,9,
9,8,1,0,248,68,66,66,66,66,66,68,248,7,9,9,
8,1,0,254,66,64,72,120,72,64,66,254,7,9,9,8,
1,0,254,66,64,72,120,72,64,64,240,7,9,9,8,1,
0,60,66,128,128,128,142,130,66,60,7,9,9,8,1,0,
238,68,68,68,124,68,68,68,238,5,9,9,8,2,0,248,
32,32,32,32,32,32,32,248,6,9,9,8,1,0,60,8,
8,8,8,8,136,136,112,7,9,9,8,1,0,230,68,72,
72,80,112,72,68,230,7,9,9,8,1,0,248,32,32,32,
32,32,32,34,254,7,9,9,8,1,0,198,68,108,108,84,
84,68,68,238,7,9,9,8,1,0,206,68,100,100,84,76,
76,68,228,7,9,9,8,1,0,56,68,130,130,130,130,130,
68,56,7,9,9,8,1,0,252,66,66,66,124,64,64,64,
240,7,10,10,8,1,255,56,68,130,130,130,130,130,68,56,
54,7,9,9,8,1,0,252,66,66,66,124,72,72,68,230,
7,9,9,8,1,0,124,130,128,128,124,2,2,130,124,7,
9,9,8,1,0,254,146,16,16,16,16,16,16,56,7,9,
9,8,1,0,238,68,68,68,68,68,68,68,56,7,9,9,
8,1,0,238,68,68,68,40,40,40,16,16,7,9,9,8,
1,0,238,68,68,68,84,84,84,40,40,7,9,9,8,1,
0,238,68,40,40,16,40,40,68,238,7,9,9,8,1,0,
238,68,68,40,40,16,16,16,56,7,9,9,8,1,0,254,
132,8,8,16,32,32,66,254,3,11,11,8,3,254,224,128,
128,128,128,128,128,128,128,128,224,7,7,7,8,1,1,128,
64,32,16,8,4,2,3,10,10,8,3,254,224,32,32,32,
32,32,32,32,32,224,5,3,3,8,2,7,32,80,136,8,
1,1,8,0,254,255,2,2,2,8,3,7,128,64,7,6,
6,8,1,0,120,4,124,132,132,122,7,9,9,8,1,0,
192,64,64,124,66,66,66,66,252,7,6,6,8,1,0,124,
130,128,128,130,124,7,9,9,8,1,0,12,4,4,124,132,
132,132,132,126,7,6,6,8,1,0,124,130,254,128,130,124,
4,9,9,8,2,0,48,64,64,240,64,64,64,64,240,7,
8,8,8,1,254,126,132,132,132,124,4,4,120,7,9,9,
8,1,0,192,64,64,88,100,68,68,68,238,5,9,9,8,
2,0,32,0,0,224,32,32,32,32,248,4,11,11,8,2,
254,16,0,0,240,16,16,16,16,16,16,224,7,9,9,8,
1,0,192,64,64,76,72,80,112,72,198,5,9,9,8,2,
0,96,32,32,32,32,32,32,32,248,7,6,6,8,1,0,
232,84,84,84,84,214,7,6,6,8,1,0,216,100,68,68,
68,238,7,6,6,8,1,0,124,130,130,130,130,124,7,8,
8,8,1,254,252,66,66,66,66,124,64,224,7,8,8,8,
1,254,126,132,132,132,132,124,4,14,7,6,6,8,1,0,
236,50,32,32,32,248,7,6,6,8,1,0,124,130,112,12,
130,124,5,8,8,8,2,0,64,64,240,64,64,64,72,48,
7,6,6,8,1,0,204,68,68,68,76,54,7,6,6,8,
1,0,238,68,68,40,40,16,7,6,6,8,1,0,238,68,
84,84,40,40,7,6,6,8,1,0,238,68,56,56,68,238,
7,8,8,8,1,254,238,68,68,40,40,16,16,96,6,6,
6,8,1,0,252,136,16,32,68,252,5,11,11,8,2,254,
24,32,32,32,32,192,32,32,32,32,24,1,12,12,8,4,
254,128,128,128,128,128,128,128,128,128,128,128,128,5,11,11,
8,2,254,192,32,32,32,32,24,32,32,32,32,192,7,3,
3,8,1,5,98,146,140,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,0,0,0,8,0,11,7,11,
11,8,1,0,108,0,254,66,64,72,120,72,64,66,254,5,
7,7,8,2,0,32,112,136,128,136,112,32,255,7,7,7,
8,1,2,130,124,68,68,68,124,130,7,8,8,8,1,0,
238,68,254,40,254,16,16,56,1,11,11,8,4,254,128,128,
128,128,128,0,128,128,128,128,128,6,9,9,8,1,0,60,
68,160,144,72,36,20,136,240,5,1,1,8,2,8,136,7,
8,8,8,1,1,56,68,154,162,162,154,68,56,4,7,7,
8,2,2,96,16,112,144,112,0,240,7,5,5,8,1,0,
34,68,136,68,34,5,2,2,8,2,4,248,8,7,1,1,
8,1,3,254,7,8,8,8,1,1,56,68,178,170,178,170,
68,56,8,1,1,8,0,9,255,3,3,3,8,3,6,64,
160,64,7,9,9,8,1,0,16,16,16,254,16,16,16,0,
254,3,5,5,8,3,4,64,160,32,64,224,255,2,2,2,
8,4,7,64,128,6,8,8,8,1,254,68,68,68,68,68,
120,64,128,7,9,9,8,1,0,126,244,244,244,116,20,20,
20,54,1,1,1,8,4,3,128,5,8,8,8,2,0,96,
144,128,64,240,64,64,248,3,5,5,8,3,4,192,64,64,
64,224,4,7,7,8,2,2,96,144,144,144,96,0,240,7,
5,5,8,1,0,136,68,34,68,136,7,9,9,8,1,0,
192,66,68,72,242,38,74,158,2,7,9,9,8,1,0,192,
66,68,72,244,42,66,132,14,7,9,9,8,1,0,192,34,
68,40,210,38,74,158,2,7,8,8,8,1,0,108,0,124,
130,254,128,130,124,7,9,9,8,1,0,16,16,16,40,40,
68,124,68,238,7,9,9,8,1,0,254,66,64,64,124,66,
66,66,252,7,9,9,8,1,0,252,66,66,66,124,66,66,
66,252,7,9,9,8,1,0,254,66,64,64,64,64,64,64,
240,7,10,10,8,1,255,126,36,36,36,36,36,36,68,254,
130,7,9,9,8,1,0,254,66,64,72,120,72,64,66,254,
7,9,9,8,1,0,214,84,84,84,56,84,84,84,214,6,
9,9,8,1,0,184,196,132,4,56,4,132,132,120,7,9,
9,8,1,0,238,68,68,76,84,84,100,68,238,7,11,11,
8,1,0,40,16,238,68,68,76,84,84,100,68,238,7,9,
9,8,1,0,230,68,72,72,80,112,72,68,230,7,9,9,
8,1,0,126,36,36,36,36,36,36,36,206,7,9,9,8,
1,0,198,68,108,108,84,84,68,68,238,7,9,9,8,1,
0,238,68,68,68,124,68,68,68,238,7,9,9,8,1,0,
56,68,130,130,130,130,130,68,56,7,9,9,8,1,0,254,
68,68,68,68,68,68,68,238,7,9,9,8,1,0,252,66,
66,66,124,64,64,64,224,7,9,9,8,1,0,58,70,130,
128,128,128,130,66,60,7,9,9,8,1,0,254,146,16,16,
16,16,16,16,56,7,9,9,8,1,0,238,68,68,40,40,
16,16,144,96,7,10,10,8,1,0,16,56,84,146,146,146,
146,84,56,16,7,9,9,8,1,0,238,68,40,40,16,40,
40,68,238,7,10,10,8,1,255,238,68,68,68,68,68,68,
68,254,2,7,9,9,8,1,0,238,68,68,68,76,52,4,
4,14,7,9,9,8,1,0,214,84,84,84,84,84,84,84,
254,7,10,10,8,1,255,214,84,84,84,84,84,84,84,254,
2,7,9,9,8,1,0,240,160,160,32,60,34,34,34,124,
8,9,9,8,0,0,231,66,66,66,114,74,74,74,247,7,
9,9,8,1,0,224,64,64,64,124,66,66,66,252,6,9,
9,8,1,0,112,136,4,4,124,4,4,136,112,8,9,9,
8,0,0,238,81,81,81,113,81,81,81,238,7,9,9,8,
1,0,126,132,132,132,124,36,36,68,206,7,6,6,8,1,
0,120,4,124,132,132,122,6,9,9,8,2,0,4,120,128,
248,132,132,132,132,120,7,6,6,8,1,0,252,66,124,66,
66,252,6,6,6,8,1,0,252,68,64,64,64,224,7,7,
7,8,1,255,126,36,36,36,68,254,130,7,6,6,8,1,
0,124,130,254,128,130,124,7,6,6,8,1,0,214,84,56,
84,84,214,7,6,6,8,1,0,252,130,28,2,130,124,7,
6,6,8,1,0,238,68,76,84,100,238,7,8,8,8,1,
0,56,0,238,68,76,84,100,238,7,6,6,8,1,0,236,
72,80,112,72,230,7,6,6,8,1,0,126,36,36,36,36,
206,7,6,6,8,1,0,198,108,84,84,68,238,7,6,6,
8,1,0,238,68,124,68,68,238,7,6,6,8,1,0,124,
130,130,130,130,124,7,6,6,8,1,0,254,68,68,68,68,
238,7,8,8,8,1,254,252,66,66,66,66,124,64,224,7,
6,6,8,1,0,124,130,128,128,130,124,7,6,6,8,1,
0,254,146,16,16,16,56,7,8,8,8,1,254,238,68,68,
40,40,16,144,96,7,10,10,8,1,254,56,16,124,146,146,
146,146,124,16,56,7,6,6,8,1,0,238,68,56,68,68,
238,7,7,7,8,1,255,238,68,68,68,68,254,2,7,6,
6,8,1,0,238,68,76,52,4,14,7,6,6,8,1,0,
214,84,84,84,84,254,7,7,7,8,1,255,214,84,84,84,
84,254,2,7,6,6,8,1,0,240,160,60,34,34,124,8,
6,6,8,0,0,231,66,114,74,74,247,6,6,6,8,1,
0,224,64,120,68,68,248,7,6,6,8,1,0,124,130,30,
2,130,124,8,6,6,8,0,0,238,81,113,81,81,238,7,
6,6,8,1,0,62,68,68,60,36,206};

Is it acceptable in the version 2 of your library?
Have you implemented the thick line frawing in the new version?

Best regards, Alexander.

Hi
The project is now continued here: https://github.com/olikraus/u8g2/

Font data should be a bdf file or a ttf file.
For a ttf file i need to know the desired target size.
In both cases, please provide the unicode ranges.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASVrH9R01erHe8ApzzIsOfttRmPFaDRKks5qhtN-gaJpZM4JpATk.

@olikraus
Copy link
Owner

If the font is available for the public, then i can integrate this to u8g2.
There is no think line drawing at the monent.

@sfrwmaker
Copy link
Author

Hello!

Here is the link: http://www.kovrik.com/sib/russify/x-windows/#win-fonts
Best regards. Alexander.

If the font is available for the public, then i can integrate this to
u8g2.
There is no think line drawing at the monent.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASVrHzk46fJaYXyzF2FGABY_4nIkllm5ks5qiKZYgaJpZM4JpATk.

@olikraus
Copy link
Owner

i have created an enhancement request in u8g2

@sfrwmaker
Copy link
Author

Thank you very much.

i have created an enhancement request in u8g2


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASVrH4y447IA2PuEtp6X7hiha4i-M23wks5qj8QrgaJpZM4JpATk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants