platform/upstream/fontconfig.git
12 years agoBug 18726 - RFE: help write locale-specific tests
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

12 years agoFix warning about deprecated, non-existent config includes
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.

12 years agoFix newline in warning about deprecated config includes
Marius Tolzmann [Thu, 21 Jun 2012 19:01:09 +0000 (21:01 +0200)]
Fix newline in warning about deprecated config includes

12 years agoRename configure.in to configure.ac
Akira TAGOH [Mon, 18 Jun 2012 09:31:36 +0000 (18:31 +0900)]
Rename configure.in to configure.ac

12 years agoclean up the lock file properly on even hardlink-not-supported filesystem.
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.

12 years agoFix the fail of make install with --disable-shared on Win32
Akira TAGOH [Thu, 14 Jun 2012 02:27:31 +0000 (11:27 +0900)]
Fix the fail of make install with --disable-shared on Win32

12 years agoFix a build fail on MINGW
Akira TAGOH [Wed, 13 Jun 2012 11:01:30 +0000 (20:01 +0900)]
Fix a build fail on MINGW

12 years agoFix a typo and build fail.
Akira TAGOH [Tue, 12 Jun 2012 02:02:03 +0000 (11:02 +0900)]
Fix a typo and build fail.

12 years agoBug 50835 - Deprecate FC_GLOBAL_ADVANCE
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.

12 years agoBump version to 2.9.91 2.9.91
Akira TAGOH [Mon, 11 Jun 2012 11:15:15 +0000 (20:15 +0900)]
Bump version to 2.9.91

12 years agofix building for WIN32
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.

12 years agoGenerate bzip2-compressed tarball too
Akira TAGOH [Mon, 11 Jun 2012 09:43:56 +0000 (18:43 +0900)]
Generate bzip2-compressed tarball too

12 years agodoc: Fix distcheck error again...
Akira TAGOH [Mon, 11 Jun 2012 09:39:37 +0000 (18:39 +0900)]
doc: Fix distcheck error again...

12 years agoBump libtool revision
Akira TAGOH [Mon, 11 Jun 2012 08:48:12 +0000 (17:48 +0900)]
Bump libtool revision

12 years agoBug 50525 - superfluous whitespace in the style
Akira TAGOH [Fri, 8 Jun 2012 10:41:59 +0000 (19:41 +0900)]
Bug 50525 - superfluous whitespace in the style

12 years agofcdefault: Add the lang object at FcConfigSubstituteWithPat() only when kind is FcMat...
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

12 years agofcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore
Akira TAGOH [Fri, 8 Jun 2012 06:54:48 +0000 (15:54 +0900)]
fcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore

12 years agoAdd the default language to the pattern prior to do build the substitution
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

12 years agofcdefault: fallback if the environment variables are empty
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

12 years agoBug 32853 - Export API to get the default language
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.

12 years agoFix the wrong estimation for the memory usage information in fontconfig
Akira TAGOH [Fri, 1 Jun 2012 10:06:17 +0000 (19:06 +0900)]
Fix the wrong estimation for the memory usage information in fontconfig

12 years agoFix a typo and polish the previous change
Akira TAGOH [Thu, 31 May 2012 03:46:55 +0000 (12:46 +0900)]
Fix a typo and polish the previous change

12 years agoFix the build fail on Solaris
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.

12 years agoFix cache aging for fonts on FAT filesystem under Linux
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>
12 years agoMove statfs/statvfs wrapper to fcstat.c and add a test for the mtime broken fs
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().

12 years agoMove FcStat to separate compilation unit
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>
12 years agofcatomic: fallback to create a directory with FcAtomicLock
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.

12 years agoBug 33644 - Fontconfig doesn't match correctly in <test>
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.

12 years agoCorrect the example
Akira TAGOH [Mon, 21 May 2012 04:37:54 +0000 (13:37 +0900)]
Correct the example

Enclose the string with <string> in <test>

12 years agoBug 20411 - fontconfig doesn't match FreeDesktop directories specs
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.

12 years agoBug 19128 - Handling whitespace in aliases
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.

