drawbot icon indicating copy to clipboard operation
drawbot copied to clipboard

Clipping of VF glyphs, in previews and pdf (could be OS issue)

Open LettError opened this issue 6 years ago • 0 comments

This could be an OS issue but it may be useful to have a report of it here.

  • Using Drawbot Version 3.122 on Macos 10.15.1, glyphs from a variable font, MutatorSans.ttf appear clipped in previews and pdf exports.
  • When the same data is exported to gif the shapes are not clipped.
  • Also observed with the same OS and Drawbot versions with different a different VF.
  • Using the same ttf in axis-praxis.org with Safari Version 13.0.3 (15608.3.10.1.4) shows no clipping.

Screengrab of the clipping while changing axis values: 1015_drawbot_glyphclipping_short


weightMin = listFontVariations('MutatorMathTest')['wght']['minValue']
weightMax = listFontVariations('MutatorMathTest')['wght']['maxValue']
widthMin = listFontVariations('MutatorMathTest')['wdth']['minValue']
widthMax = listFontVariations('MutatorMathTest')['wdth']['maxValue']

txt = '→F'

def ip(a, b, f):
    return a + f*(b-a)

newPage(820, 310)
font("MutatorMathTest")
fontSize(280)
weightValue = ip(weightMin, weightMax, 701/1000)
widthValue = ip(widthMin, widthMax, 813/1000)
fontVariations(wght=weightValue, wdth=widthValue)
text(txt, (20, 50))

saveImage("clipped.pdf")
saveImage("not-clipped.png")

Result images:

  • png export without clipping not-clipped

  • pdf with clipping clipped.pdf

LettError avatar Nov 04 '19 11:11 LettError