Werner LEMBERG | 1 Aug 2004 01:01
Picon

Re: Compiler warnings


> Sorry about that. Here is the full report.

Thanks.  Fixed in the CVS.  Please test.

    Werner
Miro | 2 Aug 2004 20:12
Picon

libfreetype.a

Hi there,

    I'm currently running xorg as my xserver. I compiled freetype and installed it in /usr and /usr/X11R6 as
suggested in Upgrade.unx. When loading the freetype module xorg complains about freetypeModuleData
missing. I have backed up my libFreetype.a from the freetype lib that came with my distro. It does have the
freetypeModuleData function listed under ftmodule.o in libfreetype.a. (this is completly missing
from the new libfreetype.a) So my question is what can I do? is this a Xserver problem or a compilation
problem or...

With best regards
   Miro P.

________
Bezplatny mail, forum, PaciNepaci a viac - http://www.post.sk
Werner LEMBERG | 5 Aug 2004 13:42
Picon

Re: libfreetype.a


> I'm currently running xorg as my xserver. I compiled freetype and
> installed it in /usr and /usr/X11R6 as suggested in Upgrade.unx.
> When loading the freetype module xorg complains about
> freetypeModuleData missing.  I have backed up my libFreetype.a from
> the freetype lib that came with my distro.  It does have the
> freetypeModuleData function listed under ftmodule.o in
> libfreetype.a.  (this is completly missing from the new
> libfreetype.a) So my question is what can I do?  is this a Xserver
> problem or a compilation problem or...

This seems to be an Xserver problem: Vanilla FreeType 2 never had a
function or data structure called `freetypeModuleData'.

    Werner
Werner LEMBERG | 5 Aug 2004 14:00
Picon

Re: mkfontscale and freetype2


> When people launch mkfontscale, I am wondering what API(s) in
> freetype2 is called to acquire the slant/weight/name for the fonts
> in the current directory?  Thank you.

Doing

  grep 'FT_*.('

in mkfontscale.c (from XFree86 4.3.0), I get the following functions:

  FT_Init_FreeType
  FT_Get_Sfnt_Name
  FT_New_Face
  FT_Get_PS_Font_Info
  FT_Has_PS_Glyph_Names
  FT_Get_Name_Index
  FT_Get_Char_Index
  FT_Set_Charmap

You might check the X source tree yourself; uou can find the program
in

  xc/programs/mkfontscale

    Werner
Werner LEMBERG | 5 Aug 2004 14:44
Picon

Re: linking libz.a - problems building freetype2 on solaris 7


> I cannot seem to compile freetype 2 on solaris 7 due to a problem
> with linking in my system zlib (/usr/local/lib/libz.a).  This is the
> output from ./configure [...]

In case you can't solve the problem, I suggest you only build a static
library with

  ./configure --disable-shared --enable-static

     Werner
Veeresh Khanorkar | 5 Aug 2004 16:02
Picon
Favicon

Re: linking libz.a - problems building freetype2 on solaris 7

Please recollect I had send a mail with Subj: Compiling problem: 
Freetype2 on Solaris. I described about problem compiling freetype 2 on 
solaris. My compilation also resulted in same kind error as shown here. 
I will as well like to fix the problem.

Thanks
-Veeresh
Paul Tregoing wrote:

> Hi there,
>
> I cannot seem to compile freetype 2 on solaris 7 due to a problem with 
> linking in my system zlib (/usr/local/lib/libz.a). This is the output 
> from ./configure
>
> root# ./configure --prefix=/apache/modules/freetype/2.1.9
> cd builds/unix; ./configure --prefix=/apache/modules/freetype/2.1.9
> checking build system type... sparc-sun-solaris2.7
> checking host system type... sparc-sun-solaris2.7
> checking target system type... sparc-sun-solaris2.7
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
(Continue reading)

David Turner | 6 Aug 2004 08:00

Re: linking libz.a - problems building freetype2 on solaris 7

Hello,

it seems you're trying to generate a DLL (shared object on Unix)
using a static library (libz.a). This cannot work, since you need
the shared version of zlib (i.e. libz.so) to do that...

Hope this helps,

- David Turner
- The FreeType Project  (www.freetype.org)

Veeresh Khanorkar wrote:
> Please recollect I had send a mail with Subj: Compiling problem: 
> Freetype2 on Solaris. I described about problem compiling freetype 2 on 
> solaris. My compilation also resulted in same kind error as shown here. 
> I will as well like to fix the problem.
> 
> Thanks
> -Veeresh
> Paul Tregoing wrote:
> 
>> Hi there,
>>
>> I cannot seem to compile freetype 2 on solaris 7 due to a problem with 
>> linking in my system zlib (/usr/local/lib/libz.a). This is the output 
>> from ./configure
>>
>> root# ./configure --prefix=/apache/modules/freetype/2.1.9
>> cd builds/unix; ./configure --prefix=/apache/modules/freetype/2.1.9
>> checking build system type... sparc-sun-solaris2.7
(Continue reading)

Paul Tregoing | 6 Aug 2004 12:59
Picon
Favicon

Re: linking libz.a - problems building freetype2 on solaris 7

Problem (sort of) solved: I removed support for compressed font files by 
commenting out the following lines from 
freetype/include/freetype/config/ftoption.h

/* #define FT_CONFIG_OPTION_USE_LZW */
/* #define FT_CONFIG_OPTION_USE_ZLIB */
/* #define  FT_CONFIG_OPTION_SYSTEM_ZLIB */

I know its not a fix per se, but since I don't need support for 
compressed font files on this system I'm not going to worry about it :)

Paul

David Turner wrote:

> Hello,
>
> it seems you're trying to generate a DLL (shared object on Unix)
> using a static library (libz.a). This cannot work, since you need
> the shared version of zlib (i.e. libz.so) to do that...
>
> Hope this helps,
>
> - David Turner
> - The FreeType Project  (www.freetype.org)
>
>
> Veeresh Khanorkar wrote:
>
>> Please recollect I had send a mail with Subj: Compiling problem: 
(Continue reading)

Werner LEMBERG | 7 Aug 2004 17:46
Picon

GPLed fonts


A few weeks ago there was a question where to find GPLed fonts.  Here
is such a site:

  http://www.dustismo.com/site/fonts.html

     Werner
786 | 9 Aug 2004 07:08
Picon
Favicon

Getting number of shapes in Font File

Hello,

For some reason, I need to know the number of shapes in the font file in
FTXGSUB.C's function load_GSUB. Can you please send me the code for getting
the number of glyphs in the font file?

Aamir

Gmane