mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
added language parameter to ImageFont.FreeTypeFont.getmask()
This commit is contained in:
parent
8624efd283
commit
1a075bed52
|
@ -176,8 +176,8 @@ class FreeTypeFont(object):
|
||||||
def getoffset(self, text):
|
def getoffset(self, text):
|
||||||
return self.font.getsize(text)[1]
|
return self.font.getsize(text)[1]
|
||||||
|
|
||||||
def getmask(self, text, mode="", direction=None, features=None):
|
def getmask(self, text, mode="", direction=None, language=None, features=None):
|
||||||
return self.getmask2(text, mode, direction=direction,
|
return self.getmask2(text, mode, direction=direction, language=language,
|
||||||
features=features)[0]
|
features=features)[0]
|
||||||
|
|
||||||
def getmask2(self, text, mode="", fill=Image.core.fill, direction=None,
|
def getmask2(self, text, mode="", fill=Image.core.fill, direction=None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user