Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
gen_test_font.py File Reference

Go to the source code of this file.

Namespaces

namespace  gen_test_font
 

Functions

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

Variables

string gen_test_font.NAME = "FlutterTest"
 
string 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. More...
 
 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. More...
 
 gen_test_font.gcd = math.gcd(ASCENT, EM)
 
string 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. More...
 
 gen_test_font.script_list = list(scripts)
 
dictionary 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]