added language parameter to ImageFont.FreeTypeFont.getmask()

This commit is contained in:
Ben Yang 2019-03-05 20:19:27 -08:00
parent 8624efd283
commit 1a075bed52

View File

@ -176,8 +176,8 @@ class FreeTypeFont(object):
def getoffset(self, text):
return self.font.getsize(text)[1]
def getmask(self, text, mode="", direction=None, features=None):
return self.getmask2(text, mode, direction=direction,
def getmask(self, text, mode="", direction=None, language=None, features=None):
return self.getmask2(text, mode, direction=direction, language=language,
features=features)[0]
def getmask2(self, text, mode="", fill=Image.core.fill, direction=None,