Convert Arabic TTF/OTF fonts to woff, eof?

偶尔善良 提交于 2019-12-30 03:16:25

问题


First I know there are similar questions to mine,

and I do tried Font Squirrel Generator for tons of Arabic fonts, all of them render text in English correctly but none of them worked with Arabic letters!!

so is there a desktop tool (since all web apps is not working) than can convert Arabic fonts without breaking them ??

I have purchased an Arabic font, and I just want to convert it so I can use it on the web, and I did not like the idea to pay subscriptions to some fancy websites like fonts.com each month to provide me with these fonts !

and in case you're wondering about my CSS here you go:

/* CSS */
@font-face {
    font-family: 'GESSTVBold';
    src: url('arabic-3/ge_ss_tv_bold-webfont.eot');
    src: url('arabic-3/ge_ss_tv_bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('arabic-3/ge_ss_tv_bold-webfont.woff') format('woff'),
         url('arabic-3/ge_ss_tv_bold-webfont.ttf') format('truetype'),
         url('arabic-3/ge_ss_tv_bold-webfont.svg#GESSTVBold') format('svg');
    font-weight: normal;
    font-style: normal;

} 

.ar {
    font-family:"GESSTVBold";  
}

<!-- HTML -->
<h1 class="ar">مرحبا بالخط العربي</h1>

Thanks


回答1:


Hope it's not too late, try font2web .. worked for me perfectly, just save your html file with codepage-1256 encoding.




回答2:


  1. Switch the Font Squirell to Expert mode.

  2. Then on Subsetting: choose either No subsetting or Custom subsetting

  3. Sorted! :)

EDIT:

On custom subsetting you either need to tick your desired subset or type it in the input fields.




回答3:


I tried to use the font Squirrel but there is no Arabic unicode support, and I tried to set the Unicode ranges: 0600-06FF,0FB50-0FDFF,0FE70- 0FEFE but the same problem in cutting arabic letters is still existed. finally I tried the site http://everythingfonts.com/otf-to-woff and the result was great




回答4:


I don't have any Arabic font on hand so you'll have to try it:

  1. upload your font
  2. choose expert
  3. on the list of options you have subsetting - this cuts off unwanted characters to save bandwidth - try "no subsetting" (unless you know unicode ranges, and you want to specify them)
  4. let me know if it worked.


来源:https://stackoverflow.com/questions/6437061/convert-arabic-ttf-otf-fonts-to-woff-eof

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!