nanogui: TTF font weight


Previous by date: 11 Jul 2007 08:48:53 +0100 Re: problem with japanese fonts, ravi kumar
Next by date: 11 Jul 2007 08:48:53 +0100 Re: problem with japanese fonts, Greg Haerr
Previous in thread: 11 Jul 2007 08:48:53 +0100 Re: TTF font weight, Greg Haerr
Next in thread: 11 Jul 2007 08:48:53 +0100 Re: TTF font weight, Greg Haerr

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 


Previous by date: 11 Jul 2007 08:48:53 +0100 Re: problem with japanese fonts, ravi kumar
Next by date: 11 Jul 2007 08:48:53 +0100 Re: problem with japanese fonts, Greg Haerr
Previous in thread: 11 Jul 2007 08:48:53 +0100 Re: TTF font weight, Greg Haerr
Next in thread: 11 Jul 2007 08:48:53 +0100 Re: TTF font weight, Greg Haerr


Powered by ezmlm-browse 0.20.