summaryrefslogtreecommitdiff
path: root/src/fcinit.c
AgeCommit message (Collapse)AuthorFilesLines
2005-09-22Fix more gcc4 warnings:Patrick Lam1-1/+1
- Cast sizeof to int, to shut up signedness warnings in comparison. - Add consts where appropriate. reviewed by: Patrick Lam <plam@mit.edu>
2005-08-24Overhaul the serialization system to create one mmapable file per directoryPatrick Lam1-3/+0
and distribute bytes for each directory from a single malloc for that directory. Store pointers as differences between the data pointed to and the pointer's address (s_off = s - v). Don't serialize data structures that never actually get serialized. Separate strings used for keys from strings used for values (in FcPatternElt and FcValue, respectively). Bump FC_CACHE_VERSION to 2.
2005-07-25#ifdef out old cache stuff, replace with first version of new mmappingPatrick Lam1-0/+3
cache. Add *Read and *Write procedures which mmap in and write out the fontconfig data structures to disk. Currently, create cache in /tmp, with different sections for each architecture (as returned by uname's .machine field. Run the fc-cache binary to create a new cache file; fontconfig then uses this cache file on subsequent runs, saving lots of memory. Also fixes a few bugs and leaks.
2005-07-15Forward port cworth's patch to branch.Patrick Lam1-1/+1
2004-12-07Reviewed by: Keith Packard <keithp@keithp.com>Keith Packard1-2/+3
memoize strings and share a single copy for all uses. Note that this could be improved further by using statically allocated blocks and gluing multiple strings together, but I'm basically lazy. In my environment with 800 font files, I get a savings of about 90KB.
2004-12-07Change files from ISO-Latin-1 to UTF-8Keith Packard1-1/+1
2003-08-15Added new FcFini function for cleaning up all memory. Fixed a few memoryCarl Worth1-0/+13
leaks. fc-list now calls FcFini, (and is now leak-free according to valgrind)
2003-03-05Change RCS tagKeith Packard1-2/+2
2002-08-31More complete memory tracking. Install always overwrites header filesKeith Packard1-18/+30
2002-08-22Reimplement FC_LANG as FcTypeLang, freeze patterns, other cleanupKeith Packard1-2/+12
2002-05-23A few random fontconfig build fixesKeith Packard1-1/+7
2002-05-21More autoconf cleanup for fontconfigKeith Packard1-2/+2
2002-05-21Fix autoconf build process for fontconfigKeith Packard1-30/+79
2002-02-19Automatically initialize the fontconfig libraryKeith Packard1-2/+2
2002-02-15fontconfig library: build fixes and compiler warning fixesKeith Packard1-1/+1
2002-02-14Initial revisionKeith Packard1-0/+174