Skip to content

Chinese Fonts Tweak YaHei by rampageX

Details

AuthorrampageX

LicenseNo License

CategoryChinese Fonts Tweak

Created

Updated

Size1.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Chinese Fonts Tweak

Notes

Chinese Fonts Tweak

Source code

/* ==UserStyle==
@name         Chinese Fonts Tweak YaHei
@version      20240512.16.43
@namespace    https://userstyles.world/user/rampageX
@description  Chinese Fonts Tweak
@author       rampageX
@license      No License
==/UserStyle== */

@-moz-document url-prefix("http"), url-prefix("https"), url-prefix("ftp"), url-prefix("file") {
* {
    text-shadow: transparent 0px 0px 0px, rgba(0, 0, 0, 0.68) 0px 0px 0.068em !important;
}
.text-transparent,
.text-gray,
textarea {
    text-shadow: none !important;
}

/*hack chrome */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
}

a[target="_blank"] > img:hover {
    box-shadow: 0 0 1px 1px silver !important;
}
a:hover {
    text-decoration: none;
    color: blue !important;
    text-shadow: transparent 0px 0px 0px, rgba(0, 0, 0, 0.68) 0px 0px 0.07em !important;
}
a[target="_blank"]:hover {
    text-decoration: none;
    color: red !important;
    text-shadow: transparent 0px 0px 0px, rgba(0, 0, 0, 0.68) 0px 0px 0.07em !important;
}

/*全局字体平滑*/
html {
    /* Adjust font size */
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    /* Font varient */
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    /* Smoothing */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: subpixel-antialiased !important;
    /*    -webkit-text-stroke-width: 0.1px !important; */
}

/*替换中文字体*/
@font-face {
    font-family: 'Simsun';
    unicode-range: U+2E80-FFFF;
    src: local('微软雅黑');
}
@font-face {
    font-family: 'NSimsun';
    unicode-range: U+2E80-FFFF;
    src: local('微软雅黑');
}
@font-face {
    font-family: '宋体';
    unicode-range: U+2E80-FFFF;
    src: local('微软雅黑');
}
@font-face {
    font-family: '仿宋';
    unicode-range: U+2E80-FFFF;
    src: local('微软雅黑');
}

}

Reviews

No reviews yet.