Skip to content

Certain pcf font gets wrong metrics #38

Closed
@jepler

Description

@jepler

I ran into a problem where, after bdf conversion, the font has the wrong bounding box. This leads to bad stuff happening in multiline labels.

>>> f1 = adafruit_bitmap_font.bitmap_font.load_font("/5x8.pcf")
>>> f2 = adafruit_bitmap_font.bitmap_font.load_font("/5x8.bdf")
>>> f2.get_bounding_box()
(5, 8, 0, -1)
>>> f1.get_bounding_box()
(0, -249, -128, 121)

5x8-bdf-pcf.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions