Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
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.
|
|
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
|
|
|
|
and get back the behavior.
|
|
|
|
fc-cache
Fix for e96d7760886a3781a46b3271c76af99e15cb0146
https://bugs.freedesktop.org/show_bug.cgi?id=59456
|
|
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
|
|
|
|
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>
|
|
Somewhat improves the performance but still need to think about for the situation
where both directories and fonts are in.
|
|
|
|
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.
|
|
Add an ability to set the system root to generate the caches.
In order to do this, new APIs, FcConfigGetSysRoot() and
FcConfigSetSysRoot() is available.
|
|
|
|
|
|
just for git.mk coming up from Behdad's threadsafe branch
|
|
created at the runtime.
Also add FcCacheCreateTagFile() API to do create CACHEDIR.TAG on the cache
directory.
|
|
the library
Add FcDirCacheScan() API to clean up the cache files in the directory.
|
|
Use sizeof() instead of strlen() and use stdio.
|
|
fc-cache: Create CACHEDIR.TAG at the top of the cache directory.
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
|
|
configure time
https://bugs.freedesktop.org/show_bug.cgi?id=20208
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
$< 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.
|
|
This reverts commit 0fdfddf2ac93c1c0238b70a265998fd6b5ffe7af.
Conflicts:
doc/Makefile.am
|
|
|
|
Fixes:
Bug 32679 - fontconfig-2.8.0 does not cross compile
Bug 25462 - Cross-compilation doesn't work
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Recent doc2man generates files called manpage.log. This was breaking build.
|
|
This is quite similar to fc-query, but calling FcFileScan/FcDirScan instead
of FcFreeTypeQuery.
|
|
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.
|
|
|
|
|
|
|
|
|
|
FcFini frees all libary data structures so valgrind should report 0
allocations in use when the program exits.
|
|
|
|
The utility programs don't use any freetype interfaces, so they
don't need to directly refer to freetype headers or libraries.
|
|
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.
|
|
Cache file mtime is meaningless now that the directory time is encoded in
the cache.
|
|
For systems on whch DOCBOOK is unavailable, distribute command line program
manual pages in .man format.
|
|
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.
|
|
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.
|