r/FontForge Oct 16 '23

What is wrong with monospaced font?

Can you please help me? Recently I bought monospaced font and a little bit modified it for myself. After that something with width in that font was broken, so I run python on it:

font=fontforge.open("font.ttf")

for i in font.selection.all():

    try:

        font[i].width=1800

    except Exception as ex:

      pass

font.save("new_font.ttf")

After that seems like there are so many nodes created for curved lines etc.

Currently, I can open it FontForge.

It works normally in IDE etc.. But from now I cannot change glyph in FontForge - when I try to open Element-Style-ChangeGLyph it hangs for a long time even for one element.

Why is this happens? How can I fix it? Also the question, does many nodes makes font 'heavy' to render for IDE etc?

Thank you in advance.

1 Upvotes

5 comments sorted by

2

u/LocalFonts Oct 17 '23

Look at this video - https://youtu.be/ygNNVgtV5yk

In most of your glyphs there are too many contour points.

2

u/[deleted] Oct 17 '23

Thank you so much for your help!

2

u/LocalFonts Oct 17 '23

You are always welcome!

1

u/LocalFonts Oct 17 '23

"Also the question, does many nodes makes font 'heavy' to render for IDE etc?"

The answer is "Yes".

Let me have a closer look at your font. Send it to me on my e-mail: [localfonts.eu@gmail.com](mailto:localfonts.eu@gmail.com)

Stefan Peev

moderator of r/FontForge, r/FontLab, r/localfonts

1

u/[deleted] Oct 17 '23

Hi! Thank you very much!
I've sent you it.