Ebrahim Byagowi
d0c2889dfc
Revert file blob sanitization and index checking ( #1062 )
...
As https://github.com/harfbuzz/harfbuzz/pull/1059#issuecomment-397912812 we
like to still work with blobs that harfbuzz itself can't handle directly that are failing sanitization
currently apparently.
6 years ago
Ebrahim Byagowi
c53697d3f2
Verbose fail when something is wrong with hb-shape/hb-view input font file ( #1059 )
...
This checks if the blob isn't empty and uses `hb_face_count`
to see if the font file passes the simple font file sanitization
so can detect if the input is actually a font and checks also
whether input font-index is out of range.
7 years ago
Ebrahim Byagowi
aa0c5df419
Fix reading fonts from stdin ( #1060 )
...
We were passing the font path directly to freetype so rendering
was broken when we are getting the font from stdin.
This fixes it by using FT_New_Memory_Face instead.
This fixes:
* build/util/hb-view /dev/stdin text < font.ttf
* build/util/hb-view - text < font.ttf
* cat font.ttf | build/util/hb-view - text
but doesn't work on
* cat font.ttf | build/util/hb-view /dev/stdin text
which I will try to fix separately.
7 years ago
Behdad Esfahbod
3654d9be6b
1.8.1
7 years ago
Behdad Esfahbod
f3e58ab8a9
[docs] Enlist misc new symbols
7 years ago
Behdad Esfahbod
f6893ef82c
Move hb-version.h generation to Makefile
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/864
Unfortunately 1.7.7 and 1.8.0 went out with the wrong hb-version.h contents.
7 years ago
Behdad Esfahbod
cc0b04f48f
[subset] Remove HB_SUBSET_BUILTIN
...
Just include hb-static.cc in libharfbuzz-subset.so source list as
well. Those building it built-in will include hb-static.cc once
already. No need for any gymnastics.
7 years ago
Behdad Esfahbod
ba0ea56efa
[substitute-closure] Rename function for clarity
7 years ago
Behdad Esfahbod
7b5ce41638
Whitespace
7 years ago
Behdad Esfahbod
c4d0d11c55
[vector] Always 0-fill new items
7 years ago
Behdad Esfahbod
a7e1b4a3b2
Fix compiler warning re reordering of initializations
7 years ago
Behdad Esfahbod
f56cd9df10
Style
7 years ago
Jonathan Kew
a95cde15af
[hb-set] Additional testcase for hb-set-intersect.
7 years ago
Jonathan Kew
82484b05ca
[hb-set] Don't shrink vectors until after processing their contents.
...
Fixes #1054 .
7 years ago
Ebrahim Byagowi
eb585033ca
Fetch the updated dwrite_1.h header from a better place
...
Following to https://ci.appveyor.com/project/harfbuzz/harfbuzz/build/1.0.1693/job/mfkjdhcdykjuqdfc
7 years ago
Behdad Esfahbod
b8e406f0c7
More fixes for SunStudio 12.6 build
...
Followup to https://github.com/harfbuzz/harfbuzz/pull/1053
7 years ago
prrace
498e4373dc
Fix SunStudio 12.6 build ( #1053 )
7 years ago
Garret Rieger
46f7e7760f
[subset] Use REPLACEME instead of version.
7 years ago
Garret Rieger
fc246ec985
[subset] Move variable declaration out of loop.
7 years ago
Garret Rieger
197cb18b22
[subset] Add test cases for gsub closure in subsetting.
7 years ago
Garret Rieger
37eab27be3
[subset] Add fuzzing of gsub closure to hb-subset-fuzzer.
7 years ago
Garret Rieger
feb23892a3
[subset] Use gsub closure if ot layout is not being dropped.
7 years ago
Garret Rieger
a5673da9be
[subset] Add drop_ot_layout setting to subset input.
7 years ago
Garret Rieger
57badadb76
[subset] add a new closure call to hb-ot-layout that can compute the closure over multiple lookups.
7 years ago
Behdad Esfahbod
11f1f4131b
[set] Add is_subset
...
New API:
+hb_set_is_subset()
7 years ago
Garret Rieger
45186b9b8c
[subset] Add memoization of GSUB lookup closures.
7 years ago
Behdad Esfahbod
78d92e0f27
Minorish
7 years ago
Behdad Esfahbod
676b19f0d1
Compiler gymnastics
...
Part of https://github.com/harfbuzz/harfbuzz/issues/630
7 years ago
Behdad Esfahbod
0a5952e8dd
Move prime_for back into map
...
This was causing problem on systems without visibility when map was used
from both libharfbuzz and libharfbuzz-subset. Sigh.
https://ci.appveyor.com/project/harfbuzz/harfbuzz/build/1.0.1669/job/dey47nmff0770vp3
7 years ago
David Corbett
a2a1484ef9
Convert Consonant_Initial_Postfixed to CONS_FINAL
...
Consonant_Initial_Postfixed was split off of Consonant_Succeeding_Repha,
so it should correspond to the same USE class, CONS_FINAL.
7 years ago
Behdad Esfahbod
37986aa9b7
1.8.0
7 years ago
Behdad Esfahbod
9d3cd13c30
[ucdn] Update to Unicode 11
...
https://github.com/grigorig/ucdn/issues/19
7 years ago
Behdad Esfahbod
060e6b4a13
Update to Unicode 11.0.0
...
UCDN is not updated yet.
7 years ago
Behdad Esfahbod
105a3b5e2d
Minor
7 years ago
Behdad Esfahbod
60c516789b
[RELEASING] Update
7 years ago
Behdad Esfahbod
df01f3e560
1.7.7
7 years ago
Behdad Esfahbod
ba3b6d6c65
[khmer] Fix Coeng vs Halant confusion
...
Test suite results are unchanged (34).
7 years ago
Ebrahim Byagowi
8220ef8a54
Fix hb_face_count build issue
...
I should've rebased #1002 before the merge, my bad
7 years ago
Ebrahim Byagowi
32da0c6bc4
Add hb_face_count, a new API ( #1002 )
...
Simply, it returns the number of faces on a font blob.
To be used on hb-sanitizer tool but other clients also
can benefit from it.
7 years ago
Behdad Esfahbod
4a115fe7fe
[sinhala] Move reph to after post-consonants
...
Apparently this changed between Win 7 and Win 10.
Fixes https://github.com/harfbuzz/harfbuzz/issues/967
To be continued in https://github.com/harfbuzz/harfbuzz/issues/1044
7 years ago
Behdad Esfahbod
3e494caae3
[test] Fix record-test to use gids not glyph-names
...
as those might not match what FontTools think of the glyphs if font
does NOT have glyph names.
7 years ago
Behdad Esfahbod
58400a2ad8
Remove DISALLOW_* from vector, set, and map
...
Some of the build bots, still fail on this. I suppose mine pass because
I enable C++11...
Anyway, remove these again.
7 years ago
Behdad Esfahbod
f9abbf83b6
Fix fallout from 975bdd5ef5
...
Ouch!
7 years ago
Behdad Esfahbod
f7515769fd
[vector] Use Crap pool in push() as well
7 years ago
Behdad Esfahbod
975bdd5ef5
[vector] Keep success status
7 years ago
Behdad Esfahbod
1ab3c3ed1b
[vector] Whitespace
7 years ago
Behdad Esfahbod
fb07d1a3ce
Another attempt at making every compiler happy...
...
Sigh.
7 years ago
Behdad Esfahbod
4f76f956bb
[map] Move prime_for to hb-static
7 years ago
Behdad Esfahbod
33d6f46bbb
[set] Shrink page-map size again
7 years ago
Behdad Esfahbod
4ca211bce1
Fix hb_vector_size_t
7 years ago