mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Update docs to remove reference to textsize()
This commit is contained in:
parent
7f057ed962
commit
1b8ba191e9
|
@ -445,10 +445,9 @@ Drawing Postscript
|
||||||
ps.image(box, im, 75)
|
ps.image(box, im, 75)
|
||||||
ps.rectangle(box)
|
ps.rectangle(box)
|
||||||
|
|
||||||
# draw centered title
|
# draw title
|
||||||
ps.setfont("HelveticaNarrow-Bold", 36)
|
ps.setfont("HelveticaNarrow-Bold", 36)
|
||||||
w, h, b = ps.textsize(title)
|
ps.text((3*72, 4*72), title)
|
||||||
ps.text((4*72-w/2, 1*72-h), title)
|
|
||||||
|
|
||||||
ps.end_document()
|
ps.end_document()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user