Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-09-17 06:53:56

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Tip: .var. in a font-name considered harmful

A font-name that includes the character sequence .var. can result in a error 500 response (Internal Server Error), it possibly triggers some mod-security or similar filter.

I use the variable font Inter-roman.var.woff2 (name provided by the foundry in the download package) on some sites and some servers where not-so-happy. Changing the . to - or similar separators solves the problem.

Hopefully this saves someone from spending some debugging and hair-pulling time.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#2 2021-09-17 10:22:37

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: Tip: .var. in a font-name considered harmful

Ah, the old double file extension thing. Very strange to see a font using it.

If it’s the same Inter (Roman, variable) as I’m thinking of, the Github download does not have the double extension issue, for what it’s worth:

github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip

Edit: I was wrong, it does have the double extension file.

Last edited by gaekwad (2021-09-17 10:29:17)

Offline

#3 2021-09-17 10:26:47

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: Tip: .var. in a font-name considered harmful

Check the Inter Web folder, you will finds a Inter-roman.var.woff2.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#4 2021-09-17 10:28:20

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: Tip: .var. in a font-name considered harmful

phiw13 wrote #331624:

Check the Inter Web folder, you will finds a Inter-roman.var.woff2.

You are absolutely right. I’d missed that.

Offline

#5 2021-09-17 10:31:14

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: Tip: .var. in a font-name considered harmful

In an effort to partially redeem myself…: github.com/rsms/inter/issues/334

Offline

#6 2021-09-17 11:23:30

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: Tip: .var. in a font-name considered harmful

gaekwad wrote #331626:

In an effort to partially redeem myself…: github.com/rsms/inter/issues/334

Thank you for finding. I hadn’t had time yet to check their GH issues.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB