nanogui: fail to created font


Previous by date: 10 Mar 2004 11:26:52 -0000 Re: fail to created font, Jordan Crouse
Next by date: 10 Mar 2004 11:26:52 -0000 Mail archive search engine broken, Bill Pace / Embedded Magic LLC
Previous in thread: 10 Mar 2004 11:26:52 -0000 Re: fail to created font, Jordan Crouse
Next in thread:

Subject: Re: [nanogui] fail to created font
From: ####@####.####
Date: 10 Mar 2004 11:26:52 -0000
Message-Id: <OF6A3A42A5.6A2F20DB-ON80256E53.003A40F9-80256E53.003BE418@diamond.philips.com>

Hi,

"Liu ql" ####@####.#### wrote:
>i am a newbie in this mail list , and these days i try to make certain how
>the freetype2 engine working .
>i writed a simple demo directly used the function freetype2_createfont( )
>to load *.ttf,
>and then got this message:
>
>#Freetype2: Adding new font: /usr/local/fonts/truetype/times.ttf
>#Freetype2: Freetype 2 error 1 trying to load font.
>#font are fail to be created
>

From /usr/include/freetype2/freetype/fterrors.h:
#  FT_ERRORDEF_( Cannot_Open_Resource,                        0x01, \
#               "cannot open resource" )

So it can't open the font file.  Does it exist & do you have read access?

>any suggestion?

Don't use freetype2_createfont directly - it's an internal
function.  Use the Nano-X API function GrCreateFont().

If you're still having problems, please tell us what versions of
Microwindows and FT2 you're using.  (Microwindows 0.90 or CVS?
Have you read the comment at the top of font_freetype2.c about
tested FT2 versions?)

Kind regards,

Jon Foster
--




Previous by date: 10 Mar 2004 11:26:52 -0000 Re: fail to created font, Jordan Crouse
Next by date: 10 Mar 2004 11:26:52 -0000 Mail archive search engine broken, Bill Pace / Embedded Magic LLC
Previous in thread: 10 Mar 2004 11:26:52 -0000 Re: fail to created font, Jordan Crouse
Next in thread:


Powered by ezmlm-browse 0.20.