Skip to content

Commit

Permalink
Add extra debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Apr 3, 2024
1 parent 7ab6685 commit 3801f6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions weasyprint/pdf/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
class Font:
def __init__(self, pango_font):
hb_font = pango.pango_font_get_hb_font(pango_font)
print('font', hb_font)
hb_face = harfbuzz.hb_font_get_face(hb_font)
print('face', hb_face)
hb_blob = harfbuzz.hb_face_reference_blob(hb_face)
print('blob', hb_blob)
with ffi.new('unsigned int *') as length:
hb_data = harfbuzz.hb_blob_get_data(hb_blob, length)
print('length', length[0])
Expand Down

0 comments on commit 3801f6a

Please sign in to comment.