S
S
Sergey2017-07-10 14:42:43
css
Sergey, 2017-07-10 14:42:43

How to find out the unicode-range of a font?

What is the correct way to write the unicode-range of a font to @font-face? For example, I have PT Sans Caption font - cyrilic and latin, how do I know which unicode-range to prescribe? I looked, there are different values ​​for cyrillic and latin, but I have them in the same font file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kovalsky, 2017-07-10
@Hando

Sergey : in principle it is clear what you want to do, and yes - unicode-range exists for the same. But it works a little differently: if you have several font files with given ranges, only those for which the corresponding characters exist on the page will be loaded.
That is, unicode-range does not segment the font file itself, it only decides whether this file needs to be loaded, whether there are characters corresponding to it.
Because you have all spellings in one file, the unicode-range mechanism will not help you. But if you divide the fonts into several files, then you can choose which file to upload using the appropriate range .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question