|
01f485fd
|
2025-04-23T18:21:43
|
|
[cairo] Adjust draw/paint
|
|
38db1fac
|
2025-04-23T18:02:06
|
|
[paint] Change back return type of paint_glyph() to void
Add new "_or_fail" variants of draw_glyph and paint_glyph
New API:
+hb_font_draw_glyph_or_fail_func_t
+hb_font_paint_glyph_or_fail_func_t
+hb_font_funcs_set_draw_glyph_or_fail_func()
+hb_font_funcs_set_paint_glyph_or_fail_func()
+hb_font_draw_glyph_or_fail()
+hb_font_paint_glyph_or_fail()
Deprecated API:
-hb_font_draw_glyph_func_t
-hb_font_paint_glyph_func_t
-hb_font_funcs_set_draw_glyph_func()
-hb_font_funcs_set_paint_glyph_func()
|
|
e78310bf
|
2025-04-23T00:58:08
|
|
[paint] Change return type to bool, and return false for outline glyphs
It was impossible to get synthetic bold/slant correctly with the
previous API. This is a minor API break, but one I'm willing to take.
|
|
a23021e1
|
2025-04-23T00:43:56
|
|
[COLRv1] Simplify paint_glyph()
Pass a non-synthetic font to the client, so they don't have
to worry about it.
The only issue left, is that now when paint_glyph() paints
an outline glyph (not color glyph), it would be double-slanted.
I'm leaning towards removing painting of outline glyphs from
the paint API and change the paint API to return a boolean.
|
|
023e2294
|
2025-04-22T23:09:47
|
|
[cairo] Solely use public API
I actually don't know how hb-font.hh is pulled into hb-cairo.cc.
I can't figure it out!
|
|
b9a1cd70
|
2025-04-22T22:54:34
|
|
[cairo] Use hb_font_is_synthetic() to speed up clip_glyph
|
|
e9ae6cc5
|
2025-04-22T21:14:50
|
|
[cairo] Draw unsynthetic glyphs during COLRv1
Fixes the double-slanting issue of COLRv1 glyphs.
|
|
ad0bcec3
|
2025-03-06T14:51:06
|
|
[cairo] More printf removal
|
|
77a319da
|
2025-03-06T14:48:51
|
|
[fontations] Fix color-line extend fetching
This fixes the last bug I know.
|
|
39246326
|
2024-11-16T12:20:24
|
|
[cairo] Protect against some invalid matrices
hb-view --font-size 0,10 still fails with cairo error.
To be debugged separately.
|
|
21cba9e5
|
2024-11-15T15:21:03
|
|
[cairo] Fix scaling in paint_color_glyph
Fixes https://github.com/harfbuzz/harfbuzz/issues/4938
|
|
1767f99e
|
2024-11-10T22:43:28
|
|
[cairo] Guard hb_cairo_glyphs_from_buffer() against bad UTF-8
Previously it was assuming valid UTF-8.
|
|
c85a6c2a
|
2024-11-04T17:33:30
|
|
[cairo] Respect HB_NO_VAR
Fixes https://github.com/harfbuzz/harfbuzz/issues/4924
|
|
0c80aec1
|
2023-08-15T10:30:38
|
|
[COLR] Move cycle-detection to the renderer instead of cairo
Alternative fix for https://github.com/harfbuzz/harfbuzz/issues/4375
|
|
21a894f0
|
2023-08-15T10:21:26
|
|
[cairo] Protect against infinite loops
Fixes https://github.com/harfbuzz/harfbuzz/issues/4375
Maybe we should do this in hb-ft and COLR instead?
|
|
58effbcc
|
2023-08-14T16:47:01
|
|
.
|
|
74527670
|
2023-08-14T15:57:24
|
|
[COLR/cairo] Add paint_color_glyph func
Implement in cairo to use scaled-font's glyph cache.
|
|
1fc128f6
|
2023-06-26T18:34:27
|
|
Replace a few memset/memcpy's with hb_ equivalents
|
|
8bdaeddf
|
2023-02-11T23:44:58
|
|
7.0.0
|
|
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.
|
|
281db89a
|
2023-01-26T13:05:12
|
|
[cairo] Try to handle failure in set_user_data
|
|
29a36010
|
2023-01-25T17:26:33
|
|
[cairo] Adapt to cairo foreground API change again
|
|
30d0d9c5
|
2023-01-24T15:43:17
|
|
Adapt to cairo changes
Adapt to the api in the cairo MR that will be used,
and make the code build with older cairo.
|
|
034d4d26
|
2023-01-23T16:22:26
|
|
[hb-cairo] Minor simplify
|
|
26d34392
|
2023-01-23T16:21:13
|
|
[hb-cairo] Fix condition
|
|
f9b3c790
|
2023-01-23T18:09:09
|
|
Update to different cairo API
The cairo will likely end up begin a getter for
a cairo_pattern_t instead of a color.
|
|
4afdbcba
|
2023-01-23T15:53:26
|
|
[hb-cairo] Don't call get_foreground_color unnecessarily
That would invalidate cairo cache on foreground change, even
if the glyph doesn't need that.
|
|
c37ea4f9
|
2023-01-23T08:31:24
|
|
hb-cairo: Fix handling of foreground color
Use the new cairo_user_scaled_font_get_foreground_color
to obtain the foreground color, since the cr's source
can't be trusted.
Requires https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/420
|
|
b684c6ed
|
2023-01-23T15:44:22
|
|
[hb-cairo] Add hb_cairo_context_t
|
|
32f9b467
|
2023-01-21T02:20:39
|
|
Merge pull request #4045 from harfbuzz/custom-palette-cairo
Custom palette cairo
|
|
7f59bed5
|
2023-01-20T16:42:55
|
|
[hb-cairo] Round foreground color
|
|
76b059ca
|
2023-01-20T16:41:47
|
|
[hb-cairo] Simplify foreground color fetching
|
|
f70f7194
|
2023-01-20T16:30:59
|
|
[hb-cairo] Remove unused prototype
|
|
ab7c9144
|
2023-01-20T15:43:01
|
|
[hb-cairo] Macro shuffle again
|
|
4759932b
|
2023-01-20T15:33:38
|
|
[hb-cairo] Round colors
|
|
876675e0
|
2023-01-20T15:31:43
|
|
[hb-cairo] Macro shuffling
|
|
68a73e43
|
2023-01-20T15:30:07
|
|
[hb-cairo] Macro hygiene
|
|
fcb5111c
|
2023-01-21T00:24:50
|
|
[doc] Fix gtk-doc warning
|
|
574d9344
|
2023-01-20T15:22:50
|
|
[hb-cairo] Fix build with old cairo
|
|
4f19c3b3
|
2023-01-20T15:15:52
|
|
[hb-cairo] Move color-cache to scaled-font
|
|
beba43ee
|
2023-01-20T15:02:24
|
|
[hb-cairo] Fix color cache on not-found
|
|
cc9b55c7
|
2023-01-20T14:57:57
|
|
[hb-cairo] Add a color cache
|
|
f21b15dc
|
2023-01-20T13:38:22
|
|
[hb-view] Update to alternative cairo custom-palette API
|
|
638e0ed4
|
2023-01-20T13:01:22
|
|
[paint] Overlay custom-palette on top of chosen palette
Got to agree this is more ergonomic.
|
|
b81db8d3
|
2023-01-19T08:19:04
|
|
Avoid a compiler warning
|
|
4fe6ece4
|
2023-01-18T22:33:56
|
|
[cairo] Don't fallback to CPAL if cairo doesn't support custom palette
|
|
ab37ade7
|
2023-01-18T23:29:37
|
|
Hook up custom palettes for cairo
|
|
f38e35eb
|
2023-01-16T18:07:39
|
|
[cairo] Internal function renames
|
|
f11271cc
|
2023-01-16T13:14:58
|
|
[cairo] Version-check the variations code
|
|
5d94eb61
|
2023-01-08T11:55:13
|
|
[hb-cairo] Fix hb_cairo_glyphs_from_buffer() when utf8 missing
Fixes https://github.com/harfbuzz/harfbuzz/issues/4016
|
|
f2a6643f
|
2022-12-29T18:00:39
|
|
[cairo] Docs
|
|
bfce4a60
|
2022-12-29T10:43:37
|
|
[cairo] Remove error path
Assume cairo API always returns non-NULL.
|
|
b1de87b7
|
2022-12-29T10:34:47
|
|
[cairo] Document get_glyphs() arguments as inout
|
|
89bd7f64
|
2022-12-29T08:05:16
|
|
[hb-cairo] Small docs fixes
|
|
723e7a48
|
2022-12-29T15:49:21
|
|
[docs] Small fixes
|
|
81c04b0c
|
2022-12-27T17:46:25
|
|
[cairo] Add separate x/y scale factors
|
|
50b7fff0
|
2022-12-27T17:37:42
|
|
[cairo] Fix text_to_glyphs scale factor
|
|
8f62b8c6
|
2022-12-27T17:26:39
|
|
[cairo] Fix cluster conversion
|
|
fa3fa942
|
2022-12-27T11:54:23
|
|
[cairo] Doc
|
|
bbf6f42d
|
2022-12-27T11:50:06
|
|
[cairo] TODO
|
|
f9fc1328
|
2022-12-27T11:08:34
|
|
[hb-cairo] Return hb_font_t* from init-func
|
|
d88787b6
|
2022-12-27T10:59:17
|
|
[cairo] Add func to init fonts on creation
To set, for example, font-funcs.
|
|
c652e8e1
|
2022-12-26T16:25:22
|
|
[cairo] Docs
|
|
23980d3c
|
2022-12-26T16:22:35
|
|
[cairo] Docs
|
|
f5fd46aa
|
2022-12-26T16:18:27
|
|
[cairo] Docs
|
|
36482b68
|
2022-12-26T16:15:06
|
|
[cairo] Err, utf8_clusters
|
|
48cb25dd
|
2022-12-26T16:13:57
|
|
[cairo] Implement (untested) text_to_glyphs callback
|
|
c38abcb3
|
2022-12-26T16:03:25
|
|
[cairo] Add x,y args to get_glyphs
|
|
847ed695
|
2022-12-26T15:59:57
|
|
[cairo] Reorder arguments of a call
|
|
726cfffc
|
2022-12-26T15:55:56
|
|
[cairo] Doc fix
|
|
0fe0cdf0
|
2022-12-26T15:52:55
|
|
[cairo] Document scale-factor business
|
|
4e3e879c
|
2022-12-26T15:33:04
|
|
[cairo] Add [sg]et_scale_factor
|
|
186bfa99
|
2022-12-26T15:15:40
|
|
[cairo] Make scale_factor a double
|
|
8d0e18b5
|
2022-12-25T22:12:29
|
|
[cairo] More details in the docs
Mention slant as well.
|
|
30605e09
|
2022-12-25T22:04:22
|
|
[cairo] Mention variations in the docs
|
|
7a52ac4b
|
2022-12-25T19:39:02
|
|
[cairo] Set variations
|
|
4be4e017
|
2022-12-25T19:27:53
|
|
[cairo] Make font immutable
|
|
70babda6
|
2022-12-25T19:10:11
|
|
[cairo] docs
|
|
1c67180d
|
2022-12-25T19:07:02
|
|
[cairo] Add typed destroy funcs
|
|
43da222e
|
2022-12-25T19:05:24
|
|
[cairo] Rename
|
|
cf001f6e
|
2022-12-25T19:01:28
|
|
[cairo] Add constructor from hb_face_t
|
|
ddb52e4a
|
2022-12-25T19:52:39
|
|
[cairo] Add docs
|
|
dc2bf266
|
2022-12-25T18:02:34
|
|
[cairo] Set scaled-font extents
|
|
d6ecda36
|
2022-12-25T17:39:26
|
|
[cairo] Renames
|
|
ffa45f24
|
2022-12-25T17:14:45
|
|
[cairo] #ifdef HAVE_CAIRO
|
|
9e61fd77
|
2022-12-25T17:09:43
|
|
[hb-cairo] Lazy-load funcs thread-safe
|
|
a7c2e839
|
2022-12-25T16:59:58
|
|
[hb-cairo] Prefix internal methods
|
|
bb640d40
|
2022-12-25T16:55:27
|
|
[hb-cairo] Use nullptr instead of NULL
|
|
20a50acc
|
2022-12-25T16:09:26
|
|
[hb-cairo] Make hb_cairo_glyphs_from_buffer public
|
|
bf52386c
|
2022-12-25T16:10:31
|
|
[cairo] Silence warning
|
|
1ad24421
|
2022-12-25T15:55:14
|
|
[hb-cairo] Rename files to C++
|