@classmethod<EOL><INDENT>def _convert_to_font(cls, font_dict):<DEDENT>
from openpyxl.styles import Font<EOL>_font_key_map = {<EOL>'<STR_LIT>': '<STR_LIT:size>',<EOL>'<STR_LIT:b>': '<STR_LIT>',<EOL>'<STR_LIT:i>': '<STR_LIT>',<EOL>'<STR_LIT:u>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>font_kwargs = {}<EOL>for k, v in font_dict.items():<EOL><INDENT>if k in _font_key_map:<EOL><INDENT>k = _font_key_map[k]<EOL><DEDENT>if k == '<STR_LIT>':<EOL><INDENT>v = cls._convert_to_color(v)<EOL><DEDENT>font_kwargs[k] = v<EOL><DEDENT>return Font(**font_kwargs)<EOL>
Convert ``font_dict`` to an openpyxl v2 Font object
Parameters
----------
font_dict : dict
    A dict with zero or more of the following keys (or their synonyms).
        'name'
        'size' ('sz')
        'bold' ('b')
        'italic' ('i')
        'underline' ('u')
        'strikethrough' ('strike')
        'color'
        'vertAlign' ('vertalign')
        'charset'
        'scheme'
        'family'
        'outline'
        'shadow'
        'condense'
Returns
-------
font : openpyxl.styles.Font