• Stars
    star
    2,075
  • Rank 22,145 (Top 0.5 %)
  • Language
    TypeScript
  • Created about 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

跨平台 CSS 中文字体解决方案

Fonts.css -- 跨平台中文字体解决方案

一直以来跨平台的中文字体 CSS 设置都是一件让人很头疼的事情,这个库打包了一些常见字体的名字,希望能覆盖 Windows、Mac 以及 Linux 的常见字体,方便引用。在 font-family 直接支持宋、楷、黑和仿宋之前,我觉得这样一种解决方案依然还是有其存在价值的。

Demo & Doc

https://zenozeng.github.io/fonts.css/

NPM

npm install fonts.css --save

Usage

<head>
    <link rel="stylesheet" type="text/css" href="fonts.css" />
</head>
<body>
    <p class="font-kai">
        故天将降大任于是人也必先苦其心智劳其筋骨饿其体肤空乏其身行弗乱其所为所以动心忍性曾益其所不能
    </p>
</body>

Contributors

License

Copyright (C) 2013-2018 Zeno Zeng and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Footnote

More Repositories

1

Free-Chinese-Fonts

免费中文字体
JavaScript
1,442
star
2

color-hash

Generate color based on the given string (using HSL color space and SHA256).
TypeScript
709
star
3

p5.js-svg

SVG runtime for p5.js.
JavaScript
672
star
4

yafolding.el

Yet another folding extension for Emacs
Emacs Lisp
149
star
5

font-detect.js

Detect font without flash, simply using javascript & @font-face
JavaScript
80
star
6

node-yaqrcode

Pure Javascript QR Code Generator for NodeJS
HTML
62
star
7

p5.js-pdf

A simple PDF export module for p5.js.
JavaScript
53
star
8

apisix-javascript-plugin-runner

Node.js / Deno / WASM Plugin Runner for APISIX
TypeScript
33
star
9

css-eldoc

eldoc-mode plugin for CSS
Emacs Lisp
28
star
10

gitlab-changelog

A php script to generate changelog via gitlab api
PHP
16
star
11

cocolour

Color schemes generator based on machine learning
JavaScript
12
star
12

colors-clustering

Colors clustering based on K-means algorithm & CIE76
JavaScript
11
star
13

act.js

Create Adobe Color Table (.act) files using Uint8Array, Blob API and FileReader API.
JavaScript
10
star
14

php-eldoc

eldoc-mode plugin for PHP source code
Emacs Lisp
10
star
15

parallel-algorithm-notes

This is my notes for our Parallel Algorithms course.
HTML
9
star
16

electronic-wechat-deb

Deb package for Zhongyi Tong's awesome Electronic WeChat.
Shell
7
star
17

automatic-control-theory

自动控制理论
Python
6
star
18

colors

colors
JavaScript
5
star
19

qr-auth

QR Code Based 2-Step Authentication
CoffeeScript
4
star
20

colors-clustering-visualization

Visualization demo for Colors Clustering using RGB & K-means algorithm
JavaScript
4
star
21

Data-Visualization-Examples

一些数据可视化的例子
CSS
4
star
22

wp-cors

Yet another wordpress cross domain plugin
PHP
3
star
23

gsoc2015

My Proposals and Logs for Google Summer of Code 2015
JavaScript
3
star
24

rice-sorting

Rice sorting based on machine vision
JavaScript
2
star
25

.xmonad

My XMonad & XMobar Config
Haskell
2
star
26

The-Nature-of-Code

The Nature of Code (in processing-js)
Processing
2
star
27

upgradeneeded

浏览器更新提示。
CSS
2
star
28

interval.js

A simple interval manager with lifetime / start / stop / pause / resume / restart
CSS
2
star
29

ASM-80C51

80C51 汇编
Assembly
2
star
30

gene-pool

Genetic algorithms in a given gene pool
JavaScript
2
star
31

zju-cli

This repo was moved to https://github.com/QSCTech/zjunet.
Shell
2
star
32

apisix-plugin-waf

ModSecurity compatible web application firewall plugin for Apache APISIX
2
star
33

npmm

Install npm packages using mirrrors with package-lock.json resolved to registry.npmjs.org
Shell
2
star
34

skeleton

Detect theme colors of a webpage using phantomjs
JavaScript
1
star
35

service

互联网服务
1
star
36

dotxbindkeys

Xbindkeys Configuration Framework
Scheme
1
star
37

xbindkeys-chromemacs

Emacs keybindings for Chrome / Chromium using xbindkeys
Scheme
1
star
38

cold-plasma-rice-seeds

冷等离子处理的水稻种子吸水特性
Python
1
star
39

ASABE-Robotics-Competition

ASABE Robotics Competition
JavaScript
1
star
40

postino

C
1
star
41

socks-scripts

Scripts using red socks & socks to bgswlan or any other router or server
1
star
42

bingang-industrial-park

滨港工业城官方网站前端
CoffeeScript
1
star
43

MathJax

Self hosted MathJax plus some handy configuration.
JavaScript
1
star
44

simple-loading-bar

A simple loading bar bind on dom
JavaScript
1
star
45

chrome-time

a simple clock for chrome
JavaScript
1
star
46

Machine-Learning

Machine Learning Exercises
Clojure
1
star
47

iframe-url-binding

Iframe based url binding
JavaScript
1
star
48

Cache.coffee

Cache.coffee is a library written for data caching.
CoffeeScript
1
star
49

common-knowledge

常识
1
star
50

time

A clock Web App, using IndexedDB.
JavaScript
1
star
51

mdt

Markdown toolkit (pandoc, XeLaTeX, mermaid and LaTeX beamer slide show)
Shell
1
star
52

try-kicad

IDL
1
star
53

fs-storage

localStorage like, fileSystem based storage
CoffeeScript
1
star