src/hb-ot-cff1-table.cc


Log

Author Commit Date CI Message
Behdad Esfahbod 2032da01 2025-02-18T20:54:56 [ot-font] Centralize painting an outline glyph
Behdad Esfahbod c4b2950d 2023-06-23T11:55:39 [subset/cff1] Use cached subset-accel for seac calculations Before we were creating a new (non-subset) accel each time.
Behdad Esfahbod f3985d94 2022-12-22T10:11:28 [paint] Fix drawing non-color glyphs
Matthias Clasen c2219339 2022-12-21T18:39:27 [paint] Preserve foreground information
Matthias Clasen 6387004c 2022-12-21T16:43:19 [paint] Simplify api Drop the hb_paint_context_t struct from the API, and only pass the font where we need it.
Matthias Clasen 71bd5a0d 2022-12-21T16:18:46 [paint] Resolve colors We don't need to pass the index/alpha pairs to client callbacks, and can just resolve the colors internally. Update test results.
Matthias Clasen 9be01b6b 2022-12-21T14:04:32 [paint] Pass hb_paint_context_t along Replace the font argument with a hb_paint_context_t that carries the font, the palette index and the foreground color. The hb_font_paint_glyph() api now takes the palette index and the foreground color as extra arguments. Update all callers and regenerate test results.
Matthias Clasen 97224f3b 2022-12-21T02:11:36 [paint] Pass font to all callbacks This will lead to easier implementations. At the same time, we change the push_clip_glyph callback to use the font as-is, no unscaling needed. Update all callers and expected test results.
Matthias Clasen 686e627b 2022-12-17T12:44:16 [paint] Set up root transform in one place Instead of spreading this in all the tables, make hb_paint_funcs_t provide a push/pop_root_transform that does all the setup.
Matthias Clasen df89b521 2022-12-16T23:46:05 cff1: Implement paint_glyph
Behdad Esfahbod 392463bf 2022-12-22T08:34:01 [cff] Fix extent rounding I broke it in b0abbfd8684e9970ed2cac78781643edb7cce0ae.
Behdad Esfahbod b0abbfd8 2022-12-22T07:26:14 [font] Centralize glyph-extents scaling Needs more testing... Some rounding was removed, namely in cff1 and cff2.
Behdad Esfahbod bff78e65 2022-05-10T16:33:37 [cff] Convert interpretation environment to use constructor
Behdad Esfahbod 54544f2a 2022-05-10T15:31:49 [cff] Convert cff1_extents_param_t to use constructor
Behdad Esfahbod 377befd0 2022-05-10T15:29:12 [cff] Convert get_seac_param_t to use constructor
Behdad Esfahbod 8aa54aac 2022-05-09T16:09:56 [cff] Replace byte_str_t with hb_bytes_t use
Behdad Esfahbod 370bec93 2022-02-04T18:40:44 [draw] Rename internal draw_session_t to hb_draw_session_t
Behdad Esfahbod c681331c 2022-02-03T14:36:12 [draw] Rename internal draw_helper_t to draw_session_t
Behdad Esfahbod a9dd9f0b 2022-02-03T13:58:36 [draw] Add public move_to/line_to/... API that take a draw-state
Behdad Esfahbod 35190dc9 2022-02-02T16:08:40 [draw] Convert API to float instead of hb_position_t
Behdad Esfahbod dd7b6e2c 2022-02-02T14:46:10 [draw] Remove EXPERIMENTAL_API tag
justvanrossum 79e4f436 2021-02-17T10:21:58 Apply rounding correctly when calculating glyph extents for CFF and CFF2; adjust expected test results
Ebrahim Byagowi 0133cb55 2020-04-19T22:42:57 Minor, use hb_sorted_array::bsearch where possible
ariza 22f7c61a 2020-04-17T23:49:51 implement SID to glyph ID mapping with predefined Charset Also fixes oss-fuzz 21769
Ebrahim Byagowi 755a77d6 2020-01-29T22:26:04 Move outline draw API behind HB_EXPERIMENTAL_API directive
Ebrahim Byagowi 05a25c1a 2020-02-26T19:35:27 [cff] minor, remove unused fields
Ebrahim Byagowi 9fe0dc34 2020-02-26T17:40:44 [draw] Pass draw_helper_t itself around instead recreating it Specially helpful if we want to change the design
Ebrahim Byagowi 0ebf3a4e 2020-02-26T15:14:41 [draw] Move common CFF path building logic to draw_helper_t
Ebrahim Byagowi 2f97aa65 2020-02-25T18:07:44 [cff] Make sure previous is ended on processing a seac
Ebrahim Byagowi acc2d473 2020-02-25T18:05:48 [cff] Make path extract easier to read and more defensive
Ebrahim Byagowi 0cf050a7 2020-02-23T23:00:48 [draw] Merge consequent move-to commands of CFF/CFF2
Ebrahim Byagowi 86bd5a0b 2020-02-23T22:46:26 [draw] End CFF paths with a line-to Issue a line-to command when start and end point of a path isn't same, matches freetype also.
Ebrahim Byagowi ac81e940 2020-01-28T12:34:47 Rename hb_outline_decompose to hb_font_draw_glyph and hb_outline_decompose_funcs_t to hb_draw_funcs_t
Ebrahim Byagowi 981125aa 2020-01-25T21:31:36 Rename hb_ot_glyph_* to hb_outline_*
Ebrahim Byagowi 02f324c9 2020-01-23T15:12:12 [ot-glyph] remove open callback Apparently it wasn't requested actually and can be detected easily as paths are opened usually when move command is issued anyway.
Ebrahim Byagowi 684ff3e0 2020-01-23T14:48:59 [ot-glyph] noop->nil, fix close path
Ebrahim Byagowi 79fed9a1 2020-01-14T17:23:30 [ot-glyph] Add open/close callbacks
Ebrahim Byagowi ec1fba13 2020-01-13T19:31:18 [ot-glyph] make hb_ot_glyph_decompose_funcs_t struct opaque
Ebrahim Byagowi 06a1fcb3 2020-01-10T23:12:30 [ot-glyphs] fix the tests
Ebrahim Byagowi 084a8182 2020-01-10T22:14:46 [ot-glyphs] Move CFF glyph decompose logic to their tables Thus making path decompose zero alloc on CFF/CFF2
Ebrahim Byagowi af08f388 2019-10-21T13:28:05 [ot-glyph] Support CFF1's seac
Ebrahim Byagowi 04ac7fb1 2019-10-21T13:06:12 [ot-glyph] Add cff2 support
Ebrahim Byagowi 5cc09c46 2019-10-20T16:24:14 [ot-glyph] Initial cff1 support
blueshade7 ff87465b 2019-11-19T16:18:33 add get_glyph_from_name & test. use hb_string_array
blueshade7 7b49042e 2019-11-16T18:20:16 add cff1::get_glyph_name
jfkthame dd8a8460 2019-10-29T09:20:41 Use proper y-scale factor for height value
Ebrahim Byagowi dc45f225 2019-10-08T23:27:37 [ot-metrics] Don't use mixed scaled and not scaled for generating extents
Ebrahim Byagowi d73cdcf3 2019-10-06T18:09:14 [ot-font] Apply font scaling before turning to int
Ebrahim Byagowi 0558413f 2019-10-01T13:49:55 Minor, tweak spaces
Behdad Esfahbod 7ca54811 2019-07-02T16:00:58 [amalgam] Fix CFF Part of https://github.com/harfbuzz/harfbuzz/issues/1809
Behdad Esfahbod 737436d3 2019-06-18T13:07:44 Streamline HB_NO_CFF
Behdad Esfahbod 7f6fca4e 2019-05-12T10:29:47 Force-disable CFF code under disabling conditions Subsetter size goes down from 190kb to 119kb. Main library about 7kb. Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod 31c591d6 2019-05-10T23:39:53 [cff] Prune more code if HB_NO_OT_FONT_CFF Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod 22da1231 2019-04-24T10:53:16 [map] Fix TODO
Michiharu Ariza 63a21084 2019-04-18T13:54:58 silence MVC warnings 3rd attempt
Michiharu Ariza 705dde57 2019-04-18T11:32:10 silence MVC warnings 2nd attempt
Michiharu Ariza dd4c3752 2019-04-18T10:38:57 silence MVC warnings
Michiharu Ariza 29f0b6bc 2018-12-22T07:47:04 CFF renaming (#1507) * reimplement ByteStr as byte_str_t based on hb_ubytes_t Unuse start_embed<ByteStr> Also renamed SubByteStr to byte_str_ref_t More renaming to come * substr renamed to str_ref in line with its type byte_str_ref_t * uncamelize non-table struct names * uncamelized non-struct types OpCode etc * add byte_str_t copy ctor * test * test2 * undo tests * fix bot failure * undo the previous change * fixed tabs, added inline * Revert "fixed tabs, added inline" This reverts commit 21163c30e9d18759414f7fe2518628241599f039. * fix tabs
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)
Behdad Esfahbod 825df6db 2018-11-30T23:04:59 [CFF] Change spaces to tabs
Michiharu Ariza 13735570 2018-11-15T12:10:23 reject nested seac
Michiharu Ariza 3787c078 2018-11-14T13:38:03 Implemented seac for extents & subset along with API tests
Michiharu Ariza 0dfa584c 2018-11-12T08:47:07 changed Adobe company name
Michiharu Ariza e75e7224 2018-09-17T15:34:39 include curve control points in extents this makes results consistent with FT also optimized handling of path end points
Michiharu Ariza f0d74971 2018-09-17T12:02:12 fix attempt ^2: unuse INT32_MAX/MIN
Michiharu Ariza c0c85b85 2018-09-17T11:14:56 implemented get_glyph_extents with CFF1 Implemented path operators in a new struct PathProc hooked up to CSOpSet Added current point to CSInterpEnv
Michiharu Ariza aca73c9d 2018-09-06T17:28:15 subset CFF1 Encoding & Charset fixed misc Charset bugs added source file hb-ot-cff1.table.cc renamed things for clarity & consistency