https://github.com/helloworld017/nenwfont
A webfont generator done right
https://github.com/helloworld017/nenwfont
cjk font korean subset webfont
Last synced: about 2 months ago
JSON representation
A webfont generator done right
- Host: GitHub
- URL: https://github.com/helloworld017/nenwfont
- Owner: HelloWorld017
- Created: 2021-02-26T12:37:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T14:01:48.000Z (about 5 years ago)
- Last Synced: 2025-12-25T21:20:07.508Z (5 months ago)
- Topics: cjk, font, korean, subset, webfont
- Language: Python
- Homepage:
- Size: 535 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nenwfont
> A webfont generator done right
**THIS PROJECT IS WIP**
## Warning
* This tool is not tested with ligatures, variable fonts, and many other opentype features.
* This tool does not take output css file optimization into consideration.
* Using this tool may lead to large css files.
* This tool does not support `eot`, `svg` export.
* As almost every modern browsers support `woff`
* Please use this tool at your own risk!
## Abstract
A tool to make webfont generation pipeline.
It supports frequency-based subsetting, CFF to glyf conversion, gasp table adding.
This example pipeline.yml shows how this tool converts given font into webfonts.
```yml
pipeline:
-
name: 'input'
glob:
- 'files/input/**/*.ttf'
- 'files/input/**/*.otf'
-
name: 'cff_to_glyf'
-
name: 'add_gasp'
mode: 'replace'
-
name: 'parse_attribute'
key: 'path'
pattern: "^(?P.*)-.*\\.ttf$"
-
name: 'merge'
merge_by: 'group'
merge_base:
key: 'path'
match: "-base.ttf$"
-
name: 'subset'
group_by:
- 'hangul_2574'
- 'ideograph_jouyou'
- 'unicode_blocks'
- 'all'
order_by: 'wikipedia_frequency'
max_glyphs: 256
-
name: 'add_program_info'
-
name: 'output'
extensions:
- 'woff'
- 'woff2'
output_fonts: 'files/output/fonts/{path}'
output_css: 'files/output/stylesheet.css'
make_preview: False
```