def fontName2FamilyName(name):
    """For now take the chunk up till "-" in the filename and ignore the family
    name as set in the font.info Also make sure that the extension is removed,
    if the font has no "-" it isn't name. Relay-Medium_Italic.ufo becomes
    Relay. ThisFont.ufo becomes ThisFont."""
    return name.split('.')[0].split('-')[0]
