Commit Graph

1328 Commits

Author SHA1 Message Date
Akira TAGOH 7069d717e9 C++11 requires a space between literal and identifier
Reported by Buganini
2012-04-22 21:40:44 +09:00
Akira TAGOH 22dc546090 Fix a build issue again when no regex functions available
Reported by Jon TURNEY
2012-04-20 20:12:24 +09:00
Akira TAGOH 9fa7b7c8f2 Rework to avoid adding the unexpected value to ICONV_CFLAGS and ICONV_LIBS 2012-04-20 11:17:41 +09:00
Akira TAGOH dd2a3d3520 Bug 25151 - Move cleanCacheDirectory() from fc-cache.c into
the library

Add FcDirCacheScan() API to clean up the cache files in the directory.
2012-04-18 12:55:23 +09:00
Keith Packard 9e62fcedfe 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>
2012-04-17 12:20:25 +09:00
Akira TAGOH 94c2cc58a0 doc: Fix a typo of the environment variable name. 2012-04-16 20:25:52 +09:00
Akira TAGOH c5714bcf90 Add --with-expat, --with-expat-includes and --with-expat-lib back. 2012-04-13 11:09:04 +09:00
Akira TAGOH 470e92c9db Bug 27526 - Compatibility fix for old windows sytems
Patch from Gianluigi Tiesi
2012-04-12 14:01:25 +09:00
Akira TAGOH ac6271dbac Bug 48573 - platform without regex do not have also REG_XXX defines
Fix a build issue on the platforms where regex isn't available
2012-04-12 11:01:12 +09:00
Akira TAGOH 9231d79ad1 Bug 28491 - Allow matching on FC_FILE
Allow :file=/path/to/font/file on matching
2012-04-11 16:36:36 +09:00
Akira TAGOH 2589207cfd 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.
2012-04-10 18:45:31 +09:00
Akira TAGOH ddefa5021f Bug 22862 - <alias> ignores <match> <test>s
Allow to use the test elements in the alias element.
2012-04-06 11:14:42 +09:00
Akira TAGOH e181ab4de5 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
2012-04-05 12:23:49 +09:00
Akira TAGOH bb02899d9f Use pkgconfig to check builddeps 2012-04-02 15:38:27 +09:00
Akira TAGOH 87d7b82a98 Use AC_HELP_STRING instead of formatting manually 2012-04-02 14:32:44 +09:00
Akira TAGOH d3e3f4a46d doc: Add contains and not_contains operators and elements 2012-03-30 18:09:14 +09:00
Akira TAGOH 9279f71a3a Bug 24729 - [ne_NP] Fix ortho file
further update for ne.orth

Patch from Pravin Satpute.
2012-03-30 11:52:25 +09:00
Akira TAGOH 9fe7c986c6 Bug 48020 - Fix for src/makealias on Solaris 10
Use the command substitution `command` instead of $(command) for
Solaris 10.
2012-03-29 15:43:38 +09:00
Akira TAGOH becbdaebe3 Move workaround macros for fat binaries into the separate header file 2012-03-29 12:50:47 +09:00
Akira TAGOH fe6ba5e5c5 Fix the hardcoded cache file suffix 2012-03-28 16:27:46 +09:00
Akira TAGOH 4a060729a1 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
2012-03-28 13:42:01 +09:00
Akira TAGOH d8dcff7b96 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
2012-03-28 13:42:01 +09:00
Akira TAGOH ea1c6ea337 Fix a memory leak in FcDirScanConfig() 2012-03-27 21:06:36 +09:00
Akira TAGOH 1aaf8b773d 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.
2012-03-26 10:58:18 +09:00
Akira TAGOH 900675d0b0 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
2012-03-22 19:57:47 +09:00
Akira TAGOH 92ac054ce5 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.
2012-03-22 19:15:27 +09:00
Akira TAGOH 1db3e9cdd8 fc-cache: improvement of the fix for Bug#39914.
Use sizeof() instead of strlen() and use stdio.
2012-03-22 12:36:34 +09:00
Akira TAGOH 4f7f3bf9f7 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>
2012-03-21 16:06:37 +09:00
Jeremy Huddleston 8cc4498122 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>
2012-03-21 11:59:01 +09:00
Akira TAGOH e1ffb3dcd4 Get rid of the prerequisites from the sufix rules
Thanks to Adam Sampson for pointing this out.
2012-03-16 23:18:23 +09:00
Akira TAGOH 93460f93e9 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.
2012-03-16 16:34:37 +09:00
Akira TAGOH f2813ffc68 Revert "Fix a build fail on some environment"
This reverts commit b75eb63982.
2012-03-16 11:55:47 +09:00
Akira TAGOH a5b609196f Revert "Fix a build fail on some environment."
This reverts commit 0fdfddf2ac.

Conflicts:

	doc/Makefile.am
2012-03-16 11:55:30 +09:00
Akira TAGOH 765b7b32d8 [doc] Update for cachedir.
<cache> element is now obsoletes and no longer used. get rid of it
from the doc and add <cachedir> instead.
2012-03-12 19:02:27 +09:00
Akira TAGOH e8bdc6df2e [doc] Update the path for cache files and the version. 2012-03-12 17:58:00 +09:00
Akira TAGOH dd3214aa39 Bump version to 2.9.0 2012-03-11 02:24:33 +09:00
Akira TAGOH 3b142c2aae Get rid of $< from Makefile.am 2012-03-11 02:12:10 +09:00
Akira TAGOH 0fdfddf2ac Fix a build fail on some environment. 2012-03-10 23:30:30 +09:00
Akira TAGOH b75eb63982 Fix a build fail on some environment 2012-03-10 22:05:07 +09:00
Akira TAGOH a47899a853 Fix a build issue 2012-03-10 19:03:05 +09:00
Akira TAGOH d6de535192 Update to detect the uncommited changes properly 2012-03-09 22:24:18 +09:00
Akira TAGOH 78d75c003c Update the version info 2012-03-09 22:12:35 +09:00
Akira TAGOH 353f7cc691 Fix distcheck error 2012-03-09 17:33:03 +09:00
Akira TAGOH 254232f47e Bug 19128 - Handling whitespace in aliases
Add a workaround alias for Dingbats.
2012-03-07 18:16:35 +09:00
Akira TAGOH 0ca752dd25 Check null value for given object to avoid possibly segfaulting 2012-03-07 17:56:39 +09:00
Akira TAGOH 1f01c4b60c 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
2012-03-07 17:32:14 +09:00
Akira TAGOH a13d518fdd Bug 41694 - FcCache functions have random-number-generator side effects
Use the own random number generator state if possible.
2012-02-28 12:52:25 +09:00
Pravin Satpute c7a671ab60 Bug 25652 - Add ortho file for locale mni_IN
Add mni.orth for Maniputi

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-24 16:50:14 +09:00
Pravin Satpute 04c96f59b9 Bug 25653 - Add ortho file for locale doi_IN
Add doi.orth for Dogri

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-24 16:43:14 +09:00
Akira TAGOH 857753d368 Add brx.orth and sat.orth 2012-02-23 20:12:06 +09:00