2016-08-31 101 views
2
@font-face{ 
    font-family:Nanum Barun Gothic; 
    src:url(NanumBarunGothic.ttf); 
    unicode-range:U+AC00-D7A3,U+1100–11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF; 
} 
body{font-family:Nanum Barun Gothic, sans-serif;} 
// I confirmed that the sans-serif font is not the one here by checking with Chrome developer tool 

我用上面的代碼,並打算ONLY使用這個字體在指定的Unicode的字符範圍,並排除其他任何字符,包括默認的英語之一。CSS字體的Unicode範圍

但是,在我的網站中,它仍然顯示此字體中的其他字符。正如你所看到的,上面的一個仍然在定義的字體中顯示英文,然而第二個使用sans-serif。我怎麼解決這個問題?

很多幫助表示讚賞。

回答

4
U+AC00-D7A3,U+1100–11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF 
       ^

一個你的角色的範圍包含短破折號(U + 2013),而不是一個ASCII連字符減號。

+0

哎呀,完全忽略了這個!謝謝 –