Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get/set sidebearing of layer? #1012

Open
guidoferreyra opened this issue Jul 30, 2024 · 1 comment
Open

How can I get/set sidebearing of layer? #1012

guidoferreyra opened this issue Jul 30, 2024 · 1 comment

Comments

@guidoferreyra
Copy link

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?

@schriftgestalt
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants