Khaled Hosny
ea6a172f84
11.0.0
2025-03-24 00:33:53 +02:00
Khaled Hosny
8d62ad3b35
[directwrite] Don’t release IDWriteFace pass to hb_directwrite_font_create
...
That was a leftover from previous code and is incorrect now as we would
be double releasing it.
2025-03-23 15:40:41 +02:00
Behdad Esfahbod
b159f5c74e
[directwrite] Fix docs
2025-03-22 16:46:43 -06: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
Khaled Hosny
59aee7f3e8
[directwrite] Fix copying variations in hb_directwrite_font_create()
...
I missed the endianness mismatch between HarfBuzz and DirectWrite tags.
2025-03-19 14:47:22 +02:00
Behdad Esfahbod
08781f6f7d
[dwrite] Set face index / glyph_count on hb-face
2025-03-15 20:05:01 -06:00
Behdad Esfahbod
e1d395f4b5
[dwrite] Minor cleanup
2025-03-15 14:13:02 -06:00
Behdad Esfahbod
db8d099d4d
[dwrite] Split shape code into its own file
2025-03-15 13:59:16 -06:00
Behdad Esfahbod
13849d4205
[dwrite] More cleanup
2025-03-15 13:25:49 -06:00
Behdad Esfahbod
e9d5ecca1d
[directwrite] Simplify more
2025-03-15 13:15:03 -06:00
Behdad Esfahbod
d2b722803f
[directwrite] Rely on more reference-counting for lifetime
2025-03-15 12:55:27 -06:00
Behdad Esfahbod
41d722c3d2
[directwrite] Remove unused member
2025-03-15 12:52:24 -06:00
Behdad Esfahbod
b3a293813a
[directwrite] Minor cleanup
2025-03-14 17:26:33 -06:00
Behdad Esfahbod
bda5b832b0
[directwrite] Mutex for font registration
2025-03-14 03:40:15 -06:00
Behdad Esfahbod
09d983258b
[directwrite] Rename a function
2025-03-14 03:13:32 -06:00
Behdad Esfahbod
e92cd9f769
[directwrite] Massage more
...
I think this is it!
2025-03-14 02:46:11 -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
c73b54bcca
[directwrite] Massage more
2025-03-14 02:09:01 -06:00
Behdad Esfahbod
db93dbb286
[directwrite] More cleanup
2025-03-14 01:50:08 -06:00
Behdad Esfahbod
9e5a767855
[directwrite] Add singleton dwrite_dll
2025-03-14 01:22:05 -06:00
Behdad Esfahbod
64716226d2
[directwrite] Shuffle code around
2025-03-14 01:13:04 -06:00
Behdad Esfahbod
27fc376fe9
[directwrite] Addd lifecycle management to a few of objects
2025-03-13 18:27:59 -06:00
Behdad Esfahbod
aacaa8bba3
[directwrite] Flip loader & stream around
2025-03-13 17:18:31 -06:00
Behdad Esfahbod
2502d0b698
[directwrite] Use blob directly in the interface
2025-03-13 17:00:50 -06:00
Behdad Esfahbod
d0fef9a1fc
[directwrite] Don't release the library
...
It crashes. Going to fix it to use a singleton, but for now
just not crash.
2025-03-13 16:56:47 -06:00
Behdad Esfahbod
ad3225c648
[direcwrite] Make blob immutable
2025-03-13 16:30:09 -06:00
Behdad Esfahbod
00360049e3
[directwrite] Handle failures in new API
...
Still crashes...
2025-03-13 16:22:45 -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
8ca892b0e2
[directwrite] Simplify headers
2025-03-11 00:24:11 -06:00
Khaled Hosny
b8b56c4a67
[directwrite] Add comment [ci skip]
2025-03-07 14:30:53 +02:00
Khaled Hosny
9abaf193d3
[directwrite] Fix applying features to directwrite shaper
...
The range_features was ending up with random data because
hb_ms_make_feature_ranges() keeps pointers to data allocated in
feature_records and range_records, but that data was getting freed
before range_features was used. Change the variable scope to avoid
freeing the data too early.
Fixes https://github.com/harfbuzz/harfbuzz/issues/5113
2025-03-07 14:30:53 +02:00
Khaled Hosny
3ef8709829
10.4.0
2025-03-01 00:59:49 +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
e41dc20c1c
[directwrite] Fix -Wcast-align warning
...
https://github.com/harfbuzz/harfbuzz/pull/5079#issuecomment-2673805310
2025-02-21 10:38:52 +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
Magnus Larsen
b8178f2554
Disable Wcast-function-type on clang-cl, too
2024-02-13 08:06:44 +01:00
Behdad Esfahbod
326db329f8
[directwrite] Simplify delete
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3981
2022-12-27 14:38:17 -07:00
Luca Bacci
c22acfa8bd
Fix function pointer typedef
2022-07-06 17:55:24 +02:00
Luca Bacci
3e881efbe4
Revert "Revert "Revert "[hb-directwrite] Don't load dwrit.dll dynamically"""
...
This reverts commit 361a438658 .
2022-07-06 13:51:56 +02:00
Behdad Esfahbod
eaba5e74a9
[directwrite] Simplify
2022-06-28 13:51:50 -06:00
Behdad Esfahbod
20031ddbb8
[unsafe-to-concat] Mark in all other shapers
...
unsafe_to_break() implies unsafe-to-concat; but setting the flag
manually wasn't.
2022-01-22 11:53:18 -07:00
Behdad Esfahbod
94d43c008a
[buffer] Merge and rename clear_glyph_flags()
2021-12-04 16:56:39 -08:00
Khaled Hosny
7608b19167
[directwrite] Set unsafe to break flag
...
Like the rest of platform shapers. Otherwise hb-shape --verify goes
crazy.
2021-12-01 19:55:48 +02:00
Khaled Hosny
361a438658
Revert "Revert "[hb-directwrite] Don't load dwrit.dll dynamically""
...
This reverts commit ecbe224743 .
It was causing directwrite shaper to crash in MSVC builds.
2021-12-01 19:55:48 +02:00
Cameron Cawley
ecbe224743
Revert "[hb-directwrite] Don't load dwrit.dll dynamically"
...
This reverts commit 6119ff9d80 .
2021-10-23 13:19:39 -07:00
Khaled Hosny
990c15dbe5
[hb-ms-features] Rename types to be less general
2021-07-27 21:07:32 +02:00
Khaled Hosny
69199211b7
[uniscribe/directwrite] Move feature setup to shared file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3070
2021-07-27 21:07:32 +02:00