Appearance font setting drops quotation marks (') in font family name

Steps to reproduce

I have a font whose family name contains an apostrophe, i.e. the single quotation mark symbol '. The font is called Suisse Int’l (free trial).

When I add this font in Options/Appearance/Font, it shows up in the dropdown menu, and I am able to save the selection. I checked appearance.json and it shows that “Suisse Int’l” is correctly saved.

Expected result

Obsidian finds the font family on my system and displays it in the UI.

Actual result

It seems that the code that processes this setting drops the quotation mark. When I close and reopen Options/Appearance/Font, the family name shows up as “Suisse Intl” without the single quotation mark instead of “Suisse Int’l”, and it says that it cannot find the font family on my system, hence does not display the font.

Environment

  • Operating system: macOS Monterey 12.3.1
  • Debug info: See below
SYSTEM INFO:
	Obsidian version: v0.14.6
	Installer version: v0.14.6
	Operating system: Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 21.4.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: light
	Community theme: Minimal
	Snippets enabled: 9
	Safe mode: off
	Plugins installed: 43
	Plugins enabled: 37
		1: Dataview
		2: Recent Files
		3: Remember cursor position
		4: Citations
		5: Folder Note Core
		6: Better footnote
		7: Minimal Theme Settings
		8: Metatable
		9: Buttons
		10: Embedded Note Titles
		11: Advanced Slides
		12: Plaintext
		13: Hider
		14: Better Word Count
		15: Paste URL into selection
		16: Tag Wrangler
		17: Quick Explorer
		18: Sortable
		19: AidenLx's Folder Note
		20: Image Toolkit
		21: Link Favicons
		22: Style Settings
		23: Banners
		24: File Info Panel
		25: Copy Block Link
		26: Extended MathJax
		27: Completr
		28: JavaScript Init
		29: Smart Typography
		30: Obsidian42 - BRAT
		31: Customizable Sidebar
		32: Customizable Page Header and Title Bar
		33: Pane Relief
		34: Advanced Tables
		35: Customizable Menu
		36: Omnisearch
		37: Advanced Cursors

RECOMMENDATIONS:
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.

Additional information