freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] freetype doesn't load few fonts on mac


From: vishvesh kumar
Subject: [ft-devel] freetype doesn't load few fonts on mac
Date: Sat, 29 Aug 2009 12:15:58 +0530
User-agent: Thunderbird 2.0.0.5 (Macintosh/20070716)

Hi all,
    I have been trying to load fonts on my machine from "/Users/vishvesh/Library/Fonts/" using freetype.
    I  tried loading Times New Roman and Arial freetype couldn't load it. But it loaded mangal and MS Gothic fonts

This is my code
 
    FT_Library library;
    FT_Face face = 0L;
    FT_Error error;
   
    error = FT_Init_FreeType( &library );
    error = FT_New_Face(library, "/Users/vishvesh/Library/Fonts/MS Gothic.ttf", 0, &face ); // return 2 for
Times New Roman and Arial
   
    FT_UInt index;
    FT_ULong charCode = FT_Get_First_Char(face, &index);
    while(index != 0)
    {
        charCode = FT_Get_Next_Char(face, charCode, &index);
    }


There is one similarity though, Times New Roman and Arial didn't have any extension .  mangal and MS Gothic had ttf extension. I tried renaming Arial to Arial.ttf , that didn't help either.

My machine configuration : Mac OS X 10.5.7
  Model Name:    Mac mini
  Model Identifier:    Macmini3,1
  Processor Name:    Intel Core 2 Duo
  Processor Speed:    2 GHz
  Number Of Processors:    1
  Total Number Of Cores:    2
  L2 Cache:    3 MB
  Memory:    3 GB
  Bus Speed:    1.07 GHz
  Boot ROM Version:    MM31.0081.B00
  SMC Version (system):    1.35f0
  Serial Number (system):    YM9122XS19X


Free type version : freetype-2.3.8

Regards,
Vishvesh


reply via email to

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