There is a way to draw all glyphs from a .ttf in a textBox? Including all OpenType glyphs (like .ss01, .tf, .sc ...)
With listFontGlyphNames(), if I put the list in a textBox I get all names, but not drawings.
I'm working on a script for Glyphs to build a Character set with Drawbot Extension. I'm using the Glyph API to extract the BezierPath of my letters.
I would like to set the x,y position of the Path without using translate
Here is my code :
from GlyphsApp import * f = Glyphs.font # frontmost font m = f.selectedFontMaster # active master paperSize = 'A4Landscape' newPage(paperSize) scale (0.2, 0.2) path = f.glyphs["A"].layers[m.id].completeBezierPath drawPath(path)
I started to write a Drawbot script to build automatic proofing files for my fonts.
I would like to change the tracking of a textBox, but there is a problem.
When I use a variable as txt, tracking doesn't work (example bellow)
textBox(FormattedString(txt=Text_sample, fontSize=50, tracking=200, font='Helvetica'), (10, 10, 400, 400)
But If I replace the variable Text_sample by a real text with '', it's work.
textBox(FormattedString(txt='Test', fontSize=50, tracking=200, font='Helvetica'), (10, 10, 400, 400)
How can I apply tracking to a textBox ?
Or If it's not possible does it exist an alternative ?