nanogui: Thread: Resize Built-in Fonts


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Resize Built-in Fonts
From: "Petro Verheuvel" ####@####.####
Date: 23 Jul 2007 20:10:53 +0100
Message-Id: <000001c7cd5d$301fee00$0c0aa8c0@forel360.nl>

Hi All,
 
I am struggling with the built-in Fonts. I want to have a size that is twice
the "normal" size. Should not be that difficult. But i see that there is no
function defined for setting the size of a built-in font in the
fontprocs-structure (genfont.c).
Before i am starting to hack things i just want to know if i am correct and
if a workaround already exists.
 
Thanks,
Petro
The Netherlands  
Subject: Re: [nanogui] Resize Built-in Fonts
From: "Greg Haerr" ####@####.####
Date: 2 Aug 2007 03:22:19 +0100
Message-Id: <053f01c7d4ab$ec8b5980$6401a8c0@winXP>

> I am struggling with the built-in Fonts. I want to have a size that is
twice
the "normal" size. Should not be that difficult. But i see that there is no
function defined for setting the size of a built-in font in the
fontprocs-structure (genfont.c).

The builtin fonts are a simple mechanism that do not currently
have any mechanism for multiple sizing.  If you're looking for
a double size font, the easiest method is to create externally
a larger font, and add it additionally to the builtin font list.
Otherwise, there's a number of complications regarding
exactly how to scale the height and width of each character
to produce a readable, non-blocky-looking, font.  And
that's just what truetype and the freetype library does.

Regards,

Greg


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.