Re: Loading fonts under photon

Frank Liu <[email protected]> Sun, 23 Mar 2003 21:56:58 -0500 (EST)
Newsgroups gmane.os.qnx.openqnx.devel
Message-ID <[email protected]>
Most people on this list are X Window users/developers.
There are only a few photon developers here who may not be able to
answer your question. You could try post your question :
http://www.openqnx.com/jive/forum.jsp?forum=12

Frank

On Thu, 20 Mar 2003, Mirtschink, Michael wrote:

> 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
> _______________________________________________
> openqnx-developer mailing list
> openqnx-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/openqnx-developer
>



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en