Behdad Esfahbod
31f7b1bb94
Add tests for USE using Marchen font and text
...
From http://www.babelstone.co.uk/Fonts/Marchen.html
8 years ago
Behdad Esfahbod
53543f8b3e
Ship UCDN and use it by default
...
So we are not relying on version of Unicode data in glib...
Fixes https://github.com/behdad/harfbuzz/issues/386
Fixes https://github.com/behdad/harfbuzz/issues/388
8 years ago
Behdad Esfahbod
f339706947
1.4.0
8 years ago
Frédéric Wang
ae00af4a47
Move math-specific code from hb-ot-layout to hb-ot-math #235 ( #384 )
8 years ago
Behdad Esfahbod
e053ccc5bb
Remove Android.mk
...
Android uses its own file these days and third-party developers should
be using the autotools-based system against Android NDK.
8 years ago
Behdad Esfahbod
6cff753941
Remove Tibetan decomposition rules from Indic shaper
...
The decomposition is very obscure and unlikely to help
any fonts. Just remove it since Uniscribe probably doesn't
do this either.
Fixes https://github.com/behdad/harfbuzz/issues/382
8 years ago
Behdad Esfahbod
f6ba63b2e8
Port decompositions from Indic to USE shaper
...
Part of https://github.com/behdad/harfbuzz/issues/382
8 years ago
Behdad Esfahbod
e678b537f7
[indic] Remove Chakma decomposition rule from Indic shaper
...
This is now added to USE:
https://github.com/behdad/harfbuzz/pull/383
See:
https://github.com/behdad/harfbuzz/issues/381
https://github.com/behdad/harfbuzz/issues/382
8 years ago
jfkthame
49ba698124
[use] Special-case Chakma split-vowel decomp in the USE shaper. ( #383 )
8 years ago
Behdad Esfahbod
c4ca49d55b
Revert "[indic] Remove redundant Chakma decomposition rule"
...
This reverts commit 805f76fc00
.
Need to investigate why having this rule (with the reversed order)
fixes decomposition as reported by punchcutter:
https://github.com/behdad/harfbuzz/issues/381#issuecomment-269237796
8 years ago
Behdad Esfahbod
805f76fc00
[indic] Remove redundant Chakma decomposition rule
...
This was not used BTW since Chakma doesn't go through Indic shaper
anymore.
See:
https://github.com/behdad/harfbuzz/issues/381
https://github.com/behdad/harfbuzz/issues/382
8 years ago
Behdad Esfahbod
3cc48a46b5
[indix] Comment
8 years ago
nvelinov
7d1c5d8281
Compilation Error for ASSERT_STATIC on Some Compilers ( #380 )
...
* this pointer in type definitions is not interpreted as a constant.
This rule is not enforced strictly by all compilers, but the Green Hills Software compiler will regard this as an error.
* Merging branches for the DEFINE_SIZE_UNION macro
Adding check for the existence of static_size field in the tested member.
8 years ago
Behdad Esfahbod
e2b878055b
Disable OTL processing for Hebrew if GPOS doesn't have Hebrew subtable
...
New approach to fix this:
69f9fbc420
Previous approach was reverted as it was too broad. See context:
https://github.com/behdad/harfbuzz/issues/347#issuecomment-267838368
With U+05E9,U+05B8,U+05C1,U+05DC and Arial Unicode, we now (correctly) disable
GDEF and GPOS, so we get results very close to Uniscribe, but slightly different
since our fallback position logic is not exactly the same:
Before: [gid1166=3+991|gid1142=0+737|gid5798=0+1434]
After: [gid1166=3+991|gid1142=0@402,-26+0|gid5798=0+1434]
Uniscribe: [gid1166=3+991|gid1142=0@348,0+0|gid5798=0+1434]
8 years ago
Behdad Esfahbod
1a0f4aa6df
Revert "Synthesize GDEF glyph class for any glyph that does not have one in GDEF"
...
This reverts commit 69f9fbc420
.
See https://github.com/behdad/harfbuzz/issues/347#issuecomment-268873401
Fixes https://github.com/behdad/harfbuzz/issues/347
8 years ago
Behdad Esfahbod
4b4a1b9f23
Fix assert fail with contextual matching
...
As discovered by libFuzzer / Chromium fuzzing.
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=659496
CC https://github.com/behdad/harfbuzz/issues/139
8 years ago
Behdad Esfahbod
df98ce5fc8
Improve debug output with really deep nesting
8 years ago
Behdad Esfahbod
eab418c5e6
Avoid infinite loop in CoverageFormat2 iteration with bad fonts
...
Fixes https://github.com/behdad/harfbuzz/issues/363
8 years ago
Behdad Esfahbod
a0688e8e7b
Ouch, finish previous change
8 years ago
Behdad Esfahbod
de14c19d14
[fuzzer] Separate main() into a new file
8 years ago
Behdad Esfahbod
7ed71eb347
Protect collect_glyphs() and closure() against malicious DDOS fonts
...
Fixes https://github.com/behdad/harfbuzz/issues/363
8 years ago
Mike Hommey
1c98ff87c7
Support building with older glib versions
...
It is desirable to be able to build against older versions of glib.
fd7a245
changed the configure check to require glib > 2.38 for
G_TEST_DIST. Before that, version 2.16 was required, but in fact,
since aafe395
, G_PASTE is being used, which was introduced in 2.19.1.
And since 0ef179e2
, hb-glib uses GBytes, which were introduced in
2.31.10.
2.19.1 is rather old, but 2.38 is rather new. For Firefox, building
against 2.22 is still supported, although we could probably get away
with bumping that to 2.28. Either way, GBytes is not available.
Arguably, if you build against a glib that doesn't support GBytes,
you're not going to use the hb_glib_blob_create function, so we hide
the function when building against such a glib.
As for G_TEST_DIST, when building against versions of glib that don't
support it, we can fallback to the previous behavior, which, AIUI, was
just making the test not work when building in a separate directory.
8 years ago
Volker H. Simonis
ad273881c5
Minor fixes to pacify Coverity code scan
...
Fixes https://github.com/behdad/harfbuzz/pull/377
8 years ago
ebraminio
1e1825bf47
[dwrite] Provide an experimental API for justification ( #279 )
8 years ago
elmarb
4cd0cd6791
NMake ICU option builds with builtin ICU ( #375 )
8 years ago
Khaled Hosny
75fa884f92
[win32] Fix wrong description of the ICU option ( #372 )
8 years ago
Behdad Esfahbod
219cb29c5d
Fix build after rebasing opentype-gx branch on top of MATH table
8 years ago
Behdad Esfahbod
0aedfd59be
[GX] Apply 'rvrn' feature before any other feature
8 years ago
Behdad Esfahbod
42c8142531
[GX] Fix build with older FreeType
8 years ago
Sascha Brawer
72873cf522
Call hb_font_set_var_coords_normalized() from FT_Face coords
8 years ago
Behdad Esfahbod
4ebbeb7c50
[GX] Make FeatureVariations actually work
...
Yay!!!!
8 years ago
Behdad Esfahbod
72ada4f0c6
[GX] Hook up feature variations
...
Shape-plan caching is not implemented.
8 years ago
Behdad Esfahbod
ec87ba9ba3
[GX] Add hb_ot_layout_feature_with_variations_get_lookups()
8 years ago
Behdad Esfahbod
30c42b644e
[GX] Add hb_ot_layout_table_find_feature_variations()
8 years ago
Behdad Esfahbod
7ceadbe981
Shuffle code around
8 years ago
Behdad Esfahbod
bde5e3959c
Move add_lookups from map to map-builder
...
In prep for more changes.
8 years ago
Behdad Esfahbod
26648cebcd
[GX] Remove (partial) support for anisotropic variations
...
It doesn't always work, not part of FreeType, and we were not going
to expose it in the API anyway. Can always be added later.
8 years ago
Behdad Esfahbod
c22176d4ba
[GX] Handle setting var coords to NULL
8 years ago
Behdad Esfahbod
59055b5494
[GX] Implement Feature Variations
...
Not hooked up to shaper yet.
8 years ago
Behdad Esfahbod
85ec494434
[GX] Fix another x/y thinko
...
Thanks Werner!
8 years ago
Behdad Esfahbod
cf3de4d8f7
[GX] Rename VarStore to VariationStore
8 years ago
Behdad Esfahbod
1f6ed356e0
[GX] Fix build with some compilers
...
Eg. https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.48/job/o9mnd33kcdeeg30r
hb-open-type-private.hh:103:29: error: static data member 'OT::Device::<anonymous union>::<anonymous struct>::static_size' in unnamed class [-fpermissive]
8 years ago
Behdad Esfahbod
250bcd6fb6
[GX] Skip tail zero entries when setting variation coordinates
8 years ago
Behdad Esfahbod
1124d2ece5
[GX] Fix thinko
8 years ago
Behdad Esfahbod
ad69e8f07c
[GX] Add new API hb_font_set_var_coords_normalized()
...
Will probably change.
8 years ago
Behdad Esfahbod
151d93de8a
[GX] Hook up GPOS to Variation Store stored in GDEF
...
Untested.
8 years ago
Behdad Esfahbod
dcfd309533
[GX] Change GDEF API to return varStore
8 years ago
Behdad Esfahbod
49cb87850c
[GX] Pass apply-context down to get_anchor()
...
Needed to access GDEF for varStore.
8 years ago
Behdad Esfahbod
f0c3fd8c9a
[GX] Add varStore member to GDEF
...
Still not hooked up from GPOS.
8 years ago
Behdad Esfahbod
5c971f8dbc
Minor change to GDEF, in prep for new version
8 years ago