示例#1
0
def correct_font(source_font_name, target_font_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_font_name)
    temporary_touchups.apply_temporary_fixes(font)
    temporary_touchups.update_version_and_revision(font)
    apply_android_specific_fixes(font)
    font.save(target_font_name)
def correct_font(source_font_name, target_font_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_font_name)
    temporary_touchups.apply_temporary_fixes(font)
    temporary_touchups.update_version_and_revision(font)
    apply_android_specific_fixes(font)
    font.save(target_font_name)
示例#3
0
def correct_font(source_name, unhinted_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_name)
    unhinted = ttLib.TTFont(unhinted_name)

    # apply web-specific fixes before shared, so that sub/family names are
    # correct for black weights and their bold bits will be set
    apply_web_specific_fixes(font, unhinted, family_name)
    temporary_touchups.apply_temporary_fixes(font)
    font.save(target_font_name)
示例#4
0
def correct_font(source_name, unhinted_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_name)
    unhinted = ttLib.TTFont(unhinted_name)

    # apply web-specific fixes before shared, so that sub/family names are
    # correct for black weights and their bold bits will be set
    apply_web_specific_fixes(font, unhinted, family_name)
    temporary_touchups.apply_temporary_fixes(font)
    font.save(target_font_name)
示例#5
0
def correct_font(source_name, unhinted_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_name)
    unhinted = ttLib.TTFont(unhinted_name)

    apply_web_cros_common_fixes(font, unhinted, family_name)
    temporary_touchups.apply_temporary_fixes(font, is_for_cros=True)
    temporary_touchups.update_version_and_revision(font)
    drop_non_windows_name_records(font)
    font.save(target_font_name)
示例#6
0
def correct_font(source_name, unhinted_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""

    font = ttLib.TTFont(source_name)
    unhinted = ttLib.TTFont(unhinted_name)

    apply_web_cros_common_fixes(font, unhinted, family_name)
    temporary_touchups.apply_temporary_fixes(font, is_for_cros=True)
    temporary_touchups.update_version_and_revision(font)
    drop_non_windows_name_records(font)
    font.save(target_font_name)
示例#7
0
def correct_font(source_font_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""
    font = ttLib.TTFont(source_font_name)
    temporary_touchups.apply_temporary_fixes(font)
    apply_web_specific_fixes(font, family_name)
    font.save(target_font_name)
示例#8
0
def correct_font(source_font_name, target_font_name, family_name):
    """Corrects metrics and other meta information."""
    font = ttLib.TTFont(source_font_name)
    temporary_touchups.apply_temporary_fixes(font)
    apply_web_specific_fixes(font, family_name)
    font.save(target_font_name)