src/hb-ot-hmtx-table.hh


Log

Author Commit Date CI Message
Qunxin Liu ac0e22fa 2022-07-22T09:37:09 [instance] update glyf/hmtx/vmtx tables
Behdad Esfahbod 5a9c7930 2022-07-22T21:33:15 Add HB_NO_BEYOND_64K
Behdad Esfahbod b0cb9a1a 2022-07-03T15:32:32 Make get_leading_bearing return bool Fixes https://github.com/harfbuzz/harfbuzz/issues/3496 Part of supporting >64k glyphs correctly.
Behdad Esfahbod f46ddeba 2022-07-03T13:12:49 [hmtx/glyf] Rename side-bearing functions for clarity
Behdad Esfahbod 23435d52 2022-07-03T13:04:27 [hvar] Rename advance function for clarity
Behdad Esfahbod 9f974cae 2022-07-03T13:03:12 [hvar] Rename lsb function for clarity
Behdad Esfahbod b2d60cbd 2022-07-03T12:56:48 [glyf] Rename advance functions for clarity
Behdad Esfahbod 35c00c12 2022-07-03T12:54:17 [hmtx] Rename advance functions for clarity
Behdad Esfahbod 71d52e10 2022-07-02T11:21:36 [var] Fix getting side-bearing variations In HVAR/VVAR, if the side-bearing mappings are null, it means the table does not have them and they should be loaded from glyf table. Previous logic was returning zer0. Part of fixing https://github.com/harfbuzz/harfbuzz/issues/1694
Behdad Esfahbod 13c499cb 2022-06-30T14:25:09 [hvar] Minor internal rewiring Not passing font to functions makes it more clear that they don't scale values.
Behdad Esfahbod eee29f73 2022-06-30T14:03:07 [hmtx] Specialize var_table
Behdad Esfahbod 5336ba70 2022-05-20T17:03:18 [HVAR] Cache VarStore region scalars
Behdad Esfahbod df42d28d 2022-03-21T21:17:15 [hmtx] Change default advance for horizontal direction to upem/2 again
Behdad Esfahbod 6d0e67de 2022-03-21T21:07:11 [ot-font] Only use vmtx side-bearing if table exists Part of fixing https://github.com/harfbuzz/harfbuzz/issues/537
Behdad Esfahbod 67eb9acf 2022-02-15T17:17:49 [config] Add HB_NO_BORING_EXPANSION
Behdad Esfahbod 8b7ccc41 2022-02-15T14:15:12 [hmtx] Implement [boring-expansion] >64k expansion This implements https://github.com/be-fonts/boring-expansion-spec/issues/7
Behdad Esfahbod 431c948e 2022-02-14T14:13:04 [hmtx] Document
Behdad Esfahbod be4ddcc3 2022-02-14T14:12:07 [hmtx] Rename internal num_advances to num_long_metrics
Behdad Esfahbod 622cbc48 2022-02-14T14:09:40 [hmtx] Internal rename num_metrics to num_bearings
Behdad Esfahbod ed6d287d 2022-02-02T14:10:16 [ot-face] Load num-glyphs from `loca` table before `maxp` Implements [boring-expansion] [maxp] Relax https://github.com/be-fonts/boring-expansion-spec/issues/6
Behdad Esfahbod 42b119ed 2022-02-12T14:18:02 [hmtx] Remove other subset-specific method from hmtx accelerator
Behdad Esfahbod 9ba520b5 2022-02-12T13:57:03 [hmtx] Remove one subset-specific method from hmtx accelerator Looks ugly but is the right thing to do.
Behdad Esfahbod ac1bb3e3 2022-01-20T11:47:17 [machinery] Move accelerators to constructor/destructor
Behdad Esfahbod e062376e 2022-01-19T17:09:34 [machinery] Make accelerator lazy-loader call Xinit/Xfini Instead of init/fini. To isolate those functions. To be turned into constructor/destructors, ideally one per commit (after some SFINAE foo.)
Behdad Esfahbod 53eebc7c 2021-12-08T08:32:41 [CONFIG] Add HB_NO_VERTICAL
Garret Rieger b14475d2 2021-03-18T10:51:26 [subset] further changes to serializer error handling. - Rename enum type and enum members. - in_errors() now returns true for any error having been set. hb-subset now looks for offset overflow only errors to divert to repacker. - Added INT_OVERFLOW and ARRAY_OVERFLOW enum values.
Garret Rieger 73ed59f7 2021-03-17T15:53:10 [subset] store errors in the serializer as a flag set. Make check_assign/check_equal specify the type of error to set.
Ebrahim Byagowi e541fb47 2020-06-21T09:49:48 minor, replace single hb_apply daggers with foreach
Ebrahim Byagowi 08428a15 2020-04-24T23:45:17 minor, spacing
Ebrahim Byagowi 2dda6dd7 2020-04-20T14:12:45 minor, tweak spacing turn 8 spaces to tab, add space before Null/Crap
Ebrahim Byagowi ba22df36 2020-03-10T10:42:20 minor makes search for sanitize calls easier for me
Ebrahim Byagowi 453050ad 2019-10-13T08:38:56 Merge remote-tracking branch 'upstream/master' into var-subset
Ebrahim Byagowi b068e25f 2019-10-08T16:29:15 [glyf] Address Behdad's reviews Addresses https://github.com/harfbuzz/harfbuzz/pull/1999#issuecomment-539298559 * Don't check against Null pool * Remove cryptic _tt suffix
Ebrahim Byagowi d73cdcf3 2019-10-06T18:09:14 [ot-font] Apply font scaling before turning to int
Ebrahim Byagowi 74a2dbbc 2019-10-06T17:06:40 minor
Ebrahim Byagowi 100dbcca 2019-10-06T09:18:22 Merge remote-tracking branch 'upstream/master' into var-subset
Ebrahim Byagowi 57528636 2019-10-05T23:51:50 [glyf][gvar] Make HB_NO_VAR buildable
Ebrahim Byagowi ee761018 2019-10-03T15:59:45 [hmtx] Use more conventional internal API style
Ebrahim Byagowi c9577a63 2019-10-03T15:48:35 [hmtx] Use more optimal way to access glyf table
Michiharu Ariza b9ff43c1 2019-10-01T16:13:40 Implement gvar table and variable glyf Split from Ariza's "[subset] TrueType/CFF2 variable font" work on #1594
Ebrahim Byagowi 19d45dca 2019-10-03T13:39:17 Merge remote-tracking branch 'upstream/master' into var-subset
Ebrahim Byagowi 3fd555be 2019-10-03T13:02:41 [hmtx] Prepare to fix and minor fixes
Michiharu Ariza 6d09b5a8 2019-10-03T12:01:39 Implement hmtx/vmtx metrics read from hvar/vvar
Ebrahim Byagowi 9ff32b79 2019-08-29T19:53:18 Merge remote-tracking branch 'upstream/master' into glyf-rebase
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
blueshade7 5988ab8a 2019-07-22T14:36:16 Merge branch 'master' into var-subset
Ebrahim Byagowi 29444d7e 2019-07-20T13:52:21 Don't cache ascender/descender metrics
Behdad Esfahbod 9675a067 2019-07-18T14:15:08 [ot-metrics] Touch up
Ebrahim Byagowi 87e62843 2018-11-20T23:26:46 Implement a simple API for fetching opentype metrics Fixes https://github.com/harfbuzz/harfbuzz/pull/1432
Michiharu Ariza 8f8e8a84 2019-06-05T12:59:09 fix build
Michiharu Ariza 4ddab6fa 2019-06-05T11:21:27 Merge branch 'master' into var-subset
Qunxin Liu 209491fc 2019-05-29T14:03:17 [subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks
Behdad Esfahbod 41248cce 2019-05-07T20:54:31 Remove MIN/MAX in favor of hb_min/hb_max
Michiharu Ariza ab9d3096 2019-04-10T17:21:37 Add tt var metrics test cases & bug fixes
Michiharu Ariza a1177fec 2019-03-29T08:43:47 Merge branch 'master' into var-subset rebase master
Behdad Esfahbod b986c6a3 2019-03-29T20:17:46 [C++11] Remove IntType::set() in favor of operator=
Michiharu Ariza 511518c7 2019-03-18T15:39:10 add api test for tt var advance widths stripped HVAR from SourceSansVariable-Roman.abc.ttf so glyf gets parsed
Michiharu Ariza bee8d866 2019-03-18T10:48:53 fix build
Michiharu Ariza c302ec6d 2019-03-17T15:36:26 moved most of var code from gvar to glyf initialize phantom points from metrics from htmx/vmtx & glyf bbox before execution added source file hb-ot-hmtx-table.cc to call glyf from hmtx/vmtx indirectly & temporarily, workaround a cyclic reference between the two
Michiharu Ariza 40dfca72 2019-03-01T15:14:22 calculate VF advance widths from gvar & glyf
Michiharu Ariza 9d3a2520 2019-03-18T15:39:10 add api test for tt var advance widths stripped HVAR from SourceSansVariable-Roman.abc.ttf so glyf gets parsed
Michiharu Ariza 9d9d5c70 2019-03-18T10:48:53 fix build
Michiharu Ariza 8a7998fd 2019-03-17T15:36:26 moved most of var code from gvar to glyf initialize phantom points from metrics from htmx/vmtx & glyf bbox before execution added source file hb-ot-hmtx-table.cc to call glyf from hmtx/vmtx indirectly & temporarily, workaround a cyclic reference between the two
Michiharu Ariza baf2ccf1 2019-03-01T15:14:22 calculate VF advance widths from gvar & glyf
Michiharu Ariza fa2b3d30 2019-03-01T15:14:22 calculate VF advance widths from gvar & glyf
Garret Rieger 05e99c86 2019-01-28T17:05:04 [subset] A few small fixes for the new subset plan api.
Garret Rieger 03e88eab 2019-01-28T16:15:06 Re-implement HMTX/VMTX subsetting. Update it to support glyph renumbering and simplify the implementation.
Behdad Esfahbod ef006549 2019-01-22T12:08:57 Convert tag enum class consts to static constexpr Part of https://github.com/harfbuzz/harfbuzz/issues/1553
Behdad Esfahbod 474a1205 2018-12-21T18:46:51 [array/vector] Rename len to length
Ebrahim Byagowi e4120085 2018-12-17T21:31:01 Remove redundant void from C++ sources (#1486)
Ebrahim Byagowi b2ebaa9a 2018-12-16T22:38:10 Remove redundant 'inline' from methods (#1483)
Ebrahim Byagowi f7cfe998 2018-12-08T13:40:44 [os2] Move typometrics detection logic to the table (#1465)
Behdad Esfahbod 5c4fead7 2018-11-29T15:04:34 Convert "static const hb_tag_t" constants to enum
Ebrahim Byagowi 11aa0468 2018-11-15T23:10:56 [subset] minor, adjust spaces
Ebrahim Byagowi 7867c2ba 2018-11-14T22:13:50 [STAT] Add table parsing (#1384)
Behdad Esfahbod 48d16c2a 2018-11-14T09:56:30 [hmtx] Fix signedness issue Fixes https://github.com/harfbuzz/harfbuzz/issues/1248#issuecomment-438689499
Behdad Esfahbod da6aa3b0 2018-11-11T11:40:57 Add hb_blob_ptr_t.destroy()
Behdad Esfahbod bb9abb4e 2018-11-11T00:39:52 [hmtx/port] Use hb_blob_ptr_t
Khaled Hosny 2c68f34b 2018-11-02T23:06:00 [os2] Capitalize table tag and struct Other tables follow the case of the OT tag, except this one.
Behdad Esfahbod e0125023 2018-10-31T18:14:00 [hmtx/vmtx] Fix a crasher
Behdad Esfahbod 39bd07ae 2018-10-26T21:01:11 Fix bunch of unused parameter warnings Show up with gcc -O0. There's a few more but those are functions that need to be filled in. Maybe this is a lost battle...
Behdad Esfahbod 401cdf07 2018-10-23T17:00:49 [ot-font] Fix sign of ascent/descent Some fonts, like msmincho, have positive number as descent in vhea table. That's wrong. Just enforce sign on ascent/descent when reading both horizontal and vertical metrics. Fixes https://github.com/harfbuzz/harfbuzz/issues/1248
Behdad Esfahbod 8dc62968 2018-10-15T01:09:05 [ot-font] Implement TrueType v_origin Fixes https://github.com/harfbuzz/harfbuzz/issues/537
Behdad Esfahbod e1add2a2 2018-10-14T16:26:03 [hmtx] Whitespace
Behdad Esfahbod dff2c45f 2018-09-10T23:29:26 Port rest from VAR to UnsizedArrayOf<>
Behdad Esfahbod d1f29908 2018-08-31T16:31:00 [subset] Add hb_subset_context_t<>
Behdad Esfahbod aba0a945 2018-08-31T13:25:19 [subset] Add hb-subset-input.hh and make hb-subset.hh toplevel include
Behdad Esfahbod 3a0b3a29 2018-08-26T15:11:24 Free up hb-ot-face.hh from includes There might be a better way to do this, but I couldn't find...
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Behdad Esfahbod 36ed163f 2018-07-23T11:57:45 Remove unnecessary OT:: namespace specifiers
Behdad Esfahbod 9583e007 2018-07-22T22:40:32 Port more off of Sanitizer<>
Garret Rieger 251cc977 2018-05-30T12:23:51 [subset] Switch to using hb_map_t inside of hb_subset_plan_t.
Behdad Esfahbod eba1c16a 2018-05-08T02:47:42 Always lock blob in sanitize. Remove blob->lock_as() in favor of blob->lock()
Behdad Esfahbod b4fa5050 2018-05-08T02:45:08 Move Sanitizer::lock_instance<>() to blob->lock_as<>().
Behdad Esfahbod 5c3112ae 2018-05-01T19:07:04 s/hb_prealloced_array_t/hb_vector_t/g Part of https://github.com/harfbuzz/harfbuzz/issues/1017
Ebrahim Byagowi 277e3289 2018-04-17T09:13:35 Make some of implicit header uses explicit (#989) Splitted from #950 and #986 IIRC Chromium had a policy about this encouraging it, not sure about automated way to detect and add them but for now lets have the needed ones of them.
Ebrahim Byagowi a02c3ee7 2018-04-12T13:38:19 Add or update tables specifications links
Garret Rieger 1a94804d 2018-03-19T18:39:22 [subset] Add a fix for segfault in hmtx/vmtx subsetting code.
Garret Rieger 64cf53d6 2018-03-02T17:33:49 [subset] Subset vmtx if present.
Garret Rieger 4665aaa1 2018-02-23T15:36:14 [subset] Fix memory leak in hmtx subsetting.