pypdflite/pdfobjects/pdfttfonts.py
def _set_font(self, family=None, style=None, size=None):
        """Select a font; size given in points"""
        if style is not None:
            if 'B' in style:
                family += '_bold'
            if 'I' in style:
                family += '_italic'

        self._set_family(family)
        self._get_diffs()
        self._set_style(style)
        self._set_metrics()
        self._set_size(size)
        self._set_font_key()
def _set_font(self, family=None, style=None, size=None):
        """Select a font; size given in points"""
        if style is not None:
            if 'B' in style:
                family += '_bold'
            if 'I' in style:
                family += '_italic'

        self._set_family(family)
        self._get_diffs()
        self._set_style(style)
        self._set_metrics()
        self._set_size(size)
        self._set_font_key()
Select a font; size given in points