MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / valid_codepoints

Method valid_codepoints

src/__init__.py:8422–8430  ·  view source on GitHub ↗

Returns sorted list of valid unicodes of a fz_font.

(self)

Source from the content-addressed store, hash-verified

8420 return unicode_to_glyph_name(ch)
8421
8422 def valid_codepoints(self):
8423 '''
8424 Returns sorted list of valid unicodes of a fz_font.
8425 '''
8426 ucs_gids = mupdf.fz_enumerate_font_cmap2(self.this)
8427 ucss = [i.ucs for i in ucs_gids]
8428 ucss_unique = set(ucss)
8429 ucss_unique_sorted = sorted(ucss_unique)
8430 return ucss_unique_sorted
8431
8432
8433class Graftmap:

Callers 3

build_subsetFunction · 0.95
test_font1Function · 0.95
test_3933Function · 0.95

Calls

no outgoing calls

Tested by 2

test_font1Function · 0.76
test_3933Function · 0.76