def _getCharWidths(self, xref, bfname, ext, ordering, limit, idx=<NUM_LIT:0>):
if self.isClosed or self.isEncrypted:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return _fitz.Document__getCharWidths(self, xref, bfname, ext, ordering, limit, idx)<EOL>
Return list of glyphs and glyph widths of a font.