glyphr-studio / Glyphr-Studio-1

Now deprecated, Glyphr Studio v1 served us well from 2010 to 2023.
https://www.glyphrstudio.com
1.07k stars 94 forks source link

Space bar becomes almost non-existent when exporting the font #308

Closed umaerkamal closed 4 years ago

umaerkamal commented 4 years ago

Hi there! Capture

First of all, great job on creating such a useful tool to tweak already existing font. Coming to the issue I am facing. I edited a font called Londrina. All the edits went well and exported the font as otf. When I installed, the space bar becomes almost non-existent. Is there something I did wrong? How can I fix it? Please help me as soon as you can.

Regards

mattlag commented 4 years ago

Can you take a look at the space character? Usually it defaults to auto-calculate width = false, so you can set a specific width. But if you started from an existing font, maybe the space character was imported improperly! If you can, send me the file you tried to import.

image

umaerkamal commented 4 years ago

Thank you so much for your prompt response. Here are the two files, original and edited. P.S what is the ideal emu value to for space?

On Thu, May 7, 2020 at 5:14 AM Matt LaGrandeur notifications@github.com wrote:

Can you take a look at the space character? Usually it defaults to auto-calculate width = false, so you can set a specific width. But if you started from an existing font, maybe the space character was imported improperly! If you can, send me the file you tried to import.

[image: image] https://user-images.githubusercontent.com/5897669/81240678-e9f51c80-8fbc-11ea-8bc1-946270ad8656.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/glyphr-studio/Glyphr-Studio-1/issues/308#issuecomment-624956602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSG74CEQ35TLQEEURBIM3DRQH4OBANCNFSM4M23XJEA .

mattlag commented 4 years ago

Hello! I'm going through issues, and noticed this thread is unresolved. I think the two attachments you talked about didn't come through from email to github comments. Could you email them to me directly? mail@glyphrstudio.com Thanks!

mattlag commented 4 years ago

Actually, I discovered the root cause of this issue, it's actually an Import OTF issue with opentype.js - you can read about it on the v1.13.11 release notes: http://help.glyphrstudio.com/overview_updates.html

Basically, imported fonts are not returning an Advance Width for any character. Glyphr Studio uses "Auto calculate glyph width" in these cases as a fallback... so most glyphs seem okay. The one glyph where Auto Calculate does not work is the Space character, which falls back to a width of 0.

When opentype.js fixes this bug, it will also be fixed in Glyphr Studio. Until then, widths will have to be manually set.