M
M
maximn2014-06-17 23:28:18
css
maximn, 2014-06-17 23:28:18

How to convert ttf font to other formats?

I found a suitable font for the site DesdaC.ttf.
The font contains Cyrillic.
I started testing the site on different browsers. In Chrome, everything is ok, but in FireFox, instead of Russian letters, there are squares.
In order for the font to be displayed correctly on all browsers, I decided to do this:

@font-face {	
  font-family: 'DesdaC'; 
  src: url('../templates/new_template/css/fonts/DesdaC.eot');
  src: local('DesdaC'),
  url('../templates/new_template/css/fonts/DesdaC.woff') format('woff'),
  url('../templates/new_template/css/fonts/DesdaC.ttf') format('truetype'),
  url('../templates/new_template/css/fonts/DesdaC.svg#DesdaC') format('svg');
}

But none of the popular online font converters could convert the font to the formats I needed (woff, eot, svg). They write that the font is damaged or some other errors (although there were no such problems with other fonts). Under Windows, it was also not possible to find a converter.
How to solve the issue with the correct display of Cyrillic in different browsers?
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Ksenia, 2014-06-18
@Ksevostyanova

www.fontsquirrel.com/tools/webfont-generator
we use this at work
in different browsers it displays correctly
to specify different settings when converting use expert mode
to select Cyrillic and other languages ​​select Subsetting: Custom Subsetting...
and don't forget to Font Formats check SVG, it's unchecked by default

A
Appp Zooo, 2014-06-18
@ikeagold

Try to find similar free fonts at these links :
https://typekit.com/fonts
https://edgewebfonts.adobe.com/fonts
https://www.google.com/fonts
, not converted, human fonts.
I also opened css google font, they use only woff, why do you need everything completely? Ps example
The article linked below says:

The font format is woff everywhere, as the most popular and supported.

V
Vladimir, 2014-06-18
@br3t

There is an article with an overview of converters, try one of them if you have not tried it: habrahabr.ru/company/webfont/blog/217949
Sometimes this problem happens if the font is paid. Then just ask the person you bought it from for the rest of the font formats. If the font is free, then google other formats.

M
Michael Danilov, 2014-06-19
@MonkAlbino

I use this tool: everythingfonts.com/font-face
A couple of times there was a problem with the woff file: the characters were shifted up relative to the baseline and went beyond the desired boundaries. Everything was solved by disabling woff and that's it, since this is not so critical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question