M
M
MaxKondratenko2014-11-01 11:53:46
css
MaxKondratenko, 2014-11-01 11:53:46

Misunderstandings with displaying fonts through font-face?

I already wrote a topic about fonts, I thought that when generating a font, the letter Yoyo Yy does not appear.
53fee1591f91466bacdb577421e7e4f1.png
If you look at the photo, on the left part of the text is taken from the php name (I need it so :)))) file, then json ajax request is transmitted, and then I substitute the text in <p></p>
And you can see what happens in the photo. Then I take it and write the same thing with my hands and everything is fine ...
I tried to look through fontlab studio for the character codes, everything seems to match ... Why this happens I can’t imagine ... maybe when transmitting somewhere it was messed up with codes ...fbfdf1a5e3744c64a03b43934bb62037.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxKondratenko, 2014-11-01
@MaxKondratenko

In general, I won ... I used this FontLab studio program, it seems to be under Windows, I did it on a poppy.
I did the following: firstly, in the font itself, initially ёЁ were under other codes, left them, but added the same characters but changed the codes to 0401 for Ё and 0451 for ё, then I took Ё copied, cut out the letter Ё itself, left only a colon, made from colon symbol with code 0308, and for Y did the same, deleted the letter itself, leaving only the upper part and made code 0306. Saved.
After that, as usual, I went to http://www.fontsquirrel.com, generated fonts... but when I opened it in FontLab studio, I found that there were no characters 0306 and 0308... I closed it, took what happened after FontLab, went to onlinefontconverter.com /,I generated the woff, eot, svg fonts I needed and tried to convert ttf with it in principle and worked in FontLab, then after generation I opened it in FontLab and miraculously the characters remained, replaced the old fonts, launched it, and lo and behold, everything worked!
You can see the 4th and 5th character in the first line
here is a good plate with codes www.unicode.org/charts/PDF/U0400.pdf

A
Alexander Borisovich, 2014-11-01
@Alexufo

php.net/manual/ru/function.urlencode.php on the server
https://developer.mozilla.org/en-US/docs/Web/JavaS... on the client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question