fix pixelsize when using pango (set_size != set_absolute_size)
This commit is contained in:
parent
b287b126cc
commit
425dc31808
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ static RrFont *openfont(const RrInstance *inst, gchar *fontstring)
|
||||||
if (FcPatternGetInteger(match, "pixelsize", 0, &tmp_int) !=
|
if (FcPatternGetInteger(match, "pixelsize", 0, &tmp_int) !=
|
||||||
FcResultTypeMismatch) {
|
FcResultTypeMismatch) {
|
||||||
/* TODO: is PANGO_SCALE correct ?? */
|
/* TODO: is PANGO_SCALE correct ?? */
|
||||||
pango_font_description_set_size(out->pango_font_description,
|
pango_font_description_set_absolute_size(out->pango_font_description,
|
||||||
tmp_int*PANGO_SCALE);
|
tmp_int*PANGO_SCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue