summaryrefslogtreecommitdiff
path: root/fc-cat
AgeCommit message (Collapse)AuthorFilesLines
2006-09-04Hide private functions in shared library. Export functionality for utilities.Keith Packard2-23/+16
Borrowing header stuff written for cairo, fontconfig now exposes in the shared library only the symbols which are included in the public header files. All private symbols are hidden using suitable compiler directives. A few new public functions were required for the fontconfig utility programs (fc-cat and fc-cache) so those were added, bumping the .so minor version number in the process.
2006-09-03Remove all .cvsignore filesKeith Packard1-6/+0
2006-09-02Unify directory canonicalization into FcStrAddFilename.Keith Packard1-1/+1
Instead of making filename canonicalization occur in multiple places, it occurs only in FcStrAddFilename now, as all filenames pass through that function at one point.
2006-09-01Pass directory information around in FcCache structure. Freeze charsets.Keith Packard1-61/+22
Instead of passing directory information around in separate variables, collect it all in an FcCache structure. Numerous internal and tool interfaces changed as a result of this. Charsets are now pre-frozen before being serialized. This causes them to share across multiple fonts in the same cache.
2006-08-31Change $(pkgcachedir) to $(fc_cachedir) in fc-cat and fc-cache Makefile.amKeith Packard1-2/+0
make distcheck caught this bug; the effect of 'make uninstall' would have been to execute 'rm -rf /', somewhat less that desirable.
2006-08-31With no args, fc-cat now dumps all directories.Keith Packard1-26/+93
Automatically list all font directories when no arguments are given to fc-cat. Also add -r option to recurse from specified cache directories. fc-cat also now prints the cache filename in verbose mode, along with the related directory name.
2006-08-31Automatically remove invalid cache files.Keith Packard1-2/+1
Cache files for missing or more recently modified directories are automatically removed at the end of every fc-cache run.
2006-08-30Fix fc-cat again. Sigh.Keith Packard1-12/+25
Internal interfaces in cache management changed again...
2006-08-30FcCharSetSerialize was using wrong offset for leaves. Make fc-cat work.Keith Packard1-63/+71
FcCharSetSerialize was computing the offset to the unserialized leaf, which left it pointing at random data when the cache was reloaded. fc-cat has been updated to work with the new cache structure. Various debug messages extended to help diagnose serialization errors.
2006-08-27Fix up fc-cache and fc-cat for no global cache changes.Keith Packard1-106/+13
fc-cache and fc-cat use internal (fcint.h) APIs that have changed with the elimination of the global cache.
2006-04-25Include $(top_srcdir), $(top_srcdir)/src before anything else.Patrick Lam1-8/+9
Shuffle order of includes for building out of srcdir on win32. reviewed by: plam
2006-04-11Properly convert static charsets to dynamic charsets.Patrick Lam1-1/+3
Fix memory leak in error case (Coverity defects #1820, #1821, #1822). Fix memory leak (Coverity defect #1819). prevent crash when invalid include line is parsed (Coverity defect #763). Fix potential null pointer access (Coverity defect #1804). Remove dead code (Coverity defect #1194). Prevent potential null pointer access (Coverity defect #767), ensure error value is read (Coverity defect #1195). reviewed by: plam
2006-04-07LD_ADD missing dependencies for binaries. Reported by Edson Alves Pereira.Patrick Lam1-1/+1
reviewed by: plam
2006-04-07Patrick Lam <plam@mit.edu>Patrick Lam1-1/+0
Make fontconfig compile under MinGW: 1) remove unneeded #includes; 2) make use of mmap and sysconf conditional; 3) replace rand_r by srand/rand if needed; 4) use chsize instead of ftruncate; and 5) update libtool exports file
2006-03-03More stub definitions and remove FcFileIsDir from fc-cat.Patrick Lam1-10/+0
2006-02-21Initialize fontconfig library in fc-cat to avoid segfault.Patrick Lam1-1/+10
reviewed by: plam
2006-02-17Enable fc-cat to print out old-style cache info when given a directoryPatrick Lam1-1/+25
name.
2006-02-05Make 'make distcheck' work with automake 1.6.3.Patrick Lam1-1/+1
reviewed by: plam
2006-02-05src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, FcDirCacheConsume,Patrick Lam1-3/+2
FcDirCacheWrite) Check I/O call return values and eliminate unused variable warnings. reviewed by: plam
2006-01-30Update fc-cat to handle subdir lists in global cache file.Patrick Lam1-0/+10
Another FcCacheReadString return value check.
2006-01-14Compare device numbers as well as inodes. Always normalize directory namesPatrick Lam1-1/+5
before comparing them. Allocate extra space for appended '/' in directory name. reviewed by: plam
2006-01-09Normalize font dirs by using the form, as given in fonts.conf, and recordedPatrick Lam1-2/+2
in FcConfig's fontDirs string set, as canonical. Actually update config.fontDirs as font directories are scanned.
2006-01-05Add self to AUTHORS list.Patrick Lam1-28/+38
Minor change to global cache file format to fix fc-cat bug reported by Frederic Crozat, and buglet with not globally caching directories with zero fonts cached.
2005-12-09Migrate cache files from fonts directories to /var/cache/fontconfig. ThisPatrick Lam2-2/+13
helps make fontconfig FHS-compliant, but requires that all caches get rebuilt. Also, autogen.sh now needs the additional parameter --localstatedir=/var.
2005-12-07Fix warnings.Patrick Lam1-6/+3
2005-12-01Add codepath for reading global cache files as well.Patrick Lam1-0/+61
2005-11-23Properly apply fcrozat's patch.Patrick Lam1-1/+1
2005-11-232005-11-23 Frederic Crozat <fcrozat@mandriva.com>: reviewed by: plamPatrick Lam1-1/+0
Minor code warning cleanups.
2005-11-18Don't crash when fc-cat invoked with no arguments.Patrick Lam1-0/+3
Fix invalid read access caused by premature free and GCC4 warnings in libxml2 codepath. reviewed by: plam reviewed by: plam
2005-11-01Fix small memory error (tried to free argv); use basename and dirnamePatrick Lam1-3/+1
correctly (they can modify their arguments).
2005-11-01Reinstate basename patch, but keep a hash table linking FcPatterns to theirPatrick Lam1-3/+4
fully-qualified font names for clients' benefit. Clients only pay for the font names once they request the FC_FILE property from an FcPattern, but the font name is malloc'd at that point (i.e. not mmapped: that's impossible, since it may vary between machines.) Clients do have to pay for a copy of the path name per cache file. Note that FcPatternGetString now does some rewriting if you ask for an FC_FILE, appending the pathname as appropriate.
2005-09-27Fix .cvsignore file after copying across directories.Patrick Lam1-2/+2
2005-09-23Add new command-line utility, fc-cat, to convert fonts.cache-2 files intoPatrick Lam4-0/+536
fonts.cache-1 files (e.g. for grepping and validation of the mmap codepath), as per James Cloos' request. Remove done 'TODO' comment. Updates for development release 2.3.90.