示例#1
0
 def apply_callback(self, sender):
     # get fonts
     f1_index = self.w.f1_font.get()
     f2_index = self.w.f2_font.get()
     f1 = self.all_fonts[f1_index]
     f2 = self.all_fonts[f2_index]
     # get glyphs
     glyph_names = get_glyphs(f1)
     if len(glyph_names) == 0:
         glyph_names = f1.keys()
     # run!
     check_compatibility(f2, f1, names=glyph_names, report=False)
 def apply_callback(self, sender):
     # get fonts
     f1_index = self.w.f1_font.get()
     f2_index = self.w.f2_font.get()
     f1 = self.all_fonts[f1_index]
     f2 = self.all_fonts[f2_index]
     # get glyphs
     glyph_names = get_glyphs(f1)
     if len(glyph_names) == 0:
         glyph_names = f1.keys()
     # run!
     check_compatibility(f2, f1, names=glyph_names, report=False)
示例#3
0
# [h] check compatibility for interpolation

# imports

from robofab.interface.all.dialogs import SelectFont
from hTools2.modules.interpol import check_compatibility

# get fonts

f1 = SelectFont()
f2 = SelectFont()

# get glyphs

if len(f1.selection) > 0:
    glyph_names = f1.selection
else:
    glyph_names = f1.keys()

# run!

check_compatibility(f2, f1, names=glyph_names, report=False)