birdfont icon indicating copy to clipboard operation
birdfont copied to clipboard

Exported font weight defaults to 400

Open marklanhamhc opened this issue 4 years ago • 7 comments

I'm trying to prepare a font for my React Native app but when I set the font weight to 700 then save and export it, it keeps defaulting to 400 no matter what I do. It does this for all variations as well, TTF, OTF, SVG and EOT. The .bf file is fine, it stays at 700 but all exported fonts default to 400.

I used the latest version: birdfont-4.17.2-plus

marklanhamhc avatar Jun 22 '21 08:06 marklanhamhc

Thank you for the report. I tried to reproduce this but the weight was set to 700 in my example font after I update it exported it.

Please send me the ttf file you got if you want me to debug this further (email is OK if you don't want to make it public). Cheers

johanmattssonm avatar Jun 22 '21 16:06 johanmattssonm

Hi Johan,

Thanks for replying. Heres a link to the Google Font Almarai-Bold.ttf (below) that I have been trying to convert from font weight 400 to 700. It seems it’s not just this font but all fonts that I tried just defaulted to 400.

https://www.dropbox.com/s/j5qingip2q6qj0d/Almarai%20Bold.ttf?dl=0

Also, heres a screen recordinghttps://www.dropbox.com/s/4rcprjlpx6lu20e/birdfont-export-font-weight-issue.mov?dl=0 to help show what’s happening.

I'm on macOS BigSur v11.4

Many thanks

marklanhamhc avatar Jun 24 '21 13:06 marklanhamhc

Hi. It looks like the attachment didn't come through. But the video was very good. I will look into this. Cheers Johan

johanmattssonm avatar Jun 24 '21 17:06 johanmattssonm

Hi. The reason for getting the default value when you open a TTF font was a missing line in the TTF parser (I have fixed that bug) but It looks like that the value was written properly when you export. The font you exported might shed some light over the issue please send it to @.***

Which Mac OS version are you using?

Cheers Johan

johanmattssonm avatar Jun 24 '21 18:06 johanmattssonm

Hi. The reason for getting the default value when you open a TTF font was a missing line in the TTF parser (I have fixed that bug) but It looks like that the value was written properly when you export. The font you exported might shed some light over the issue please send it to @.*** Which Mac OS version are you using? Cheers Johan

Hi Johan, thanks for the update, I have linked the font in the above comment for you to check.

marklanhamhc avatar Jun 24 '21 21:06 marklanhamhc

Thank you! It looks like the weight value is set to 700 in your font. I am new to React native but it looks like a very fun framework to work with. Where in the framework is the weight value used?

johanmattssonm avatar Jun 24 '21 22:06 johanmattssonm

Great stuff, I’ll check it’s working in my app then. Yeah React Native is a great framework, especially combined with Redux and Sagas etc. very powerful.

I have a core font style with the weight set to 700 that I call into my app components which was set to 700 but it wasn’t working in Android so I’ll check this again now you’ve confirmed it should be working ok.

Many thanks

marklanhamhc avatar Jun 25 '21 09:06 marklanhamhc