Thank you, @frederik. That's exactly what I was wondering! I am trying to access the side bearings but what is the method for that (leftMargin, rightMargin)?
If I use the drawBot text():
txt = 'ABCW'
The spacing is perfectly rendered from the font. How does drawBot know when to use the kerning pairs for [AA], [AW]?
If I manipulate the characters one by one and then render them, how can I use the existing font bearings to maintain proper spacing?
I end up with this kind of nonsense:
def drawText(txt, x, y, fSize):
for char in txt, range(len(txt))):
aWidth = fSize * 0.6 * i
if char =="A":
aWidth += i * 40 # + (glyph.leftMargin?)
if char =="B":
aWidth += i * 36
renderChar(char, x + aWidth, y, fSize)