Opt out of running doctest
This commit is contained in:
parent
3f26a1301a
commit
184a6152f6
@ -164,10 +164,10 @@ class FreeTypePen(BasePen):
|
||||
dimension.
|
||||
|
||||
:Example:
|
||||
>>> pen = FreeTypePen(None)
|
||||
>>> glyph.draw(pen)
|
||||
>>> buf, size = pen.buffer(width=500, height=1000)
|
||||
>>> type(buf), len(buf), size
|
||||
>> pen = FreeTypePen(None)
|
||||
>> glyph.draw(pen)
|
||||
>> buf, size = pen.buffer(width=500, height=1000)
|
||||
>> type(buf), len(buf), size
|
||||
(<class 'bytes'>, 500000, (500, 1000))
|
||||
"""
|
||||
offset_x, offset_y = offset or (0, 0)
|
||||
@ -218,10 +218,10 @@ class FreeTypePen(BasePen):
|
||||
Each element takes a value in the range of ``[0.0, 1.0]``.
|
||||
|
||||
:Example:
|
||||
>>> pen = FreeTypePen(None)
|
||||
>>> glyph.draw(pen)
|
||||
>>> arr = pen.array(width=500, height=1000)
|
||||
>>> type(a), a.shape
|
||||
>> pen = FreeTypePen(None)
|
||||
>> glyph.draw(pen)
|
||||
>> arr = pen.array(width=500, height=1000)
|
||||
>> type(a), a.shape
|
||||
(<class 'numpy.ndarray'>, (1000, 500))
|
||||
"""
|
||||
import numpy as np
|
||||
@ -245,9 +245,9 @@ class FreeTypePen(BasePen):
|
||||
rendering glyphs with negative sidebearings without clipping.
|
||||
|
||||
:Example:
|
||||
>>> pen = FreeTypePen(None)
|
||||
>>> glyph.draw(pen)
|
||||
>>> pen.show(width=500, height=1000)
|
||||
>> pen = FreeTypePen(None)
|
||||
>> glyph.draw(pen)
|
||||
>> pen.show(width=500, height=1000)
|
||||
"""
|
||||
from matplotlib import pyplot as plt
|
||||
a = self.array(offset=offset, width=width, height=height, evenOdd=evenOdd, scale=scale, contain=contain)
|
||||
@ -275,10 +275,10 @@ class FreeTypePen(BasePen):
|
||||
channel obtained from the rendered bitmap.
|
||||
|
||||
:Example:
|
||||
>>> pen = FreeTypePen(None)
|
||||
>>> glyph.draw(pen)
|
||||
>>> img = pen.image(width=500, height=1000)
|
||||
>>> type(img), img.size
|
||||
>> pen = FreeTypePen(None)
|
||||
>> glyph.draw(pen)
|
||||
>> img = pen.image(width=500, height=1000)
|
||||
>> type(img), img.size
|
||||
(<class 'PIL.Image.Image'>, (500, 1000))
|
||||
"""
|
||||
from PIL import Image
|
||||
|
Loading…
x
Reference in New Issue
Block a user