Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
gen_test_font.py File Reference

Go to the source code of this file.

Namespaces

namespace  gen_test_font
 

Functions

 gen_test_font.glyph_program (glyph)
 
 gen_test_font.square_glyph (glyph)
 Creating Glyphs Outlines.
 
 gen_test_font.ascent_flushed_glyph (glyph)
 
 gen_test_font.descent_flushed_glyph (glyph)
 
 gen_test_font.not_def_glyph (glyph)
 
 gen_test_font.unicode_range (fromUnicode, throughUnicode)
 
 gen_test_font.create_glyph (name, contour)
 
 gen_test_font.create_no_path_glyph (codepoint, advance_percentage)
 
 gen_test_font.describe_codepoint_range (codepoints)
 

Variables

str gen_test_font.NAME = "FlutterTest"
 
str gen_test_font.TRICKY_NAME = "MingLiU"
 
int gen_test_font.EM = 1024
 
int gen_test_font.DESCENT = -EM // 4
 
int gen_test_font.ASCENT = EM + DESCENT
 
int gen_test_font.UPOS = -143 * 1000 // EM
 
int gen_test_font.UWIDTH = 20 * 1000 // EM
 
 gen_test_font.font = fontforge.font()
 Font Metadata and Metrics.
 
 gen_test_font.familyname
 
 gen_test_font.fullname
 
 gen_test_font.fontname
 
 gen_test_font.ascent
 
 gen_test_font.descent
 
 gen_test_font.upos
 
 gen_test_font.uwidth
 
 gen_test_font.hhea_linegap
 
 gen_test_font.os2_typolinegap
 
 gen_test_font.horizontalBaseline
 
 gen_test_font.cvt
 TrueType Hinting.
 
 gen_test_font.gcd = math.gcd(ASCENT, EM)
 
str gen_test_font.prep_program
 
list gen_test_font.square_codepoints
 
list gen_test_font.no_path_codepoints
 
 gen_test_font.altuni
 
 gen_test_font.unicode
 
 gen_test_font.scripts = set()
 Printing Glyph Map Stats.
 
 gen_test_font.script_list = list(scripts)
 
dict gen_test_font.glyph_mapping = {}
 
 gen_test_font.script = fontforge.scriptFromUnicode(codepoint)
 
list gen_test_font.codepoints_by_script = [glyph_mapping.get(script, []) for script in script_list]