[Fontconfig] Various patches for fontconfig
Diego Santa Cruz
Diego.SantaCruz at spinetix.com
Tue Feb 3 05:23:53 PST 2009
Dear all,
Please find attached the fontconfig patches that we are currently using
to fix various issues. Feel free to merge these patches upstream.
- fontconfig-2.6.0-win32-full-path.patch
fix bogus use of GetFullPathName on Win32; the last argument is
a pointer to char* not a char buffer.
- fontconfig-2.6.0-decl.patch
fix C++ style declarations to work with non-gcc C compilers
- fontconfig-2.6.0-APPSHAREFONTDIR.patch
introduce a new magic APPSHAREFONTDIR path in the configuration
file to mean ../share/fonts with respect to the executable location
- fontconfig-2.6.0-Win32-netpath.patch
fix FcConvertDosPath() to not remove leading '\\' so that
network paths work under Win32
- fontconfig-2.6.0-cache-validation.patch
if the in memory and on disk caches are the same validate that
the cache is still up to date, otherwise runtime font installation does
not work until fc-cache or some other app rebuilds the cache file.
- fontconfig-2.6.0-cache-insert.patch
when a cache is rebuilt and inserted into the linked list of
caches the stat data should be brought up to date once the cache is
written to disk, otherwise the next time the cache is verified it will
be reloaded even if the in memory version matches the on disk cache.
- fontconfig-2.6.0-Win32-atomic-replace.patch
under Windows an mmap'ed file cannot be removed so
FcAtomicReplaceOrig() fails if the old cache is larger than
FC_CACHE_MIN_MMAP and is still open (either by the same or other app);
this patch workarounds this issue by renaming the old cache file if the
unlink fails. Note that with this patch fontconfig may leave .OLD cache
files around, but I do not have a better idea on how to overcome this.
Feedback is of course always welcome.
Best,
Diego
--
Diego Santa Cruz, PhD
Technology Architect
_________________________________
SpinetiX S.A.
Rue des Terreaux 17
1003, Lausanne, Switzerland
T +41 21 341 15 50
F +41 21 311 19 56
diego.santacruz at spinetix.com
http://www.spinetix.com
_________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-win32-full-path.patch
Type: application/octet-stream
Size: 364 bytes
Desc: fontconfig-2.6.0-win32-full-path.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-decl.patch
Type: application/octet-stream
Size: 791 bytes
Desc: fontconfig-2.6.0-decl.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-APPSHAREFONTDIR.patch
Type: application/octet-stream
Size: 706 bytes
Desc: fontconfig-2.6.0-APPSHAREFONTDIR.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-Win32-netpath.patch
Type: application/octet-stream
Size: 219 bytes
Desc: fontconfig-2.6.0-Win32-netpath.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0003.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-cache-validation.patch
Type: application/octet-stream
Size: 527 bytes
Desc: fontconfig-2.6.0-cache-validation.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-cache-insert.patch
Type: application/octet-stream
Size: 931 bytes
Desc: fontconfig-2.6.0-cache-insert.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.6.0-Win32-atomic-replace.patch
Type: application/octet-stream
Size: 891 bytes
Desc: fontconfig-2.6.0-Win32-atomic-replace.patch
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090203/b65c4a0d/attachment-0006.obj
More information about the Fontconfig
mailing list