Akira TAGOH [Thu, 15 Nov 2012 07:37:01 +0000 (16:37 +0900)]
Bug 57114 - regression on FcFontMatch with namelang
After
7587d1c99d9476b6dd4dbe523c0204da700fed8d applied, family,
style, and fullname is localized against current locale or lang
if any though, the string in other languages were dropped from
the pattern. this caused unexpected mismatch on the target="font"
rules.
This fix adds other strings at the end of the list.
Akira TAGOH [Tue, 30 Oct 2012 00:56:24 +0000 (09:56 +0900)]
Bug 56531 - autogen.sh fails due to missing 'm4' directory
Keep m4 directory in git.
Akira TAGOH [Fri, 26 Oct 2012 05:31:23 +0000 (14:31 +0900)]
Use automake variable instead of cleaning files in clean-local
just for git.mk coming up from Behdad's threadsafe branch
Akira TAGOH [Tue, 23 Oct 2012 06:52:37 +0000 (15:52 +0900)]
autogen.sh: Add -I option to tell aclocal a place for external m4 files
Akira TAGOH [Tue, 9 Oct 2012 02:05:59 +0000 (11:05 +0900)]
Fix syntax errors in fonts.dtd.
Patch from Steve Simpson
Akira TAGOH [Tue, 9 Oct 2012 02:03:03 +0000 (11:03 +0900)]
Fix wrongly squashing for the network path on Win32.
Patch from Diego Santa Cruz
Akira TAGOH [Tue, 11 Sep 2012 09:09:36 +0000 (18:09 +0900)]
deal with warnings as errors for the previous change
missed this change to commit. doh!
Akira TAGOH [Fri, 31 Aug 2012 06:10:50 +0000 (15:10 +0900)]
Bug 52573 - patch required to build 2.10.x with oldish GNU C library headers
On older libc, _POSIX_C_SOURCE didn't satisfy to use posix_fadvise()
and AC_CHECK_FUNCS doesn't check a header file if the function is
declared there properly. so use AC_LINK_IFELSE instead.
Akira TAGOH [Fri, 31 Aug 2012 03:39:38 +0000 (12:39 +0900)]
Bug 54138 - X_OK permission is invalid for win32 access(..) calls
X_OK checking was added back in
8ae1e3d5dc323542e7def06a42deea62c7ba7027
which was removed due to the same reason in
238489030a64fa883f8f9fc3d73247b7f7257899.
apparently the test case in Bug#18934 still works without it.
so I'm removing it again to get this working on Windows.
Jeremy Huddleston Sequoia [Mon, 27 Aug 2012 21:52:23 +0000 (14:52 -0700)]
Remove _CONFIG_FIXUPS_H_ guards, so multiple includes of "config.h" result in the correct values
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Akira TAGOH [Mon, 27 Aug 2012 07:36:49 +0000 (16:36 +0900)]
Fix for libtoolize's warnings
Behdad Esfahbod [Sat, 25 Aug 2012 18:10:14 +0000 (14:10 -0400)]
Fix N'ko orthography
Akira TAGOH [Thu, 16 Aug 2012 11:33:12 +0000 (20:33 +0900)]
Bug 53585 - Two highly-visible typos in src/fcxml.c
Akira TAGOH [Fri, 27 Jul 2012 02:22:14 +0000 (11:22 +0900)]
Bump version to 2.10.1
Akira TAGOH [Mon, 23 Jul 2012 04:59:16 +0000 (13:59 +0900)]
Install config files first
Use install-data-hook instead of install-data-local.
This allows on the real installation to create a symlink with
the broken ln command though, still not work with the pseudo
installation by using DESTDIR say.
Akira TAGOH [Thu, 19 Jul 2012 01:20:30 +0000 (10:20 +0900)]
Fix a typo in fontconfig.pc
Reported by Daniel Macks
Akira TAGOH [Tue, 17 Jul 2012 05:20:48 +0000 (14:20 +0900)]
correct version
Akira TAGOH [Tue, 17 Jul 2012 02:36:01 +0000 (11:36 +0900)]
Bump version to 2.10
Akira TAGOH [Tue, 17 Jul 2012 02:35:41 +0000 (11:35 +0900)]
Update INSTALL
Akira TAGOH [Tue, 17 Jul 2012 02:34:31 +0000 (11:34 +0900)]
Bump libtool revision
Akira TAGOH [Mon, 18 Jun 2012 02:23:39 +0000 (11:23 +0900)]
Fix a build fail with gcc 2.95, not supporting the flexible array members.
Akira TAGOH [Fri, 6 Jul 2012 10:02:05 +0000 (19:02 +0900)]
Update CaseFolding.txt to Unicode 6.1
Akira TAGOH [Tue, 3 Jul 2012 10:56:56 +0000 (19:56 +0900)]
Bug 34266 - configs silently ignored if libxml2 doesn't support SAX1 interface
Check if libxml2 has built with --with-sax1
Akira TAGOH [Mon, 25 Jun 2012 05:57:51 +0000 (14:57 +0900)]
Bump version to 2.9.92
Akira TAGOH [Mon, 25 Jun 2012 05:57:40 +0000 (14:57 +0900)]
Update INSTALL
Akira TAGOH [Mon, 25 Jun 2012 05:50:18 +0000 (14:50 +0900)]
Bump libtool revision
Akira TAGOH [Tue, 24 Apr 2012 10:11:41 +0000 (19:11 +0900)]
Bug 18726 - RFE: help write locale-specific tests
Add an example matching rule for the language specific
Marius Tolzmann [Thu, 21 Jun 2012 19:01:10 +0000 (21:01 +0200)]
Fix warning about deprecated, non-existent config includes
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: reading configurations from ~/.fonts.conf.d is deprecated.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
Be polite and do not issue the warning if deprecated config includes
(e.g. ~/.fonts.conf.d and/or ~/.fonts.conf) do not exist.
Marius Tolzmann [Thu, 21 Jun 2012 19:01:09 +0000 (21:01 +0200)]
Fix newline in warning about deprecated config includes
Akira TAGOH [Mon, 18 Jun 2012 09:31:36 +0000 (18:31 +0900)]
Rename configure.in to configure.ac
Akira TAGOH [Mon, 18 Jun 2012 01:52:21 +0000 (10:52 +0900)]
clean up the lock file properly on even hardlink-not-supported filesystem.
Akira TAGOH [Thu, 14 Jun 2012 02:27:31 +0000 (11:27 +0900)]
Fix the fail of make install with --disable-shared on Win32
Akira TAGOH [Wed, 13 Jun 2012 11:01:30 +0000 (20:01 +0900)]
Fix a build fail on MINGW
Akira TAGOH [Tue, 12 Jun 2012 02:02:03 +0000 (11:02 +0900)]
Fix a typo and build fail.
Akira TAGOH [Mon, 11 Jun 2012 05:14:41 +0000 (14:14 +0900)]
Bug 50835 - Deprecate FC_GLOBAL_ADVANCE
FC_GLOBAL_ADVANCE is deprecated. this flag is simply ignored on
freetype 2.4.5 or later.
Akira TAGOH [Mon, 11 Jun 2012 11:15:15 +0000 (20:15 +0900)]
Bump version to 2.9.91
Mark Brand [Mon, 11 Jun 2012 11:13:02 +0000 (20:13 +0900)]
fix building for WIN32
8c255fb185d5651b57380b0a9443001e8051b29d moved some code out of switch
but did not declare 'buffer'. Also, replacing the "break" with
"goto bail" neglected the WIN32 specific code.
Akira TAGOH [Mon, 11 Jun 2012 09:43:56 +0000 (18:43 +0900)]
Generate bzip2-compressed tarball too
Akira TAGOH [Mon, 11 Jun 2012 09:39:37 +0000 (18:39 +0900)]
doc: Fix distcheck error again...
Akira TAGOH [Mon, 11 Jun 2012 08:48:12 +0000 (17:48 +0900)]
Bump libtool revision
Akira TAGOH [Fri, 8 Jun 2012 10:41:59 +0000 (19:41 +0900)]
Bug 50525 - superfluous whitespace in the style
Akira TAGOH [Fri, 8 Jun 2012 10:17:57 +0000 (19:17 +0900)]
fcdefault: Add the lang object at FcConfigSubstituteWithPat() only when kind is FcMatchPattern
Akira TAGOH [Fri, 8 Jun 2012 06:54:48 +0000 (15:54 +0900)]
fcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore
Akira TAGOH [Tue, 22 May 2012 05:17:10 +0000 (14:17 +0900)]
Add the default language to the pattern prior to do build the substitution
the default language is referred from the FC_LANG environment variable
or the current locale
Akira TAGOH [Fri, 8 Jun 2012 06:47:52 +0000 (15:47 +0900)]
fcdefault: fallback if the environment variables are empty
try to fallback if FC_LANG, LC_ALL, LC_CTYPE and LANG is empty
Akira TAGOH [Thu, 29 Mar 2012 11:25:20 +0000 (20:25 +0900)]
Bug 32853 - Export API to get the default language
Add a new API FcGetDefaultLangs() to export the string sets of the default
languages.
Akira TAGOH [Fri, 1 Jun 2012 10:06:17 +0000 (19:06 +0900)]
Fix the wrong estimation for the memory usage information in fontconfig
Akira TAGOH [Thu, 31 May 2012 03:46:55 +0000 (12:46 +0900)]
Fix a typo and polish the previous change
Akira TAGOH [Wed, 30 May 2012 09:21:57 +0000 (18:21 +0900)]
Fix the build fail on Solaris
It's introduced by
0ac6c98294d666762960824d39329459b22b48b7.
Use lstat() and S_ISDIR() to check if it's the directory or not
if there are no d_type in struct dirent.
Mikhail Gusarov [Mon, 28 May 2012 05:52:21 +0000 (14:52 +0900)]
Fix cache aging for fonts on FAT filesystem under Linux
Windows does not update mtime of directory on FAT filesystem when
file is added to it or removed from it. Fontconfig uses mtime of
directory to check cache file aging and hence fails to detect
newly added or recently removed files.
This changeset detects FAT filesystem (currently implemented for
Linux) and adds generating checksum of directory entries instead
of using mtime which guarantees proper cache rebuild.
For non-FAT filesystems this patch adds single syscall per directory
which is negligeable overhead.
This fixes bug https://bugs.freedesktop.org/show_bug.cgi?id=25535
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Akira TAGOH [Mon, 28 May 2012 04:59:48 +0000 (13:59 +0900)]
Move statfs/statvfs wrapper to fcstat.c and add a test for the mtime broken fs
just rework to share the efforts between FcIsFsMmapSafe() and FcIsFsMtimeBroken().
Mikhail Gusarov [Sun, 29 Apr 2012 10:56:16 +0000 (12:56 +0200)]
Move FcStat to separate compilation unit
FcStat() logic is quite complicated in presence of various semi-broken operating
systems and filesystems, split it out in order to make it a bit easier.
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Akira TAGOH [Mon, 28 May 2012 06:58:56 +0000 (15:58 +0900)]
fcatomic: fallback to create a directory with FcAtomicLock
link(2) might be failed on the filesystem that doesn't support
the hard link. e.g. FcAtomicLock() always fails on FAT filesystem
when link(2) is available.
So that may be a good idea to fallback if link(2) is failed.
Akira TAGOH [Mon, 21 May 2012 04:43:20 +0000 (13:43 +0900)]
Bug 33644 - Fontconfig doesn't match correctly in <test>
Warn if the multiple values is set to <test>, including the case of
in <alias> because the behavior isn't intuitive since so many users
is asking for a help to get things working for their expectation.
Use multiple <match>s or <alias>es for OR operator and
multiple <test>s for AND operator.
Akira TAGOH [Mon, 21 May 2012 04:37:54 +0000 (13:37 +0900)]
Correct the example
Enclose the string with <string> in <test>
Akira TAGOH [Mon, 12 Mar 2012 10:18:19 +0000 (19:18 +0900)]
Bug 20411 - fontconfig doesn't match FreeDesktop directories specs
Allows reading configuration files, fonts and cache files from
the directories where the XDG Base Directory Specification defines.
the old directories are still in the configuration files for
the backward compatibility.
Akira TAGOH [Wed, 11 Apr 2012 10:52:35 +0000 (19:52 +0900)]
Bug 19128 - Handling whitespace in aliases
Add a new attribute `ignore-blanks' to <test>.
When this is set to "true", any blanks in the string will be ignored
on comparison. This takes effects for compare="eq" or "not_eq" only.
Also changed the behavior of the comparison on <alias> too.
Akira TAGOH [Thu, 10 May 2012 07:47:09 +0000 (16:47 +0900)]
fcarch.c: get rid of the duplicate definition of FC_MAX
FC_MAX is also available in src/fcint.h
Akira TAGOH [Thu, 10 May 2012 07:36:10 +0000 (16:36 +0900)]
fonts.conf: keeps same binding for alternatives
Since the binding is affected to the score, the replacement should
have same binding to avoid the unexpected estimation.
Keith Packard [Wed, 2 May 2012 02:28:27 +0000 (19:28 -0700)]
Deal with architectures where ALIGNOF_DOUBLE < 4
This patch isn't really tested as I don't have such a machine, but I
have a bug report that on m68k machines, double values are aligned on
smaller than 4 byte boundaries. If ALIGNOF_DOUBLE < sizeof(int),
the "expected" sizeof of FcValue is miscomputed. Use the maximum of 4
(sizeof (int)) and ALIGNOF_DOUBLE when computing the expected size of
FcValue.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 2 May 2012 02:28:26 +0000 (19:28 -0700)]
Extra ',' in AC_ARG_WITH(arch causes arch to never be autodetected
Commit
87d7b82a98780223422a829b6bb1a05fd753ae5e reformatted this
part of the configure script, accidentally introducing a spurious
comma.
Signed-off-by: Keith Packard <keithp@keithp.com>
Akira TAGOH [Tue, 1 May 2012 11:18:41 +0000 (20:18 +0900)]
Output more verbose debugging log to show where to insert the element into the value list
Akira TAGOH [Wed, 11 Apr 2012 10:52:35 +0000 (19:52 +0900)]
Bug 39278 - make usage of mmap optional
Stop using mmap() if the cache file is stored on NFS.
also added FONTCONFIG_USE_MMAP environment variable to enforce the use of
or not the use of mmap(2) regardless of what the filesystem the cache files
are stored on.
Akira TAGOH [Wed, 25 Apr 2012 07:21:33 +0000 (16:21 +0900)]
Disable iconv support anyway...
Akira TAGOH [Mon, 26 Mar 2012 07:34:34 +0000 (16:34 +0900)]
Bug 27765 - FcMatch() returns style in wrong language
Add "namelang" object to obtain the localized name in the font regardless
of the lang object. it's applied to "familylang", "stylelang" and
"fullnamelang" alltogether. this would helps if one wants to enforce
selecting them in the specific language if any. the default value for
the namelang object is determined from current locale.
Akira TAGOH [Tue, 24 Apr 2012 02:40:51 +0000 (11:40 +0900)]
Add --enable-iconv option to configure
Disable iconv support by default, which provide a feature to convert
non-Unicode SFNT names to UTF-8.
Akira TAGOH [Wed, 28 Mar 2012 08:28:06 +0000 (17:28 +0900)]
Create CACHEDIR.TAG when fc-cache is run or only when the cache directory is created at the runtime.
Also add FcCacheCreateTagFile() API to do create CACHEDIR.TAG on the cache
directory.
Akira TAGOH [Fri, 20 Apr 2012 10:08:59 +0000 (19:08 +0900)]
Bug 47721 - Add ChromeOS fonts to 30-metric-aliases.conf
Akira TAGOH [Sun, 22 Apr 2012 12:40:44 +0000 (21:40 +0900)]
C++11 requires a space between literal and identifier
Reported by Buganini
Akira TAGOH [Fri, 20 Apr 2012 11:04:17 +0000 (20:04 +0900)]
Fix a build issue again when no regex functions available
Reported by Jon TURNEY
Akira TAGOH [Fri, 20 Apr 2012 02:17:41 +0000 (11:17 +0900)]
Rework to avoid adding the unexpected value to ICONV_CFLAGS and ICONV_LIBS
Akira TAGOH [Wed, 18 Apr 2012 03:55:23 +0000 (12:55 +0900)]
Bug 25151 - Move cleanCacheDirectory() from fc-cache.c into
the library
Add FcDirCacheScan() API to clean up the cache files in the directory.
Keith Packard [Mon, 16 Apr 2012 18:28:36 +0000 (11:28 -0700)]
Use posix_fadvise to speed startup
Given that fontconfig will scan all of the cache file data during the
first font search, ask the kernel to start reading the pages right away.
Signed-off-by: Keith Packard <keithp@keithp.com>
Akira TAGOH [Mon, 16 Apr 2012 11:25:52 +0000 (20:25 +0900)]
doc: Fix a typo of the environment variable name.
Akira TAGOH [Fri, 13 Apr 2012 02:09:04 +0000 (11:09 +0900)]
Add --with-expat, --with-expat-includes and --with-expat-lib back.
Akira TAGOH [Thu, 12 Apr 2012 05:01:25 +0000 (14:01 +0900)]
Bug 27526 - Compatibility fix for old windows sytems
Patch from Gianluigi Tiesi
Akira TAGOH [Thu, 12 Apr 2012 02:01:12 +0000 (11:01 +0900)]
Bug 48573 - platform without regex do not have also REG_XXX defines
Fix a build issue on the platforms where regex isn't available
Akira TAGOH [Mon, 9 Apr 2012 03:51:12 +0000 (12:51 +0900)]
Bug 28491 - Allow matching on FC_FILE
Allow :file=/path/to/font/file on matching
Akira TAGOH [Tue, 10 Apr 2012 09:34:11 +0000 (18:34 +0900)]
Bug 26830 - Add search for libiconv non-default directory
Add --with-libiconv, --with-libiconv-includes and --with-libiconv-lib
to specify the directory where libiconv might be installed.
Akira TAGOH [Wed, 4 Apr 2012 05:47:57 +0000 (14:47 +0900)]
Bug 22862 - <alias> ignores <match> <test>s
Allow to use the test elements in the alias element.
Akira TAGOH [Wed, 4 Apr 2012 07:49:30 +0000 (16:49 +0900)]
Bug 29341 - Make some fontconfig paths configurable
Add configure options to set the directory to be installed:
--with-templatedir for the configuration files a.k.a.
/etc/fonts/conf.avail
--with-baseconfigdir for fonts.conf etc a.k.a. /etc/fonts
--with-configdir for the active configuration files a.k.a.
/etc/fonts/conf.d
--with-xmldir for fonts.dtd etc
and the default path for templatedir is changed to
${datadir}/fontconfig/conf.avail
Akira TAGOH [Mon, 2 Apr 2012 06:38:27 +0000 (15:38 +0900)]
Use pkgconfig to check builddeps
Akira TAGOH [Mon, 2 Apr 2012 05:32:44 +0000 (14:32 +0900)]
Use AC_HELP_STRING instead of formatting manually
Akira TAGOH [Fri, 30 Mar 2012 09:09:14 +0000 (18:09 +0900)]
doc: Add contains and not_contains operators and elements
Akira TAGOH [Fri, 30 Mar 2012 02:52:25 +0000 (11:52 +0900)]
Bug 24729 - [ne_NP] Fix ortho file
further update for ne.orth
Patch from Pravin Satpute.
Akira TAGOH [Thu, 29 Mar 2012 06:43:11 +0000 (15:43 +0900)]
Bug 48020 - Fix for src/makealias on Solaris 10
Use the command substitution `command` instead of $(command) for
Solaris 10.
Akira TAGOH [Wed, 28 Mar 2012 06:09:25 +0000 (15:09 +0900)]
Move workaround macros for fat binaries into the separate header file
Akira TAGOH [Wed, 28 Mar 2012 07:27:46 +0000 (16:27 +0900)]
Fix the hardcoded cache file suffix
Akira TAGOH [Wed, 28 Mar 2012 04:38:53 +0000 (13:38 +0900)]
fcpat: Increase the number of buckets in the shared string hash table
This is a reasonably conservative increase in the number of buckets in the hash
table to 251. After FcInit(), there are 240 shared strings in use on my system
(from configuration files I assume). The hash value is stored in each link in
the chains so comparison are actually not very expensive. This change should
reduce the average length of chains by a factor of 8. With the reference
counted strings, it should keep the average length of chains to about 2. The
number of buckets is prime so as not to rely too much on the quality of the
hash function.
https://bugs.freedesktop.org/show_bug.cgi?id=17832#c5
Patch from Karl Tomlinson
Akira TAGOH [Wed, 28 Mar 2012 04:37:15 +0000 (13:37 +0900)]
Bug 17832 - Memory leaks due to FcStrStaticName use for external patterns
Use the reference-counted strings instead of the static strings
Patch from Karl Tomlinson
Akira TAGOH [Tue, 27 Mar 2012 12:06:36 +0000 (21:06 +0900)]
Fix a memory leak in FcDirScanConfig()
Akira TAGOH [Mon, 26 Mar 2012 01:58:18 +0000 (10:58 +0900)]
Bug 17722 - Don't overwrite user's configurations in default config
Use "append" to avoid overwriting the user configuration.
This presumes most clients may takes care of the first value only.
Akira TAGOH [Thu, 22 Mar 2012 10:57:47 +0000 (19:57 +0900)]
Bug 47703 - SimSun default family
40-nonlatin.conf: SimSun should be serif but not sans-serif.
http://www.microsoft.com/typography/fonts/family.aspx?FID=37
Patch from Petr Gajdos
Akira TAGOH [Thu, 22 Mar 2012 10:15:27 +0000 (19:15 +0900)]
fcmatch: Set FcResultMatch at the end if the return value is valid.
In the previous code, the result of 'result' in the argument for
FcFontSetSort() and FcFontSetMatch() wasn't predictable and not reliable to
check if the return value is valid or not. this change is to ensure if it's
performed successfully.
Akira TAGOH [Thu, 22 Mar 2012 03:36:34 +0000 (12:36 +0900)]
fc-cache: improvement of the fix for Bug#39914.
Use sizeof() instead of strlen() and use stdio.
Akira TAGOH [Wed, 21 Mar 2012 07:06:37 +0000 (16:06 +0900)]
Bug 39914 - Please tag the cache directory with CACHEDIR.TAG
fc-cache: Create CACHEDIR.TAG at the top of the cache directory.
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Jeremy Huddleston [Mon, 19 Mar 2012 09:16:41 +0000 (02:16 -0700)]
fcarch: Check for architecture signature at compile time rather than configure time
https://bugs.freedesktop.org/show_bug.cgi?id=20208
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Akira TAGOH [Fri, 16 Mar 2012 14:18:23 +0000 (23:18 +0900)]
Get rid of the prerequisites from the sufix rules
Thanks to Adam Sampson for pointing this out.
Akira TAGOH [Fri, 16 Mar 2012 07:29:53 +0000 (16:29 +0900)]
Fix a build issue due to the use of non-portable variables
$< 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.
Akira TAGOH [Fri, 16 Mar 2012 02:55:47 +0000 (11:55 +0900)]
Revert "Fix a build fail on some environment"
This reverts commit
b75eb63982a54c0fb4576d8a655ef734908d3604.