src


Log

Author Commit Date CI Message
Behdad Esfahbod bddeb2b1 2018-07-10T14:12:37 Minor renamings of internal inline functions
Behdad Esfahbod d652ef29 2018-07-10T14:05:00 Move hb_vector_t and hb_lockable_set_t to hb-dsalgs.hh
Behdad Esfahbod 9e53b083 2018-07-10T14:03:58 Move hb_stable_sort to hb-dsalgs.hh Also, include hb-dsalgs.hh from end of hb-pricate.hh
Behdad Esfahbod 39f11d8e 2018-07-10T14:01:39 Minor
Behdad Esfahbod 763f878c 2018-07-10T13:47:41 Fix syntax Oops.
Behdad Esfahbod 83ea2771 2018-07-10T13:17:27 Add posix_memalign() fallback
Behdad Esfahbod 292c100d 2018-07-10T13:16:52 Always compile (but not use) alignof() and round() fallback codes Catches compile-errors in them better.
Behdad Esfahbod 27c5317d 2018-07-10T13:03:42 Fix alignof impl
Behdad Esfahbod bca83618 2018-07-10T12:58:13 Add fallback implementation for constexpr and alignof
Behdad Esfahbod 7cb47d0f 2018-07-10T12:51:29 Minor
Cosimo Lupo ccdd1565 2018-07-09T18:26:44 src/Makefile.am: pass headers to gen-def.py as arguments, not env vars
Cosimo Lupo e3a931ef 2018-07-09T18:11:29 gen-def.py: pass headers as arguments so that msys2 can convert posix paths When one is not using the msys2 python, the header files that are passed in as environment variable cannot be found. https://ci.appveyor.com/project/fonttools/ttfautohint-py/build/1.0.65/job/rkremny4jjid9nl2#L803 This is because msys2 shell and make use POSIX paths (e.g. /c/Users/clupo/...) whereas non-msys2 python.exe uses native Windows paths (e.g. C:\Users\clupo\...). Msys2 will automatically convert command line arguments (but not environment variables) from POSIX to Windows paths when calling a native win32 executable, so we pass the header paths as arguments instead of environment variables. This way the gen-def.py script can support both mingw python running in an MSYS2 shell, and native win32 python.
David Corbett 46d8f0d5 2018-07-06T15:47:03 Do not enforce a native direction of LTR for Runic Fixes #481
David Corbett 936dadc6 2018-07-07T11:08:17 Regenerate the USE table for Grantha and Bhaiksuki (#1090) Completes #1037 and fixes #1035.
Behdad Esfahbod 1ebaa090 2018-07-05T14:04:13 Disable vectorization Disable vectorization for now. To correctly use them, we should use posix_memalign() to allocate them. Otherwise, can cause misaligned access. https://bugs.chromium.org/p/chromium/issues/detail?id=860184
Behdad Esfahbod 18a06f8a 2018-07-05T14:03:48 Fix warning ../../src/hb-ot-layout-gsubgpos-private.hh:391:18: warning: missed loop optimization, the loop counter may overflow [-Wunsafe-loop-optimizations]
Behdad Esfahbod 058708a6 2018-07-05T13:16:00 Allow disabling vector_size use
Ebrahim Byagowi d8a7dedc 2018-07-04T15:33:39 Use CreateFileW explicitly and pass wchar_t to it (#1087)
Behdad Esfahbod 9940504e 2018-07-03T14:29:25 [indic] Adjust left-matra repositioning and Halant,ZWJ sequence From the new code (first paragraph is from the OT Devanagari spec.): /* o Reorder matras: * * If a pre-base matra character had been reordered before applying basic * features, the glyph can be moved closer to the main consonant based on * whether half-forms had been formed. Actual position for the matra is * defined as “after last standalone halant glyph, after initial matra * position and before the main consonant”. If ZWJ or ZWNJ follow this * halant, position is moved after it. * * IMPLEMENTATION NOTES: * * It looks like the last sentence is wrong. Testing, with Windows 7 Uniscribe * and Devanagari shows that the behavior is best described as: * * "If ZWJ follows this halant, matra is NOT repositioned after this halant. * If ZWNJ follows this halant, position is moved after it." * * Test case, with Adobe Devanagari or Nirmala UI: * * U+091F,U+094D,U+200C,U+092F,U+093F * (Matra moves to the middle, after ZWNJ.) * * U+091F,U+094D,U+200D,U+092F,U+093F * (Matra does NOT move, stays to the left.) Fixes https://github.com/harfbuzz/harfbuzz/issues/1070 Test case added with Adobe Devanagari.
Behdad Esfahbod 2cb075fe 2018-07-03T13:04:05 Fix unused function '_hb_mapped_file_destroy' if no mmap
Behdad Esfahbod 343e8c69 2018-07-03T12:43:59 1.8.2
Behdad Esfahbod 29e7879b 2018-07-03T12:38:21 Disable .dfont code for now The get_table imple was wrong, as table offsets in a dfont are relative to the resource. We were treating them as relative to the big blob itself. To be fixed. Part of https://github.com/harfbuzz/harfbuzz/pull/1085
Ebrahim Byagowi 32348a43 2018-07-01T15:32:43 Fix trak table apply logic In collaboration with Behdad
Ebrahim Byagowi 225b92b7 2018-07-01T14:32:00 Support dfont font files (#949)
Ebrahim Byagowi 5d8cafcf 2018-07-01T01:54:14 Improve nommap naming and use C style comments on create_from_file (#1084)
Behdad Esfahbod d3c0980a 2018-06-30T15:59:25 Adjust MarkBasePos heuristic in presence of MultipleSubst From the issue: "In this font, the virama,ya first forms a ligature, then decomposes back to virama,ya. This causes those two to be marked parts of a MultipleSubst sequence. When attaching the matra, we look for the first of the MultipleSubst sequence because that's where we attach to (because of eg #740). In this case, the first glyph in the MultipleSubst sequence is a mark, so we skip it and attach to the base char before it." Font in question is Nirmala UI from Windows 10. Test sequence: U+0926,U+094D,U+092F,U+0941 Fixes https://github.com/harfbuzz/harfbuzz/issues/1020
Behdad Esfahbod 8b9cbe3b 2018-06-30T12:28:03 [indic] Tweak for old-spec Bengali and halant-ya-halant Fixes https://github.com/harfbuzz/harfbuzz/issues/1073
punchcutter 9541c9da 2018-06-24T22:54:57 Rebase and update USE overrides for Bhaiksuki Gap Fillers and Grantha Anusvara
Behdad Esfahbod 7b8dfac5 2018-06-30T09:16:54 [khmer] Fix infinite-loop in cluster merging Indic shaper already had this check. We removed it when forking Khmer shaper by mistake. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1464623
Ebrahim Byagowi 25970a93 2018-06-28T14:32:36 armcc compatibility, don't use EINTR if doesn't exist Fixes #1081
Ebrahim Byagowi 8a51f91b 2018-06-28T13:22:21 Minor on hb_blob_create_from_file, reuse ferror result Oops
Ebrahim Byagowi 7b4099f3 2018-06-27T16:54:44 Minor, rename blob to data on blob_from_file
Ebrahim Byagowi fa090ed4 2018-06-27T14:13:26 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)
Behdad Esfahbod 01dff1ea 2018-06-26T18:00:58 Make round() fallback portable to systems that do have round() Makes compiling without HAVE_ROUND on systems that do have it work.
Ebrahim Byagowi 7db2e9ea 2018-06-26T10:46:10 Minor on hb_blob_create_from_file Add one more "unlikely" annotation and use explicit nullptr check for more consistency.
Ebrahim Byagowi 35ce8f31 2018-06-25T22:23:43 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!
Behdad Esfahbod b2a18791 2018-06-23T10:32:28 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.
Ebrahim Byagowi 941f2b85 2018-06-18T20:35:40 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.
Behdad Esfahbod 3654d9be 2018-06-12T19:38:04 1.8.1
Behdad Esfahbod f6893ef8 2018-06-12T19:20:20 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.
Behdad Esfahbod cc0b04f4 2018-06-12T18:24:54 [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.
Behdad Esfahbod ba0ea56e 2018-06-11T23:24:41 [substitute-closure] Rename function for clarity
Behdad Esfahbod 7b5ce416 2018-06-11T23:23:40 Whitespace
Behdad Esfahbod c4d0d11c 2018-06-11T22:11:45 [vector] Always 0-fill new items
Behdad Esfahbod a7e1b4a3 2018-06-11T22:05:08 Fix compiler warning re reordering of initializations
Behdad Esfahbod f56cd9df 2018-06-11T22:02:38 Style
Jonathan Kew 82484b05 2018-06-11T20:55:14 [hb-set] Don't shrink vectors until after processing their contents. Fixes #1054.
Behdad Esfahbod b8e406f0 2018-06-10T17:22:38 More fixes for SunStudio 12.6 build Followup to https://github.com/harfbuzz/harfbuzz/pull/1053
prrace 498e4373 2018-06-09T16:04:28 Fix SunStudio 12.6 build (#1053)
Garret Rieger feb23892 2018-06-07T14:32:34 [subset] Use gsub closure if ot layout is not being dropped.
Garret Rieger a5673da9 2018-06-07T14:23:03 [subset] Add drop_ot_layout setting to subset input.
Garret Rieger 46f7e776 2018-06-07T15:55:45 [subset] Use REPLACEME instead of version.
Garret Rieger 57badadb 2018-06-06T16:02:51 [subset] add a new closure call to hb-ot-layout that can compute the closure over multiple lookups.
Behdad Esfahbod 11f1f413 2018-06-06T16:46:50 [set] Add is_subset New API: +hb_set_is_subset()
Garret Rieger 45186b9b 2018-06-05T17:14:42 [subset] Add memoization of GSUB lookup closures.
Behdad Esfahbod 78d92e0f 2018-06-06T15:24:43 Minorish
Behdad Esfahbod 676b19f0 2018-06-06T15:23:35 Compiler gymnastics Part of https://github.com/harfbuzz/harfbuzz/issues/630
Behdad Esfahbod 0a5952e8 2018-06-06T14:55:30 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
David Corbett a2a1484e 2018-06-06T12:57:28 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.
Behdad Esfahbod 9d3cd13c 2018-06-05T17:59:31 [ucdn] Update to Unicode 11 https://github.com/grigorig/ucdn/issues/19
Behdad Esfahbod 060e6b4a 2018-06-05T17:31:46 Update to Unicode 11.0.0 UCDN is not updated yet.
Behdad Esfahbod 105a3b5e 2018-06-05T15:31:04 Minor
Behdad Esfahbod df01f3e5 2018-06-05T15:17:39 1.7.7
Behdad Esfahbod ba3b6d6c 2018-06-04T16:47:45 [khmer] Fix Coeng vs Halant confusion Test suite results are unchanged (34).
Ebrahim Byagowi 8220ef8a 2018-06-05T22:50:53 Fix hb_face_count build issue I should've rebased #1002 before the merge, my bad
Ebrahim Byagowi 32da0c6b 2018-06-05T18:56:26 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.
Behdad Esfahbod 4a115fe7 2018-06-04T15:40:43 [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
Behdad Esfahbod 58400a2a 2018-06-02T20:30:09 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.
Behdad Esfahbod f9abbf83 2018-06-02T15:30:59 Fix fallout from 975bdd5ef562e37655067b703b2b9ca7481f4985 Ouch!
Behdad Esfahbod f7515769 2018-06-01T17:48:37 [vector] Use Crap pool in push() as well
Behdad Esfahbod 975bdd5e 2018-06-01T17:37:13 [vector] Keep success status
Behdad Esfahbod 1ab3c3ed 2018-06-01T17:34:24 [vector] Whitespace
Behdad Esfahbod fb07d1a3 2018-06-01T17:32:07 Another attempt at making every compiler happy... Sigh.
Behdad Esfahbod 4f76f956 2018-06-01T17:28:47 [map] Move prime_for to hb-static
Behdad Esfahbod 33d6f46b 2018-06-01T17:25:35 [set] Shrink page-map size again
Behdad Esfahbod 4ca211bc 2018-06-01T17:18:57 Fix hb_vector_size_t
Behdad Esfahbod a7dd90f5 2018-06-01T16:07:55 Revert "Remove HB_DISALLOW_COPY_AND_ASSIGN" This reverts commit ff92de766bf775bfdd3a01bda94de699180ff86a. Revert that and remove ASSERT_POD. Let's see which bots are unhappy with this configuration...
Behdad Esfahbod 7b50bf52 2018-05-31T20:20:17 Use NullPool for _hb_set_nil and _hb_map_nil
Behdad Esfahbod f040ca40 2018-05-31T20:15:21 [set] Minor
Behdad Esfahbod 7185b273 2018-05-31T20:03:00 Rename in_error to !successful Towards possibly using Null pool for some nil objects.
Behdad Esfahbod 353f4d2e 2018-05-31T19:52:16 Fix a whitespace inconsistency Null() and Crap() are only places that there's no space before '('...
Behdad Esfahbod e36cd1df 2018-05-31T19:31:39 Remove trivial HB_ATOMIC_INT_INIT()
Behdad Esfahbod 550a70f8 2018-05-31T19:28:04 Use 0 as inert object reference value instead of -1 Towards using Null object for nil objects.
Behdad Esfahbod dcd1b07e 2018-05-31T17:58:40 Add const OffsetTo<> dereference Unused, but now that we have CrapPool, implement it.
Ebrahim Byagowi 2baa357a 2018-05-31T12:27:31 Fix symbol export issue of prime_mod on Alpine bot Apparently our gcc-6.4.0 on Alpine Linux distribution doesn't like defining static const inside a method, lets put that on outside the classes.
Behdad Esfahbod 54800f83 2018-05-30T16:26:50 [map] Mark prime_for HB_INTERNAL Trying to see if it fixes gcc-4.2 bots.
Behdad Esfahbod d600e844 2018-05-30T16:25:46 Add CrapOrNull
Garret Rieger 251cc977 2018-05-30T12:23:51 [subset] Switch to using hb_map_t inside of hb_subset_plan_t.
Behdad Esfahbod b3d45de6 2018-05-30T14:02:49 [map] Fix size calculation Don't know why I thought I should subtract one there...
Behdad Esfahbod ff92de76 2018-05-29T18:48:45 Remove HB_DISALLOW_COPY_AND_ASSIGN llvm-gcc-4.2 bot had this problem: hb-private.hh:812: error: initializer specified for non-virtual method 'void hb_vector_t<Type, StaticSize>::operator=(const hb_vector_t<Type, StaticSize>&) [with Type = hb_user_data_array_t::hb_user_data_item_t, unsigned int StaticSize = 1u]' Removing the delete didn't work with a constructor. So, remove constructor. Just disallow assignment. Still better than nothing.
Behdad Esfahbod a2444346 2018-05-29T18:32:57 [map] Fix resize
Behdad Esfahbod efbab6ba 2018-05-29T18:21:55 Disable use of thread_local Clang build was failing with: /usr/bin/ld: .libs/libharfbuzz_la-hb-blob.o: relocation R_X86_64_PC32 against undefined hidden symbol `_ZTH12_hb_CrapPool' can not be used when making a shared object Instead of fighting it, just disable use of it.
Behdad Esfahbod 8c2c5d45 2018-05-29T18:15:52 [map] Not going to implement is_equal which is complicated
Behdad Esfahbod ccd01c65 2018-05-29T18:13:13 [map] Move prime_mod to header to avoid linkage issues in subset.so
Behdad Esfahbod 6baebc5d 2018-05-29T17:58:46 [map] Fix copyright year
Behdad Esfahbod b0158129 2018-05-29T17:52:37 [map] Minor
Behdad Esfahbod 4099c66f 2018-05-29T17:52:07 [map] Don't return INVALID from get() just because in_error
Behdad Esfahbod 25783907 2018-05-29T17:34:35 [map] Fix bool use in C API
Behdad Esfahbod a9fa39dc 2018-05-29T17:31:01 [map] More minor
Behdad Esfahbod f76c4a77 2018-05-29T17:27:25 [map] Make initial resize actually work