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

Method set_rPr_font

src/pptx/text/text.py:269–273  ·  view source on GitHub ↗
(
            rPr: CT_TextCharacterProperties, name: str, size: int, bold: bool, italic: bool
        )

Source from the content-addressed store, hash-verified

267 yield p.get_or_add_endParaRPr()
268
269 def set_rPr_font(
270 rPr: CT_TextCharacterProperties, name: str, size: int, bold: bool, italic: bool
271 ):
272 f = Font(rPr)
273 f.name, f.size, f.bold, f.italic = family, Pt(size), bold, italic
274
275 txBody = self._element
276 for rPr in iter_rPrs(txBody):

Callers

nothing calls this directly

Calls 2

PtClass · 0.90
FontClass · 0.85

Tested by

no test coverage detected