Fail to decode font


Topic: Fail to decode font

Hur James pro asked 3 years ago

Hi, I got the error message as below when loading html page. Fail to decode downloaded font : https://...... Of course https pah is correct and problem is, font file is downloaded success and just fail to decode them. Refer below link and open the developer tool at chrome, you can check the failure message at chrome console https://mos-ecrm.monboard.com/crm001  

Anna Morawska staff answered 3 years ago

Hi there, it's hard to tell what's wrong, but I suspect that it is caused by a problem with FTP. The file was uploaded as text (ASCII) instead of binary, which corrupted the file. Maybe try to change your FTP software to binary and t re-uploaded the font files, Maybe this article would be helpful. Changing your ftp program to binary transfer Best, Ania  

Hur James pro commented 3 years ago

Hi, Ania

Thanks for your answer but it doesn't work.

I have changed the FTP and setting on your reply but fail.

You just checked out the result as the same link.

Some font files are fail to decode :

-Roboto-Regular.woff2

-Roboto-Light.woff2

-Roboto-Light.woff

-Roboto-Regular.woff

-Roboto-Light.ttf

-Roboto-Regular.ttf

And more error messages are :

-OTS parsing error : Size of decompressed WOFF 2.0 font to SFNT

-OTS parsing error : Failed to convert WOFF 2.0 font to SFNT

-OTS parsing error : incorrect file size in WOFF header

You can ingnore the errors associated with dataTable.


Anna Morawska staff answered 3 years ago

Are the font files loaded inside css files provided in our package?  Or did you load them by yourself? Hm, I still think it's probably a server-side problem.  I've found similar issue on github, maybe check it out. Best, Ania

Hur James pro commented 3 years ago

Font files are located path : {my project name}/mdb/font/roboto/~

And mdb font files are 20 total.

I don't understand some part of your comment " font files loaded inside css files provided package".

Refer the html which is load the mdb.css as below :

<!-- Bootstrap core CSS -->
<link href="mdb/css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="mdb/css/mdb.min.css" rel="stylesheet">
<!-- Your custom styles (optional) -->
<link href="mdb/css/style.css" rel="stylesheet">

But the last link style.css is empty.

Thanks.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: PC-Web
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes
Tags