src


Log

Author Commit Date CI Message
Behdad Esfahbod 2cc85281 2020-04-18T16:29:32 [serializer] Make snapshot()/revert() revert current object links Fixes https://github.com/harfbuzz/harfbuzz/issues/2325
Behdad Esfahbod 6f6e78a2 2020-04-18T16:12:18 Fix float-to-double warnings ./hb-ot-glyf-table.hh:978:37: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion]
Behdad Esfahbod c37100e7 2020-04-18T16:02:55 Clean up math.h and float.h includes
Ebrahim Byagowi c6b3f73b 2020-04-19T00:54:24 [meson] Make harfbuzz-icu separate module optout-able
Christoph Reiter 8ae06c94 2020-04-18T20:22:45 meson: build a separate library for harfbuzz-icu This adds a seperate library like with autotools. This also fixes the ico feature option which was just set to required:false when disabled instead of really disabling it. Disabling is still broken with msvc because it then tries to find the library another way, but that's broken for all other deps as well so I left it as is. For tests only test-unicode.c is using icu specific functions so split it out into its own category which depends on harfbuzz-icu. Fixes #2338
Christoph Reiter c1228990 2020-04-18T15:29:56 autotools: Add fix_get_types.py to EXTRA_DIST So it ends up in the release tarball and can be used in the meson build. Fixes #2337
Christoph Reiter dced2fbe 2020-04-18T14:37:03 meson: complete introspection build config Pass the same config to gobject-introspection as with cmake/autotools. This makes sure the c-include and package name is included in the gir and also fixes the build because of the missing HB_AAT_H* defines. Fixes #2336
ariza 22f7c61a 2020-04-17T23:49:51 implement SID to glyph ID mapping with predefined Charset Also fixes oss-fuzz 21769
Ebrahim Byagowi f9bc3733 2020-04-17T22:37:48 2.6.5
Ebrahim Byagowi a8455292 2020-04-17T22:50:48 [layout] minor on doc
Ebrahim Byagowi 29c90322 2020-04-17T22:11:40 Move hb_ot_layout_closure_{features,lookups} behind EXPERIMENTAL flag
Ebrahim Byagowi 9b7fb5c2 2020-04-17T20:12:24 Move hb_font_get_var_coords_design behind HB_EXPERIMENTAL_API
Behdad Esfahbod 41c671e7 2020-04-17T08:37:25 [build] Adjust check-symbols for -flto Fixes https://github.com/harfbuzz/harfbuzz/issues/2328
Ebrahim Byagowi 8f6d0f84 2020-04-17T11:30:27 [os2] minor, fix font_page_t enum naming As https://github.com/harfbuzz/harfbuzz/pull/986#pullrequestreview-395052800
Ebrahim Byagowi 818f109b 2020-04-16T21:25:32 Use float in avar calculation instead ints and checking their overflows
Ebrahim Byagowi 9ffa50fe 2020-04-16T21:25:32 Add an appropriate fallback to hb_int_mul_overflows
Jonathan Kew 573b6bf8 2020-03-30T23:20:30 Handle non-exclusive features when mapping OpenType tags to AAT feature type/selector pairs. Fixes #2290.
Qunxin Liu 0d569598 2020-04-05T18:44:26 [subset] fixes dangling object_t issue in FeatureVariationRecord Fixes https://crbug.com/oss-fuzz/21560 revert () does not clean up useless object_t. Adjust the order of subsetting substitutions and conditions to avoid dangling object_t.
Ebrahim Byagowi 57b7de03 2020-04-05T17:07:48 [subset] Fail ClassDefFormat1 serialization if no space available Fixes https://crbug.com/oss-fuzz/21580
Qunxin Liu c8cc1e37 2020-04-02T16:57:01 fix issues in ClassDefFormat1 serialize: glyph ids in Iterator may be non-consecutive, so the number in classValue might be larger than length of the Iterator
Ebrahim Byagowi 75cae46d 2020-04-03T20:04:16 [aat] minor spacing
Ebrahim Byagowi 37377763 2020-04-03T20:03:20 [aat] add the bug link, minor
Jonathan Kew 1faf0caa 2020-04-03T16:10:34 Special-case 'smcp' when checking for exposed AAT features. This may be implemented by selectors under either LETTER_CASE or LOWER_CASE feature types in AAT, so we need to check for the presence of either one. Fixes #2307.
Jonathan Kew b87cf6e8 2020-04-03T15:02:07 Fix sense of comparsion in hb_aat_map_builder_t::feature_info_t. This makes bsearch actually work for the features array. Fixes #2305.
Jonathan Kew b027cb51 2020-03-30T18:47:22 Set sequence number when adding feature to aat map builder, to support stable sort. Fixes #2288.
Ebrahim Byagowi 89fa70f5 2020-04-03T00:05:40 [aat] minor over previous feat related changes
Jonathan Kew b1c0b9da 2020-04-02T14:39:13 [AAT] Don't map OT tags to AAT feature types that are not exposed. If an AAT feature type is not exposed in the 'feat' table, we assume it is not intended to be user-controllable and so we should not map any OT feature tag requests to it. Fixes #2285.
Qunxin Liu e0c3979a 2020-04-01T16:49:53 typo fix
ariza 65f41363 2020-04-01T19:49:18 minor; fixes #2292
Garret Rieger 014e038b 2020-03-31T16:29:29 [subset] Bail out of context lookup expansion once the lookup limit is encountered.
Garret Rieger 5d345d0c 2020-03-31T17:46:19 [subset] Limit the number of lookup indices processed subsetting Feature. > Also, remove two unnessecary full iterations of the lookup index iterator during serialization of the index array. Fixes fuzzer found timeout.
Khaled Hosny 1b64b730 2020-03-30T16:49:23 Revert "Add messages for GPOS/GSUB phases" This reverts commit b07714d6b53bb20a2796f5efa607dc32aac587f1.
Ebrahim Byagowi 2e1bf61d 2020-03-26T22:59:26 [gsubgpos] Use FeatureVariations::NOT_FOUND_INDEX instead Index:: As noted by https://github.com/harfbuzz/harfbuzz/issues/2280#issuecomment-604386389 Added on b143e34, fixed on 2571891 Closes #2280
Ebrahim Byagowi 96d792ae 2020-03-24T14:05:47 [avar] Prevent mul overflow Fixes https://crbug.com/oss-fuzz/21350
Ebrahim Byagowi 18fc9197 2020-03-26T13:34:28 [meson] Run check-symbols.sh and check-static-inits.sh correctly * Search src/ build directory for objects in check-static-inits.sh * Find .def files in src/ build directory in src/check-symbols.sh * Pass builddir also in autotools also, we may just remove libs passing after autotools removal * Move harfbuzz_subset_def target so can be referenced as a check-static-inits.sh dependency
Ebrahim Byagowi 9c2c9553 2020-03-26T13:24:38 [test] Check -subset also doesn't link to lib[std]c++
Ebrahim Byagowi 25718913 2020-03-26T14:04:37 [gsubgpos] minor build fix
Ebrahim Byagowi b143e34e 2020-03-26T11:58:45 [gsubgpos] Initialize variation index on HB_NO_VAR hb_shape_plan_key_t::equal expects hb_ot_shape_plan_key_t be initialized by hb_ot_layout_table_find_feature_variations calls but it won't get initialized when HB_NO_VAR build config is used. Related to https://github.com/harfbuzz/harfbuzz/issues/2280
Ebrahim Byagowi 071e2e34 2020-03-26T12:01:53 minor
Ebrahim Byagowi cc977b6e 2020-03-26T11:18:02 [gsubgpos] Minor simplification Just changed the order, no functional change
Ebrahim Byagowi 1a482785 2020-03-26T11:15:09 [gsubgpos] Minor style improve
Garret Rieger 4ad686b9 2020-03-25T23:32:28 [subset] fix fuzzer timeout in layout closure Bail out of chain context lookup expansion once the lookup limit is encountered.
Ebrahim Byagowi 2db82791 2020-03-24T18:55:56 [meson] Don't compile test-{algs,iter,meta} on msvc
Ebrahim Byagowi 3385afac 2020-03-24T18:55:01 [meson] Don't run check-includes if is amalgam build
Ebrahim Byagowi 6a8a1dc5 2020-03-24T16:04:33 [meson] Port src/ binary artifacts to meson
Ebrahim Byagowi 4738dff1 2020-03-23T23:37:49 [make] minor move on Makefile.am
Ebrahim Byagowi f0ce56bb 2020-03-24T22:53:38 [meson] Don't compile test-bimap on msvc either MSVC doens't like its NullPool, test-bimap.cc.obj : error LNK2019: unresolved external symbol "unsigned __int64 const * const _hb_NullPool" (?_hb_NullPool@@3QB_KB) referenced in function
Ebrahim Byagowi 22f311e1 2020-03-24T22:43:02 [meson] Don't compile noinst_programs in msvc for now
Ebrahim Byagowi 7054b122 2020-03-24T22:35:41 [meson] Mark rest of non-install executables explicitly
Ebrahim Byagowi e8808c1c 2020-03-24T19:15:09 [meson] Minor, replace tabs with spaces
Simon Cozens b07714d6 2020-03-14T17:55:27 Add messages for GPOS/GSUB phases
Ebrahim Byagowi 748e1cf8 2020-03-21T23:31:52 [subset] Avoid linking to libstdc++ in libharfbuzz-subset.so Just like other targets (except harfbuzz-icu) avoid linking to libstdc++
Ebrahim Byagowi a0c58be3 2020-03-18T23:40:59 [tools] Remove py2 remains
Tim-Philipp Müller 93b3e302 2020-03-14T11:27:50 [meson] fix icu-related linking errors in test with amalgam build test-unicode.c:960: undefined reference to `hb_icu_get_unicode_funcs' test-unicode.c:961: undefined reference to `hb_icu_get_unicode_funcs' For now add the icu sources to libharfbuzz also for the amalgam build, later we need to have a separate harfbuzz-icu module and link against that, and/or generate harfbuzz.cc.
Garret Rieger 2f556c38 2020-03-13T12:21:10 [subset] Fix crash when serializer runs out of room during gpos subsetting.
Chun-wei Fan 838346c5 2020-03-13T18:01:17 meson: Support GDI integration ...and supersede the configuration option uniscribe with gdi, as Uniscribe is tightly tied to GDI. This means that enabling GDI would also mean enabling Uniscribe.
Chun-wei Fan 4b4d5c29 2020-03-13T16:00:09 src/meson.build: Some cleanups for Visual Studio builds We don't actually need the .def files (vs_module_defs) entry when we are building DLLs with Visual Studio as long as we have HB_DLL_EXPORT defined. Plus, to maintain compatibility with the CMake builds, for Visual Studio builds we do not prefix the libraries with 'lib', nor have a '-0' suffix for the DLL file name.
Chun-wei Fan 91ca17e1 2020-03-13T12:19:32 src/hb-gobject-enums.cc.tmpl: Replace © with (C) This was, we also avoid Visual Studio compiler warnings C4828 as that sign is not favored when /utf-8 is enabled, which is the norm nowadays as Visual Studio 2015 or later is required to build harfbuzz nowadays.
Chun-wei Fan 62fb6738 2020-03-13T12:18:09 Fix gen-def for harefbuzz-gobject The © sign is causing issues for the script, so replace those with (C)
Chun-wei Fan 8d425ed4 2020-03-13T12:15:28 meson: Fix harfbuzz-gobject builds without introspection Make the `sources:` field reflect the items depending on whether introspection is being built
Chun-wei Fan 3341d534 2020-03-13T12:07:06 meson: Don't apply -DHB_DLL_EXPORT to all targets Only have it apply to the libraries when they are not built statically on Visual Studio
Ebrahim Byagowi a224f417 2020-03-13T08:33:34 Turn more of simple dagger chains to foreach Less noise, as was agreed before and applied 385741d also
Ebrahim Byagowi 755a77d6 2020-01-29T22:26:04 Move outline draw API behind HB_EXPERIMENTAL_API directive
Ebrahim Byagowi 1dd38966 2020-03-12T13:41:10 [meson] Make it work on autotools dist
Garret Rieger 834a224a 2020-03-12T03:02:36 [subset] Put a limit on the number of lookup indices that can be visited during closures Fixes https://crbug.com/oss-fuzz/21025
Ebrahim Byagowi f8c8be05 2020-03-11T20:51:40 [meson] Add amalgam build option
Tim-Philipp Müller 618584e9 2018-11-14T20:19:36 meson: rename incbase to incconfig Makes it clearer what it's for: config.h. See #4.
Khaled Hosny 14b5c774 2018-11-14T21:05:47 meson: Fix include directory when used as subproject HarfBuzz headers are under src/ not the root directory, without using incsrc no headers will be found by the dependent project. I think incbase is superfluous, it should be replaced by incsrc or dropped.
Tim-Philipp Müller 6abe7983 2018-11-14T13:49:03 meson: add g-i introspection
Tim-Philipp Müller d230a020 2018-11-12T19:41:39 meson: generate .def file for MSVC symbol export on the fly Fix symbol export with MSVC when features are disabled, such as GLib. We need to generate the list of exported symbols on the fly to make sure we only export symbols that are actually available. Needs some minor modifications to the gen-def.py script: - accept header list also via command line args; we can't pass things to a configure_file() command via the environment in Meson. - strip any leading 'src/' from library filename. This might be there because in Meson the script might be called from the top-level directory and not the current source directory. Remove .def files again which had been checked in for earlier versions of the Meson port.
Tim-Philipp Müller 4840c823 2018-11-12T16:56:56 meson: add option and build system plumbing for CoreText on macOS/iOS Untested though.
Tim-Philipp Müller 83ebbe4a 2018-11-12T16:56:56 meson: add option and build system plumbing for DirectWrite on Windows Untested though.
Tim-Philipp Müller b7796a5d 2018-11-12T16:56:56 meson: add option and build system plumbing for uniscribe on Windows Untested though.
Tim-Philipp Müller c81290b0 2018-11-12T15:58:09 meson: add feature option for internal ucdn lib
Nirbheek Chauhan f65def4d 2018-10-12T19:41:49 meson: Declare dependencies for use as a subproject Also use fallbacks for dependencies that have meson build files
Mathieu Duponchelle 29c47d8e 2018-06-05T18:19:29 meson: pass subdirs to pkgconfig.generate()
Mathieu Duponchelle 484313ff 2018-06-05T02:15:43 meson: install
Mathieu Duponchelle d4a72373 2018-05-17T16:25:22 meson: all tests passing on Windows / MSVC
Mathieu Duponchelle 99b26789 2018-05-17T14:53:20 meson: more windows fixes
Mathieu Duponchelle 920efc0e 2018-05-17T01:28:53 Add Meson build definitions Fixes #490 http://mesonbuild.com
Aaron Boxer 68f98241 2019-07-22T12:12:02 meson: update to latest master
Tim-Philipp Müller 535186fd 2018-12-03T20:51:06 meson: provide a harfbuzz-config for use from CMake See #822 and #1437.
Tim-Philipp Müller 7eaf3754 2018-11-16T16:26:06 meson: update for changes in master And remove header files from sources list, Meson figures out header dependencies by itself (via the compiler).
Khaled Hosny 04438554 2018-11-15T00:25:41 meson: Update build files after rebase
Khaled Hosny 0615c7b6 2020-03-10T21:57:31 Remove workaround for old pkg-config Add FreeType dependency to .pc, Ubuntu 14.4 is long dead. Fixes https://github.com/harfbuzz/harfbuzz/issues/1565
Ebrahim Byagowi 47f5a860 2020-03-10T13:57:46 minor, use NN on every OffsetTo<UnsizedArrayOf<>>
Ebrahim Byagowi 648338c7 2020-03-10T13:12:00 [gvar] Add fields docs from ot-spec as other tables
Ebrahim Byagowi 1b3b9697 2020-03-10T12:46:09 [gvar] Don't copy shared tuples into gvar's accelerator
Ebrahim Byagowi 29dd1fe5 2020-03-10T11:41:51 [gvar] Don't check again against face num glyph Done once by sanitize_shallow
Ebrahim Byagowi d4b11817 2020-03-10T11:29:56 [gvar] minor, rename gvar_table to table
Ebrahim Byagowi 5c376938 2020-03-10T10:51:38 [gvar] Remove axisCount comparison with fvar as we runtime check that
Ebrahim Byagowi ba22df36 2020-03-10T10:42:20 minor makes search for sanitize calls easier for me
Ebrahim Byagowi 8ca9df7a 2020-03-10T10:40:05 [subset] Remove not needed blob sanitize call
Ebrahim Byagowi 07acd1a0 2020-03-08T23:39:24 [subset] Rename src_base args to base to match sanitize methods So it will become easier to follow that serialize methods signatures should match with their sanitize methods counterparts.
ariza 188a0a47 2020-03-07T11:02:36 removed default base; replaced w/ bias if required
blueshade7 4c3af7d4 2020-03-05T15:40:44 add "add_link()" with bias arg issue #2227
Ebrahim Byagowi bdf372b2 2020-03-08T00:47:25 [subset/cbdt] Release the referenced cbdt table on error Just accidentally spotted it, when the table has less than 4 bytes
Ebrahim Byagowi 0d729b4b 2020-03-07T11:53:12 [avar] Fix out-of-bound read when input is bigger than all the coords 'i' shouldn't become equal to array's length which as the increament is happened at end of the loop, if the input is bigger than all the table coords, it will be equal to array's length. Fixes https://crbug.com/oss-fuzz/21092
Ebrahim Byagowi 6924e29f 2020-03-03T13:11:11 [var] Fix hb_ot_var_get_axis_infos's offset semantic The API was adding offset to input's infos buffer index also which is unusual between our APIs and wrong.
Ebrahim Byagowi b7617f6b 2020-03-05T12:07:33 [glyf] Update to latests of ttf-parser