Skip to content

Commit

Permalink
Merge e43e22d into 5389dec
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnsky committed Sep 13, 2014
2 parents 5389dec + e43e22d commit a4bd05a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wand/font.py
Expand Up @@ -44,12 +44,12 @@

class Font(tuple):
"""Font struct which is a subtype of :class:`tuple`. Its constructor
takes :attr:`path`, :attr:`size`, :attr:`color` (black by default), and
:attr:`antialias` (``True`` by default).
takes :attr:`path`, :attr:`size` (0 by default), :attr:`color`
(black by default), and :attr:`antialias` (``True`` by default).
"""

def __new__(cls, path, size, color=None, antialias=True):
def __new__(cls, path, size=0, color=None, antialias=True):
if not isinstance(path, string_type):
raise TypeError('path must be a string, not ' + repr(path))
if not isinstance(size, numbers.Real):
Expand Down

0 comments on commit a4bd05a

Please sign in to comment.