mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
tests: Reduce number of random fonts
We were clowing through all the Pango caches for no benefit. It made the test generation stuck in fontconfig loops instead of quickly generating tests. So don't do that and limit the different fonts to some reasonable list of options.
This commit is contained in:
parent
6eea08ff99
commit
ece4e59e99
@ -407,8 +407,8 @@ text (guint n)
|
||||
else
|
||||
pango_font_description_set_style (desc, PANGO_STYLE_NORMAL);
|
||||
|
||||
pango_font_description_set_weight (desc, 100 * g_random_int_range (1, 10));
|
||||
pango_font_description_set_size (desc, PANGO_SCALE * g_random_int_range (8,32));
|
||||
pango_font_description_set_weight (desc, 200 * g_random_int_range (1, 5));
|
||||
pango_font_description_set_size (desc, PANGO_SCALE * 4 * g_random_int_range (2,8));
|
||||
|
||||
font = pango_context_load_font (context, desc);
|
||||
pango_layout_set_font_description (layout, desc);
|
||||
|
Loading…
Reference in New Issue
Block a user