Loading fonts under photon
"Mirtschink, Michael" <[email protected]> Thu, 20 Mar 2003 17:17:58 +0100
| Newsgroups | gmane.os.qnx.openqnx.devel |
|---|---|
| Message-ID | <DE2D9BFDDC30D746B357685254D855CD8AC61D@oevsw2ex01.hbi.ad.harman.com> |
Hello everybody!
I have big troubles loading any fonts from files:
loading the file via PfDynamicLoad() works correct, but generating the
stem-name for the font via PfGenerateFontName() always returns NULL?
here's my code:
if((lID = PfDynamicLoad((char const *)filename, fontDesc)) == -1)
{
perror("PfDynamicLoad: ");
PtExit(EXIT_FAILURE);
}
if(PfGenerateFontName(fontDesc, 0 , 14, stem_name) == NULL)
{
printf("PfGenerateFontName() failed!\n");
PtExit(EXIT_FAILURE);
}
On the other side: if I use PtFontSelection() after loading the file,
then I get a valid stem-name returned and I can use the font as usual.
What's wrong with the above code?
thanks for help
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en