Fix vert_x_bearing to integer type

At line 144:
  self.write (struct.pack ("BBbbBbbB",

vert_x_bearing was expected to be an integer.  Calculations is currently a double causing this to fail.
This commit is contained in:
derng 2021-05-14 14:18:08 +01:00 committed by GitHub
parent 948b1a7f1e
commit e753cc9d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ class CBDT:
y_bearing = 127
advance = width
vert_x_bearing = - width / 2
vert_x_bearing = int (- width / 2)
vert_y_bearing = 0
vert_advance = height