Ebrahim Byagowi
8a51f91b70
Minor on hb_blob_create_from_file, reuse ferror result
...
Oops
6 years ago
Ebrahim Byagowi
71971800ed
[ci] Don't fail on apt update and revive clang-O3-O0
6 years ago
Ebrahim Byagowi
7b4099f35f
Minor, rename blob to data on blob_from_file
6 years ago
Ebrahim Byagowi
fa090ed4d4
Minor touches on hb_blob_create_from_file ( #1079 )
...
* Handle EINTR on fallback reader
* Increase fallback reader limitation size limitation to 2 << 28
* Ensure _O_BINARY does exist if MMAP is used on Windows
(maybe superfluous but makes me more confident)
6 years ago
Behdad Esfahbod
01dff1ea1a
Make round() fallback portable to systems that do have round()
...
Makes compiling without HAVE_ROUND on systems that do have it work.
6 years ago
Ebrahim Byagowi
7db2e9ea38
Minor on hb_blob_create_from_file
...
Add one more "unlikely" annotation and use explicit nullptr check for more consistency.
6 years ago
Garret Rieger
4f8753464a
[subset] Add fuzzer test case that caused a timeout to the corpus.
6 years ago
Ebrahim Byagowi
35ce8f31d3
Unify our pipe reader with the fallback reader ( #1068 )
...
And assign one bot to use the path always using NOMMAPFILEREADER token.
It's limited to 200mb so no more fun with using /dev/zero on hb-view!
6 years ago
Ebrahim Byagowi
f57804a8a5
Resolve ttx absolute path before use ( #1075 )
6 years ago
Ebrahim Byagowi
159ddb8729
Treat - just as /dev/stdin and remove one extra file reader ( #1065 )
6 years ago
Behdad Esfahbod
b2a1879187
In Coverage iterator, bail out if table smells
...
In particular, if CoverageFormat2 has unsorted ranges, bail out.
Otherwise, 64k ranges of each 64k glyphs can DoS closure() method.
We can do the same for CoverageFormat1, but that one does not expose
the quadratic behavior, so, fine.
6 years ago
Ebrahim Byagowi
941f2b8548
Support pipe and friends on hb_blob_create_from_file ( #1061 )
...
With this hb-view/hb-shape support pipes and possibly socket and named pipe
also, anything fails just on mmap.
We can later do the same for Windows also.
This however reveals two issues, the fact most of our bots don't have HAVE_MMAP and using
this instead the other fread/fopen reader can make failure on CI. I should look at them separately
this change however is very low risk I believe.
7 years ago
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.
7 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