summaryrefslogtreecommitdiff
path: root/fc-cache
AgeCommit message (Collapse)AuthorFilesLines
2018-03-15call setlocaleAkira TAGOH1-0/+2
2018-02-05Do not mix up font dirs into the list of config dirsAkira TAGOH1-1/+1
2017-12-18Update .uuid only when -r is given but not -f.Akira TAGOH1-0/+3
2017-11-08missing an open parenthesisAkira TAGOH1-1/+1
2017-11-07Add the ruleset description supportAkira TAGOH1-36/+44
Trying to address what these configuration files really do. This change allows to see the short description that mention the purpose of the content in the config file and obtain them through API. This change also encourage one who want to make some UI for the user-specific configuration management. it is the main purpose of this change for me though. Aside from that, I've also made programs translatable. so we see more dependencies on the build time for gettext, and itstool to generate PO from xml.
2015-08-14Fix the broken cache more.Akira TAGOH1-49/+26
Take a look at the nano second in the mtime to figure out if the cache needs to be updated if available. and do the mutex lock between scanning and writing a cache to avoid the conflict. Also we don't need to scan directories again after writing caches. so getting rid of the related code as well. https://bugs.freedesktop.org/show_bug.cgi?id=69845 and for reference: https://bugzilla.redhat.com/show_bug.cgi?id=1236034
2015-01-19Fix a typo in docsAkira TAGOH1-1/+1
2014-12-24fc-cache: Add an option to raise an error if no fonts foundAkira TAGOH2-10/+47
and get back the behavior.
2014-12-16fc-cache: make a fail if no fonts processed on a given pathAkira TAGOH1-1/+4
2014-06-17Read the config files and fonts on the sysroot when --sysroot is given to ↵Akira TAGOH1-4/+6
fc-cache Fix for e96d7760886a3781a46b3271c76af99e15cb0146 https://bugs.freedesktop.org/show_bug.cgi?id=59456
2014-04-10Fix fc-cache fail with -rAkira TAGOH1-1/+1
Do not unlink the cache even if --really-force is given. because re-scanning process expects the cache exists. https://bugs.freedesktop.org/show_bug.cgi?id=77252
2013-12-20Improve the performance issue on rescanning directoriesAkira TAGOH1-2/+8
2013-11-28fc-cache: --sysroot option takes an argumentRoss Burton1-1/+1
The getopt_long option definitions say that sysroot doesn't take an argument, when it in fact does. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-11-05Re-scan font directories only when it contains subdirsAkira TAGOH1-8/+18
Somewhat improves the performance but still need to think about for the situation where both directories and fonts are in.
2013-10-02Workaround the race condition issue on updating cacheAkira TAGOH1-26/+36
2013-04-08build-chain, replace INCLUDES directive by AM_CPPFLAGSSebastian Freundt1-1/+1
As of automake-13.1 the INCLUDES directive is no longer supported. An automake run will return with an error. This changeset simply follows automake's advice to replace INCLUDES by AM_CPPFLAGS.
2013-03-05Bug 59456 - Adding a --sysroot like option to fc-cacheAkira TAGOH1-11/+27
Add an ability to set the system root to generate the caches. In order to do this, new APIs, FcConfigGetSysRoot() and FcConfigSetSysRoot() is available.
2013-01-02Switch .gitignore to git.mkBehdad Esfahbod1-0/+2
2012-12-11Remove the dead codeAkira TAGOH1-7/+0
2012-10-26Use automake variable instead of cleaning files in clean-localAkira TAGOH1-4/+3
just for git.mk coming up from Behdad's threadsafe branch
2012-04-23Create CACHEDIR.TAG when fc-cache is run or only when the cache directory is ↵Akira TAGOH1-72/+1
created at the runtime. Also add FcCacheCreateTagFile() API to do create CACHEDIR.TAG on the cache directory.
2012-04-18Bug 25151 - Move cleanCacheDirectory() from fc-cache.c intoAkira TAGOH1-92/+1
the library Add FcDirCacheScan() API to clean up the cache files in the directory.
2012-03-22fc-cache: improvement of the fix for Bug#39914.Akira TAGOH1-6/+7
Use sizeof() instead of strlen() and use stdio.
2012-03-21Bug 39914 - Please tag the cache directory with CACHEDIR.TAGAkira TAGOH1-0/+77
fc-cache: Create CACHEDIR.TAG at the top of the cache directory. Reviewed-by: Josh Triplett <josh@joshtriplett.org>
2012-03-21fcarch: Check for architecture signature at compile time rather than ↵Jeremy Huddleston1-2/+1
configure time https://bugs.freedesktop.org/show_bug.cgi?id=20208 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-16Fix a build issue due to the use of non-portable variablesAkira TAGOH1-2/+2
$< isn't supported in BSD make say. $(RM) is pre-defined in GNU make though, not in BSD make say. so changed to check on configure if it's pre-defined by make, otherwise set the appropriate command to $(RM). This would be a workaround until it has the certain pre-defined value.
2012-03-16Revert "Fix a build fail on some environment."Akira TAGOH1-5/+5
This reverts commit 0fdfddf2ac93c1c0238b70a265998fd6b5ffe7af. Conflicts: doc/Makefile.am
2012-03-10Fix a build fail on some environment.Akira TAGOH1-5/+5
2010-12-28Make fc-arch stuff cross-compiling-safeBehdad Esfahbod1-1/+1
Fixes: Bug 32679 - fontconfig-2.8.0 does not cross compile Bug 25462 - Cross-compilation doesn't work
2010-11-10Cleanup copyright notices to replace "Keith Packard" with "the author(s)"Behdad Esfahbod2-4/+4
2010-04-20Add fc-pattern cmdline toolBehdad Esfahbod1-0/+1
2010-02-26Bug 25152 Don't sleep(2) if all caches were uptodateBehdad Esfahbod1-4/+8
2009-11-20[fc-cache] Document -r argument in man pageBehdad Esfahbod1-1/+10
2009-06-24[fc-cache] Remove obsolete sentence from man pageBehdad Esfahbod1-4/+1
2009-03-13Replace 'KEITH PACKARD' with 'THE AUTHOR(S)' in license text in all filesBehdad Esfahbod2-4/+4
2009-02-13Cleanup all manpage.* filesBehdad Esfahbod1-1/+1
Recent doc2man generates files called manpage.log. This was breaking build.
2009-02-13Add fc-scan too that runs FcFileScan/FcDirScanBehdad Esfahbod1-0/+1
This is quite similar to fc-query, but calling FcFileScan/FcDirScan instead of FcFreeTypeQuery.
2009-02-13Handle -h and --help according to GNU Coding Standards (#17104)Behdad Esfahbod2-24/+27
Added -h instead of -?. And upon -h and --help, write usave to stdout instead of stdin, and return 0 instead of 1. -? still works like before as that's what getopt returns upon unknown arguments.
2009-02-13Get rid of $Id$ tagsBehdad Esfahbod1-1/+1
2009-02-13Add fc-query (#13019)Behdad Esfahbod1-0/+1
2009-02-13Update man pagesBehdad Esfahbod1-6/+10
2009-02-13Replace RCS Id tags with the file nameBehdad Esfahbod1-1/+1
2008-05-04Call FcFini to make memory debugging easierKeith Packard1-0/+1
FcFini frees all libary data structures so valgrind should report 0 allocations in use when the program exits.
2008-04-18Fix build with !ENABLE_DOCS and no built manpages.Eric Anholt1-2/+6
2008-01-08Eliminate references to freetype from utility Makefile.am'sKeith Packard1-2/+2
The utility programs don't use any freetype interfaces, so they don't need to directly refer to freetype headers or libraries.
2007-11-13Workaround for stat() brokenness in Microsoft's C library (bug 8526)Tor Lillqvist1-0/+3
Fix a couple of longstanding problems with fontconfig on Windows that manifest themselves especially in GIMP. The root cause to the problems is in Microsoft's incredibly stupid stat() implementation. Basically, stat() returns wrong timestamp fields for files on NTFS filesystems on machines that use automatic DST switching. See for instance http://bugzilla.gnome.org/show_bug.cgi?id=154968 and http://www.codeproject.com/datetime/dstbugs.asp As fccache.c now looks at more fields in the stat struct I fill in them all. I noticed that fstat() is used only on a fd just after opening it, so on Win32 I just call my stat() replacement before opening instead... Implementing a good replacement for fstat() would be harder because the code in fccache.c wants to compare inode numbers. There are no (readily accessible) inode numbers on Win32, so I fake it with the hash of the full file name, in the case as it is on disk. And fstat() doesn't know the full file name, so it would be rather hard to come up with a inode number to identify the file. The patch also adds similar handling for the cache directory as for the fonts directory: If a cachedir element in fonts.conf contains the magic string "WINDOWSTEMPDIR_FONTCONFIG_CACHE" it is replaced at runtime with a path under the machine's (or user's) temp folder as returned by GetTempPath(). I don't want to hardcode any pathnames in a fonts.conf intended to be distributed to end-users, most of which who wouldn't know how to edit it anyway. And requiring an installer to edit it gets complicated.
2007-11-03Don't check cache file time stamps when cleaning cache dir.Keith Packard1-9/+1
Cache file mtime is meaningless now that the directory time is encoded in the cache.
2007-10-25Distribute man source files for command line programs (bug 9678).Keith Packard1-3/+3
For systems on whch DOCBOOK is unavailable, distribute command line program manual pages in .man format.
2007-10-18Have fc-cache remove invalid cache files from cache directories.Keith Packard1-16/+18
Old cache file versions, or corrupted cache files should be removed when cleaning cache directories with fc-cache. This only affects filenames which match the fontconfig cache file format, so other files will be left alone.
2007-10-18Don't use X_OK bit when checking for writable directories (bug 12438)Keith Packard1-1/+1
Some mingw versions have broken X_OK checking; instead of trying to work around this in a system-depedent manner, simply don't bother checking for X_OK along with W_OK as such cases are expected to be mistakes, and not sensible access control.