The system font size setting on iOS has no effect on Obsidian’s font size
Steps to reproduce
Adjust the font size on iOS either system wide, or using iOS’s app-specific setting for Obsidian only
Expected result
I expected font sizes to be relative to the system setting
Actual result
System setting has no effect on Obsidian—it’s is hard coded to follow Obsidian’s own setting only
Environment
iPadOS 15
Obsidian v1.0.4
2 Likes
elim
January 15, 2023, 2:22pm
2
I ran into the same thing. I’m constantly switching font sizes on my phone from 80% to 190% according to whether I’ve got my glasses on. Here’s a quick workaround – I stuck the following CSS in a file and put it in .obsidian/snippets:
@supports (font: -apple-system-body) {
html {
font: -apple-system-body !important;
}
body {
--font-ui-medium: 100% !important;
--font-ui-small: 85% !important;
--font-ui-smaller: 75% !important;
--font-adaptive-normal: 100% !important;
--font-adaptive-small: 85% !important;
--font-adaptive-smaller: 75% !important;
--font-adaptive-smallest: 65% !important;
font-size: 100% !important;
}
}