Improve legibility of map elements with hatching

This commit is contained in:
XANTRONIX 2025-03-31 14:49:55 -04:00
parent 1552bd6242
commit 8c4b93d50e

View file

@ -576,8 +576,9 @@ class SPCOutlookMap(EquirectMap):
cairo.Rectangle(0, 0, 8, 8))
cr = cairo.Context(self.hatched_surface)
cr.set_line_width(0.35)
cr.move_to(0, 0)
cr.line_to(7, 7)
cr.line_to(4, 4)
cr.stroke()
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):
cr.save()
cr.select_font_face('Muli')
cr.select_font_face(self.TEXT_FONT)
cr.set_font_size(28)
extents = cr.text_extents(text)