src/hb-font.h


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 bbb9d6d4 2023-02-28T12:07:48 [font] Add hb_font_set_variation()
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.
Behdad Esfahbod aef002e0 2023-02-07T11:29:49 [embolden] Add in-place option Adds --font-grade to hb-view and hb-shape.
Behdad Esfahbod e39104ba 2023-02-01T16:56:56 [font/util] Add emboldening API, --font-bold Needs documentation.
Behdad Esfahbod 9a2f2b59 2023-01-18T20:39:36 [font] Rename palette to palette_index
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
Khaled Hosny 723e7a48 2022-12-29T15:49:21 [docs] Small fixes
Behdad Esfahbod c27eefec 2022-12-22T10:41:13 Revert "Drop the deprecation" This reverts commit 3904e66777339a3d420ece1c2b7d550949aa3946.
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 32ce29f9 2022-12-21T07:42:36 [font] Move hb_font_t typedef This is needed to avoid circular header dependencies.
Matthias Clasen 8364d913 2022-12-21T00:59:13 Document hb_font_set_draw_glyph_func
Matthias Clasen 2333a566 2022-12-20T22:43:04 Drop the deprecation No need to drop hb_font_get_glyph_shape, just because hb_font_draw_glyph does the same. Its fine to keep both around.
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 3a2634e2 2022-12-19T13:48:08 [paint] Document hb_font_paint_glyph_func_t
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.
Behdad Esfahbod 5ac21886 2022-12-19T10:26:54 [paint] A doc fix
Behdad Esfahbod a9b37206 2022-12-18T13:37:32 [font] Minor rename
Matthias Clasen ea48d6c2 2022-12-17T11:51:37 Move hb_glyph_extents_t definition
Matthias Clasen efe13a19 2022-12-14T09:50:52 fix introspection
Matthias Clasen 71efa0dc 2022-12-14T06:22:00 wip: hb_font_paint_glyph
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.
Khaled Hosny 98e90cc6 2022-06-30T08:43:57 [docs] Reduce warnings Use markdown syntax for inline code blocks instead of %true, %false, and %NULL.
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.
Khaled Hosny 8d1b000a 2022-03-01T21:27:32 4.0.0
Khaled Hosny f942874f 2022-02-12T01:43:11 [draw] Fix some introspection warnings
Khaled Hosny 8e892bdb 2022-02-08T19:36:29 [doc] Message draw documentation a bit
Behdad Esfahbod cdb1a1fc 2022-02-03T01:25:37 [draw] Add REPLACEME
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.
Behdad Esfahbod 2bed4f46 2022-02-02T21:42:48 [draw] Fix draw signatures
Behdad Esfahbod e157b503 2022-02-02T16:16:57 [draw] Remove return value of hb_font_draw_glyph()
Behdad Esfahbod dd7b6e2c 2022-02-02T14:46:10 [draw] Remove EXPERIMENTAL_API tag
Behdad Esfahbod 165a6073 2022-01-02T12:02:20 Merge pull request #3338 from harfbuzz/slant [font] Add public API for 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 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
Khaled Hosny 7b9e23f2 2021-02-10T23:37:43 [introspection] Fix g-ir-scanner syntax errors Fixes https://github.com/harfbuzz/harfbuzz/issues/2851
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
Khaled Hosny aa107e65 2020-12-30T23:34:17 [docs] Complete hb-font docs a bit
Khaled Hosny 22468c8a 2020-12-24T22:38:06 [docs] Give destroy callbacks have (optional) annotation
Khaled Hosny e8c21e00 2020-12-24T21:56:31 [docs] Remove comments the duplicate docs
Nathan Willis 82092d40 2019-04-22T15:31:24 [docs] Update gtk-doc comments in hb-font
Khaled Hosny b8b13018 2020-12-23T00:22:56 [docs] Make gtk-doc find these typedef’s
Ebrahim Byagowi 9b7fb5c2 2020-04-17T20:12:24 Move hb_font_get_var_coords_design behind HB_EXPERIMENTAL_API
Ebrahim Byagowi 755a77d6 2020-01-29T22:26:04 Move outline draw API behind HB_EXPERIMENTAL_API directive
Ebrahim Byagowi ab2d3ec5 2019-08-14T18:42:51 [var] Implement hb_font_get_var_coords_design Hold design coords and simulate when normalized coords are set directly.
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
Behdad Esfahbod 5a59de2b 2019-10-28T14:02:47 Actually add +hb_font_get_nominal_glyphs() New API: +hb_font_get_nominal_glyphs()
Ebrahim Byagowi 0558413f 2019-10-01T13:49:55 Minor, tweak spaces
Ebrahim Byagowi 6a194b68 2019-08-14T18:49:57 Minor, remove trailing spaces in hb-font.{cc,h} as .editorconfig
Ebrahim Byagowi 40a4b6dd 2019-07-27T13:33:46 [var] Add a new API, hb_font_set_var_named_instance
Behdad Esfahbod 0819f3ca 2019-06-17T14:02:47 Deprecate v_kerning callback again Part of https://github.com/harfbuzz/harfbuzz/issues/1682
Behdad Esfahbod 2682efb0 2019-06-17T13:38:08 Revert "Deprecate font kern API" This reverts commit d219f899f4b2fb4b39ebc1dff9fb648fc5d6d112. API change: Un-deprecate font kern API. Part of https://github.com/harfbuzz/harfbuzz/issues/1682 We should document that this API is only necessary to hook up non-OpenType kerning. hb-ot-font will continue to NOT implement them.
Behdad Esfahbod b9db610a 2018-10-31T14:22:31 Minor
Behdad Esfahbod 3d9a0306 2018-10-18T05:58:17 2.0.0
Behdad Esfahbod b314c4e9 2018-10-09T09:23:51 [font] Add get_nominal_glyphs() callback (note the plural) Unused as of now. To be wired up to normalizer, which would remove overhead and allow hb-ot-font initialization to become a no-op, so we can enable it by default.
Behdad Esfahbod ca6a3170 2018-10-09T09:06:07 Minor
Behdad Esfahbod bee93e26 2018-10-09T08:01:49 Add const to get_*_advances API Ouch!
Behdad Esfahbod d219f899 2018-10-09T00:01:09 Deprecate font kern API
Behdad Esfahbod e49a38b2 2018-08-07T09:55:42 1.8.6
Behdad Esfahbod b0ff79ac 2018-08-07T09:52:06 Add +hb_font_get_glyph_advances_for_direction New API: +hb_font_get_glyph_advances_for_direction
Behdad Esfahbod 28e2f467 2018-08-07T09:47:00 Actually add hb_font_get_glyph_[hv]_advances New API: +hb_font_get_glyph_h_advances +hb_font_get_glyph_v_advances
Behdad Esfahbod 79e21984 2018-08-06T09:45:17 Add batch advance width callback function New API: +hb_font_funcs_set_glyph_h_advances_func +hb_font_funcs_set_glyph_v_advances_func +hb_font_get_glyph_h_advances +hb_font_get_glyph_h_advances_func_t +hb_font_get_glyph_v_advances +hb_font_get_glyph_v_advances_func_t
Koji Ishii 9533364c 2018-08-01T13:01:08 batchwidth
Bruce Mitchener 85ec6d34 2018-01-03T01:23:23 Fix typos.
Behdad Esfahbod 374bb48d 2017-10-11T15:37:50 Change ptem API to make 0 mean unset
Behdad Esfahbod b57f18da 2017-10-11T11:47:47 Add hb_font_[sg]et_ptem() to set/get point size on font New API: hb_font_set_ptem() hb_font_get_ptem() Needed for hb-coretext optical sizing: https://github.com/behdad/harfbuzz/issues/360
Behdad Esfahbod 95808bad 2017-02-03T10:39:40 Add new API hb_font_set_face() For completeness.
Behdad Esfahbod 7647a05a 2017-01-22T17:47:49 Minor
Behdad Esfahbod bb1e1926 2017-01-21T17:41:37 [var] Rename var_coord to variation Looks much better.
Behdad Esfahbod 2491134b 2017-01-21T15:21:50 [var] Add hb_font_set_var_coords()
Behdad Esfahbod 8b2a5804 2017-01-21T15:05:00 [var] Add hb_font_set_var_coords_design()
Behdad Esfahbod bf0d3a66 2017-01-21T14:48:46 [var] Add hb_font_get_var_coords_normalized()
Behdad Esfahbod ad69e8f0 2016-09-09T22:23:34 [GX] Add new API hb_font_set_var_coords_normalized() Will probably change.
Behdad Esfahbod 8b5bc141 2016-02-24T19:05:23 Add get_nominal_glyph() and get_variation_glyph() instead of get_glyph() New API: - hb_font_get_nominal_glyph_func_t - hb_font_get_variation_glyph_func_t - hb_font_funcs_set_nominal_glyph_func() - hb_font_funcs_set_variation_glyph_func() - hb_font_get_nominal_glyph() - hb_font_get_variation_glyph() Deprecated API: - hb_font_get_glyph_func_t - hb_font_funcs_set_glyph_func() Clients that implement their own font-funcs are encouraged to replace their get_glyph() implementation with a get_nominal_glyph() and get_variation_glyph() pair. The variation version can assume that variation_selector argument is not zero.
Behdad Esfahbod 25671466 2016-01-07T19:11:41 Add 9 reserved entries to hb_font_extents_t Might add italic-angle, underline/strikethrough-position/thickness in the future. Do this before new struct goes into a release.
Simon Cozens 6f2e6de1 2015-10-26T16:23:22 Get font ascender and descender metrics from OS/2 table.
Chun-wei Fan 835bbdc7 2015-11-19T18:34:12 Public headers: Decorate public symbols with HB_EXTERN This prepares the headers for exporting symbols using visibility attributes or __declspec(dllexport), so that we do not need to maintain symbols listing files, as this is what was and is done in GLib and GTK+.
Behdad Esfahbod 3e905e39 2015-10-08T12:51:02 Add hb_font_set_parent() No reason to not have it. Makes life easier later. We (hb-ft, hb-ot-font, etc) can use this API to inject new parent into a font...
Behdad Esfahbod b8811429 2015-09-03T15:53:22 Fix Since tags Fixes https://github.com/behdad/harfbuzz/issues/103
Behdad Esfahbod b50fcfa8 2015-08-23T14:42:20 [ot-font] Implement glyph_extents() for TrueType fonts This brings ot-fonts into almost-complete shape and mostly in par with ft font.
Sascha Brawer 01c3a885 2015-06-01T13:22:01 Fix "Since:" tags Based on data from http://upstream-tracker.org/versions/harfbuzz.html Resolves #103
Behdad Esfahbod a8949df4 2013-09-13T20:23:51 [introspection] Annotate Unicode / font callbacks Should move these out of the public header... We're "clean" of introspection warnings now. Remaining ones are about graphite2 / freetype types not being introspectable.
Behdad Esfahbod 2e3a07ab 2013-08-26T18:49:07 Separate face source code from font Makes documentation / introspection easier.
Behdad Esfahbod e05a9994 2012-11-15T16:23:21 Add hb_face_[sg]et_glyph_count()
Behdad Esfahbod 4c8ac4f4 2012-08-08T17:44:19 Misc minor fixes
Behdad Esfahbod 21756934 2012-08-08T01:20:45 [OT] Implement fallback positioning Implemented for Arabic, Hebrew, and generic marks. Activated if no GPOS table present.
Behdad Esfahbod 6f3a3001 2012-08-07T22:13:25 Add hb_font_glyph_from/to_string
Behdad Esfahbod 1bc1cb36 2012-06-16T15:21:55 Make source more digestable for gobject-introspection
Behdad Esfahbod bce09552 2012-05-27T11:29:21 Add hb_font_get_glyph_name() and hb_font_get_glyph_from_name()
Behdad Esfahbod d1c9eb45 2012-04-12T13:17:44 Make it an error to include non-top-level headers Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but never things like hb-shape.h directly. This makes it easier to refactor headers later on without breaking compatibility.
Behdad Esfahbod b9415e76 2011-08-17T19:21:44 [API] Add hb_font_set_funcs_data()
Behdad Esfahbod 33ccc779 2011-08-09T00:43:24 [API] Make set_user_data() functions take a replace parameter We need this to set data on objects safely without worrying that some other thread unsets it by setting it at the same time.
Behdad Esfahbod 3897335c 2011-08-08T23:37:41 [API] Sort out get_blob API hb_face_get_blob() renamed to hb_face_reference_blob(), returns a reference now. hb_face_[sg]et_index() added. hb_face_set_upem() added.
Behdad Esfahbod e715784b 2011-08-08T21:42:02 Rename get_table to reference_table in all API
Behdad Esfahbod bf8c57ba 2011-08-03T17:38:04 [API] Add hb_face_get_blob() Need to think more about it.
Behdad Esfahbod 2d8ebcb9 2011-05-25T11:27:33 [API] One last font-funcs API change Now that vertical text works correctly, I'm doing a last round modification of the font-funcs API to simplify. Expect no more changes around here.
Behdad Esfahbod 60fbb360 2011-05-19T18:46:15 [Vertical] GPOS is always done with horizontal origin
Behdad Esfahbod 8b38faee 2011-05-19T13:08:00 More vertical Starting to get there, but not without yet another round of changes. I think I know wheere to go now.