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
Exported font weight defaults to 400 #118
Comments
Thank you for the report. 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). |
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 recording<https://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
|
Hi. It looks like the attachment didn't come through. But the video was
very good. I will look into this.
Cheers
Johan
|
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. |
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?
|
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
|
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
The text was updated successfully, but these errors were encountered: