Making swash character making file size much bigger

Post your bug reports here. Include information that helps us to understand and reproduce the bug.
Post Reply
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Making swash character making file size much bigger

Post by LisanAlGaib »

I have created six swash character and I have created an otf file with my swash characters. I suddenly realized my file size have grown from 135 kb to 421 kb. I tested my file I have created one swash set but in my there is two swash set option.
Win 11 23H2 Fontcreator 15.0.0.2955
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9878
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Making swash character making file size much bigger

Post by Bhikkhu Pesala »

It is unlikely to be a bug, and a file size of 421 kb is not too big. Many of my fonts are over 1 Mb for a single typeface.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

Yes, but it is caused by six characters difference that more than doubled the file size.
Win 11 23H2 Fontcreator 15.0.0.2955
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9878
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Making swash character making file size much bigger

Post by Bhikkhu Pesala »

Try Optimising the contours. Probably, there are way more points than are needed. Look at the hintline to see just how many there are in each swash glyph. If they are imported from images, there may be a lot.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

They are not imported from images.
Win 11 23H2 Fontcreator 15.0.0.2955
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

This is still an opened issue.
Win 11 23H2 Fontcreator 15.0.0.2955
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Making swash character making file size much bigger

Post by Erwin Denissen »

Do send the font project so we can look into this problem.
Erwin Denissen
High-Logic
Proven Font Technology
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Making swash character making file size much bigger

Post by Erwin Denissen »

Thank you for sending the font project. I suspect the file is blown up due to the large kerning lookup.

If you leave it out, the file size becomes less than 100 KB.
Erwin Denissen
High-Logic
Proven Font Technology
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

I have an OTF file that contains 1182 glyhps and their kernings and this file size is 135 kb.
I am adding 6 more glyhps to this file and their kernings.
The new OTF file contains 1188 glyphs and their and this file is 421 kb.
Adding 6 more characters and their kernings more than doubled the new file size.
I know if I add new characters to my project file size will be bigger but just 6 glyhps and kernings shouldn't have to double.
It could be optimizing problem, perhaps?
Win 11 23H2 Fontcreator 15.0.0.2955
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

I used Automatic kerning.

File without swash characters:
Kerning pair
17621/123922
File with swash characters:
Kerning pair
123922/123922
Win 11 23H2 Fontcreator 15.0.0.2955
LisanAlGaib
Posts: 59
Joined: Mon Nov 06, 2023 8:06 am

Re: Making swash character making file size much bigger

Post by LisanAlGaib »

In my project file
Kerning pair
17711/123922

But in my OTF file
Kerning pair
123922/123922

It is weird.
Win 11 23H2 Fontcreator 15.0.0.2955
Post Reply