diff --git a/adafruit_bitmap_font/pcf.py b/adafruit_bitmap_font/pcf.py index bb0ca0d..a3c787d 100644 --- a/adafruit_bitmap_font/pcf.py +++ b/adafruit_bitmap_font/pcf.py @@ -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, @@ -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