Skip to content

pcf: Support vewwy big letters #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2021
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