summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-04 14:52:05 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-04 15:42:05 -0400
commit41c25b88096b2d5d084aa61902ade13ab10638c7 (patch)
tree74f2fc9033c7454fbe58862143df7a89a92ffb38
parentb5ff35ff3e99878101ca1996d79e18d28b08aa06 (diff)
downloadgtk+-41c25b88096b2d5d084aa61902ade13ab10638c7.tar.gz
Revert "gsk: Add font options to the glyph cache"
This reverts commit 6599cb001fa184ed224c655519d659f168e9face.
-rw-r--r--gsk/ngl/gsknglglyphlibrary.c8
-rw-r--r--gsk/ngl/gsknglglyphlibraryprivate.h5
2 files changed, 1 insertions, 12 deletions
diff --git a/gsk/ngl/gsknglglyphlibrary.c b/gsk/ngl/gsknglglyphlibrary.c
index fdfa1abe30..9f269d8643 100644
--- a/gsk/ngl/gsknglglyphlibrary.c
+++ b/gsk/ngl/gsknglglyphlibrary.c
@@ -166,19 +166,11 @@ render_glyph (cairo_surface_t *surface,
{
cairo_t *cr;
cairo_glyph_t glyph;
- cairo_font_options_t *options;
g_assert (surface != NULL);
g_assert (scaled_font != NULL);
cr = cairo_create (surface);
- options = cairo_font_options_create ();
- cairo_font_options_set_hint_metrics (options, key->hint_metrics ? CAIRO_HINT_METRICS_ON : CAIRO_HINT_METRICS_OFF);
- cairo_font_options_set_antialias (options, key->antialias ? CAIRO_ANTIALIAS_GRAY : CAIRO_ANTIALIAS_NONE);
- cairo_font_options_set_hint_style (options, key->hint_style);
- cairo_set_font_options (cr, options);
- cairo_font_options_destroy (options);
-
cairo_set_scaled_font (cr, scaled_font);
cairo_set_source_rgba (cr, 1, 1, 1, 1);
diff --git a/gsk/ngl/gsknglglyphlibraryprivate.h b/gsk/ngl/gsknglglyphlibraryprivate.h
index 6d9e81060e..a9f099c0b5 100644
--- a/gsk/ngl/gsknglglyphlibraryprivate.h
+++ b/gsk/ngl/gsknglglyphlibraryprivate.h
@@ -35,10 +35,7 @@ typedef struct _GskNglGlyphKey
PangoGlyph glyph;
guint xshift : 2;
guint yshift : 2;
- guint hint_metrics : 1;
- guint antialias : 1;
- guint hint_style : 3;
- guint scale : 23; /* times 1024 */
+ guint scale : 28; /* times 1024 */
} GskNglGlyphKey;
typedef struct _GskNglGlyphValue