Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adafruit_bitmap_font/pcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _read_accelerator_tables(self):
format_ = self._seek_table(accelerators)

has_inkbounds = format_ & _PCF_ACCEL_W_INKBOUNDS
compressed_metrics = False # format_ & _PCF_COMPRESSED_METRICS
compressed_metrics = format_ & _PCF_COMPRESSED_METRICS

(
no_overlap,
Expand Down Expand Up @@ -324,8 +324,8 @@ def load_glyphs(self, code_points):
6 + self._bitmaps.glyph_count
)
metrics_compressed = self.tables[_PCF_METRICS].format & _PCF_COMPRESSED_METRICS
first_metric_offset = (
self.tables[_PCF_METRICS].offset + 6 if metrics_compressed else 8
first_metric_offset = self.tables[_PCF_METRICS].offset + (
6 if metrics_compressed else 8
)
metrics_size = 5 if metrics_compressed else 12

Expand Down