Xprint's use of FreeType: external symlink difficulties

Drew Parsons dparsons at debian.org
Tue Jan 24 21:42:08 PST 2006


On Sun, 2006-01-22 at 16:43 +1100, Drew Parsons wrote:

> There are a number of problems, related to symlinks made to external
> code, namely freetype2 and ttf2pt1, both found previously in xc/extra.
> Some of the symlinks are made to internal source, so it's not simply a
> matter of installing libfreetype2-dev and working with public
> interfaces. 
> 

> 1) extras/freetype2 and USE_FT_INTERNALS

After discussion with David Turner at freetype-devel, I feel confident
this issue is resolved.

Since the issue was already raised at
https://bugs.freedesktop.org/show_bug.cgi?id=603, I have placed the
patch there. It includes xorg/configure.ac code for switching on
freetype support, only when XPRINT is switched on (can be disabled with
--disable-freetype).

In the course of testing, I found a bug in lib/Xfont: BUILD_FREETYPE was
still being used instead of XFONT_FREETYPE.

Could I kindly request you to apply both patches (attached to bug #603)?
This will enable #603 to be closed.


The other two matters still need resolution:
> 
> 2) extras/ttf2pt1
> 
> PsOut_DownloadFreeType1 is defined in ps/psout_ftpstype1.c. It calls
> ft2pt1_main( ), defined in xc/extras/ttf2pt1/ttf2pt1.c (in place of
> ttf2pt1 normal main() ).
...
> What is the best way to deal with this?  Create a ttf2pt1 subdirectory
> below xorg/Xprint/ps ?  Let it contain a patch to external ttf2pt1,
> copy rather than link files from external, than apply the patch?
> 
> 
> 3) modular lib/Xfont 
> 
> ps/PsFTFonts.c refers to FTFontPtr, defined in modular
> lib/XFont/src/FreeType/ftfuncs.h.  The path can be made directly in the
> monolithic build but in a modular system the header is lost.  How should
> this be resolved?  Will we have to make the Xfont module to start
> providing ftfuncs.h?
> 

Until these latter two problems are fixed, Xprt will not build.  In the
meantime, the patches described above will not cause problems building
the basic Xprt server if --disable-freetype is used in the Xprint
autogen line.

Drew


More information about the xorg-modular mailing list