12 years agofcarch.c: get rid of the duplicate definition of FC_MAX
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

12 years agofonts.conf: keeps same binding for alternatives
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.

12 years agoDeal with architectures where ALIGNOF_DOUBLE < 4
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>
12 years agoExtra ',' in AC_ARG_WITH(arch causes arch to never be autodetected
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>
12 years agoOutput more verbose debugging log to show where to insert the element into the value...
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

12 years agoBug 39278 - make usage of mmap optional
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.

12 years agoDisable iconv support anyway...
Akira TAGOH [Wed, 25 Apr 2012 07:21:33 +0000 (16:21 +0900)]
Disable iconv support anyway...

12 years agoBug 27765 - FcMatch() returns style in wrong language
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.

12 years agoAdd --enable-iconv option to configure
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.

12 years agoCreate CACHEDIR.TAG when fc-cache is run or only when the cache directory is created...
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.

12 years agoBug 47721 - Add ChromeOS fonts to 30-metric-aliases.conf
Akira TAGOH [Fri, 20 Apr 2012 10:08:59 +0000 (19:08 +0900)]
Bug 47721 - Add ChromeOS fonts to 30-metric-aliases.conf

12 years agoC++11 requires a space between literal and identifier
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

12 years agoFix a build issue again when no regex functions available
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

12 years agoRework to avoid adding the unexpected value to ICONV_CFLAGS and ICONV_LIBS
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

12 years agoBug 25151 - Move cleanCacheDirectory() from fc-cache.c into
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.

12 years agoUse posix_fadvise to speed startup
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>
12 years agodoc: Fix a typo of the environment variable name.
Akira TAGOH [Mon, 16 Apr 2012 11:25:52 +0000 (20:25 +0900)]
doc: Fix a typo of the environment variable name.

12 years agoAdd --with-expat, --with-expat-includes and --with-expat-lib back.
Akira TAGOH [Fri, 13 Apr 2012 02:09:04 +0000 (11:09 +0900)]
Add --with-expat, --with-expat-includes and --with-expat-lib back.

12 years agoBug 27526 - Compatibility fix for old windows sytems
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

12 years agoBug 48573 - platform without regex do not have also REG_XXX defines
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

12 years agoBug 28491 - Allow matching on FC_FILE
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

12 years agoBug 26830 - Add search for libiconv non-default directory
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.

12 years agoBug 22862 - <alias> ignores <match> <test>s
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.

12 years agoBug 29341 - Make some fontconfig paths configurable
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

12 years agoUse pkgconfig to check builddeps
Akira TAGOH [Mon, 2 Apr 2012 06:38:27 +0000 (15:38 +0900)]
Use pkgconfig to check builddeps

12 years agoUse AC_HELP_STRING instead of formatting manually
Akira TAGOH [Mon, 2 Apr 2012 05:32:44 +0000 (14:32 +0900)]
Use AC_HELP_STRING instead of formatting manually

12 years agodoc: Add contains and not_contains operators and elements
Akira TAGOH [Fri, 30 Mar 2012 09:09:14 +0000 (18:09 +0900)]
doc: Add contains and not_contains operators and elements

12 years agoBug 24729 - [ne_NP] Fix ortho file
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.

12 years agoBug 48020 - Fix for src/makealias on Solaris 10
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.

12 years agoMove workaround macros for fat binaries into the separate header file
Akira TAGOH [Wed, 28 Mar 2012 06:09:25 +0000 (15:09 +0900)]
Move workaround macros for fat binaries into the separate header file

12 years agoFix the hardcoded cache file suffix
Akira TAGOH [Wed, 28 Mar 2012 07:27:46 +0000 (16:27 +0900)]
Fix the hardcoded cache file suffix

12 years agofcpat: Increase the number of buckets in the shared string hash table
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

12 years agoBug 17832 - Memory leaks due to FcStrStaticName use for external patterns
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

12 years agoFix a memory leak in FcDirScanConfig()
Akira TAGOH [Tue, 27 Mar 2012 12:06:36 +0000 (21:06 +0900)]
Fix a memory leak in FcDirScanConfig()

12 years agoBug 17722 - Don't overwrite user's configurations in default config
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.

12 years agoBug 47703 - SimSun default family
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

12 years agofcmatch: Set FcResultMatch at the end if the return value is valid.
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.

12 years agofc-cache: improvement of the fix for Bug#39914.
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.

12 years agoBug 39914 - Please tag the cache directory with CACHEDIR.TAG
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>
12 years agofcarch: Check for architecture signature at compile time rather than configure time
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>
12 years agoGet rid of the prerequisites from the sufix rules
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.

12 years agoFix a build issue due to the use of non-portable variables
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.

12 years agoRevert "Fix a build fail on some environment"
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.

12 years agoRevert "Fix a build fail on some environment."
Akira TAGOH [Fri, 16 Mar 2012 02:55:30 +0000 (11:55 +0900)]
Revert "Fix a build fail on some environment."

This reverts commit 0fdfddf2ac93c1c0238b70a265998fd6b5ffe7af.

Conflicts:

doc/Makefile.am

12 years ago[doc] Update for cachedir.
Akira TAGOH [Mon, 12 Mar 2012 10:02:27 +0000 (19:02 +0900)]
[doc] Update for cachedir.

<cache> element is now obsoletes and no longer used. get rid of it
from the doc and add <cachedir> instead.

12 years ago[doc] Update the path for cache files and the version.
Akira TAGOH [Mon, 12 Mar 2012 08:58:00 +0000 (17:58 +0900)]
[doc] Update the path for cache files and the version.

12 years agoBump version to 2.9.0 2.9.0
Akira TAGOH [Sat, 10 Mar 2012 17:24:33 +0000 (02:24 +0900)]
Bump version to 2.9.0

12 years agoGet rid of $< from Makefile.am
Akira TAGOH [Sat, 10 Mar 2012 17:12:10 +0000 (02:12 +0900)]
Get rid of $< from Makefile.am

12 years agoFix a build fail on some environment.
Akira TAGOH [Sat, 10 Mar 2012 14:30:30 +0000 (23:30 +0900)]
Fix a build fail on some environment.

12 years agoFix a build fail on some environment
Akira TAGOH [Sat, 10 Mar 2012 13:05:07 +0000 (22:05 +0900)]
Fix a build fail on some environment

12 years agoFix a build issue
Akira TAGOH [Sat, 10 Mar 2012 10:03:05 +0000 (19:03 +0900)]
Fix a build issue

12 years agoUpdate to detect the uncommited changes properly
Akira TAGOH [Fri, 9 Mar 2012 13:24:18 +0000 (22:24 +0900)]
Update to detect the uncommited changes properly

12 years agoUpdate the version info
Akira TAGOH [Fri, 9 Mar 2012 13:12:35 +0000 (22:12 +0900)]
Update the version info

12 years agoFix distcheck error
Akira TAGOH [Fri, 9 Mar 2012 08:33:03 +0000 (17:33 +0900)]
Fix distcheck error

12 years agoBug 19128 - Handling whitespace in aliases
Akira TAGOH [Wed, 7 Mar 2012 09:16:35 +0000 (18:16 +0900)]
Bug 19128 - Handling whitespace in aliases

Add a workaround alias for Dingbats.

12 years agoCheck null value for given object to avoid possibly segfaulting
Akira TAGOH [Wed, 7 Mar 2012 08:56:39 +0000 (17:56 +0900)]
Check null value for given object to avoid possibly segfaulting

12 years agoBug 23336 - unable to display bitmap-only (SFNT) TrueType or OpenType
Akira TAGOH [Wed, 7 Mar 2012 08:32:14 +0000 (17:32 +0900)]
Bug 23336 - unable to display bitmap-only (SFNT) TrueType or OpenType

Force to find out a size for bitmap-only ttf to avoid the blank glyphs
in the font.

Patch from Bug Fly

12 years agoBug 41694 - FcCache functions have random-number-generator side effects
Akira TAGOH [Tue, 28 Feb 2012 03:52:25 +0000 (12:52 +0900)]
Bug 41694 - FcCache functions have random-number-generator side effects

Use the own random number generator state if possible.

12 years agoBug 25652 - Add ortho file for locale mni_IN
Pravin Satpute [Fri, 24 Feb 2012 07:50:14 +0000 (16:50 +0900)]
Bug 25652 - Add ortho file for locale mni_IN

Add mni.orth for Maniputi

Signed-off-by: Akira TAGOH <akira@tagoh.org>
12 years agoBug 25653 - Add ortho file for locale doi_IN
Pravin Satpute [Fri, 24 Feb 2012 07:43:14 +0000 (16:43 +0900)]
Bug 25653 - Add ortho file for locale doi_IN

Add doi.orth for Dogri

Signed-off-by: Akira TAGOH <akira@tagoh.org>
12 years agoAdd brx.orth and sat.orth
Akira TAGOH [Thu, 23 Feb 2012 11:12:06 +0000 (20:12 +0900)]
Add brx.orth and sat.orth

12 years agoBug 25650 - Add ortho file for locale sat_IN
Parag Nemade [Thu, 23 Feb 2012 11:06:41 +0000 (20:06 +0900)]
Bug 25650 - Add ortho file for locale sat_IN

Add sat.orth for Santali

Signed-off-by: Akira TAGOH <akira@tagoh.org>
12 years agoBug 25651 - Add ortho file for locale brx_IN
Parag Nemade [Thu, 23 Feb 2012 10:34:18 +0000 (19:34 +0900)]
Bug 25651 - Add ortho file for locale brx_IN

Add brx.orth for Bodo.

Signed-off-by: Akira TAGOH <akira@tagoh.org>
12 years agoBug 27385 - lcdfilter settings for freetype-2.3.12 not available in fontconfig-2.8.0
Akira TAGOH [Thu, 23 Feb 2012 06:23:23 +0000 (15:23 +0900)]
Bug 27385 - lcdfilter settings for freetype-2.3.12 not available in fontconfig-2.8.0

Add config files for FT_LcdFilter options.

Patch from Robin Johnson.

12 years agoDo not update stream->pos when seeking is failed.
Akira TAGOH [Wed, 22 Feb 2012 07:50:13 +0000 (16:50 +0900)]
Do not update stream->pos when seeking is failed.

12 years agoBug 46169 - Pointer error in FcConfigGlobMatch
Akira TAGOH [Wed, 22 Feb 2012 07:30:05 +0000 (16:30 +0900)]
Bug 46169 - Pointer error in FcConfigGlobMatch

Fix possibly accessing the invalid memory and a crash in the worst case
when the glob string is longer than the string.

12 years agomakealias: handle missing funcs better
Mike Frysinger [Tue, 8 Nov 2011 19:19:57 +0000 (14:19 -0500)]
makealias: handle missing funcs better

When adding new functions, if the actual definition doesn't match the
header (say due to a typo), the regeneration of the internal headers
get confused and output bad cpp logic.  This causes gcc to barf due
to mismatched #ifdef/#endif.  Which is a pain to figure out due to
the sheer voulme of generated code.

So tweak the makealias script to detect this case and error out.
While we're here, improve the cpp output a bit to indent, include
comments, and merge similar ifdef blocks.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoFcObjectValidType: tweak -1 checking
Mike Frysinger [Tue, 8 Nov 2011 01:09:10 +0000 (20:09 -0500)]
FcObjectValidType: tweak -1 checking

Newer gcc doesn't like when you switch on an enum and use a value
that isn't declared:

fcname.c: In function 'FcObjectValidType':
fcname.c:299:2: warning: case value '4294967295'
not in enumerated type 'FcType' [-Wswitch]

So tweak the logic to avoid this warning.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agofix build warnings when using --with-arch
Mike Frysinger [Tue, 8 Nov 2011 00:29:57 +0000 (19:29 -0500)]
fix build warnings when using --with-arch

Latest configure code will setup FC_ARCHITECTURE directly rather than
going through ARCHITECTURE, so update fcarch.h accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>