Commit Graph
469 Commits
Author SHA1 Message Date
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
Khaled Hosny 63973005bc 8.4.0 2024-03-29 16:32:00 +02:00
Behdad Esfahbod f1ac867dee [buffer] Add API for random state
Fixes https://github.com/harfbuzz/harfbuzz/issues/4620

New API:
+hb_buffer_set_random_state()
+hb_buffer_get_random_state()
2024-03-20 14:44:22 -06:00
Khaled Hosny 2b3631a866 8.3.1 2024-03-17 07:50:59 +02:00
Qunxin Liu d6431dc7e6 [instancer] support *=drop, which would pin all axis to default location 2024-03-07 12:24:43 -07:00
Khaled Hosny 8da99b83e6 [docs] Order hb-ot-color functions is more organized way 2024-02-03 14:24:12 +02:00
Garret Rieger 0dd7a47621 Add hb_subset_input_get_axis_range to docs. 2023-11-15 21:23:06 +00:00
Behdad Esfahbod bf08205625 [deprecated] Add a mis-spelled macro
Fixes https://github.com/harfbuzz/harfbuzz/issues/4464
2023-10-27 12:24:33 -06:00
Khaled Hosny c1eb66d415 8.2.0 2023-09-08 22:02:35 +03:00
Behdad Esfahbod 47231bdc70 [COLR/cairo/ft] Fixups to paint-color-glyph and implement for hb-ft 2023-08-14 16:55:21 -06:00
Khaled Hosny fcb9e5915f 8.1.0 2023-08-01 01:00:47 +03:00
Behdad Esfahbod dc35a0fbcb [ot-map] Speed up feature finding
New API:
- hb_ot_layout_collect_feature_map()
2023-07-30 16:37:30 -06:00
Nikolaus Waxweiler ca7e7e925b Fix wasm-micro-runtime build instructions 2023-07-23 15:25:48 -06:00
Nikolaus Waxweiler a32278acd8 Fix example code 2023-07-23 15:25:48 -06:00
Richard Dodd (dodj) 02b00d7743 Update wasm-shaper.md (just a small typo) 2023-07-19 08:54:54 -06:00
Khaled Hosny 15d8f0ca7c [doc] Fix warning: Section has no title and no file
Move the private macros to the hb-common section, instead of a file-less
one.
2023-07-09 10:56:36 +03:00
Khaled Hosny 8d99db5c3b [wasm] Typo [ci skip] 2023-07-09 03:42:38 +03:00
Khaled Hosny b4305532a7 8.0.0 2023-07-09 03:20:27 +03:00
Khaled Hosny afe0910295 [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.
2023-07-09 03:20:27 +03:00
Behdad Esfahbod c3e7f45166 Add HB_CODEPOINT_INVALID
Fixes https://github.com/harfbuzz/harfbuzz/issues/4262
2023-06-03 14:56:47 -06:00
Behdad Esfahbod 592a3d0e96 Merge pull request #4237 from harfbuzz/layout-font-extents
[layout] Add hb_ot_layout_get_font_extents()
2023-05-21 22:00:53 +02:00
Behdad Esfahbod 0894813a38 [layout] Add "2" version of BASE table API
...that do the script/language resolution.

Part of https://github.com/harfbuzz/harfbuzz/pull/4237

Ref https://github.com/harfbuzz/harfbuzz/issues/3439
2023-05-19 11:35:33 -06:00
Behdad Esfahbod 3e110c69c4 [layout] Add hb_ot_layout_get_font_extents()
Untested.

Fixes https://github.com/harfbuzz/harfbuzz/issues/3290
2023-05-19 11:06:26 -06:00
Simon Cozens 2f21dc23b5 [wasm] [docs] Improve build flags information 2023-05-18 07:14:28 +01:00
Simon Cozens 134cc8edfa [wasm] [docs] How to build 2023-05-17 16:58:49 +01:00
Behdad Esfahbod ccfd7ef08c Merge pull request #4131 from harfbuzz/wasm
[wasm] WebAssembly shaper
2023-05-17 16:00:33 +02:00
Simon Cozens 56af88d048 [wasm] More thorough API docs 2023-05-17 14:32:17 +01:00
Qunxin Liu 58f68dd37a [instancer] wrap hb_subset_input_Set_axis_range() under experimental
Also add notes: it's not actually working yet.
2023-05-12 11:09:04 -06:00
Khaled Hosny 4584bcdc32 7.3.0 2023-05-10 00:20:25 +03:00