Questions tagged [unicode-range]

27 questions
8
votes
2 answers

Manipulate unicode-range while importing from Google Fonts

My question can be seen as a follow-up of this answer. I use Google Fonts for my project and now want to change the unicode-range, so only numbers are affected (see linked answer above). My problem is that I don't get it to work with an…
Colonize.bat
  • 188
  • 1
  • 11
8
votes
2 answers

CSS3 unicode-range does not work in Firefox

I'm using CSS3 property unicode-range to set different fonts for different character sets. Arial for Latin characters and a WebNazanin for Arabic/Farsi. It seems to work in Chrome 29 and IE10 but not in Firefox 23, it still uses Arial font in…
Maysam
  • 7,246
  • 13
  • 68
  • 106
3
votes
1 answer

Font face different size for specific unicode range (css 3 attribute) on different languages

I'm using font-face on my css and I have a problem that the hebrew char that create by using the src of the font-family that created by a designer and create another font-face with range to the english chars cause they are huge next to the hebrew…
The Butcher
  • 235
  • 2
  • 9
3
votes
0 answers

How does unicode-range work with ligatures?

When using unicode-range in a @font-face block, how are ligatures included? If a ligature contains a mixture of glyphs both inside and outside the range(s) provided by unicode-range, is that font included in the ligature, or will the browser try to…
Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145
3
votes
0 answers

sed regex Invalid Range error for unicode range

| sed 's/[\u0600-\u06FF]/ & /g' \ I am getting the following error for the above expression. sed: -e expression #1, char 22: Invalid range end Although I've verified that the expression is correct, I don't understand why this is still an…
3
votes
1 answer

Display text with two language in webpage with different fonts with font-face at rule in css

My web page displays Persian text using the Yekan font as expected. Why does the English text incorrectly use a font other than Alger? @font-face { font-family: Yekan; src: url(Fonts/BYekan.ttf); …
farhad.a
  • 341
  • 4
  • 17
3
votes
2 answers

using unicode_range to exclude numbers only

I'm using a custom font and loading it through @font-face. The text looks fine, but the numbers look screwy (only on chrome-windows, which is a very well know bug. And yes, I tried using the svg format for chrome, which solved the numbers but…
yuvi
  • 18,155
  • 8
  • 56
  • 93
2
votes
1 answer

@font-face unicode-range attribute

In some html documents I'm using webfonts for only a couple of words. Performance-wise loading a complete font-file seems wasteful. This is where the unicode-range parameter of the @font-face declaration comes…
user974652
2
votes
1 answer

How can I detect when a font is downloaded via CSS's "unicode-range" descriptor?

I'm trying to display a custom web font on a element, however it doesn't always display correctly first time as the font has not been pre-loaded: How it currently looks: Here's how it should look: I'm aware that several methods of…
user7290573
  • 1,320
  • 1
  • 8
  • 14
2
votes
0 answers

Line height for a specific font

In css I have defined a custom font for a specific rage of characters: @font-face { font-family: Sahel; src: url(../font/Sahel-FD.ttf); unicode-range: U+0600-06FF; } @font-face { font-family: Sahel; src:…
Mahozad
  • 18,032
  • 13
  • 118
  • 133
1
vote
0 answers

Google Fonts without specified subset in stylesheet

Today I ran into a Google Font that's not loaded the usual way, and I'm hoping that someone can clarify this for me. Why do some Google Fonts not have specified subsets in the stylesheets? Here's an example of Roboto: /* cyrillic-ext */ @font-face…
1
vote
2 answers

W3C CSS validator is giving errors on @font-face unicode-range

Since few days ago W3C CSS validator started to be more strict and started to give errors on this type of CSS3 implementation (this type of CSS3 files are everywhere and they were used for example by Google Fonts): /* vietnamese */ @font-face { …
João Pimentel Ferreira
  • 14,289
  • 10
  • 80
  • 109
1
vote
1 answer

Can I use different fonts for each language in React Native?

I'm using React Native to create a Korean app. I want to use different fonts such as Korean and English. For example, 헬로우 World In this case, Is there a way to use different fonts? I'd appreciate it if someone could tell me how.
1
vote
2 answers

How to generate custom .otf font subset file?

How to generate custom .otf font subset file? Use case: There exists gauge .otf font file. There exists specific Unicode glyph set (ranges, points). Output is new .otf file sufficient for set from point 2. How do this on .NET or JavaScript?
Yarl
  • 728
  • 1
  • 7
  • 26
1
vote
1 answer

Usable Unicode Ranges for Custom Text Process

I am working on a processor that parts texts into blocks with marks: LOREM IPSUM SED AMED will be parsed like: {word:1}LOREM{/word:1}{space:2} {word:3}IPSUM{/word:3}{space:4} {word:5}SED{/word:5}{space:6} {word:7}AMED{/word:7} But I dont want to…
Digerkam
  • 1,826
  • 4
  • 24
  • 39
1
2