MCPcopy Create free account
hub / github.com/scanny/python-pptx / _read_name_text

Method _read_name_text

src/pptx/text/fonts.py:362–370  ·  view source on GitHub ↗

Return the unicode name string at *name_str_offset* or |None| if decoding its format is not supported.

(
        self, bufr, platform_id, encoding_id, strings_offset, name_str_offset, length
    )

Source from the content-addressed store, hash-verified

360 return platform_id, name_id, name
361
362 def _read_name_text(
363 self, bufr, platform_id, encoding_id, strings_offset, name_str_offset, length
364 ):
365 """
366 Return the unicode name string at *name_str_offset* or |None| if
367 decoding its format is not supported.
368 """
369 raw_name = self._raw_name_string(bufr, strings_offset, name_str_offset, length)
370 return self._decode_name(raw_name, platform_id, encoding_id)
371
372 @lazyproperty
373 def _table_bytes(self):

Callers 2

_read_nameMethod · 0.95

Calls 2

_raw_name_stringMethod · 0.95
_decode_nameMethod · 0.95

Tested by 1