Behdad Esfahbod [Fri, 27 Oct 2017 21:01:40 +0000 (15:01 -0600)]
Make the NullPool HB_INTERNAL shared
Saves 2k of .bss section.
Behdad Esfahbod [Fri, 27 Oct 2017 20:42:59 +0000 (14:42 -0600)]
[ot] Remove shaper name
In ten years we never used them...
Behdad Esfahbod [Fri, 27 Oct 2017 20:29:12 +0000 (14:29 -0600)]
Fix IntType.cmp() to avoid narrowing down integer types
Fixes https://github.com/behdad/harfbuzz/issues/571
Behdad Esfahbod [Fri, 27 Oct 2017 16:29:25 +0000 (10:29 -0600)]
Make c++11 optional
Fixes https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 16:24:58 +0000 (10:24 -0600)]
[m4] Update ax_pthread.m4
Behdad Esfahbod [Fri, 27 Oct 2017 16:23:01 +0000 (10:23 -0600)]
[git.mk] Update
Behdad Esfahbod [Fri, 27 Oct 2017 15:29:20 +0000 (09:29 -0600)]
Use NULL instead of polyfill, if nullptr is not available
Part of fixing https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 15:22:30 +0000 (09:22 -0600)]
Include hb-private.hh more consistently
Part of fixing https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 06:25:11 +0000 (00:25 -0600)]
Towards compiling with pre-C++11 compilers and nullptr fallback
https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 02:34:04 +0000 (20:34 -0600)]
[post] Make format1 names array avoid relocations
Behdad Esfahbod [Fri, 27 Oct 2017 01:48:33 +0000 (19:48 -0600)]
Add hb-string-array.hh
Used to build static string arrays that use no relocation.
Behdad Esfahbod [Fri, 27 Oct 2017 00:23:03 +0000 (18:23 -0600)]
Minor
Behdad Esfahbod [Thu, 26 Oct 2017 18:52:02 +0000 (12:52 -0600)]
1.6.3
David Corbett [Thu, 26 Oct 2017 14:29:28 +0000 (10:29 -0400)]
Include all relevant glyphs in the subsetted font
Behdad Esfahbod [Thu, 26 Oct 2017 17:43:33 +0000 (11:43 -0600)]
Fix warning
https://github.com/behdad/harfbuzz/commit/
49a41dc75931cc2d2f7e74b7801f8cc327039e8e#commitcomment-
25203194
Jonathan Kew [Thu, 26 Oct 2017 15:59:50 +0000 (16:59 +0100)]
[set] Fix page_map[] indexing in backward loop.
Fixes https://github.com/behdad/harfbuzz/issues/579.
Jonathan Kew [Thu, 26 Oct 2017 11:55:36 +0000 (12:55 +0100)]
[test] Extend hb_set test for issue 579 (currently failing)
Jonathan Kew [Thu, 26 Oct 2017 16:54:55 +0000 (17:54 +0100)]
[test] Additional coverage in test_set_iter.
This adds a couple extra entries to the set used, such that iteration
would fail in 1.6.2 due to the bug in hb_set_t::page_t::next().
Jonathan Kew [Thu, 26 Oct 2017 14:08:29 +0000 (15:08 +0100)]
[set] Bugfix for hb_set_next
Behdad Esfahbod [Thu, 26 Oct 2017 00:22:47 +0000 (18:22 -0600)]
[post] Oops!
https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.668/job/ikfj8peowgrp059t
Behdad Esfahbod [Wed, 25 Oct 2017 23:40:50 +0000 (17:40 -0600)]
[post] Touch up and fixes
The get_glyph_from_name() is incorrect; needs fixing.
Khaled Hosny [Wed, 18 Oct 2017 18:49:16 +0000 (20:49 +0200)]
[ot-font] Implement hb_ot_get_glyph_from_name
Khaled Hosny [Mon, 16 Oct 2017 08:05:42 +0000 (10:05 +0200)]
[ot-font] Implement hb_ot_get_glyph_name
Turns out we already have support for “post” table, it just needed to be
activated and put in use.
Behdad Esfahbod [Wed, 25 Oct 2017 23:23:20 +0000 (17:23 -0600)]
Behdad Esfahbod [Wed, 25 Oct 2017 22:17:45 +0000 (16:17 -0600)]
[test] Add more hb-set tests
https://github.com/behdad/harfbuzz/issues/579
David Corbett [Wed, 25 Oct 2017 18:31:22 +0000 (14:31 -0400)]
Use `mktemp -d` instead of `mktemp --directory`
David Corbett [Wed, 25 Oct 2017 20:06:40 +0000 (16:06 -0400)]
Fix and run indic-script-extensions.tests
David Corbett [Wed, 25 Oct 2017 20:06:01 +0000 (16:06 -0400)]
Fix code point iteration in narrow Python
Behdad Esfahbod [Wed, 25 Oct 2017 16:09:11 +0000 (12:09 -0400)]
Check for headers in builddir first, in check-*.sh
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=103346
Behdad Esfahbod [Tue, 24 Oct 2017 14:06:25 +0000 (10:06 -0400)]
check-externs.sh: Make output more verbose
Trying to figure out why this is failing on some Debian bots:
https://bugs.freedesktop.org/show_bug.cgi?id=103346
Maybe I should check for GNU grep specifically now that I'm using -n as well.
Behdad Esfahbod [Mon, 23 Oct 2017 18:35:16 +0000 (14:35 -0400)]
1.6.2
Behdad Esfahbod [Mon, 23 Oct 2017 18:28:35 +0000 (14:28 -0400)]
[set] Rewrite another way :P
Behdad Esfahbod [Mon, 23 Oct 2017 18:26:48 +0000 (14:26 -0400)]
[set] Fix crash
Ouch! That's what happens when one plays with increment/decrement operators!
Fixes https://github.com/behdad/harfbuzz/issues/578
Behdad Esfahbod [Mon, 23 Oct 2017 17:10:21 +0000 (13:10 -0400)]
[RELEASING] Format
Behdad Esfahbod [Mon, 23 Oct 2017 17:01:34 +0000 (13:01 -0400)]
[doap] Switch to github issues
https://github.com/behdad/harfbuzz/pull/575#issuecomment-
338514596
Behdad Esfahbod [Mon, 23 Oct 2017 17:00:36 +0000 (13:00 -0400)]
[RELEASING] Minor
https://github.com/behdad/harfbuzz/pull/575
Behdad Esfahbod [Mon, 23 Oct 2017 12:37:48 +0000 (08:37 -0400)]
Minor
Behdad Esfahbod [Mon, 23 Oct 2017 12:36:40 +0000 (08:36 -0400)]
[set] Don't use major()
Fixes https://github.com/behdad/harfbuzz/issues/577
Behdad Esfahbod [Mon, 23 Oct 2017 12:34:30 +0000 (08:34 -0400)]
[set] Don't use PAGE_SIZE
Fixes https://github.com/behdad/harfbuzz/issues/576
Behdad Esfahbod [Sun, 22 Oct 2017 22:24:59 +0000 (18:24 -0400)]
Behdad Esfahbod [Sun, 22 Oct 2017 22:23:38 +0000 (18:23 -0400)]
[icu] Fix error check
ebraminio [Sun, 22 Oct 2017 22:18:22 +0000 (01:48 +0330)]
Merge pull request #575 from behdad/releasing-edit
Clarify the last step of release
ebraminio [Sun, 22 Oct 2017 22:17:51 +0000 (01:47 +0330)]
Clarify the last step of release
Behdad Esfahbod [Sun, 22 Oct 2017 21:48:06 +0000 (17:48 -0400)]
Fix set initialization issues
Behdad Esfahbod [Sun, 22 Oct 2017 21:38:33 +0000 (17:38 -0400)]
1.6.1
Behdad Esfahbod [Sun, 22 Oct 2017 21:08:29 +0000 (17:08 -0400)]
Behdad Esfahbod [Sun, 22 Oct 2017 21:03:36 +0000 (17:03 -0400)]
Another try at fixing mingw32 build bot fail
Behdad Esfahbod [Sun, 22 Oct 2017 21:06:00 +0000 (17:06 -0400)]
Behdad Esfahbod [Sun, 22 Oct 2017 21:03:36 +0000 (17:03 -0400)]
Another try at fixing mingw32 build bot fail
Behdad Esfahbod [Sun, 22 Oct 2017 19:54:50 +0000 (15:54 -0400)]
[docs] Deprecate hb_set_invert()
ebraminio [Sat, 21 Oct 2017 06:49:55 +0000 (10:19 +0330)]
Merge pull request #572 from fanc999/master.msvc
builds: Support HarfBuzz-GObject and introspection in CMake builds
Behdad Esfahbod [Fri, 20 Oct 2017 17:57:43 +0000 (13:57 -0400)]
Another try at fixing build bots
hb-ot-shape.cc:287:18: error: comparison of constant 32 with expression of type 'hb_unicode_general_category_t' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
Behdad Esfahbod [Thu, 19 Oct 2017 18:39:52 +0000 (11:39 -0700)]
Remove FLAG_SAFE()
No flag is safe, over time... See previous commit.
Behdad Esfahbod [Thu, 19 Oct 2017 18:35:51 +0000 (11:35 -0700)]
[myanmar] Fix unsafe usage of FLAG_SAFE()
The commit
f559c633073f63b9d87cb2440048b4413cfa1c05 caused
"undefined-shift" errors in Myanmar shaper as we changed the
numeric value of type D from 19 to 32 there, making the
"FLAG_SAFE (info.myanmar_category())" wrong.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3546
Chun-wei Fan [Thu, 19 Oct 2017 10:36:32 +0000 (18:36 +0800)]
CMake builds: Support introspection builds
This adds support for introspection builds on Windows that is enabled by
the HB_HAVE_INTROSPECTION option, which will also enable HB_HAVE_GOBJECT
(and so HB_HAVE_GLIB) as they are required for introspection.
In order for this to work one must ensure that the Python installation
listed in PYTHON_EXECUTABLE is the same Python release series that was
used to build _giscanner.pyd (the Python module that is used by
g-ir-scanner), with the same architecture. PKG_CONFIG_PATH and PATH
must be set correctly if $(PREFIX)\bin and/or $(PREFIX)\lib\pkgconfig
are not in the standard PATH and PKG_CONFIG_PATH, which is actually
in-line with the *NIX builds.
Chun-wei Fan [Wed, 18 Oct 2017 07:43:57 +0000 (15:43 +0800)]
CMake: Support building HarfBuzz-GObject
This adds support to the CMake build files to support building
HarfBuzz-GObject, which is actually a little bit complicated,
as we need to:
-Run glib-mkenums, which is a Python (for newer GLib/GObject) or PERL
(for older, pre 2.53.4, GLib/GObject) script. This matters more for
Visual Studio builds as shebang lines are not supported, so we need to
test-run it with PERL or Python to determine which is the correct
interpretor to use.
-Next, we need to replace strings in the sources that we obtain from
running glib-mkenums. So, the solution here is to use a small utility
CMake script for our purposes here, to maintain maximum compatibility.
-Ensure that things do work in the Visual Studio IDE builds.
Chun-wei Fan [Wed, 18 Oct 2017 14:27:28 +0000 (22:27 +0800)]
CMake builds: Fix builds
Include the fallback sources in the build, and update
src/Makefile.sources so that it can be read by the CMake build files.
Fix a typo in the DirectWrite configure option so that we can properly
enable DirectWrite builds.
Also, when building the utility program, install them as well.
Behdad Esfahbod [Tue, 17 Oct 2017 23:32:12 +0000 (16:32 -0700)]
[bsearch] Micro-optimization
Fredrik Roubert [Tue, 17 Oct 2017 22:06:31 +0000 (15:06 -0700)]
Switch from ICU deprecated unorm_normalize to unorm2_normalize. (#569)
The new unorm2_normalize has been public API since ICU 4.4, while
the old unorm_normalize has been deprecated since ICU 56.
Now, beginning with ICU 60, unorm_normalize will also be annotated
U_DEPRECATED and trigger the compiler -Wdeprecated-declarations warning.
Behdad Esfahbod [Tue, 17 Oct 2017 19:00:34 +0000 (12:00 -0700)]
Update docs symbols
Behdad Esfahbod [Tue, 17 Oct 2017 18:16:36 +0000 (11:16 -0700)]
Try fixing build on VC
c:\projects\harfbuzz\src\hb-set-private.hh(151): error C2327: 'hb_set_t::page_t::v': is not a type name, static, or enumerator [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
Behdad Esfahbod [Tue, 17 Oct 2017 18:14:48 +0000 (11:14 -0700)]
[coretext] Fix build
error: static_assert expression is not an integral constant expression
Behdad Esfahbod [Mon, 16 Oct 2017 05:33:32 +0000 (01:33 -0400)]
[set] Fix merge logic
Behdad Esfahbod [Sun, 15 Oct 2017 22:21:35 +0000 (18:21 -0400)]
Ouch.
Behdad Esfahbod [Sun, 15 Oct 2017 22:20:25 +0000 (18:20 -0400)]
[set] Disable vectorization
Fixes clang "non-const reference cannot bind to vector element" error.
Behdad Esfahbod [Sun, 15 Oct 2017 21:58:58 +0000 (17:58 -0400)]
Fix bots
Behdad Esfahbod [Sun, 15 Oct 2017 21:01:31 +0000 (17:01 -0400)]
[set] Remove TODO items not worth pursuing
Behdad Esfahbod [Sun, 15 Oct 2017 20:56:05 +0000 (16:56 -0400)]
[set] Speed up intersects()
Behdad Esfahbod [Sun, 15 Oct 2017 20:38:29 +0000 (16:38 -0400)]
Simplify hb_prealloced_array_t initialization
Behdad Esfahbod [Sun, 15 Oct 2017 20:21:03 +0000 (16:21 -0400)]
Properly detect vector_size attribute and use fallback otherwise
Behdad Esfahbod [Sun, 15 Oct 2017 20:10:35 +0000 (16:10 -0400)]
[set] Add fallback implementation of int-vector type
Behdad Esfahbod [Sun, 15 Oct 2017 14:53:09 +0000 (16:53 +0200)]
Faster hb_set_t
Fixes https://github.com/behdad/harfbuzz/pull/23
Behdad Esfahbod [Sun, 15 Oct 2017 14:15:24 +0000 (16:15 +0200)]
Deprecate hb_set_invert()
Behdad Esfahbod [Sun, 15 Oct 2017 14:15:06 +0000 (16:15 +0200)]
Add bfind() to prealloaced_array_t
Behdad Esfahbod [Sun, 15 Oct 2017 14:00:22 +0000 (16:00 +0200)]
Inline another bsearch()
Behdad Esfahbod [Sun, 15 Oct 2017 14:00:09 +0000 (16:00 +0200)]
Add popcount for 64bit ints
Behdad Esfahbod [Sun, 15 Oct 2017 12:10:34 +0000 (14:10 +0200)]
Remove unused hb_cache_t
Behdad Esfahbod [Sun, 15 Oct 2017 12:09:46 +0000 (14:09 +0200)]
Remove unused hb_frozen_set_t
Behdad Esfahbod [Sun, 15 Oct 2017 12:09:05 +0000 (14:09 +0200)]
Move set-digests into their own header file
Behdad Esfahbod [Sun, 15 Oct 2017 12:02:58 +0000 (14:02 +0200)]
Try fixing AppVeyor bots
Behdad Esfahbod [Sun, 15 Oct 2017 10:13:19 +0000 (12:13 +0200)]
Fix warnings
Behdad Esfahbod [Sun, 15 Oct 2017 10:12:10 +0000 (12:12 +0200)]
Use C++11
Behdad Esfahbod [Sun, 15 Oct 2017 10:11:08 +0000 (12:11 +0200)]
Use nullptr instead of NULL
Behdad Esfahbod [Sun, 15 Oct 2017 10:04:16 +0000 (12:04 +0200)]
Don't use NULL in public headers
Behdad Esfahbod [Sun, 15 Oct 2017 10:02:00 +0000 (12:02 +0200)]
Use static_assert instead of custom ASSERT_STATIC
Behdad Esfahbod [Sun, 15 Oct 2017 09:24:35 +0000 (11:24 +0200)]
Add polyfill for static_assert and nullptr
Also fix hb_assert_constant_t.
Behdad Esfahbod [Sun, 15 Oct 2017 08:55:32 +0000 (10:55 +0200)]
[util] Include hb-private.hh
Simplifies compatibility issues by centralizing all boilerplate code
in hb-private.hh.
Behdad Esfahbod [Sun, 15 Oct 2017 08:48:19 +0000 (10:48 +0200)]
Never skip over CGJ
We might want to tweak this some more. For now, never skipping over
it is better behavior than always skipping.
Part of https://github.com/behdad/harfbuzz/issues/554
Behdad Esfahbod [Fri, 13 Oct 2017 14:30:33 +0000 (16:30 +0200)]
1.6.0
Behdad Esfahbod [Fri, 13 Oct 2017 09:01:55 +0000 (11:01 +0200)]
[ucdn] Fix compiler warnings
Behdad Esfahbod [Fri, 13 Oct 2017 08:30:19 +0000 (10:30 +0200)]
[coretext] Fix build
Behdad Esfahbod [Fri, 13 Oct 2017 08:21:07 +0000 (10:21 +0200)]
[coretext] Pass correct font size to CoreText
CoreText "point"s are not typographic points, but CSS pixels. Ie.
they are 96 per inch, not 72 per inch.
Behdad Esfahbod [Thu, 12 Oct 2017 12:08:58 +0000 (14:08 +0200)]
Merge remote-tracking branch 'origin/master'
Behdad Esfahbod [Thu, 12 Oct 2017 12:07:37 +0000 (14:07 +0200)]
[indic] Special-case Kannada Ra,H,ZWJ sequence
Fixes https://github.com/behdad/harfbuzz/issues/435
n8willis [Thu, 12 Oct 2017 11:48:48 +0000 (12:48 +0100)]
Replacing 'cluster' with 'syllable' when comments describe certain Indic shaping behavior (#563)
* Clarified wording of syllable/cluster behavior in Uniscribe in final_reordering; changed one other probable typo.
* Additional syllable/cluster swap in comments for final reordering and for initial-reordering matra decomposition.
ebraminio [Thu, 12 Oct 2017 11:45:49 +0000 (15:15 +0330)]
Minor BUILD.md fix (#565)
Behdad Esfahbod [Thu, 12 Oct 2017 10:01:48 +0000 (12:01 +0200)]
[coretext] Use fabs() to silence compiler warning
Dominik Röttsches [Thu, 12 Oct 2017 09:49:37 +0000 (11:49 +0200)]
[coretext] Activate tracking for system fonts
Another attempt at fully fixing
https://github.com/behdad/harfbuzz/issues/360
Khaled Hosny [Thu, 12 Oct 2017 09:05:08 +0000 (12:05 +0300)]
CMakelists.txt fix for Freetype builds (#564)
Instead of searching for freetype using pkg-config, use the FindFreetype
feature of CMake. This allows for better integration with other projects
that make use of CMake.
Fixes https://github.com/behdad/harfbuzz/issues/518
Behdad Esfahbod [Thu, 12 Oct 2017 08:46:09 +0000 (10:46 +0200)]
[coretext] Use fabsf() instead of abs()
Fixes bots.
Link libharfbuzz.so with -lm. Surprising that we survived without
it so far!