Commit Graph
497 Commits
Author SHA1 Message Date
Garret Rieger a1e587b75a [subset] Add hb_subset_cff_get_charstrings_index and hb_subset_cff2_get_charstrings_index.
These methods allow retrieving the entire charstrings index structure from a CFF or CFF2 table.
2025-03-31 16:28:28 -06:00
Garret Rieger ae8b288db7 [subset] Correctly handle lifetime of charstrings data blob returned by hb_subset_cff_get_charstring_data. 2025-03-27 22:07:06 +00:00
Garret Rieger 0d4053b11d [subset] Add hb-subset.h API for retrieving the raw per glyph outline data from CFF and CFF2. 2025-03-27 20:20:52 +00:00
Khaled Hosny ea6a172f84 11.0.0 2025-03-24 00:33:53 +02:00
Behdad Esfahbod c274ee7b3e [directwrite] Add hb_font_t setter/getter from IDWriteFontFace
Changed API:
+hb_directwrite_font_create()

New API:
+hb_directwrite_font_get_dw_font_face()
2025-03-22 16:02:39 -06:00
Behdad Esfahbod f0b0d92ab5 [directwrite] Deprecate hb_directwrite_font_get_dw_font() 2025-03-22 15:44:50 -06:00
Behdad Esfahbod 8d8fe19099 [dwrite] Add font-funcs sketch
Small steps.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5144
2025-03-15 21:03:30 -06:00
Behdad Esfahbod 000a0ad7a6 [paint] Add push_font_transform() / push_inverse_font_transform()
Fixes https://github.com/harfbuzz/harfbuzz/issues/5146
2025-03-15 18:35:32 -06:00
Behdad Esfahbod 1e9d101ed7 [directwrite] Add hb_directwrite_face_create_from_file_or_fail()
Just loads the blob from file and creates a face from it.

New API:
+hb_directwrite_face_create_from_file_or_fail()
2025-03-14 02:14:23 -06:00
Behdad Esfahbod b0a5920d1a [directwrite] Add hb_directwrite_face_create_from_blob_or_fail()
Part of https://github.com/harfbuzz/harfbuzz/issues/5082

New API:
+hb_directwrite_face_create_from_blob_or_fail()
2025-03-13 14:27:37 -06:00
Behdad Esfahbod 0b2a0bac47 Merge pull request #5130 from harfbuzz/malloc-rust
[fontations] Make fontations use hb_malloc et al
2025-03-11 23:04:11 -06:00
Behdad Esfahbod 5bf81c3758 [common] Make hb_malloc() et al public
New API:
+hb_malloc()
+hb_calloc()
+hb_realloc()
+hb_free()
2025-03-11 22:52:34 -06:00
Behdad Esfahbod 8e8a9f6f40 [face] Add hb_face_create_or_fail_using()
Fixes https://github.com/harfbuzz/harfbuzz/issues/5117

Untested.

New API:
+hb_face_create_or_fail_using
2025-03-11 11:56:00 -06:00
Behdad Esfahbod f98c203e7a [coretext] Add hb_coretext_face_create_from_blob_or_fail()
Part of https://github.com/harfbuzz/harfbuzz/issues/5117

Untested.

New API:
+hb_coretext_face_create_from_blob_or_fail()
2025-03-11 11:56:00 -06:00
Behdad Esfahbod e4fe8bf95e [ft] Add hb_ft_face_create_from_blob_or_fail()
Part of https://github.com/harfbuzz/harfbuzz/issues/5117

Untested.

New API:
+hb_ft_face_create_from_blob_or_fail()
2025-03-11 11:56:00 -06:00
Behdad Esfahbod 1531be8a1d [buffer] Add docs for the new cluster level 2025-03-10 01:02:11 -06:00
Behdad Esfahbod 5cf1fa3add [face] Fix docs 2025-03-09 01:47:23 -07:00
Behdad Esfahbod 2a878b1b76 [font-funcs] Add two new API
+ hb_font_set_funcs_using()
+ hb_font_list_funcs()

Part of https://github.com/harfbuzz/harfbuzz/issues/5117
2025-03-08 11:50:53 -07:00
Behdad Esfahbod bed809bc6b [fontations] Add to docs
Module itself undocumented so far.
2025-03-06 04:23:24 +02:00
Khaled Hosny 3ef8709829 10.4.0 2025-03-01 00:59:49 +02:00
Khaled Hosny 532ed228e7 [docs] Move all deprecated APIs to the deprecated section 2025-02-28 23:56:03 +02:00
Khaled Hosny 69e1c3c352 [ft] Add hb_ft_font_get_ft_face()
A new name for hb_ft_font_get_face(), which is now deprecated.

Fixes  https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Khaled Hosny 484e8d4997 [directwrite] Add hb_directwrite_face_get_dw_font_face()
A new name for hb_directwrite_face_get_font_face(), which is now
deprecated.

Part of https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Khaled Hosny 694ffa8747 10.3.0 2025-02-20 23:56:59 +02:00
Khaled Hosny 03cf1565f5 [directwrite] Rename font_get_font to font_get_dw_font
https://github.com/harfbuzz/harfbuzz/pull/5079#pullrequestreview-2627407692
2025-02-20 22:16:22 +02:00
Khaled Hosny a8fd29718a [directwrite] Add hb_directwrite_font_create()/font_get_font()
Uses hb_directwrite_face_create() under the hood, but copies variations
from directwrite to hb-font.
2025-02-20 21:40:27 +02:00
Khaled Hosny cf336f17b2 [shape-plan] Rename hb_ot_shape_plan_get_features to get_feature_tags
Simplify the API by returning only feature tags. The users of this API
would be interested only in feature enabled by default and whether the
feature is globally or partially enabled wouldn’t be of much interest in
that case. For user features, the user of the API already have full
access to them.
2025-02-14 21:54:30 +02:00
Khaled Hosny a7d7715f10 [shape-plan] Add hb_ot_shape_plan_get_features
This should get the features on a shape plan after executing it.

