mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
font: use DPI=75 if there's no DPI attribute from fontconfig
This is the fontconfig default as well
This commit is contained in:
parent
f358211904
commit
20a8fd6acf
1 changed files with 1 additions and 1 deletions
2
font.c
2
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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue