How to apply font to required unicode range only


#1

I run Atom on Ubuntu. Here is my style code from styles.less intended to render only Hindi in desired font.

@font-face {
    font-family: "Shobhika";
    src: local('/usr/local/share/fonts/s/Shobhika_Regular.otf');
    unicode-range: U+0900-A8FB;}

.editor
{
    font-family: Shobhika;
}

But this is changing font of English also. Should this contain some fallback rules also?


#2

Adding this code changed the behaviour.

.editor{
    font-family: 'DejaVu Sans Mono', Shobhika;
}