font-family and font-feature may cause display problems on the mobile app?
Last year, I found that the character “B” displayed on the app was a bit abnormal:
Later, I realized that not everyone seems to encounter this, so I found the culprit: the theme style.
So I figured out the problem (probably?) :
/* The complete CSS of the DEBUG reappearing problem: */
* {
font-family: 'AnyFont';
font-feature-settings: 'ss02' 1;
}
When there is a font-family
along with font-feature-settings: 'ss02' 1
, it seems that this issue will arise.
I don’t know yet if the problem is only on my device or all mobile app.
show debug info from mobile app:
SYSTEM INFO:
Operating system: android 15 (Xiaomi 2210132C)
Obsidian version: 1.7.7 (171)
API version: v1.7.7
Login status: not logged in
Language: zh
Live preview: on
Base theme: dark
Community theme: Dark Clarity v1.1.6
Snippets enabled: 0
Restricted mode: off
Plugins installed: 9
Plugins enabled: 0
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
I don’t know what other solutions there are. Next, I will try to load the font in the form of base64 to see if it can return to normal. If you have any clues, please let me know. Thx~