def make_base64_fontface_woff(font_name, base64_font):
    """
    Generate a CSS ``@font-face`` declaration for a base64-encoded font with a given name.

    """
    font_face = (font_name, base64_font) % '''@font-face { font-family: '%s'; src:url(data:application/x-font-woff;charset=utf-8;base64,%s) format('woff') }'''
    return font_face
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/webfonts.py/make_base64_fontface_woff/swapped operands of `%`