subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.6k stars 66 forks source link

[Request]Add Chinese to woff #172

Open Gn3po4g opened 6 months ago

Gn3po4g commented 6 months ago

And any plans to add woff to CDN platforms like https://cdn.jsdelivr.net/npm for easy reference?

subframe7536 commented 6 months ago

For every single style, woff format is about 9MB, woff2 format is about 6MB

I don't think it is suitable for a website to load

Gn3po4g commented 6 months ago

The only most commonly used in web pages are regular and bold, or with additional italic.

subframe7536 commented 6 months ago

Originally, I made CN version for use in local editor or IDE. Can you describe your usage scenarios in detail?

Gn3po4g commented 6 months ago

Just use Maple in html.

  @font-face {
    font-family: "Maple Mono";
    font-weight: 400;
    font-style: normal;
    src: url("/MapleMono/MapleMono-NF-CN-Regular.woff2") format('woff2');
  }

the file is converted from ttf on my own. And if you upload the fonts on CDN for example, we can just add one line to include font file:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/maple-mono/style.css" />
subframe7536 commented 6 months ago

decide to use https://github.com/KonghaYao/chinese-free-web-font-storage