freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] problem with static linking


From: Anthony Feick
Subject: Re: [Freetype] problem with static linking
Date: Mon, 14 Oct 2002 14:55:58 -0500

Never mind, I just included objs/*.o in the link.

-Tony



From: "Anthony Feick" <address@hidden>
Reply-To: address@hidden
To: address@hidden
Subject: [Freetype] problem with static linking
Date: Mon, 14 Oct 2002 13:45:03 -0500



We want to link statically to freetype because we had to make some small changes to freetype, but ld can't seem to find any freetype functions. When I force my program to do static linking, either by using "-static" or cinfiguring freetype with --disable-shared, the link fails. It works fine if I use shared libraries.


-Tony


P.S.

Here are the changes we made to Freetype 2.0.9:

In the functon "FT_Set_Char_Size"
changed lines 1657 and 1658 of "src/base/ftobjs.c"
<     dim_x = ( ( ( char_width  * horz_resolution ) / 72 ) + 32 ) & -64;
<     dim_y = ( ( ( char_height * vert_resolution ) / 72 ) + 32 ) & -64;
---
    dim_x = ( char_width  * horz_resolution ) / 72;
    dim_y = ( char_height * vert_resolution ) / 72;


In the functon "T1_Face_Init"
replaced lines 377 and 378 of "src/type1/t1objs.c"
<            root->style_name = ( *full == ' ' ? full + 1
<                                              : (char *)"Regular" );
---
          if( *full == ' ' )
            root->style_name = full + 1;
          else if(*full)
            root->style_name = full;
          else
          root->style_name = (char *)"Regular";



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


_______________________________________________
Freetype mailing list
address@hidden
http://www.freetype.org/mailman/listinfo/freetype




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com




reply via email to

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