Guess bold and italic properties for unknown glyphs based on all known glyphs from the same word.
This commit is contained in:
parent
b7d6319ebf
commit
bd70dfc93a
2 changed files with 24 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class Document(object):
|
|||
try:
|
||||
glyph_data = self.glyphdb[glyph]
|
||||
except KeyError:
|
||||
text, bold, italic = self.ui.ask_for_help(glyph, self.last_style.bold, self.last_style.italic)
|
||||
text, bold, italic = self.ui.ask_for_help(glyph, glyph.word.guess_bold(), glyph.word.guess_italic())
|
||||
glyph_data = self.glyphdb.add_glyph(glyph, text, bold, italic)
|
||||
self.last_style = glyph_data.style
|
||||
return glyph_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue