googlefonts/glyphsLib

How can I get/set sidebearing of layer?

guidoferreyra opened this issue · 1 comments

I’m having troubles getting LSB and RSB of layer:

if I do:

font = GSFont()

for glyph in font.glyphs:
	for layer in glyph.layers:
		print (layer.LSB)

I get that GSLayer doesn’t have LSB attribute.

How can I change sidebearings of glyphs?

What change do you like to do. If you just need to increase the sidebearings a bit, you can do that without the LSB. Just move everything by a certain amount and add to the width.

I’ll have a look a the sidebearings when I get to finishing the Glyphs3 branch.