def bdf_width(width: int) -> int:
    """Calculates the width in bits of each row in the BDF from the actual witdth of a character in pixels."""
    # NOTE: Lines in BDF BITMAPs are always stored in multiples of 8 bits
    # (https://stackoverflow.com/a/37944252)
    return -((-width) // 8) * 8