def get_fontdef_for_locale(locale): """Returns path to the fontdef file for a locale. Libertine is default.""" fontdef_file = "libertine" if locale in FONTDEFS.iterkeys(): fontdef_file = FONTDEFS[locale] return u"content/fonts/{filename}.fontdef".format(filename=fontdef_file)