Akira TAGOH [Thu, 29 Aug 2013 08:12:45 +0000 (17:12 +0900)]
Add quz.orth to Makefile.am
Akira TAGOH [Tue, 27 Aug 2013 03:28:52 +0000 (12:28 +0900)]
Bug 68587 - copy qu.orth to quz.orth
Akira TAGOH [Mon, 26 Aug 2013 03:47:07 +0000 (12:47 +0900)]
Fix a wrong edit position when 'kind' is different
Akira TAGOH [Fri, 23 Aug 2013 11:42:37 +0000 (20:42 +0900)]
Fix a crash when non-builtin objects are edited
Akira TAGOH [Fri, 23 Aug 2013 10:58:43 +0000 (19:58 +0900)]
Fix a typo
Behdad Esfahbod [Wed, 21 Aug 2013 18:31:55 +0000 (14:31 -0400)]
Fix assertion
Apparently some AIX versions have 64bit pointers yet 32bit double
alignment. Fix assertion.
Behdad Esfahbod [Wed, 21 Aug 2013 18:27:16 +0000 (14:27 -0400)]
Minor
Akira TAGOH [Wed, 21 Aug 2013 04:12:41 +0000 (13:12 +0900)]
Bug 63399 - Add default aliases for Georgia, Garamond, Palatino Linotype, Trebuchet MS
Akira TAGOH [Wed, 21 Aug 2013 04:12:22 +0000 (13:12 +0900)]
Bug 68340 - More metric compat fonts
Akira TAGOH [Wed, 14 Aug 2013 03:51:26 +0000 (12:51 +0900)]
Bug 16818 - fontformat in match pattern is not respected?
Akira TAGOH [Wed, 7 Aug 2013 03:19:33 +0000 (12:19 +0900)]
Bug 67845 - Match on FC_SCALABLE
Akira TAGOH [Wed, 7 Aug 2013 02:57:19 +0000 (11:57 +0900)]
warn deprecated only when migration failed
Akira TAGOH [Tue, 6 Aug 2013 06:09:23 +0000 (15:09 +0900)]
Bug 67809 - Invalid read/write with valgrind when assigning something twice
Akira TAGOH [Mon, 5 Aug 2013 11:04:13 +0000 (20:04 +0900)]
Fix wrong edit position
Akira TAGOH [Fri, 12 Jul 2013 05:52:01 +0000 (14:52 +0900)]
Correct fontconfig.pc to add certain dependencies for static build
Akira TAGOH [Fri, 12 Jul 2013 03:39:36 +0000 (12:39 +0900)]
Correct fontconfig.pc to add certain dependencies for build
Akira TAGOH [Tue, 9 Jul 2013 07:43:26 +0000 (16:43 +0900)]
trivial code optimization
Akira TAGOH [Thu, 4 Jul 2013 10:51:03 +0000 (19:51 +0900)]
Rework to apply the intermixed test and edit elements in one-pass
Akira TAGOH [Wed, 3 Jul 2013 02:56:58 +0000 (11:56 +0900)]
Add FC_UNUSED to FC_ASSERT_STATIC macro to avoid compiler warning
Akira TAGOH [Tue, 2 Jul 2013 10:04:36 +0000 (19:04 +0900)]
Use INT_MAX instead of unreliable hardcoding value
Akira TAGOH [Tue, 2 Jul 2013 09:54:29 +0000 (18:54 +0900)]
Ignore scandir() check on mingw
Akira TAGOH [Fri, 28 Jun 2013 06:54:38 +0000 (15:54 +0900)]
Fix the behavior of intermixed tests end edits in match
to get the following recipe working:
<match>
<test1 .../>
<edit1 .../>
<test2 .../>
<edit2 .../>
</match>
as:
<match>
<test1 .../>
</edit1 .../>
</match>
<match>
<test1 .../>
<test2 .../>
<edit2 .../>
</match>
Akira TAGOH [Fri, 28 Jun 2013 06:04:11 +0000 (15:04 +0900)]
Add FcTypeUnknown to FcType to avoid comparison of constant -1
This change reverts
9acc14c34a372b54f9075ec3611588298fb2a501
because it doesn't work as expected when building
with -fshort-enums which is default for older arms ABIs
Thanks for pointing this out, Thomas Klausner, Valery Ushakov, and Martin Husemann
Akira TAGOH [Thu, 27 Jun 2013 04:10:27 +0000 (13:10 +0900)]
Fix a incompatible pointer warning on NetBSD
Akira TAGOH [Thu, 27 Jun 2013 03:30:56 +0000 (12:30 +0900)]
Fix a shift count overflow on 32bit box
Akira TAGOH [Wed, 26 Jun 2013 03:03:38 +0000 (12:03 +0900)]
Fix a comparison of constant warning with clang
Akira TAGOH [Fri, 24 May 2013 04:55:07 +0000 (13:55 +0900)]
Bug 64906 - FcNameParse() should ignore leading whitespace in parameters
After this change, the following works as expected:
$ FC_DEBUG=4 fc-match ":family=foo bar, sans-serif"
...
FcConfigSubstitute Pattern has 3 elts (size 16)
family: "foo bar"(s) "sans-serif"(s)
...
Akira TAGOH [Mon, 20 May 2013 08:42:34 +0000 (17:42 +0900)]
Bump version to 2.10.93
Akira TAGOH [Fri, 10 May 2013 11:26:11 +0000 (20:26 +0900)]
Bug 63922 - FcFreeTypeQueryFace fails on postscripts fonts loaded from memory
Workaround to not failing even when the hash is unable to generate from fonts.
This change also contains to ignore the case if the hash isn't in either both
patterns.
Akira TAGOH [Thu, 16 May 2013 04:41:32 +0000 (13:41 +0900)]
Fix missing OSAtomicCompareAndSwapPtrBarrier() on Mac OS X 10.4
based on hb-atomic-private.hh in harfbuzz
Akira TAGOH [Mon, 13 May 2013 03:14:29 +0000 (12:14 +0900)]
Bug 63452 - conf.d/README outdated
reflect correct path where is configured at the build time.
Akira TAGOH [Wed, 8 May 2013 02:57:49 +0000 (11:57 +0900)]
Use the glob matching for filename
Regex is expensive to compare filenames. we already have the glob matching
and it works enough in this case.
Prior to this change, renaming FcConfigGlobMatch() to FcStrGlobMatch() and moving to fcstr.c
Akira TAGOH [Wed, 10 Apr 2013 09:41:22 +0000 (18:41 +0900)]
Bug 63329 - make check fails: .. contents:: :depth: 2
Add back FcHashGetSHA256DigestFromFile() and fall back to it
when font isn't SFNT-based font because FT_Load_Sfnt_Table
fails with FT_Err_Invalid_Face_Handle.
Akira TAGOH [Wed, 10 Apr 2013 02:14:39 +0000 (11:14 +0900)]
documented FC_HASH and FC_POSTSCRIPT_NAME
Akira TAGOH [Tue, 9 Apr 2013 08:18:43 +0000 (17:18 +0900)]
Revert the previous change and rework to not export freetype API outside fcfreetype.c
Akira TAGOH [Tue, 9 Apr 2013 03:46:30 +0000 (12:46 +0900)]
Obtain fonts data via FT_Face instead of opening a file directly
Akira TAGOH [Tue, 9 Apr 2013 02:34:35 +0000 (11:34 +0900)]
Ensure closing fp on error
Sebastian Freundt [Sun, 7 Apr 2013 00:02:58 +0000 (00:02 +0000)]
build-chain, replace INCLUDES directive by AM_CPPFLAGS
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.
Akira TAGOH [Mon, 1 Apr 2013 09:16:28 +0000 (18:16 +0900)]
Bug 62980 - matching native fonts with even :lang=en
Fix the matcher modified by
4eab908c8679a797ac7016b77a93ee41bb11b0fc
to deal with both strong and weak of FC_LANG as the same location in the score
Akira TAGOH [Fri, 29 Mar 2013 07:10:15 +0000 (16:10 +0900)]
Bump version to 2.10.92
Akira TAGOH [Fri, 29 Mar 2013 07:07:30 +0000 (16:07 +0900)]
Minor fix
Akira TAGOH [Fri, 29 Mar 2013 07:02:34 +0000 (16:02 +0900)]
Bump libtool revision
Akira TAGOH [Fri, 29 Mar 2013 03:46:04 +0000 (12:46 +0900)]
Minor cleanup
Akira TAGOH [Fri, 18 Jan 2013 02:30:10 +0000 (11:30 +0900)]
Bug 38737 - Wishlist: support FC_POSTSCRIPT_NAME
Add the PostScript name into the cache and the matcher.
Scoring the better font against the PostScript name by
the forward-matching.
Akira TAGOH [Thu, 21 Mar 2013 02:58:06 +0000 (11:58 +0900)]
Fix a SIGSEGV on FcPatternGet* with NULL pattern
Behdad Esfahbod [Fri, 8 Mar 2013 10:53:27 +0000 (05:53 -0500)]
Fix crash with FcConfigSetCurrent(NULL)
Akira TAGOH [Thu, 7 Mar 2013 04:19:50 +0000 (13:19 +0900)]
Do not copy FC_*LANG_OBJECT even if it's not available on the pattern
those objects are linked to the corresponding string objects.
this may causes inconsistency that those objects has more values than them.
Akira TAGOH [Wed, 6 Feb 2013 10:35:30 +0000 (19:35 +0900)]
Bug 59456 - Adding a --sysroot like option to fc-cache
Add an ability to set the system root to generate the caches.
In order to do this, new APIs, FcConfigGetSysRoot() and
FcConfigSetSysRoot() is available.
Akira TAGOH [Tue, 5 Mar 2013 03:46:01 +0000 (12:46 +0900)]
Fix a memory leak
Akira TAGOH [Fri, 1 Mar 2013 13:21:25 +0000 (22:21 +0900)]
Fix broken sort order with FcFontSort()
which was introduced by
4eab908c8679a797ac7016b77a93ee41bb11b0fc
Akira TAGOH [Fri, 1 Mar 2013 10:38:21 +0000 (19:38 +0900)]
Fix a crash when the object is non-builtin object
Akira TAGOH [Fri, 1 Mar 2013 09:41:27 +0000 (18:41 +0900)]
Fix a typo
Akira TAGOH [Fri, 1 Mar 2013 09:31:01 +0000 (18:31 +0900)]
Bug 60783 - Add Liberation Sans Narrow to 30-metric-aliases.conf
Add Liberation Sans Narrow as an alias for Arial Narrow
Akira TAGOH [Mon, 18 Feb 2013 04:17:53 +0000 (13:17 +0900)]
Bug 60748 - broken conf.d/10-autohint.conf and conf.d/10-unhinted.conf
Move the target of recipes to the "pattern" from the "font".
This is to ensure the targeted objects is updated by them
prior to FcDefaultSubstitute() so that it can adds the default
values properly.
Behdad Esfahbod [Fri, 15 Feb 2013 14:48:38 +0000 (09:48 -0500)]
Accept digits as part of OpenType script tags
They've been used since 2005.
Akira TAGOH [Thu, 7 Feb 2013 08:56:17 +0000 (17:56 +0900)]
Add Culmus foundry to the vendor list
Maps fonts produced by the Culmus project <http://culmus.sourceforge.net>
to the XLFD foundry name culmus.
For TrueType fonts, maps the vendor code CLM from the TrueType vendor id field.
For Type1 fonts, which use heuristics to guess mappings to XLFD foundries from
words in the copyright notice, add the names of the main contributors to
the Culmus product to recognize the fonts under their copyright.
Patch from Maxim Iorsh
Quentin Glidic [Sat, 2 Feb 2013 16:01:07 +0000 (17:01 +0100)]
Use LOG_COMPILER and AM_TESTS_ENVIRONMENT
TESTS_ENVIRONMENT is deprecated and should be reserved to the user to
override the test environment
<ext>_LOG_COMPILER is meant to contain the program that runs the test
with <ext> extension
LOG_COMPILER is for extensionless tests
AM_TESTS_ENVIRONMENT is meant to set the environment for the tests
https://bugs.freedesktop.org/show_bug.cgi?id=60192
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Akira TAGOH [Wed, 6 Feb 2013 10:14:51 +0000 (19:14 +0900)]
Bump the cache version to 4
Akira TAGOH [Wed, 6 Feb 2013 10:02:07 +0000 (19:02 +0900)]
Update _FcMatchers definition logic
to make it easier to maintain. also added FC_HASH_OBJECT to be matched
in the pattern, prior to FC_FILE_OBJECT.
Akira TAGOH [Tue, 5 Feb 2013 11:44:18 +0000 (20:44 +0900)]
Bug 60312 - DIST_SUBDIRS should never appear in a conditional
As it is documented like this:
If SUBDIRS is defined conditionally using Automake conditionals,
Automake will define DIST_SUBDIRS automatically from the possible
values of SUBDIRS in all conditions.
So we don't need to re-define DIST_SUBDIRS in Makefile.am unless
we use AC_SUBST to define SUBDIRS.
Patch from Quentin Glidic
Akira TAGOH [Mon, 4 Feb 2013 07:03:29 +0000 (16:03 +0900)]
Bug 50733 - Add font-file hash?
Add "hash" object which contains SHA256 hash value (so far) computed from the font file.
Akira TAGOH [Tue, 5 Feb 2013 05:17:16 +0000 (14:17 +0900)]
Use AM_MISSING_PROG instead of hardcoding missing
Akira TAGOH [Tue, 5 Feb 2013 02:33:47 +0000 (11:33 +0900)]
Revert "test: Use SH_LOG_COMPILER and AM_TESTS_ENVIRONMENT"
This reverts commit
2146b0307a3476892723104481f27f8484451c52.
That change introduces incompatibility and seems not working with
older releases of automake, including automake 1.12.2.
Quentin Glidic [Sat, 2 Feb 2013 16:01:07 +0000 (17:01 +0100)]
test: Use SH_LOG_COMPILER and AM_TESTS_ENVIRONMENT
TESTS_ENVIRONMENT is deprecated and should be reserved to the user to
override the test environment
<ext>_LOG_COMPILER is meant to contain the program that runs the test
with <ext> extension
AM_TESTS_ENVIRONMENT is meant to set the environment for the tests
https://bugs.freedesktop.org/show_bug.cgi?id=60192
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Akira TAGOH [Mon, 4 Feb 2013 08:57:00 +0000 (17:57 +0900)]
Use AM_MISSING_PROG instead of hardcoding missing
Akira TAGOH [Mon, 4 Feb 2013 08:20:03 +0000 (17:20 +0900)]
Modernize configure.ac
Akira TAGOH [Tue, 29 Jan 2013 11:19:36 +0000 (20:19 +0900)]
Bug 23757 - Add mode="delete" to <edit>
Add two edit mode, "delete" and "delete_all".
what values are being deleted depends on <test> as documented.
if the target object is same to what is tested, matching value there
will be deleted. otherwise all of values in the object will be deleted.
so this would means both edit mode will not take any expressions.
e.g.
Given that the testing is always true here, the following rules:
<match>
<test name="foo" compare="eq">
<string>bar</string>
</test>
<edit name="foo" mode="delete"/>
</match>
will removes "bar" string from "foo" object. and:
<match>
<test name="foo" compare="eq">
<string>foo</string>
</test>
<edit name="bar" mode="delete"/>
</match>
will removes all of values in "bar" object.
Colin Walters [Fri, 1 Feb 2013 02:32:46 +0000 (21:32 -0500)]
build: Only use PKG_INSTALLDIR if available
It's only in pkg-config 0.27 or newer, but 0.25 at least is still
fairly widespread.
Christoph J. Thompson [Fri, 1 Feb 2013 01:27:32 +0000 (02:27 +0100)]
Use the PKG_INSTALLDIR macro.
modified: Makefile.am
modified: configure.ac
Akira TAGOH [Fri, 25 Jan 2013 11:01:24 +0000 (20:01 +0900)]
Bug 59385 - Do the right thing for intermixed edit and test elements
This changes allows to have multiple mathcing rules in one <match> block
in the same order.
After this changes, the following thing will works as two matching rules:
<match>
<!-- rule 1 -->
<test name="family" compare="eq">
<string>foo</string>
</test>
<edit name="foo" mode="append">
<string>foo</string>
</edit>
<!-- rule 2 -->
<test name="foo" compare="eq">
<string>foo</string>
</test>
<edit name="foo" mode="append">
<string>bar</string>
</edit>
</match>
Akira TAGOH [Wed, 23 Jan 2013 03:37:51 +0000 (12:37 +0900)]
remove the unnecessary code
Akira TAGOH [Wed, 23 Jan 2013 03:32:37 +0000 (12:32 +0900)]
Add another approach to FC_PRGNAME for Solaris 10 or before
Patch from Raimund Steger
Akira TAGOH [Tue, 22 Jan 2013 03:11:56 +0000 (12:11 +0900)]
Fix installation on MinGW32
Patch from LRN
Akira TAGOH [Tue, 22 Jan 2013 03:03:28 +0000 (12:03 +0900)]
Fix mkstemp absence for some platform
Patch from LRN and modified to make more generic.
Akira TAGOH [Tue, 22 Jan 2013 01:26:41 +0000 (10:26 +0900)]
Add missing file descriptor to F_DUPFD_CLOEXEC
Patch from Matthieu Herrb
Behdad Esfahbod [Fri, 18 Jan 2013 01:27:20 +0000 (19:27 -0600)]
Fix readlink failure
As reported by Raimund Steger.
Akira TAGOH [Thu, 17 Jan 2013 03:49:16 +0000 (12:49 +0900)]
Better fix for
2fe5ddfd
Drop realpath() and fix breakage on Win32
Behdad Esfahbod [Thu, 17 Jan 2013 03:01:28 +0000 (21:01 -0600)]
Fix FC_PRGNAME default
As reported by Raimund Steger.
Behdad Esfahbod [Wed, 16 Jan 2013 13:30:44 +0000 (07:30 -0600)]
Fix fc-cache crash caused by looking up NULL object incorrectly
We were returning a skiplist node when looking up NULL!
Behdad Esfahbod [Wed, 16 Jan 2013 13:05:07 +0000 (07:05 -0600)]
Minor
Behdad Esfahbod [Wed, 16 Jan 2013 10:52:06 +0000 (04:52 -0600)]
Remove unused checks for common functions
The check results of these were never actually used.
Akira TAGOH [Wed, 16 Jan 2013 07:35:28 +0000 (16:35 +0900)]
Improve FcGetPrgname() to work on BSD
Behdad Esfahbod [Wed, 16 Jan 2013 02:41:26 +0000 (20:41 -0600)]
Bug 59379 - FC_PRGNAME
Can be used for per-application configuration.
Akira TAGOH [Tue, 4 Sep 2012 03:39:48 +0000 (12:39 +0900)]
Bug 50497 - RFE: Add OpenType feature tags support
Add FC_FONT_FEATURES to store the feature tags to be enabled.
Akira TAGOH [Tue, 15 Jan 2013 08:26:27 +0000 (17:26 +0900)]
Fix the build fail on MinGW
Reported at http://lists.freedesktop.org/archives/fontconfig/2013-January/004601.html
just warn at the runtime instead of the compile time. it somewhat works
on even MinGW since FcMakeTempfile() isn't used on Win32 so far.
Behdad Esfahbod [Mon, 14 Jan 2013 20:39:12 +0000 (14:39 -0600)]
Minor
Behdad Esfahbod [Mon, 14 Jan 2013 20:36:38 +0000 (14:36 -0600)]
Copy all values from pattern to font if the font doesn't have the element
Bug 59376 - FcFontRenderPrepare enhancement
Behdad Esfahbod [Thu, 10 Jan 2013 15:01:52 +0000 (09:01 -0600)]
Ensure we find the uninstalled fontconfig header
Patch from Colin Walters.
Behdad Esfahbod [Thu, 10 Jan 2013 15:00:18 +0000 (09:00 -0600)]
Resepct $NOCONFIGURE
Patch from Colin Walters.
Akira TAGOH [Thu, 10 Jan 2013 08:57:12 +0000 (17:57 +0900)]
Bump version to 2.10.91
Akira TAGOH [Thu, 10 Jan 2013 08:56:51 +0000 (17:56 +0900)]
Update the date in README properly
Behdad Esfahbod [Thu, 10 Jan 2013 07:23:07 +0000 (01:23 -0600)]
Make linker happy
Behdad Esfahbod [Thu, 10 Jan 2013 07:17:02 +0000 (01:17 -0600)]
Add atomic ops for Solaris
Patch from Raimund Steger.
Akira TAGOH [Mon, 10 Sep 2012 07:09:04 +0000 (16:09 +0900)]
Bug 29312 - RFE: feature to indicate which characters are missing to satisfy the language support
Add fc-validate to check the language coverage in a font.
Akira TAGOH [Wed, 9 Jan 2013 02:26:56 +0000 (11:26 +0900)]
Fix a typo in the manpages template
Behdad Esfahbod [Tue, 8 Jan 2013 20:51:00 +0000 (14:51 -0600)]
Add pthread test
Not enabled by default since it requires config and fonts.
Behdad Esfahbod [Tue, 8 Jan 2013 19:01:48 +0000 (13:01 -0600)]
Fix memory corruption!
In FcStrListCreate() we were increasing reference count of set,
however, if set had a const reference (which is the case for list
of languages), and with multiple threads, the const ref (-1) was
getting up to 1 and then a decrease was destroying the set. Ouch.
Here's the valgrind error, which took me quite a few hours of
running to catch:
==4464== Invalid read of size 4
==4464== at 0x4E58FF3: FcStrListNext (fcstr.c:1256)
==4464== by 0x4E3F11D: FcConfigSubstituteWithPat (fccfg.c:1508)
==4464== by 0x4E3F8F4: FcConfigSubstitute (fccfg.c:1729)
==4464== by 0x4009FA: test_match (simple-pthread-test.c:53)
==4464== by 0x400A6E: run_test_in_thread (simple-pthread-test.c:68)
==4464== by 0x507EE99: start_thread (pthread_create.c:308)
==4464== Address 0x6bc0b44 is 4 bytes inside a block of size 24 free'd
==4464== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4464== by 0x4E58F84: FcStrSetDestroy (fcstr.c:1236)
==4464== by 0x4E3F0C6: FcConfigSubstituteWithPat (fccfg.c:1507)
==4464== by 0x4E3F8F4: FcConfigSubstitute (fccfg.c:1729)
==4464== by 0x4009FA: test_match (simple-pthread-test.c:53)
==4464== by 0x400A6E: run_test_in_thread (simple-pthread-test.c:68)
==4464== by 0x507EE99: start_thread (pthread_create.c:308)
Thread test is running happily now. Will add the test in a moment.
Akira TAGOH [Tue, 8 Jan 2013 07:20:28 +0000 (16:20 +0900)]
Fix a build fail on mingw
Regarding the change of
596931c8b4a7a35cbff9c33437d3cd44395d9c3f
Akira TAGOH [Tue, 8 Jan 2013 07:18:32 +0000 (16:18 +0900)]
missing header file to declare _mkdir
Akira TAGOH [Thu, 6 Dec 2012 11:01:52 +0000 (20:01 +0900)]
Bug 47705 - Using O_CLOEXEC