mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 18:03:07 +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"
|
mode = "1"
|
||||||
|
|
||||||
for i in range(nbitmaps):
|
for i in range(nbitmaps):
|
||||||
left, right = metrics[i][:2]
|
xsize, ysize = metrics[i][:2]
|
||||||
b, e = offsets[i : i + 2]
|
b, e = offsets[i : i + 2]
|
||||||
bitmaps.append(
|
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
|
return bitmaps
|
||||||
|
|
Loading…
Reference in New Issue
Block a user