]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix multiarch support (don't destroy multiarch files!)
authorPatrick Lam <plam@MIT.EDU>
Fri, 24 Mar 2006 15:21:10 +0000 (15:21 +0000)
committerPatrick Lam <plam@MIT.EDU>
Fri, 24 Mar 2006 15:21:10 +0000 (15:21 +0000)
Require pkg-config. (Thanks Behdad; better solution wanted for libxml2
    detection!)
reviewed by: plam

ChangeLog
configure.in
fonts.conf.in
src/fccache.c

index 3d8e30ccf6dc677415fb05756e186e3ec61aeb39..04fb67bccc43622816966ec0ec49dfff287da434 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-03-24  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       * src/fccache.c (FcGlobalCacheLoad, FcCacheSkipToArch):
+
+       Fix multiarch support (don't destroy multiarch files!)
+
+2006-03-24  Patrick Lam  <plam@mit.edu>
+       * configure.in:
+
+       Require pkg-config.  (Thanks Behdad; 
+       better solution wanted for libxml2 detection!)
+
 2006-03-22  Patrick Lam  <plam@mit.edu>
        * src/fcatomic.c:
 
index f33ecc4c970cfc1b8d671ea14e3e302b399a124a..26fd05b27c710be6f9d489777abd3c6521d5b04e 100644 (file)
@@ -306,6 +306,8 @@ fi
 
 AC_ARG_ENABLE(libxml2,         [  --enable-libxml2              Use libxml2 instead of Expat])
 
+PKG_PROG_PKG_CONFIG
+
 if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then
     PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6])
     AC_DEFINE_UNQUOTED(ENABLE_LIBXML2,1,[Use libxml2 instead of Expat])
index c9014f8bb53cb2cd848478340d0b832c6c3bc952..2ff162ac8057f7fd61733877643401c0afca8ca0 100644 (file)
@@ -72,6 +72,7 @@
   Serif faces
  -->
        <alias>
+               <family>DejaVu Serif</family>
                <family>Bitstream Vera Serif</family>
                <family>Times New Roman</family>
                <family>Thorndale AMT</family>
@@ -91,6 +92,7 @@
   Sans-serif faces
  -->
        <alias>
+               <family>DejaVu Sans</family>
                <family>Bitstream Vera Sans</family>
                <family>Helvetica</family>
                <family>Arial</family>
   Monospace faces
  -->
        <alias>
-               <family>Bitstream Vera Sans Mono</family>
+               <family>DejaVu Sans Mono</family>
                <family>Courier</family>
                <family>Courier New</family>
                <family>Andale Mono</family>
        <alias>
                <family>serif</family>
                <prefer>
+                       <family>DejaVu Serif</family>
                        <family>Bitstream Vera Serif</family>
                        <family>Times New Roman</family>
                        <family>Thorndale AMT</family>
        <alias>
                <family>sans-serif</family>
                <prefer>
+                       <family>DejaVu Sans</family>
                        <family>Bitstream Vera Sans</family>
                        <family>Verdana</family>
                        <family>Arial</family>
        <alias>
                <family>monospace</family>
                <prefer>
+                       <family>DejaVu Sans Mono</family>
                        <family>Bitstream Vera Sans Mono</family>
                        <family>Andale Mono</family>
                        <family>Courier New</family>
index 2a2ac8a4c43dc62a2120406ea615b1e8488133fd..aefba02ae3ed0523ab2a77c451d3afe638528f71 100644 (file)
@@ -206,7 +206,7 @@ FcGlobalCacheLoad (FcGlobalCache    *cache,
     current_arch_start = FcCacheSkipToArch(cache->fd, 
                                           current_arch_machine_name);
     if (current_arch_start < 0)
-        goto bail_and_destroy;
+        goto bail1;
 
     lseek (cache->fd, current_arch_start, SEEK_SET);
     if (!FcCacheReadString (cache->fd, candidate_arch_machine_name, 
@@ -643,6 +643,7 @@ FcCacheSkipToArch (int fd, const char * arch)
        if (strcmp (candidate_arch, arch)==0)
            return current_arch_start;
        current_arch_start += bs;
+       current_arch_start = FcCacheNextOffset (current_arch_start);
     }
 
     return -1;