aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-26 17:57:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-26 18:02:36 +0000
commit20a8fd6acf92e3019773ef8e560ead5818eb62d4 (patch)
tree3581f23b3d484f1576c7068f5a8d089a1a58f112
parentfont: underline/strikeout: use y-scale, not x-scale (diff)
font: use DPI=75 if there's no DPI attribute from fontconfig
This is the fontconfig default as well
-rw-r--r--font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/font.c b/font.c
index 74fd00ef..3b4c156b 100644
--- a/font.c
+++ b/font.c
@@ -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)) {