src/hb-font.cc


Log

Author Commit Date CI Message
Khaled Hosny afe09102 2023-07-09T02:45:52 [font] Actually deprecate get_glyph_shape() We previously marked it as deprecated in the documentation but didn’t actually deprecate it in code. Now the only known users have migrated to draw_glyph(), lets deprecate o=it for good.
Behdad Esfahbod 4056315c 2023-05-22T14:17:12 [font] Remove redundant avar mapping line The avar mapping happens in hb_ot_var_normalize_coords() call.
Behdad Esfahbod 48f8ed7e 2023-04-22T10:11:22 Docs
Khaled Hosny bfab56d3 2023-03-03T13:14:05 [font] Typo
Khaled Hosny 60841e26 2023-03-03T01:01:49 7.1.0
Matthias Clasen 01d34763 2023-02-28T20:16:39 Typo fix
Behdad Esfahbod 5226d697 2023-02-28T14:49:44 [font] Make set_variation() respect currently-set variations Fixes https://github.com/harfbuzz/harfbuzz/issues/4143
Behdad Esfahbod bbb9d6d4 2023-02-28T12:07:48 [font] Add hb_font_set_variation()
Behdad Esfahbod 946477fa 2023-02-16T15:03:50 [font] Fix a MSVC "error" Oh well. Fixes https://github.com/harfbuzz/harfbuzz/issues/4122
Khaled Hosny 8bdaeddf 2023-02-11T23:44:58 7.0.0
Khaled Hosny 0ea8bbd9 2023-02-11T20:01:06 [doc] Use XSince for REPLACEME/EXPERIMENTAL To hide them from gtk-doc so that we can finally enable gtkdoc-check.
Khaled Hosny 13741e68 2023-02-11T19:17:37 [doc] Minor
Behdad Esfahbod 737b15c5 2023-02-08T17:45:59 [embolden] Docs
Behdad Esfahbod aef002e0 2023-02-07T11:29:49 [embolden] Add in-place option Adds --font-grade to hb-view and hb-shape.
Matthias Clasen 061f9958 2023-02-02T08:15:02 [font] Document synthetic boldness APIs
Behdad Esfahbod e39104ba 2023-02-01T16:56:56 [font/util] Add emboldening API, --font-bold Needs documentation.
Behdad Esfahbod e7a71ea1 2023-01-30T11:21:08 [font] Docs
Behdad Esfahbod 1b143b0f 2023-01-24T18:34:04 [font] Docs
Matthias Clasen c89aebc4 2023-01-24T20:24:27 hb-font: Document length limit for glyph names This is useful information for users of the hb_font_get_glyph_name() API.
Behdad Esfahbod 638e0ed4 2023-01-20T13:01:22 [paint] Overlay custom-palette on top of chosen palette Got to agree this is more ergonomic.
Behdad Esfahbod 53bd9039 2023-01-18T20:44:05 [paint] Doc
Behdad Esfahbod 8afd3ccb 2023-01-18T20:43:10 [paint] Add HB_PAINT_PALETTE_INDEX_CUSTOM
Behdad Esfahbod 9a2f2b59 2023-01-18T20:39:36 [font] Rename palette to palette_index
Behdad Esfahbod d769e8ae 2023-01-15T10:58:15 [hb-shape/view] Add --named-instance
Behdad Esfahbod 99838770 2023-01-15T10:54:01 [font] Add hb_font_get_var_named_instance() Two new API: +HB_FONT_NO_VAR_NAMED_INSTANCE +hb_font_get_var_named_instance
Behdad Esfahbod d195e077 2023-01-15T10:44:04 [font] Remember named_instance index Specially, in hb_font_set_variations() default to the named_instance for unspecified axes. Fixes https://github.com/harfbuzz/harfbuzz/issues/1883
Behdad Esfahbod 4fd03540 2023-01-10T14:32:08 [font] Docs
Behdad Esfahbod ccffce58 2023-01-10T13:09:30 [scale] More docs
Behdad Esfahbod c4580d86 2023-01-10T12:56:02 [scale] More docs
Behdad Esfahbod f0e695a3 2023-01-10T12:55:17 [scale] Comment
Behdad Esfahbod 8c47580a 2023-01-10T12:53:54 [scale] Document
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 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 a20999b9 2022-12-21T00:20:37 [font] Fix a few documentation mistakes
Matthias Clasen 14b026ff 2022-12-19T13:53:49 [draw] Add hb_font_draw_glyph hb_font_draw_glyph(), hb_font_draw_glyph_func_t and hb_font_funcs_set_draw_glyph_func() are just alternative names for hb_font_get_glyph_shape and friends, to better align with hb_font_paint_glyph.
Matthias Clasen 0f287e75 2022-12-19T13:45:45 [paint] Rename hb_font_get_glyph_paint_func_t The 'get' was just there due to implementation choices. Work around that and call the vfunc what it should be: hb_font_paint_glyph_func_t.
Matthias Clasen 0ef2dc9b 2022-12-19T10:02:17 Drop a TODO This was addressed in 61bd602791d801
Behdad Esfahbod 9a7422c5 2022-12-18T13:46:32 [font] Minor doc fix
Behdad Esfahbod 815544a1 2022-12-18T13:33:54 [font] Adapt paint_glyph to parent transform
Matthias Clasen f1f8d1e8 2022-12-18T02:43:25 Small documentation addition
Matthias Clasen 378bbeea 2022-12-17T10:02:30 Add more docs
Matthias Clasen 684df8a8 2022-12-15T00:32:48 add some todos
Matthias Clasen 71efa0dc 2022-12-14T06:22:00 wip: hb_font_paint_glyph
Matthias Clasen b6e98cf7 2022-12-23T00:18:40 [colr] Add more docs State explicitly that palette entries are unpremultipled, and link to the spec.
Matthias Clasen 193e0e3e 2022-12-15T00:32:11 Cosmetic: typo fix
Behdad Esfahbod 5f3a7806 2022-11-23T16:45:46 [font] Protect against div-by-zero
Behdad Esfahbod 060ecac9 2022-11-23T16:31:37 [font] Respect subfont slant setting in hb-draw Fixes https://github.com/harfbuzz/harfbuzz/issues/3890
Behdad Esfahbod 59c45f6d 2022-11-22T12:54:50 Use hb_memcpy instead of memcpy consistently
Behdad Esfahbod ac0efaf8 2022-11-22T12:50:36 Use hb_memset instead of memset consistently
Behdad Esfahbod 56d6b699 2022-11-19T15:08:50 [font/draw] Remove unneeded branch The preamble sets user_data/destroy to nullptr if func is nullptr.
Behdad Esfahbod 976bb26c 2022-11-19T15:06:23 [draw] Optimize set_func functions
Behdad Esfahbod 114167a9 2022-11-19T14:47:45 [font] Optimize set_func functions
Behdad Esfahbod 1945b400 2022-07-25T10:45:55 [cpluscplus] Wrap hb-subset types as well Also changes signature of get_user_data of hb.h types to take const object. This is safe.
Behdad Esfahbod 473a5e56 2022-07-23T13:25:40 [font] Fix design-coords Ouch!
Behdad Esfahbod 9ea4ab60 2022-07-20T14:57:32 [object] Call constructor
Khaled Hosny 98e90cc6 2022-06-30T08:43:57 [docs] Reduce warnings Use markdown syntax for inline code blocks instead of %true, %false, and %NULL.
Khaled Hosny 34d3d49e 2022-06-29T07:46:21 [docs] Fix Since annotation
Behdad Esfahbod 33e3bf2d 2022-06-28T13:46:04 [font] Drop caches on variation changes
Khaled Hosny 8537d681 2022-06-27T20:51:16 4.4.0
Behdad Esfahbod d3308f47 2022-06-27T11:28:44 [font] Optimize font scaling further
Behdad Esfahbod 556e7078 2022-06-26T17:48:43 [font] Optimize glyph scaling
Behdad Esfahbod f78a2509 2022-06-05T00:55:35 [gi] Remove Xconstructor annotations
Behdad Esfahbod bc6ecaa2 2022-06-01T09:19:11 [font-funcs] Handle case of null func but non-null destroy or user-data
Behdad Esfahbod 88ccbd2c 2022-06-01T08:44:07 [font-funcs] Optimize user-data/destroy storage Fixes https://github.com/harfbuzz/harfbuzz/issues/2427
Behdad Esfahbod d0de389d 2022-05-20T12:18:43 [font] Fix test
Behdad Esfahbod a2015cd3 2022-05-20T12:15:00 [font] Add a separate serial_coords
Behdad Esfahbod 48db1c95 2022-05-20T12:03:32 [font] Add serial API New API: + hb_font_get_serial() + hb_font_changed() Fixes https://github.com/harfbuzz/harfbuzz/issues/2426 Unused internally as of now.
Behdad Esfahbod b58bfd98 2022-05-16T11:21:45 [font] Minor move of code to silence gcc-12 warning See mailing list discussion.
Khaled Hosny 8d1b000a 2022-03-01T21:27:32 4.0.0
Behdad Esfahbod a396543a 2022-02-15T18:47:55 Merge pull request #3411 from harfbuzz/draw [draw] Finish and release draw API
Behdad Esfahbod 93962977 2022-02-13T19:38:59 Remove return of void
Behdad Esfahbod 57aa8c3b 2022-02-10T19:04:52 [draw] Another try at a stable draw moveto semantic
Behdad Esfahbod 151f2058 2022-02-10T16:27:18 [draw] Emit move_to immediately, like other operators
Khaled Hosny 8e892bdb 2022-02-08T19:36:29 [doc] Message draw documentation a bit
Behdad Esfahbod c56c1375 2022-02-07T18:38:00 [draw] Document more
Behdad Esfahbod bc6c3b84 2022-02-07T18:04:36 [font] Update get_glyph_shape() doc
Behdad Esfahbod 732c749e 2022-02-07T18:02:37 [font] Adjust synthetic-slant docs
Behdad Esfahbod 2ce19f28 2022-02-05T15:01:15 [font/draw] Fetch shape from parent font if not implemented in font
Behdad Esfahbod a755f93e 2022-02-03T10:28:07 [draw] Add TODO
Behdad Esfahbod 8b4f4290 2022-02-03T01:14:47 [draw] Virtualize hb_font_draw_glyph() into hb_font_get_glyph_shape() To be implemented in hb-ft.
Khaled Hosny 98da3306 2022-01-31T18:12:01 3.3.0
Behdad Esfahbod 24650624 2022-01-28T13:53:21 [font] Fix build with no-var configs
Khaled Hosny 0acf466c 2022-01-13T01:29:22 [doc] Fix hb_font_set_synthetic_slant param name
Matthias Clasen 72f0b24e 2022-01-12T13:08:02 docs: Clarify variation apis (#3363) Make it explicit that the variations setters replace all existing variations, even if not all axes are included in the provided values. Co-authored-by: Matthias Clasen <mclasen@redhat.com>
Matthias Clasen d70825a6 2022-01-02T11:28:28 docs: Add some details about coordinates Mention what the effective values are when coordinates have not been set.
Behdad Esfahbod 165a6073 2022-01-02T12:02:20 Merge pull request #3338 from harfbuzz/slant [font] Add public API for synthetic slant
Behdad Esfahbod a7751277 2022-01-02T11:50:02 [docs] Add hb_font_[gs]et_synthetic_slant()
Behdad Esfahbod 5b87c30d 2022-01-02T07:53:45 [font] Mark hb_font_get_var_coords_design() non-experimental Any remaining issue with the API will address later by deprecating it. Fixes https://github.com/harfbuzz/harfbuzz/issues/1865
Behdad Esfahbod 2d42fc9f 2022-01-02T07:45:10 [font] Load named-instance if face index top bits are set This matches FreeType behavior. Fixes https://github.com/harfbuzz/harfbuzz/issues/3348
Behdad Esfahbod ff697deb 2021-12-19T07:25:37 [GPOS] Apply font synthetic slant Part of fixing https://github.com/harfbuzz/harfbuzz/issues/3196
Behdad Esfahbod 810f5d71 2021-12-18T15:12:26 [font] Add public API for slant Not hooked up internally to anything. New API: + hb_font_set_synthetic_slant() + hb_font_get_synthetic_slant() Part of fixing https://github.com/harfbuzz/harfbuzz/issues/3196
Behdad Esfahbod a9a607d3 2021-07-22T16:49:56 [variations] Support multiple axes with same tag, aka HOI The axes in fvar are in arbitrary order, NOT sorted. Hence have to lsearch all entries. Fixes https://github.com/harfbuzz/harfbuzz/issues/1673 Fixes https://github.com/harfbuzz/harfbuzz/issues/2743 Test from https://github.com/ctrlcctrlv/FontForge-Higher-Order-Interpolation
Behdad Esfahbod 233c29b3 2021-07-22T12:00:24 [font] Call fvar.find_axis_index instead of find_axis_info in set_variations()
Behdad Esfahbod 0b2280af 2021-07-22T11:53:32 [font] Call fvar table directly, instead of calling public get_axis_info To lighten it up in next commit.
Behdad Esfahbod 2337f0d0 2021-07-08T10:58:50 Internally use hb_malloc/.../hb_free instead of malloc/.../free Redefining those stock names as macros was conflicting with gcc 10 headers. Fixes https://github.com/harfbuzz/harfbuzz/issues/3044
Khaled Hosny 051a3c7b 2021-01-20T22:35:34 [docs] Fix typo
Khaled Hosny a44dd339 2021-01-01T01:36:57 [docs] Missing param docs
Khaled Hosny a64d56a3 2020-12-31T00:27:49 [introspection] nullable is for pointers
Khaled Hosny 9936490c 2020-12-31T00:19:29 [docs] Invalid use of "optional" annotation It is valid only for out and inout parameters. Fixes https://github.com/harfbuzz/harfbuzz/issues/1787