nanogui: Not able to change the size of text data ....
Subject:
Re: [nanogui] Not able to change the size of text data ....
From:
"Greg Haerr" ####@####.####
Date:
24 Jan 2008 21:08:04 -0000
Message-Id: <0f3f01c85ecd$313654d0$0300a8c0@RDP>
: fontid = GrCreateFont("times.ttf",15,0) // " arial.ttf"
: fontid = GrCreateFont(GR_FONT_SYSTEM_FIXED,15,0)
: fontid = GrCreateFont(GR_FONT_SYSTEM_VAR,15,0)
Only times.ttf font will accept variable sizes, the others
won't work, as they are fixed bitmaps.
Make sure you have the times.ttf file in the path
specified in your config file:
FREETYPE_FONT_DIR = "fonts/truetype"
You might want to use an absolute path here if your
application changes directories.
: GrSetFont(fontid,15) // value from 0 to 100 didnt made any difference
I'm not sure about this, as there is no GrSetFont api. Do
you mean GrSetFontSize?
Regards,
Greg