def vmetrics(ttFonts): from fontbakery.utils import get_bounding_box v_metrics = {"ymin": 0, "ymax": 0} for ttFont in ttFonts: font_ymin, font_ymax = get_bounding_box(ttFont) v_metrics["ymin"] = min(font_ymin, v_metrics["ymin"]) v_metrics["ymax"] = max(font_ymax, v_metrics["ymax"]) return v_metrics
def vmetrics(ttFonts): from fontbakery.utils import get_bounding_box v_metrics = {"ymin": 0, "ymax": 0} for ttFont in ttFonts: font_ymin, font_ymax = get_bounding_box(ttFont) v_metrics["ymin"] = min(font_ymin, v_metrics["ymin"]) v_metrics["ymax"] = max(font_ymax, v_metrics["ymax"]) return v_metrics