Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compress .ttf font file size

I'm using noori nastaleeq font in my website but the .ttf file is around a 7mb file which is taking too much time to load the webpage, is there any way to compress the filesize? this font is not available on google fonts too.

P.S: The actual .ttf was around 12mb i'm using w3 super cache plugin so it compress the current file to 7mb and i wanted to compress more

Thanks

like image 889
Muhammad Danyal Saleem Avatar asked Feb 23 '17 20:02

Muhammad Danyal Saleem


1 Answers

Try using font-squirrel to convert your font. They have perfect instructions on their website. After you convert your font, it also comes with a css file that includes your font already added to a font-family. Easy to just plug into your html.

https://www.fontsquirrel.com/tools/webfont-generator

like image 107
manneJan89 Avatar answered Sep 21 '22 12:09

manneJan89