aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-03-03 16:21:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-03-06 17:02:10 +0000
commit9f3ce9236f9818263437cb6a4f26b20c5506a218 (patch)
tree0789814fa55a17c32838a20094609e9cd793e724 /scripts
parentthemes: add Material Amber (diff)
config: apply fontconfig rules if user didn’t set an explicit font size
If the user didn’t explicitly set the font size (e.g. font=monospace, instead of font=monospace:size=12), our initial attempt to read the FC_SIZE and FC_PIXEL_SIZE attributes will fail, and we used to fallback to setting the size to 8pt. Change this slightly, so that when we fail to read the FC_*_SIZE attributes, apply the fontconfig rules, but *without expanding* them (i.e. without calling FcDefaultSubstitute()). Then try reading FC_*_SIZE again. If that too fails, _then_ set size to 8pt. This allows us to pick up rules that set a default {pixel}size: <fontconfig> <match> <edit name="pixelsize" mode="append"><double>14</double></edit> </fontconfig> Closes #1287
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions