[Bug 490888] All fonts are monospace after upgrade to fontconfig-2.6.99.behdad-3

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 18 23:36:42 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=490888





--- Comment #3 from Behdad Esfahbod <besfahbo at redhat.com>  2009-03-18 19:36:38 EDT ---
commit a03e7b11fbe9a4710575f27e8701fcd7fa902844
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Mar 18 19:28:52 2009 -0400

    [fc-lang] Make LangSet representation in the cache files stable

    Fontconfig assigns an index number to each language it knows about.
    The index is used to index a bit in FcLangSet language map.  The bit
    map is stored in the cache.

    Previously fc-lang simply sorted the list of languages and assigned
    them an index starting from zero.  Net effect is that whenever new
    orth files were added, all the FcLangSet info in the cache files would
    become invalid.  This was causing weird bugs like this one:

      https://bugzilla.redhat.com/show_bug.cgi?id=490888

    With this commit we fix the index assigned to each language.  The index
    will be based on the order the orth files are passed to fc-lang.  As a
    result all orth files are explicitly listed in Makefile.am now, and
    new additions should be made to the end of the list.  The list is made
    to reflect the sorted list of orthographies from 2.6.0 released followed
    by new additions since.

    This fixes the stability problem.  Needless to say, recreating caches
    is necessary before any new orthography is recognized in existing fonts,
    but at least the existing caches are still valid and don't cause bugs
    like the above.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the fonts-bugs mailing list