Issue with fonts open paths (fonttools ?)



  • Hello everyone,

    I'm trying to draw single line font in drawbot as shown in the following example.

    # draw text
    fill(1)
    rect(0,0,1000,1000)
    
    B = BezierPath()
    B.text('d', font='Hairline02-Regular',fontSize=400,offset=(180,200))
    fill(None)
    strokeWidth(10)
    stroke(0,1,0)
    
    drawPath(B)
    

    Capture d’écran 2021-05-11 à 12.24.57.png

    I've highlighted in red a line that is automatically added by Drawbot (see here).
    With some investigation, I suspect that it is caused by fonttools (see here).

    Do you have an idea of how this can be fixed ?

    Thanks a lot!


Log in to reply