-
-
Save staticor/a299e76601607b04c85f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONFIG = { | |
'Arial Black' : 'ENG', | |
'Arial' : 'ENG', | |
'Calibri' : 'ENG', | |
'Cambria' : 'ENG', | |
'Candara' : 'ENG', | |
'Comic Sans MS' : 'ENG', | |
'Constantia' : 'ENG', | |
'Corbel' : 'ENG', | |
'Georgia' : 'ENG', | |
'Helvetica' : 'ENG', | |
'Impact' : 'ENG', | |
'Lucida Grande' : 'ENG', | |
'Palatino Linotype' : 'ENG', | |
'Segoe UI' : 'ENG', | |
'Tahoma Bold' : 'ENG', | |
'Tahoma' : 'ENG', | |
'Times CY' : 'ENG', | |
'Times New Roman' : 'ENG', | |
'Times' : 'ENG', | |
'Trebuchet MS' : 'ENG', | |
'Mceinline' : 'ENG', | |
'Verdana' : 'ENG', | |
'sans-serif' : 'ENG', | |
'serif' : 'ENG', | |
'Arial SimSun' : 'CJK', | |
'FZLanTingHei-R-GBK' : 'CJK', | |
'kaiti' : 'CJK', | |
'Microsoft YaHei' : 'CJK', | |
'noto sans' : 'CJK', | |
'Simsun' : 'CJK', | |
'Source Han Sans CN' : 'CJK', | |
'宋体' : 'CJK', | |
'微软雅黑' : 'CJK', | |
'隶书' : 'CJK', | |
'黑体' : 'CJK', | |
'Andale Mono' : 'MONO', | |
'Consolas' : 'MONO', | |
'Courier New' : 'MONO', | |
'Courier' : 'MONO', | |
'Lucida Console' : 'MONO', | |
'Menlo' : 'MONO', | |
'Monaco' : 'MONO', | |
'monospace' : 'MONO', | |
'mono' : 'MONO', | |
} | |
CJKFONT = 'PingFang SC' | |
ENGFONT = 'Helvetica Neue' | |
MONOFONT = 'Essential PragmataPro' | |
body | |
-webkit-font-smoothing subpixel-antialiased !important | |
font-family CJKFONT | |
for FONT in CONFIG | |
if CONFIG[FONT] == 'ENG' | |
@font-face | |
font-family FONT | |
unicode-range U+2E80-FFFF | |
src local(CJKFONT) | |
if CONFIG[FONT] == 'CJK' | |
@font-face | |
font-family FONT | |
unicode-range U+2E80-FFFF | |
src local(CJKFONT) | |
@font-face | |
font-family FONT | |
unicode-range U+0000-2E7F | |
src local(ENGFONT) | |
if CONFIG[FONT] == 'MONO' | |
@font-face | |
font-family FONT | |
unicode-range U+2E80-FFFF | |
src local(CJKFONT) | |
@font-face | |
font-family FONT | |
unicode-range U+0000-2E7F | |
src local(MONOFONT) | |
pre, code | |
font-family MONOFONT CJKFONT !important |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment