freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] macos9 cannot open suitcases or ttf


From: Riccardo Cohen
Subject: [Devel] macos9 cannot open suitcases or ttf
Date: Fri, 04 Oct 2002 11:13:18 +0100

Hi,

1) I try to open a normal font suitcase in "SystemFolder/Fonts".

  char  *path="INTERNE:Dossier Système:Polices:Arial";
  FT_Init_FreeType(&ftlib);
  FT_New_Face(ftlib,path,0,&face));

In ftmac.c  :
- file is detected as FFIL
- in FT_New_Face_From_Suitcase call FT_New_Face_From_FOND
- in FT_New_Face_From_FOND call FT_New_Face_From_LWFN
- in FT_New_Face_From_LWFN call read_lwfn
- in read_lwfn :

      post_data = Get1Resource( 'POST', res_id++ );

gives NULL. so FT_New_Face() return 6 (Invalid_Argument, of course the buffer 
is null)
I looked in 

2) I try to open a normal .ttf that works on my PC:

in FT_Open_Face(), 
    if ( ( args->flags & ft_open_driver ) && args->driver )

fails (args->flags & ft_open_driver==0) , and in the else :

library->num_modules==0 so the loop to find a driver is not even entered.
FT_Open_Face() returns Unknown_File_Format



Did anybody had the same error ?
Thanks a lot.

-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
email = address@hidden
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49



reply via email to

[Prev in Thread] Current Thread [Next in Thread]