Initially I wanted to return an array of tags, but then there can be
user features that are not enabled globally, so I thought returning
hb_feature_t with value and range would be better. There is a TODO since
I couldn’t figure out how to get the value and range from the feature
mask. But also it may be overkill and a simple boolean indicating wither
it is a global feature or not would be enough.

I wounder also what should happen to non-user features that are applied
selectively, like init or medi, does ot make sense to indicate whether
they are global or not?

This is inspired by the discussion in:
https://github.com/fontforge/fontforge/pull/5522#pullrequestreview-2574321449,
but it might be useful to other HarfBuzz users.
2025-02-14 21:54:30 +02:00
Tor Arne Vestbø 04b2006fc9 Remove outdated documentation note about CT operating in 96 DPI
As extensively discussed and documented in #1484, Core Text does
not operate in 96 DPI. Core Text doesn't actually have a concept of
DPI internally, as it doesn't rasterize anything by itself, it just
generates vector paths that get passed along to Core Graphics.

In practice this means Core Text operates in the classical macOS
logical DPI of 72, with one typographic point corresponding to one
point in the Core Graphics coordinate system, which for a normal
bitmap context then corresponds to one pixel -- or two pixels for
a "retina" context with a 2x scale transform.

As of f401f85a5a, we no longer apply
any assumptions in HB about the target DPI being different than the
72 DPI used by CT, for example to account for the Web's standard of
96 DPI, so let's remove the documentation that still indicated this
was necessary.
2025-02-03 04:28:02 -07:00
Khaled Hosny 7b27c8edd4 10.2.0 2025-01-11 18:13:18 +02:00
Garret Rieger bdb50f1c6e [repacker] Also rename api method from hb_subset_repack_or_fail -> hb_subset_serialize_or_fail. 2025-01-07 13:39:51 -07:00
Garret Rieger 056504168c [repacker] rename hb-subset-repacker -> hb-subset-serialize.
Also hb_link_t and hb_object_t to hb_subset_serialize_link_t and hb_subset_serialize_object_t.
2025-01-07 13:39:51 -07:00
Behdad Esfahbod c1f5b780f3 Fix docs 2025-01-07 11:31:05 -07:00
Garret Rieger 5a6f5922dd [repacker] Promote repacking API to stable.
For #227.
2025-01-07 11:28:38 -07:00
Qunxin Liu 3bb89eebd6 [instancer] use hb_parse_double() for parsing axis positions
Added hb_subset_axis_range_from/to_string()
2024-11-25 09:38:13 -07:00
Khaled Hosny 9ef44a2d67 10.1.0 2024-11-05 08:04:49 +02:00
Behdad Esfahbod 12fc715dd6 [ft] Add hb_ft_face_create_from_file_or_fail()
New API:
+hb_ft_face_create_from_file_or_fail()
2024-10-15 14:58:13 -06:00
Behdad Esfahbod 89c83b5b08 [coretext] Add hb_coretext_face_create_from_file_or_fail()
New API hb_coretext_face_create_from_file_or_fail()
2024-10-15 13:06:51 -06:00
Behdad Esfahbod b12acba494 [face] Add hb_face_create_from_file_or_fail()
New API:
+ hb_face_create_from_file_or_fail()
2024-10-13 13:04:29 -06:00
Behdad Esfahbod 2437fd883a [face] Add hb_face_create_or_fail()
New API:
+ hb_face_create_or_fail()
2024-10-13 13:04:29 -06:00
Behdad Esfahbod 8db2997e4e [coretext] Configure hb_coretext_font_create() with CT font funcs
Not sure if this is a good idea...
2024-10-13 13:04:29 -06:00
Khaled Hosny d5261f7234 10.0.0 2024-09-23 23:07:55 +03:00
Behdad Esfahbod 287046f71a [buffer] Hook up not-found-variation-selector-glyph
Fixes https://github.com/harfbuzz/harfbuzz/issues/4398
2024-09-21 12:21:56 -06:00
Leandro Santiago 28cc53c9ea Smalll fix on documentation
there is no `hb_ft_font_has_changed()`. Instead, it should be `hb_ft_font_changed()`.
2024-08-27 17:44:23 +03:00
Behdad Esfahbod ff04f28b23 [face] Add get_table_tags callback
New API:
+hb_get_table_tags_func_t
+hb_face_set_get_table_tags_func()

Towards fixing https://github.com/harfbuzz/harfbuzz/issues/4821

To be implemented by face-builder, FreeType, and CoreText backends.
2024-08-06 12:21:25 -06:00
Abdul Rahman Sibahi 0706f3989b Update wasm-shaper.md with link
makes jumping around easier
2024-07-11 14:39:38 +03:00
Behdad Esfahbod e1df067485 [docs] Typo 2024-06-28 22:54:09 -06:00
Khaled Hosny cf1fdf1632 Drop autotools build
Fixes https://github.com/harfbuzz/harfbuzz/issues/4720
2024-06-27 15:28:38 +03:00
Khaled Hosny 71b1ba7aa6 8.5.0 2024-05-13 23:42:50 +03:00
Garret Rieger 4cf606f674 [instancer] Promote partial instancing api out of experimental. 2024-05-02 21:22:18 +00:00