pango_font_description_from_string sets incorrect mask for weight
Scenario;
desc = pango_font_description_from_string("Bold");
pango_font_description_merge(desc, pango_font_description_from_string("24"), true);
A user want to select Bold 24
but got Normal 24
instead.
This is because pango_font_description_from_string("24")
sets weight to its default "Normal" but with mask PANGO_FONT_MASK_WEIGHT
.
I think this mask should not be set because there is no "Normal" in the string.