nanogui: How to set font size.


Previous by date: 5 May 2004 08:58:17 +0100 Re: bitmap background and text., jonathan.foster.philips.com
Next by date: 5 May 2004 08:58:17 +0100 KDGKMODE: Invalid argument, John Que
Previous in thread: 5 May 2004 08:58:17 +0100 How to set font size., tj
Next in thread:

Subject: Re: [nanogui] How to set font size.
From: ####@####.####
Date: 5 May 2004 08:58:17 +0100
Message-Id: <OFB9207F97.01109E6B-ON80256E8B.002B1BA8-80256E8B.002BC734@philips.com>




Hi,

>How do you set different font sizes in nano-X WITHOUT using freetype
fonts?
>
>I try to use
>font_a = GrCreateFont (GR_FONT_GUI_VAR , 17,NULL);
>But, when I run it I
>getfnt_createfont: System,17 not found

The built-in fonts are bitmap fonts.  You can only use the sizes that are
compiled in.  Look at the source code for the list.

If you want many sizes, you need to use a scalable font format such as
TrueType or Type1.  You will need to use a font library like the FreeType
2, FreeType 1, or T1 font libraries.

If you want just a few known sizes you can get different bitmap fonts in
the sizes you need.  You can compile them built-in, or use FNT fonts.  Or
you can use a standard font format - I think MW supports PCF & pcf.gz, or
you can access many formats via FreeType 2.

Kind regards,

Jon Foster


Previous by date: 5 May 2004 08:58:17 +0100 Re: bitmap background and text., jonathan.foster.philips.com
Next by date: 5 May 2004 08:58:17 +0100 KDGKMODE: Invalid argument, John Que
Previous in thread: 5 May 2004 08:58:17 +0100 How to set font size., tj
Next in thread:


Powered by ezmlm-browse 0.20.