font: use DPI=75 if there's no DPI attribute from fontconfig

This is the fontconfig default as well
This commit is contained in:
Daniel Eklöf 2019-11-26 18:57:18 +01:00
parent f358211904
commit 20a8fd6acf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
font.c
View file

@ -116,7 +116,7 @@ from_font_set(FcPattern *pattern, FcFontSet *fonts, int start_idx,
double dpi;
if (FcPatternGetDouble(final_pattern, FC_DPI, 0, &dpi) != FcResultMatch)
dpi = 96;
dpi = 75;
double size;
if (FcPatternGetDouble(final_pattern, FC_PIXEL_SIZE, 0, &size)) {