misans

3.1.1 • Public • Published

MiSans

MiSans (subsetted) fonts from Xiaomi for free (web) use.

小米发布的 MiSans 字体,可以免费使用,同步 Google Fonts 进行子集化以供 web 使用。

Fonts Preview

Version: 2.000

有关本字体的博客文章

CDN

Usage

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/misans@3.1.1/lib/misans-400-regular.min.css"
/>

Subset Details

Checkout config.json for settings.

使用 config.json 修改设置。

Environment requirements:

环境需求:

  • Node.js >= 18
  • Python >= 3.7
git clone https://github.com/dsrkafuu/misans.git
cd misans
pip install -r requirements.txt
npm install
npm run fetch
npm run subset

Subsetting process:

  1. Get Noto Sans SC fonts CSS from Google Fonts
  2. Parse unicode ranges from the CSS file
  3. Get all supported unicodes from MiSans font files
  4. Filter out the unsupported unicodes
  5. Use the final unicodes to generate subsetted font files
  6. Use the final unicodes to generate subsetted font CSS

子集化流程:

  1. 从 Google Fonts 拉取 Noto Sans SC 字体 CSS
  2. 解析 CSS 文件中的 unicode 范围
  3. 从 MiSans 字体文件中获取所有支持的 unicode
  4. 排除不支持的 unicode
  5. 使用最终的 unicode 生成子集化的字体
  6. 使用最终的 unicode 生成子集化的 CSS

Fonts Source

Reference

Copyright (Fonts)

Copyright (c) 2021, Beijing Xiaomi Mobile Software Co., Ltd.

License (Scripts)

Released under Apache License 2.0, for more information read the LICENSE.

Copyright (c) 2021-present DSRKafuU (https://dsrkafuu.net)

Package Sidebar

Install

npm i misans

Weekly Downloads

5,769

Version

3.1.1

License

Apache-2.0

Unpacked Size

21.4 MB

Total Files

979

Last publish

Collaborators

  • dsrkafuu