All Projects → chawyehsu → lxgw-wenkai-webfont

chawyehsu / lxgw-wenkai-webfont

Licence: MIT License
webfont package for the LXGW WenKai typeface

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to lxgw-wenkai-webfont

Font Awesome
The iconic SVG, font, and CSS toolkit
Stars: ✭ 66,937 (+185836.11%)
Mutual labels:  webfont
pinyin data
🐼 Easy to use and portable pronunciation data for Hanzi characters.
Stars: ✭ 13 (-63.89%)
Mutual labels:  cjk
cryptofont
Cryptocurrency icon webfont and SVG
Stars: ✭ 149 (+313.89%)
Mutual labels:  webfont
Mpdf
PHP library generating PDF files from UTF-8 encoded HTML
Stars: ✭ 3,375 (+9275%)
Mutual labels:  cjk
Woffle
Drag and drop woff and woff2 web font generator for macOS
Stars: ✭ 24 (-33.33%)
Mutual labels:  webfont
font-gis
Icon font and SVG for use with GIS and spatial analysis tools
Stars: ✭ 121 (+236.11%)
Mutual labels:  webfont
Svgtofont
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
Stars: ✭ 149 (+313.89%)
Mutual labels:  webfont
microns
The universal icon set for user interfaces.
Stars: ✭ 58 (+61.11%)
Mutual labels:  webfont
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (+938.89%)
Mutual labels:  webfont
vite-plugin-webfont-dl
⚡ Webfont Download Vite Plugin - Make your Vite site load faster
Stars: ✭ 69 (+91.67%)
Mutual labels:  webfont
Source Han Serif
Source Han Serif | 思源宋体 | 思源宋體 | 思源宋體 香港 | 源ノ明朝 | 본명조
Stars: ✭ 5,920 (+16344.44%)
Mutual labels:  cjk
ark-pixel-font
Open source Pan-CJK pixel font / 开源的泛中日韩像素字体
Stars: ✭ 1,767 (+4808.33%)
Mutual labels:  cjk
RcppMeCab
RcppMeCab: Rcpp Interface of CJK Morpheme Analyzer MeCab
Stars: ✭ 24 (-33.33%)
Mutual labels:  cjk
huozi.js
A simple typography engine for CJK languages, especially designed for game rich-text. 用于游戏富文本的中日韩文字排印引擎。
Stars: ✭ 135 (+275%)
Mutual labels:  cjk
Bellota-Font
An ornamented Sans Serif font family
Stars: ✭ 21 (-41.67%)
Mutual labels:  webfont
Webfont
Awesome generator of webfont
Stars: ✭ 170 (+372.22%)
Mutual labels:  webfont
fontagon
Fontagon is a great tool that easily converts svg into icon font. Fontagon-cli allows faster conversion to commands.
Stars: ✭ 18 (-50%)
Mutual labels:  webfont
Tategaki
Translate Telegra.ph to vertical writing.
Stars: ✭ 80 (+122.22%)
Mutual labels:  cjk
web-fonts-repository
A simple webfont hosting. Google Fonts alternative for your own fonts.
Stars: ✭ 99 (+175%)
Mutual labels:  webfont
kanji-frequency
Kanji usage frequency data collected from various sources
Stars: ✭ 92 (+155.56%)
Mutual labels:  cjk

lxgw-wenkai-webfont

A webfont package for the LXGW WenKai typeface.

demo npm npm npm jsdelivr

For more information about the typeface, see LXGW WenKai's website.

Usage

Use NPM

First, install the package via npm or yarn.

npm install --save lxgw-wenkai-webfont
# or Lite version
npm install --save lxgw-wenkai-lite-webfont
# or TC version
npm install --save lxgw-wenkai-tc-webfont
# or Screen version
npm install --save lxgw-wenkai-screen-webfont

Then import style.css to your main css style file and update the font-family.

@import 'lxgw-wenkai-webfont/style.css';
/* Lite version */
@import 'lxgw-wenkai-lite-webfont/style.css';
/* TC version */
@import 'lxgw-wenkai-tc-webfont/style.css';
/* Screen version */
@import 'lxgw-wenkai-screen-webfont/style.css';
body {
  font-family: "LXGW WenKai", sans-serif;
  /* Lite version */
  font-family: "LXGW WenKai Lite", sans-serif;
  /* TC version */
  font-family: "LXGW WenKai TC", sans-serif;
  /* Screen version */
  font-family: "LXGW WenKai Screen", sans-serif;
}

/* Mono font (optional) */
pre,code {
  font-family: "LXGW WenKai Mono", sans-serif;
  /* Lite version */
  font-family: "LXGW WenKai Mono Lite", sans-serif;
  /* TC version */
  font-family: "LXGW WenKai Mono TC", sans-serif;
}

Use CDN

Put the jsDelivr <link> into your html head, then update the font-family.

<html>
<head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/style.css" />
  <!-- Lite version -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/style.css" />
  <!-- TC version -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/style.css" />
  <!-- Screen version -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/style.css" />
  <style>
    body {
      font-family: "LXGW WenKai", sans-serif;
      /* Lite version */
      font-family: "LXGW WenKai Lite", sans-serif;
      /* TC version */
      font-family: "LXGW WenKai TC", sans-serif;
      /* Screen version */
      font-family: "LXGW WenKai Screen", sans-serif;
    }
  </style>
</head>
<body>
  <!-- blablabla -->
</body>
</html>

Use specific font weights

You can also include specific weights if you don't want to use all the font weights or don't want to use mono font. For example:

@import 'lxgw-wenkai-webfont/lxgwwenkai-regular.css';
@import 'lxgw-wenkai-webfont/lxgwwenkai-bold.css';
body {
  font-family: "LXGW WenKai", sans-serif;
}

Lite version and TC version also support the same way. To know what css modules are available, please check out the npm package.

License

lxgw-wenkai-webfont © Chawye Hsu. Released under the MIT License.
The LXGW WenKai typeface is available under the SIL Open Font License 1.1 license.

Blog · GitHub @chawyehsu · Twitter @chawyehsu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].