mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
gsk: Give up automatic font subsetting
Despite my best effort, it seems impossible to make ci and local builds agree on what font subsetter and fonts to use, so make this opt-in for now: If you want to produce a node file with embedded fonts, set GSK_SUBSET_FONTS=1.
This commit is contained in:
parent
a05dd4d194
commit
6f5c610858
@ -2990,8 +2990,13 @@ printer_init_collect_font_info (Printer *printer,
|
||||
info->face = hb_face_reference (hb_font_get_face (pango_font_get_hb_font (font)));
|
||||
if (!g_object_get_data (G_OBJECT (pango_font_get_font_map (font)), "font-files"))
|
||||
{
|
||||
info->input = hb_subset_input_create_or_fail ();
|
||||
hb_subset_input_set_flags (info->input, HB_SUBSET_FLAGS_RETAIN_GIDS);
|
||||
if (g_strcmp0 (g_getenv ("GSK_SUBSET_FONTS"), "1") == 0)
|
||||
{
|
||||
info->input = hb_subset_input_create_or_fail ();
|
||||
hb_subset_input_set_flags (info->input, HB_SUBSET_FLAGS_RETAIN_GIDS);
|
||||
}
|
||||
else
|
||||
info->serialized = TRUE; /* Don't subset (or serialize) system fonts */
|
||||
}
|
||||
|
||||
g_hash_table_insert (printer->fonts, info->face, info);
|
||||
|
Loading…
Reference in New Issue
Block a user