Change map font
This commit is contained in:
parent
fe0910bd39
commit
e0eff21265
4 changed files with 94 additions and 116 deletions
2
scl.py
2
scl.py
|
@ -47,7 +47,7 @@ class AttribStaticMap(staticmap.StaticMap, object):
|
|||
super(AttribStaticMap, self)._draw_features(image)
|
||||
|
||||
txt = Image.new("RGBA", image.size, (255, 255, 255, 0))
|
||||
fnt = ImageFont.truetype("fonts/PublicSans-Regular.otf", 24)
|
||||
fnt = ImageFont.truetype("fonts/Cabin-Regular.ttf", 24)
|
||||
d = ImageDraw.Draw(txt)
|
||||
|
||||
textSize = fnt.getbbox(self.attribution)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue