Re: Releasing Xft2 and Fontconfig

Olivier Chapuis <[email protected]>
Newsgroups gmane.comp.xfree86.render
Message-ID <[email protected]>
On Fri, May 24, 2002 at 12:57:34PM -0700, Keith Packard wrote:
> 
> Xft2 and Fontconfig were not ready for XFree86 4.2, but several projects 
> would like use them before XFree86 4.3 ships this fall.  To help those 
> projects along, as well as get a bit more exposure for these new 
> libraries, I'm planning on making a separate release for these packages.
>

This is a great idea, thanks. I've tested your packages and I get
a few problems.

- The output of xft-config --libs gives:

        -L/opt/Xft/lib -lxft ...etc. 
                         ^^^

I think it should be -lXft and not -lxft

- First I've compiled your packages with freetype-2.0.6. So there
is no FT_Get_Next_Char function and this function is defined in
fontconfig/src/fccharset.c. It seems that this definition leads to
an infinite loop somewhere. With such build a simple programs as:

#include <fontconfig/fontconfig.h>
int main()
{
  FcBool result = FcInit();
  return !result;
}

never stop and take 100% of the CPU (nice 20).

After I upgrade to freetype-2.0.9 this problem disappear.

- XftDrawStringUtf8 does not seem to work. I get only blank
strings (of non zero length). I do not have this pb with Xft 1.
If I convert the utf8 string to ucs2 and use XftDrawString16,
no problems too.

- Finally a question about encoding. It seems to me that
XftDrawString8 assumes that the string "encoding" is iso8859-1
XftDrawString16 assumes that the string "encoding" is usc2
XftDrawString32 assumes that the string "encoding" is usc4
Is this the case?
Can we display other encoding than iso8859-1 (as iso8859-15)
with XftDrawString8?


Regards, Olivier
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.