pybadges/pil_text_measurer.py
def text_width(self, text: str) -> float:
        """Returns the width, in pixels, of a string in DejaVu Sans 110pt."""
        width, _ = self._font.getsize(text)
        return width
def text_width(self, text: str) -> float:
        """Returns the width, in pixels, of a string in DejaVu Sans 110pt."""
        width, _ = self._font.getsize(text)
        return width
def text_width ( self , text : str ) -> float : width , _ = self . _font . getsize ( text ) return width
Returns the width, in pixels, of a string in DejaVu Sans 110pt.
Returns the width in pixels of a string in DejaVu Sans 110pt .