mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
9454bad891
Make a single gsk_reload_font helper that can tweak both scale and font options, so we can ensure that our scaled font has hint-metrics turned off (pango pays attention to hint metrics when sizing and rendering hex boxes, and that hurts us.
25 lines
742 B
C
25 lines
742 B
C
#pragma once
|
|
|
|
#include <glib.h>
|
|
#include <pango/pango.h>
|
|
#include <cairo.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_ensure_resources (void);
|
|
|
|
PangoFont *gsk_reload_font (PangoFont *font,
|
|
float scale,
|
|
cairo_hint_metrics_t hint_metrics,
|
|
cairo_hint_style_t hint_style,
|
|
cairo_antialias_t antialias);
|
|
|
|
void gsk_get_unhinted_glyph_string_extents (PangoGlyphString *glyphs,
|
|
PangoFont *font,
|
|
PangoRectangle *ink_rect);
|
|
|
|
cairo_hint_style_t gsk_font_get_hint_style (PangoFont *font);
|
|
|
|
G_END_DECLS
|
|
|