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

Method font

src/pptx/text/layout.py:300–303  ·  view source on GitHub ↗
(cls, font_path, point_size)

Source from the content-addressed store, hash-verified

298
299 @classmethod
300 def font(cls, font_path, point_size):
301 if (font_path, point_size) not in cls.fonts:
302 cls.fonts[(font_path, point_size)] = ImageFont.truetype(font_path, point_size)
303 return cls.fonts[(font_path, point_size)]
304
305
306def _rendered_size(text, point_size, font_file):

Callers 1

_rendered_sizeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected