nanogui: TTF font weight
Subject:
Re: [nanogui] TTF font weight
From:
"Uwe Klatt" ####@####.####
Date:
11 Jul 2007 08:48:53 +0100
Message-Id: <000e01c7c38f$ea40e690$080814ac@arnstein.miwe.de>
Hi Greg,
> Looks like a small amount of code will need to be written.
Its working when I use no extension for the fontfile name!
CreateFont(50,0,0,0,FW_BOLD,0,0,0,0,0,0,0,0,"/usr/local/fonts/truetype/arial\0");
is working,
CreateFont(50,0,0,0,FW_BOLD,0,0,0,0,0,0,0,0,"/usr/local/fonts/truetype/arial.ttf\0");
is NOT working.
The FW_BOLD flag appends a "b" to the ttf-filename. So finally I get
"arialb.ttf" and this works now.
It would be nice to adjust the "font-weight" without different font files.
This should be possible with numerical values for FW_BOLD.
I will try/check this later.
Thanks Greg
Bye
Uwe