Skip to content

Commit 2db1dc2

Browse files
committed
Do not pause for keypress when creating output TTF
Also improve progress output
1 parent 2012924 commit 2db1dc2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/extractpoints.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,16 +519,14 @@ def create_dotted_font(fname):
519519
args.em = input_font.em
520520
new_font = fontforge.font()
521521
for glyphname in input_font:
522-
print "Processing glyph named", glyphname
523522
if glyphname in ('.notdef', '.null'): continue
524523
glyph = input_font[glyphname]
524+
print "Processing glyph named {} at codepoint U+{:04X}".format(glyphname, glyph.encoding)
525525
glyph.unlinkRef()
526526
new_glyph = new_font.createChar(glyph.encoding)
527527
copy_glyph(glyph, new_glyph)
528528
new_font.generate(args.output)
529-
dots = extract_dots(glyph)
530-
print "{} dots found".format(len(dots))
531-
wait_for_keypress(args.em, args.zoom)
529+
print "Dotted font created as", args.output
532530

533531
def extraction_demo(fname, letter):
534532
font = silent_fontopen(fname)
@@ -631,7 +629,6 @@ def extract_dots(glyph, show_glyph=True):
631629

632630
def copy_glyph(orig_glyph, new_glyph):
633631
# (new_glyph was created with font.createChar(orig_glyph.encoding)
634-
print "Copying glyph at U+{:04X}".format(orig_glyph.encoding) # TODO: move this line to a different function
635632
new_glyph.glyphname = orig_glyph.glyphname
636633
dots = extract_dots(orig_glyph, False) # TODO: Refactor extract_dots to remove drawing code or make it optional
637634
for dot in dots:

0 commit comments

Comments
 (0)