使用LESS/CSS将自定义字体应用于除“与”号之外的所有字符



我有以下内容:

@font-mensch: 'menschmensch_bold', "wf_SegoeUI","Segoe UI","Segoe","Segoe WP", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
@font-face {
    font-family: 'menschmensch_bold';
    src: url('font/mensch-bold-wf-webfont.eot');
    src: url('font/mensch-bold-wf-webfont.eot?#iefix') format('embedded-opentype'),
      url('font/mensch-bold-wf-webfont.woff') format('woff'),
      url('font/mensch-bold-wf-webfont.ttf') format('truetype'),
      url('font/mensch-bold-wf-webfont.svg#menschmensch_bold') format('svg');
     font-weight: normal;
     font-style: normal;
}
@font-face {
    /* Ampersand fallback font */
    font-family: 'sans-serif';
    unicode-range: ~"U+270C";
}

自定义字体正在应用中,但由于Mensch不支持"与号",因此如果字体是"与",我将尝试有条件地对其应用sans-serif。上面的代码不起作用-与号符号就是不显示。我做错了什么?

尝试使用

...
unicode-range: U+26;
...

HTH

最新更新