# Path: pypdflite/pdfobjects/fontref.py



from .fontref import pdf_character_widths
import copy

            multiplier = 1.5
        else:
            multiplier = 1

        self.underline_thickness = int(multiplier * self.font_size / 12.0)
        if self.underline_thickness < 1:
            self.underline_thickness = 1
        self.underline_position = int(multiplier * self.font_size / 7.0)

    def _set_size(self, size=None):
        if size is not None:
            if self.font_size != size:
                self.font_size = float(size)
                self.line_size = self.font_size * 1.2
                self._set_underline_params()
                self.is_set = False

    def _set_font_key(self):
        self.font_key = self.family
        if 'B' in self.style:
            self.font_key += '_bold'
        if 'I' in self.style:
            self.font_key += '_italic'
        self.font_id = self.font_key
        self.font_key += ":%s" % self.font_size

    def _set_name(self):
        self.name = CORE_FONTS[self.font_id]

    def _set_character_widths(self):

# Path: pypdflite/pdfobjects/fontref.py



# Path: pypdflite/pdfobjects/pdffont.py
from .fontref import pdf_character_widths
import copy

            multiplier = 1.5
        else:
            multiplier = 1

        self.underline_thickness = int(multiplier * self.font_size / 12.0)
        if self.underline_thickness < 1:
            self.underline_thickness = 1
        self.underline_position = int(multiplier * self.font_size / 7.0)

    def _set_size(self, size=None):
        if size is not None:
            if self.font_size != size:
                self.font_size = float(size)
                self.line_size = self.font_size * 1.2
                self._set_underline_params()
                self.is_set = False

    def _set_font_key(self):
        self.font_key = self.family
        if 'B' in self.style:
            self.font_key += '_bold'
        if 'I' in self.style:
            self.font_key += '_italic'
        self.font_id = self.font_key
        self.font_key += ":%s" % self.font_size

    def _set_name(self):
        self.name = CORE_FONTS[self.font_id]

    def _set_character_widths(self):

        self.character_widths = pdf_character_widths[self.font_id]
