All Projects → LingDong- → Qiji Font

LingDong- / Qiji Font

Licence: ofl-1.1
齊伋體 - typeface from Ming Dynasty woodblock printed books

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Qiji Font

typeface-minecraft
Minecraft typeface and colors
Stars: ✭ 20 (-96.27%)
Mutual labels:  font, typeface, typography
Google Type
Collaborative typography project using select passages from Aesop's Fables set to Google Fonts
Stars: ✭ 971 (+81.16%)
Mutual labels:  font, typography, typeface
hkcs
香港民間字集 Hong Kong Character Set Project (HKCS)
Stars: ✭ 29 (-94.59%)
Mutual labels:  font, typeface, chinese
Typefaces
NPM packages for Open Source typefaces
Stars: ✭ 2,581 (+381.53%)
Mutual labels:  font, typography, typeface
Chinese Hershey Font
Convert Chinese Characters to Single-Line Fonts using Computer Vision
Stars: ✭ 70 (-86.94%)
Mutual labels:  chinese, font, typography
Rrpl
Describing Chinese Characters with Recursive Radical Packing Language (RRPL)
Stars: ✭ 649 (+21.08%)
Mutual labels:  chinese, font, typography
Plusjakartasans
+Jakarta Sans is a open-source fonts. Designed for Jakarta "City of collaboration" program in 2020.
Stars: ✭ 136 (-74.63%)
Mutual labels:  font, typography, typeface
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (-30.22%)
Mutual labels:  font, typeface, typography
Otfcc
Optimized OpenType builder and inspector.
Stars: ✭ 348 (-35.07%)
Mutual labels:  font, typography, typeface
huozi.js
A simple typography engine for CJK languages, especially designed for game rich-text. 用于游戏富文本的中日韩文字排印引擎。
Stars: ✭ 135 (-74.81%)
Mutual labels:  typography, chinese
Kepler-452b
Futuristic / minimal font family.
Stars: ✭ 13 (-97.57%)
Mutual labels:  font, typeface
Agave
sappy monospaced programming font
Stars: ✭ 235 (-56.16%)
Mutual labels:  font, typeface
font-wonder-unit
Free and open source sans-serif font, brought to you by Wonder Unit.
Stars: ✭ 57 (-89.37%)
Mutual labels:  font, typeface
hzk-pixel-font
中文像素字体,12 和 16 像素。
Stars: ✭ 14 (-97.39%)
Mutual labels:  font, chinese
baseline
New method for creating leading on the web
Stars: ✭ 31 (-94.22%)
Mutual labels:  font, typography
Lora Cyrillic
Lora fonts — serif family for text. Variable Open Source Font
Stars: ✭ 266 (-50.37%)
Mutual labels:  font, typeface
Web Typography Glossary
Webタイポグラフィの基礎知識と実践
Stars: ✭ 279 (-47.95%)
Mutual labels:  font, typography
font-v
Font version string reporting and modification library + executable tool
Stars: ✭ 15 (-97.2%)
Mutual labels:  font, typeface
Bungee
A chromatic signage typeface for vertical and horizontal setting.
Stars: ✭ 262 (-51.12%)
Mutual labels:  font, typeface
Osfcc
一个收集可用于中文字体排印的开源字体集合。
Stars: ✭ 314 (-41.42%)
Mutual labels:  chinese, typography

齊伋體 qiji-font

Qiji-font (齊伋體) is:

  • A Ming typeface;
  • Extracted from Ming Dynasty woodblock printed books (凌閔刻本);
  • Using semi-automatic computer vision and OCR;
  • Open source;
  • A work in progress;
  • Named in honour of 閔齊伋, 16th century printer;
  • Intended to be used with wenyan-lang, the Classical Chinese programming language.

📢 聲明:敝字體近日頗見流傳於網絡,然皆訛作“‘凌’东齐伋体”。鄙人名令東,字體名齊伋;強欲冠後以前者,亦以“令東齊伋體”為宜,望周知。🤦‍♂️

Try it out online!

Netlify Status

Download

Progress

Unique Glyphs Covered Characters* Books Scanned
4569 5916 李長吉歌詩 / 淮南鴻烈解

* Simplified forms fall back to traditional forms, more common traditional variants fall back to less common variant forms.

Workflow

Step I: Download high resolution PDFs (from shuge.org) and split pages into images.

Step II: Manually lay a grid on top of each page to generate bounding boxes for characters (potentially replacable by an automatic corner-detection algorithm).

Step III: Generate a low-poly mask for each character on the grid, and save the thumbnails (using OpenCV). First, red channel is subtracted from the grayscale, in order to clean the annotations printed in red ink. Next, the image is thresholded and fed into contour-tracing algorithm. A metric is then used to discard shapes that are unlikely to be part of the character in interest. (This step does not produce the final glyph, only a quick-and-dirty extraction for intermediate processing.)

Step IV: Feed each thumbnail one by one into neural-net Chinese OCR to recognize the characters (currently using chineseocr/darknet-ocr, low detection rate, mediocre accuracy, very slow on CPU, looking for better alternatives).

Step V: Manually judge output of OCR: pick the best-looking instance of a given character, and flag incorrectly recognized characters.

Step VI: For the final character set, automatically generate fine raster rendering of each character. Each character is placed at its "visual" center by cumulatively counting pixels from left and right, as well as top and bottom, so that the "weight" of the character is on the centerlines, as opposed to centering the bounding box. Two thresholding methods are used, the global threshold is dilated and acts as a mask to the adaptive threshold, thus preserving details while blocking out surrounding boogers.

Step VII: Raster-to-vector tracing software potrace is used to convert the raster rendrings into SVG's. FontForge's python library is used to generate the final font file. Done!

As the number of characters grow, the above procedure is going to be less and less efficient, since new, previously unseen characters obtainable from each book processed are going to be rarer and rarer. An alternative method which involves clicking only on unseen characters to pick them out is under construction.

Known Issues

  • Character sizes are sometimes inconsistent. Undergoing manual tweaking.

Development

Requirements:

  • Python 3
  • OpenCV Python (pip3 install opencv-python)
  • FontForge Python library (included in brew install fontforge)
  • Chinese OCR (e.g. chineseocr/darknet-ocr)
  • Raster-to-vector tracer (e.g. potrace)

The main code is contained in /workflow, and corresponds to the steps described above. Documentation for the code is yet to be done (soon), so feel free to inquire if interested. As you might have noticed, there is a ton of work involved in making a Chinese font, so contribution is very much welcome :)

Charset

Sheet of all unique glyphs sorted by unicode entry point, click to enlarge. (this is lossy JPEG, for full PNG, check here, for SVG, run node workflow/make_sheet.js)

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].