font-game-engine
font-game-engine copied to clipboard
Fontemon Website not displaying correctly for me
What am I doing wrong? when I type on the website it comes up in plain English...
What browser and what OS? Also make sure your browser's language is set to English (United States)
Windows 10. Tried both edge and chrome browse. Language is set correctly.
Hmm, try opening up the dev console: https://developer.chrome.com/docs/devtools/open/
and see if there are any errors in the console: https://developer.chrome.com/docs/devtools/console/
Also look in the network tab to see if the font is being downloaded https://developer.chrome.com/docs/devtools/network/
Do you use any adblockers or other extensions? Those could be blocking it.
On Tue, Jun 29, 2021, at 12:16 PM, technobulb wrote:
Windows 10. Tried both edge and chrome browse. Language is set correctly.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mmulet/font-game-engine/issues/6#issuecomment-870774606, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRVPINT7S5NS7HOY42XKSTTVH5VJANCNFSM47PIZZ5Q.
I tried turning off adblocker. Here are the errors
fontemon.html#player:1 Unchecked runtime.lastError: The message port closed before a response was received. fontemon.html#player:1 Error handling response: TypeError: Cannot read property 'loggedOut' of undefined at chrome-extension://kcnhkahnjcbndmmehfkdnkjomaanaooo/contentscript.js:167:137 fontemon.html#player:1 Failed to decode downloaded font: https://www.coderelay.io/assets/fontemon.otf fontemon.html#player:1 OTS parsing error: invalid sfntVersion: 1008821359
That's very strange: the sfntVersion is the "magic number" for otf ( the first 4 bytes of the file). Usually, for .otf files, it should be 'OTTO' which is the ACII code for 0x4f54 544f (or 1330926671 in decimal ). docs. I opened the .otf with a a hex editor, and it does indeed have 'OTTO' as the first 4 bytes. So, my best lead is that fontemon.otf is somehow being corrupted, but I don't know why.
The SHA-256 hash of fontemon.otf is B224B586AA42C2DA3A47C8E2871A0549A8412C335CF93ADBE950B91EA7944071
Can download fontemon.otf and send me the SHA-256 hash? If not, send the file to me in an email (anything at all ) @ coderelay.io and I'll compute the hash.
Now that I think about it, if the file is corrupt, try clearing your cache and redownloading the file. On chrome:
- Open up dev tools
- Press and hold the refresh button (in your normal browser window, not dev tools)
- Select "Empty cache and Hard reload"
If it still doesn't work after this, try opening up the console and see if the invalid sfntVersion matches 1008821359, the same as before.
Heres what I get after the hard reload:
fontemon.html:1 Failed to decode downloaded font: https://www.coderelay.io/assets/fontemon.otf fontemon.html:1 OTS parsing error: invalid sfntVersion: 1008821359
And here is the hash of my downloaded file: 9fa30993fbdd822ab8476ee992056f45d0abf0e31205291fa2cd142c8ec8300f
When I open the .otf in notepad OTTO is indeed the first 4 characters. After installing the .otf, I still cannot view the font in Microsoft Word, rather when I type, it comes up blank (but I do see Microsoft's spelling suggestion popups, indicating that it is indeed, registering my keystrokes)
If the hashes don't match, then they're not the same file, very strange. I don't know why that would be happening. Random guess: Are you on a corporate or university ISP that could be trying to sanitize the file?
MS word doesn't work reliably. Despite being an image editor, fontemon works well in GIMP https://www.gimp.org. I've also got it to work in Windows font settings.
Other things to try: The OTS parser used in Chrome is a standalone program https://github.com/khaledhosny/ots and we can find more error information by running ots on your downloaded font.
OK so now that you mention, I do have a sort of filter installed, that does redirect all the traffic through its servers. Didn't think would affect my downloads at all...