freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Build of pcfdrivr.c broken if FT_CONFIG_OPTION_USE_ZLIB not d


From: Krzysztof Kowalczyk
Subject: [ft-devel] Build of pcfdrivr.c broken if FT_CONFIG_OPTION_USE_ZLIB not defined
Date: Wed, 27 May 2009 13:31:38 -0700

This is 2.3.9. I have a custom build that doesn't define
FT_CONFIG_OPTION_USE_ZLIB. Compilation fails because of missing
FT_Stream_OpenGzip() symbol from PCF_Face_Init.

Fix is really simple. This is not really a patch, but in PCF_Face_Init
in pcfdrivr.c, this #ifdef needs to be added around the code using
FT_Stream_OpenGzip()):

+#ifdef FT_CONFIG_OPTION_USE_ZLIB
      /* this didn't work, try gzip support! */
      error2 = FT_Stream_OpenGzip( &face->gzip_stream, stream );
      if ( FT_ERROR_BASE( error2 ) == FT_Err_Unimplemented_Feature )
        goto Fail;

      error = error2;
+#endif

Also, it would be good if release process included freetype
compilation with all possible permutations of flags. This hasn't
worked since at least 2.3.7

Also, Visual C compiler complains about: n_edges in
af_latin2_hint_edges() not being used (it's only used in #if 0 block).

Regards,

-- Krzysztof Kowalczyk




reply via email to

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