Enrico Forestieri <[EMAIL PROTECTED]> writes:

> I read the docs and consulted the fontconfig list archives. There not
> seem to be any out of the following three solutions:
>
> 1) Use FcConfigAppFontAddDir or FcConfigAppFontAddFile to add specific
>    application fonts. This is what is done in the amended
>    fontconfig-2.diff patch. In this way some of our fonts could be
>    shadowed by others. Most notably I get that the wasy10 font is
>    not found because the search criteria are met by the Bitstream Vera
>    Sans font (?).

This looks OK to me (also for 1.5.2svn IMO).

> 2) Register the fonts through Qt. This is what is done in the attached
>    mathfonts.diff patch. Note that this almost the same patch that I
>    tried for solving the same problem on Windows, and it was working there.
>    This is not the case on *nix and I get the same behaviour as with
>    solution 1). I think that this is because, behind the scenes, Qt uses
>    AddFontResourceEx on Windows and FcConfigAppFontAddFile on *nix.

Yes, using the qt version buys us simpler code, but nothing more from
what I saw in the code.

> All in all, I think that the most simple solution is 1) as the needed
> fonts are normally registered with fontconfig and thus correctly found.

I agree.

JMarc

Reply via email to