nanogui: Problems to scale the standard font
Subject:
Re: [nanogui] Problems to scale the standard font
From:
"Michael Augst" ####@####.####
Date:
20 Sep 2005 09:30:40 +0100
Message-Id: <7079.1127205000@www74.gmx.net>
> > Is there a way to set the size of the standard font?
>
> The standard font isn't TTF format, its in an internal
> format, which isn't resizable. However, you can
> convert any BDF font to this internal format (or load
> it externally, for that matter. Use the convbdf -c
> option for .c output). Anways, this font is converted
> using the Makefile in src/fonts, and then specified
> as the default font in drivers/genfont.c.
>
> > If not, witch files i need besides the "times.ttf" for example to
> > use the truetype font on my ARM, and in witch directories they must
> > be copied?
>
> The config file specifies the default path for ttf fonts, check out
> the FREETYPE section. Otherwise, the full path must be used
> in GrCreateFont().
>
> Regards,
>
> Greg
Thanks for the awnsers, I'm sorry for awnsering that lately.
I allready made a sulution the brute force way by creating a
new 7x4 pixel font in a header. I was using bool arrays for the
pixel and the GrPoint function to draw it on the screen. Packed
all together in a class with fuctions to print out full char arrys
and it becomes handy like the GrText function. Unfortunately my
method slows down the output quite a bit. You can nearly see which
char is actually redrawn, so i defently will give the GrText a second
try.
Michael Augst
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++