mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
b0e8d8483d
This commit takes several steps towards rendering text like we want to. The creation of the cairo surface and texture is moved to the backend (in GskVulkanRenderer). We add a mask shader that is used in the next text pipeline to use the texture as a mask, like cairo_mask_surface does. There is a separate color text pipeline that uses the already existing blend shaders to use the texture as a source, like cairo_paint does. The text node api is simplified to have just a single offset, which determines the left end of the text baseline, like all our other text drawing APIs.
16 lines
254 B
C
16 lines
254 B
C
#ifndef __GSK_PRIVATE_H__
|
|
#define __GSK_PRIVATE_H__
|
|
|
|
#include <glib.h>
|
|
#include <pango/pango.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_ensure_resources (void);
|
|
|
|
int pango_glyph_string_num_glyphs (PangoGlyphString *glyphs);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_PRIVATE_H__ */
|