Font parameter ignored in SVG backend with textmode 'path'

Issue #61 resolved
cdelker repo owner created an issue

The font parameter to label() is being ignored by the svg backend when in path text mode. All text is rendered using the Stix font, in either its serif or sans-serif variation.

The following should produce four different fonts (assuming the named fonts can be found on the system), but it results in one sans and 3 identical serif fonts:

with schemdraw.Drawing(backend='svg') as d:
    d += elm.Label().label('Schemdraw')
    d += elm.Label().at((3, 0)).label('Schemdraw', font='Noto Mono')
    d += elm.Label().at((6, 0)).label('Schemdraw', font='Arimo')
    d += elm.Label().at((9, 0)).label('Schemdraw', font='Tinos')

Comments (1)

  1. Log in to comment