summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2023-01-22 13:27:53 +1030
committerAdrian Johnson <ajohnson@redneon.com>2023-01-26 19:49:06 +1030
commite93d175aac6805692d660f1f6444e6b21492e2a7 (patch)
treebc6216ef593280b7b8c3b93af6027e727b8a9555 /doc
parent0151a67e33f7c96645ae581b31861780b531a7e1 (diff)
downloadcairo-e93d175aac6805692d660f1f6444e6b21492e2a7.tar.gz
Add new cairo_user_scaled_font_get_foreground_source() function
The previous approach using foreground colors in user fonts does not work for gradients since the foreground color is not available at the time of recording. Add a new function cairo_user_scaled_font_get_foreground_source() that can be called by the color render function to retrieve the foreground pattern. Calling this function signals to cairo that the foreground color is used. In this case cairo will call the render function whenever the foreground color has changed.
Diffstat (limited to 'doc')
-rw-r--r--doc/public/cairo-sections.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/public/cairo-sections.txt b/doc/public/cairo-sections.txt
index 2aeecdca1..4b07fa3c7 100644
--- a/doc/public/cairo-sections.txt
+++ b/doc/public/cairo-sections.txt
@@ -57,6 +57,8 @@ cairo_user_font_face_set_unicode_to_glyph_func
cairo_user_font_face_get_unicode_to_glyph_func
cairo_user_font_face_set_text_to_glyphs_func
cairo_user_font_face_get_text_to_glyphs_func
+cairo_user_scaled_font_get_foreground_marker
+cairo_user_scaled_font_get_foreground_source
</SECTION>
<SECTION>