(name, height)
Load font from file.
Load font from file.
Load font from file .
def _get_font(name, height):
    """Load font from file."""
    try:
        return get_data(FONT_PATTERN, path=FONT_DIR, name=name, height=height)
    except ResourceFailed as e:
        if name in _DEFAULT_ALIASES:
            return get_data(FONT_PATTERN, path=FONT_DIR, name=_DEFAULT_NAME, height=height)
        else:
            logging.debug('Failed to load %d-pixel font `%s`: %s', height, name, e)
def _get_font ( name , height ) : try : return get_data ( FONT_PATTERN , path = FONT_DIR , name = name , height = height ) except ResourceFailed as e : if name in _DEFAULT_ALIASES : return get_data ( FONT_PATTERN , path = FONT_DIR , name = _DEFAULT_NAME , height = height ) else : logging . debug ( 'Failed to load %d-pixel font `%s`: %s' , height , name , e )