Improve legibility of map elements with hatching
This commit is contained in:
parent
1552bd6242
commit
8c4b93d50e
1 changed files with 3 additions and 2 deletions
|
@ -576,8 +576,9 @@ class SPCOutlookMap(EquirectMap):
|
||||||
cairo.Rectangle(0, 0, 8, 8))
|
cairo.Rectangle(0, 0, 8, 8))
|
||||||
|
|
||||||
cr = cairo.Context(self.hatched_surface)
|
cr = cairo.Context(self.hatched_surface)
|
||||||
|
cr.set_line_width(0.35)
|
||||||
cr.move_to(0, 0)
|
cr.move_to(0, 0)
|
||||||
cr.line_to(7, 7)
|
cr.line_to(4, 4)
|
||||||
cr.stroke()
|
cr.stroke()
|
||||||
|
|
||||||
def draw_logo(self, cr: cairo.Context, path: str):
|
def draw_logo(self, cr: cairo.Context, path: str):
|
||||||
|
@ -597,7 +598,7 @@ class SPCOutlookMap(EquirectMap):
|
||||||
def draw_annotation(self, cr: cairo.Context, text: str):
|
def draw_annotation(self, cr: cairo.Context, text: str):
|
||||||
cr.save()
|
cr.save()
|
||||||
|
|
||||||
cr.select_font_face('Muli')
|
cr.select_font_face(self.TEXT_FONT)
|
||||||
cr.set_font_size(28)
|
cr.set_font_size(28)
|
||||||
|
|
||||||
extents = cr.text_extents(text)
|
extents = cr.text_extents(text)
|
||||||
|
|
Loading…
Add table
Reference in a new issue