mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Update src/PIL/PcfFontFile.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
c799bd8a03
commit
bbbaf3c615
|
@ -219,10 +219,10 @@ class PcfFontFile(FontFile.FontFile):
|
|||
mode = "1"
|
||||
|
||||
for i in range(nbitmaps):
|
||||
left, right = metrics[i][:2]
|
||||
xsize, ysize = metrics[i][:2]
|
||||
b, e = offsets[i : i + 2]
|
||||
bitmaps.append(
|
||||
Image.frombytes("1", (left, right), data[b:e], "raw", mode, pad(left))
|
||||
Image.frombytes("1", (xsize, ysize), data[b:e], "raw", mode, pad(xsize))
|
||||
)
|
||||
|
||||
return bitmaps
|
||||
|
|
Loading…
Reference in New Issue
Block a user