This is using hb-cairo to draw a single glyph from a hb_face_t, applying variations and colors.
16 lines
453 B
C
16 lines
453 B
C
#pragma once
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
#define FONT_VARIATIONS_TYPE (font_variations_get_type ())
|
|
#define FONT_VARIATIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FONT_VARIATIONS_TYPE, FontVariations))
|
|
|
|
|
|
typedef struct _FontVariations FontVariations;
|
|
typedef struct _FontVariationsClass FontVariationsClass;
|
|
|
|
|
|
GType font_variations_get_type (void);
|
|
GAction * font_variations_get_reset_action (FontVariations *self);
|