GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pango and fonts

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
clinisbut
Familiar Face


Joined: 10 Apr 2008
Posts: 19

PostPosted: Wed May 07, 2008 3:39 pm    Post subject: pango and fonts Reply with quote

I'm wondering if there is a way I could retrieve bit information of a character font drawed with Pango.

For example:
I will use Pango to draw a character in a say, gtkdrawing area (no antialiased needed, even better if only black and white).
Then I could analize the draw in order to extract values of each pixel and build a row byte value:

Code: (C++)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

0x00,0x00/*  ................  */
0x00,0x00/*  ................  */
0x00,0x00/*  ................  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x00,0x00/*  ................  */
0x60,0x00/*  .##.............  */
0x60,0x00/*  .##.............  */
0x00,0x00/*  ................  */
0x00,0x00/*  ................  */
0x00,0x00   /*  ................  */


Is this easyly possible?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP