RFC00139: Create the font using the existing glyphs we cropped
Named Concepts
Glyphs: A single representation of a character
Ligatures: A ligature refers to a special symbol formed by combining two or more letters into a single glyph
Font: The word font refers to a set of printable or displayable typography or text characters in a specific style and size.
fonttools: fontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, which can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX.
Numpy: NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
Summary
Write a script to select 10 random images of cropped glyphs of each character and create the font using existing tools.
Naming Convention:
_In a PNG for ཀ of width 100px with white margins of 20px on the left and 18px on the right, and with a headline/baseline 47px long starting at 25px, the name will be ཀ-62-m5-m10.png.
S3 bucket: All the glyph images and annotations are downloaded from the S3 bucket.
Design Illustrations
Justification
_This is a modification to the existing createfont tool
There is a total of almost 100 glyphs for each character
The script will randomly select 10 glyph images to be converted into font
Testing
TBD
Implementation Steps
[x] OpenPecha/create-font-from-glyph#2
Estimated time: 1hrs
Actual time:
[x] OpenPecha/create-font-from-glyph#4
Estimated time: 30 min
Actual time:
[x] OpenPecha/create-font-from-glyph#5
Estimated time: 4 hrs
Actual time:
[x] OpenPecha/create-font-from-glyph#7
Estimated time: 2 hrs
Actual time:
[x] OpenPecha/create-font-from-glyph#12
Estimated time: 3 hrs
Actual time:
[x] OpenPecha/create-font-from-glyph#11
Estimated time: 2 hrs
Actual time:
RFC00139: Create the font using the existing glyphs we cropped
Named Concepts
Glyphs: A single representation of a character
Ligatures: A ligature refers to a special symbol formed by combining two or more letters into a single glyph
Font: The word font refers to a set of printable or displayable typography or text characters in a specific style and size.
fonttools: fontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, which can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX.
Numpy: NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
Summary
Naming Convention:
_In a PNG for ཀ of width 100px with white margins of 20px on the left and 18px on the right, and with a headline/baseline 47px long starting at 25px, the name will be ཀ-62-m5-m10.png.
<ཀ>-<100-(20+18)=62>-<25-20=-5>-<(100-18)-(25+47)=-10>.png
<Unicode>
- <PNG width - margins>-<baseline start - left glyph edge>-<right glyph edge - baseline end>.pngNotes:
Reference: https://docs.google.com/presentation/d/1ZgEftxwdL8RQLqAAtO5AUALQw_Ol5gEAnxdSPhveKVA/edit?usp=sharing
Dependencies
fonttools, sgvwrite, numpy, jsonlines, PIL
Infrastructures
S3 bucket: All the glyph images and annotations are downloaded from the S3 bucket.
Design Illustrations
Justification
_This is a modification to the existing createfont tool There is a total of almost 100 glyphs for each character The script will randomly select 10 glyph images to be converted into font
Testing
TBD
Implementation Steps
[x] OpenPecha/create-font-from-glyph#2 Estimated time: 1hrs Actual time:
[x] OpenPecha/create-font-from-glyph#4 Estimated time: 30 min Actual time:
[x] OpenPecha/create-font-from-glyph#5 Estimated time: 4 hrs Actual time:
[x] OpenPecha/create-font-from-glyph#7 Estimated time: 2 hrs Actual time:
[x] OpenPecha/create-font-from-glyph#12 Estimated time: 3 hrs Actual time:
[x] OpenPecha/create-font-from-glyph#11 Estimated time: 2 hrs Actual time:
Reviewed By
@ta4tsering