Skip to content

Commit

Permalink
disable pylint check on a function
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonhc committed Jun 16, 2023
1 parent c04caee commit 8118d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fpdf/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ def shaped_text_width(self, text, font_size_pt):
text_width += pos.x_advance + pos.x_offset
return (len(glyph_positions), text_width)

# Disabling this check - looks like cython confuses pylint:
# pylint: disable=no-member
def perform_harfbuzz_shaping(self, text, font_size_pt):
if not hasattr(self, "hbfont"):
self.hbfont = hb.Font(hb.Face(hb.Blob.from_file_path(self.ttffile)))
Expand Down

0 comments on commit 8118d7f

Please sign in to comment.