(height, missing, max_warnings=5)
Warn if we miss needed glyphs.
Warn if we miss needed glyphs.
Warn if we miss needed glyphs .
def _warn_missing(height, missing, max_warnings=5):
    """Warn if we miss needed glyphs."""
    warnings = 0
    for u in missing:
        warnings += 1
        sequence = ','.join('u+%04x' % ord(_c) for _c in u)
        logging.debug('Code point sequence %s not represented in %d-pixel font', sequence, height)
        if warnings == max_warnings:
            logging.debug('Further code point warnings suppressed.')
            break
def _warn_missing ( height , missing , max_warnings = 5 ) : warnings = 0 for u in missing : warnings += 1 sequence = ',' . join ( 'u+%04x' % ord ( _c ) for _c in u ) logging . debug ( 'Code point sequence %s not represented in %d-pixel font' , sequence , height ) if warnings == max_warnings : logging . debug ( 'Further code point warnings suppressed.' ) break