nanogui: Thread: fonts


[<<] [<] Page 2 of 3 [>] [>>]
Subject: Fonts
From: Yan Seiner ####@####.####
Date: 25 Apr 2007 19:43:05 +0100
Message-Id: <462FA100.7060701@seiner.com>

OK, I'm stumped....

I need to try some different fonts, but I can't figure out how fonts work.

I've tried substtituting various monospace fonts in for SystemFixed by 
changing the

#define MWFONT_SYSTEM_FIXED

but what I end up with is a font that appears to be double width - in o 
t h e r   w o r d s   t h e   c h a r s   a r e spaced out too far.

I need to figure out which font (if any) has the line draw characters I 
need (the so-called 'extended ASCII' set, rather than the 
'multinational' set.)

Thanks,

--Yan
Subject: Re: [nanogui] Fonts
From: "Greg Haerr" ####@####.####
Date: 27 Apr 2007 02:08:31 +0100
Message-Id: <09f301c78868$5d42be60$6401a8c0@winXP>

: I need to try some different fonts, but I can't figure out how fonts work.

Fonts can be either loaded at runtime, or compiled-in.  They
are selected using GrCreateFont, using either a pathname or
a pre-set MWFONT_xxx as below, which selects a compiled-in
array index.

See the demos associated with src/fontdemo*.sh for more details.


: 
: I've tried substtituting various monospace fonts in for SystemFixed by 
: changing the
: 
: #define MWFONT_SYSTEM_FIXED

No, you'll never redefine an index.  To compile in another
font, look at src/drivers/genfont.c.

 
: I need to figure out which font (if any) has the line draw characters I 
: need (the so-called 'extended ASCII' set, rather than the 
: 'multinational' set.)

You'll either have to convert a Windows font or find a .bdf for this.

Regards,

Greg

Subject: Fonts
From: Łukasz ####@####.####
Date: 29 Nov 2007 14:09:47 +0000
Message-Id: <1196345373.6658.12.camel@stanowisko-25>

Hi,
  How can I join fonts (converted to C) to my nano-x application ?

Regards,
Łukasz

Subject: Re: [nanogui] Fonts
From: "Greg Haerr" ####@####.####
Date: 29 Nov 2007 16:33:09 +0000
Message-Id: <15f701c832a5$76c87360$6401a8c0@winXP>

:  How can I join fonts (converted to C) to my nano-x application ?

Add the file to drivers/genfont.c, increase NUMBER_FONTS,
and update drivers/Makefile.

Regards,

Greg
Subject: Re: [nanogui] Fonts
From: Łukasz ####@####.####
Date: 29 Nov 2007 17:01:58 +0000
Message-Id: <002301c832a9$84dd0c00$4001a8c0@stanowisko25>

Ok, I convert arial.ttf fonts to bdf because I want to use polish fonts. I 
made changes as you explain below. But If I want to use polish font, ex. ż 
(0x17c) I getting still | font (0x7c).
In GrText function I use GR_TFUTF8 mode.

Regards,
Łukasz

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Łukasz Wójcicki" ####@####.#### ####@####.####
Sent: Thursday, November 29, 2007 5:32 PM
Subject: Re: [nanogui] Fonts


>:  How can I join fonts (converted to C) to my nano-x application ?
>
> Add the file to drivers/genfont.c, increase NUMBER_FONTS,
> and update drivers/Makefile.
>
> Regards,
>
> Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 

Subject: Re: [nanogui] Fonts
From: Łukasz ####@####.####
Date: 29 Nov 2007 17:30:58 +0000
Message-Id: <002a01c832ad$8a96d190$4001a8c0@stanowisko25>

I forgot to say that I use convbdf.pl to convert bdf fonts to C array.
Please for help.

Regards,
Łukasz

----- Original Message ----- 
From: "Łukasz Wójcicki" ####@####.####
To: "Greg Haerr" ####@####.#### ####@####.####
Sent: Thursday, November 29, 2007 6:01 PM
Subject: Re: [nanogui] Fonts


> Ok, I convert arial.ttf fonts to bdf because I want to use polish fonts. I 
> made changes as you explain below. But If I want to use polish font, ex. ż 
> (0x17c) I getting still | font (0x7c).
> In GrText function I use GR_TFUTF8 mode.
>
> Regards,
> Łukasz
>
> ----- Original Message ----- 
> From: "Greg Haerr" ####@####.####
> To: "Łukasz Wójcicki" ####@####.#### 
> ####@####.####
> Sent: Thursday, November 29, 2007 5:32 PM
> Subject: Re: [nanogui] Fonts
>
>
>>:  How can I join fonts (converted to C) to my nano-x application ?
>>
>> Add the file to drivers/genfont.c, increase NUMBER_FONTS,
>> and update drivers/Makefile.
>>
>> Regards,
>>
>> Greg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 

Subject: Re: [nanogui] Fonts
From: "Greg Haerr" ####@####.####
Date: 29 Nov 2007 17:33:11 +0000
Message-Id: <168b01c832ad$e0b309e0$6401a8c0@winXP>

> But If I want to use polish font, ex. ż
(0x17c) I getting still | font (0x7c).
In GrText function I use GR_TFUTF8 mode.

The accessing method is still MWTF_ASCII,
change that in drivers/genfont.c to MWTF_UC16
or MWTF_UTF8, that should solve the problem.
It may be an issue with the other builtin-fonts though.

Regards,

Greg

Subject: Re: [nanogui] Fonts
From: Łukasz ####@####.####
Date: 29 Nov 2007 17:51:53 +0000
Message-Id: <003901c832b0$7fe4e7c0$4001a8c0@stanowisko25>

So, I should change fontprocs structure in genfont.c from MWTF_ASCII to 
MWTF_UC16 or MWTF_UTF8 ? Do I have to change code in other files or other 
places ?

Regards,
Łukasz

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Łukasz Wójcicki" ####@####.#### ####@####.####
Sent: Thursday, November 29, 2007 6:32 PM
Subject: Re: [nanogui] Fonts


>> But If I want to use polish font, ex. ż
> (0x17c) I getting still | font (0x7c).
> In GrText function I use GR_TFUTF8 mode.
>
> The accessing method is still MWTF_ASCII,
> change that in drivers/genfont.c to MWTF_UC16
> or MWTF_UTF8, that should solve the problem.
> It may be an issue with the other builtin-fonts though.
>
> Regards,
>
> Greg
> 

Subject: Re: [nanogui] Fonts
From: Łukasz ####@####.####
Date: 30 Nov 2007 08:21:22 +0000
Message-Id: <1196410860.5781.6.camel@stanowisko-25>

OK. I'am using GR_TFASCII in GrText fuction. Also I change MW_ASCII to
MW_UTF8 or MW_UC16 in genfont.c (fontprocs struct) and I still can't get
my font. Any ideas ?

Regards,
Łukasz

Subject: Re: [nanogui] Fonts
From: Łukasz ####@####.####
Date: 4 Dec 2007 07:24:00 +0000
Message-Id: <002801c83646$9bf27d30$3a00a8c0@stanowisko25>

Ok. It's working correctly for GrText in GR_TFUTF8 mode and MW_UC16 value in 
genfont.c . 

[<<] [<] Page 2 of 3 [>] [>>]


Powered by ezmlm-browse 0.20.