Unicode character-specific CSS - a thought

前端 未结 1 1823
死守一世寂寞
死守一世寂寞 2021-01-05 07:39

As a native Bānglā (Language: Bengali) writer, we are dependent on to Unicode Bānglā characters. As we all know Unicode is an extended version of ASCII, and all the ASCII ch

1条回答
  •  一生所求
    2021-01-05 07:59

    This is entirely a problem of fonts. If you choose a well balanced font in which glyph sizes are adjusted in a way that mixed language text looks good together, there's no real problem. CSS can help you here in so far as you can specify custom fonts for certain characters using @font-face:

    @font-face {
      font-family:   'bangla';
      src:           url('http://example.com/mybangla.ttf');
      unicode-range: U+0980-09FF;
    }
    

    This fictional "bangla" font now applies only to the Unicode range U+0980 - U+09FF, which is the Bengali block. Choose some fonts wisely and you can create a well balanced appearance in modern browsers.

    0 讨论(0)
提交回复
热议问题