ShikiSuen
Well-known member
This is a free alternative of Apple San Francisco but designed better to me,
and it is a variable font (which means you can control its boldness as you wish).
I converted it into base64 and embedded it into my XF style theme on my website. Looks awesome.
(Helvetica Neue looks way too condensed; Segoe UI looks distracting.)
------
If not gonna host the font file on the server, there's a simpler way to call it from the font developer's server:
STEP 1: Add a template called "interfont.css":
Less:
@import url('https://rsms.me/inter/inter.css');
html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; }
}
STEP 2: Open the template "PAGE_CONTAINER" and find the following line:
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
Add
<xf:css src="interfont.css" />
right beneath it.STEP 3: Edit font fallback sequence to:
'Inter var','Inter',-apple-system, BlinkMacSystemFont, Tahoma, Arial, Arimo, Roboto, sans-serif
P.S.: My hesitation of putting its CSS code in Extra.less is because I am afraid that webfont declarations should be placed before all other CSS definitions.
Last edited: