Git Product home page Git Product logo

source-han-vf-sliced's Introduction

思源可变字体切片

基于 CSS unicode-range 特性,对 woff2 字体进行切片,以优化网络加载体验。

用法

导入 CSS 样式:

<link rel="stylesheet" href="https://source-han-vf-sliced.takwolf.com/css/index.css">

然后可以在 CSS 样式中使用:

body {
    font-family: SourceHanSans-CN, sans-serif;
}

h1 {
    font-family: SourceHanSerif-CN, serif;
}

全部字体名称如下:

字体 font-family
黑体 - 简体中文 SourceHanSans-CN
黑体 - 繁体中文 - 香港 SourceHanSans-HK
黑体 - 繁体中文 - ** SourceHanSans-TW
黑体 - 日语 SourceHanSans-JP
黑体 - 韩语 SourceHanSans-KR
宋体 - 简体中文 SourceHanSerif-CN
宋体 - 繁体中文 - 香港 SourceHanSerif-HK
宋体 - 繁体中文 - ** SourceHanSerif-TW
宋体 - 日语 SourceHanSerif-JP
宋体 - 韩语 SourceHanSerif-KR

本地构建

执行 python -m tools.build 命令来开始构建。

生成的文件位于 www 目录。

字体版本

程序依赖

参考资料

许可证

基于 MIT 许可证

source-han-vf-sliced's People

Contributors

takwolf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.