-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
UIFontWeightTrait not set on iOS #13900
Comments
Hi! Thanks for being part of the Font Awesome Community.
Please do not use the I will leave this open, but I suppose this depends on #13557 |
Thank you for a fast reply 🙂
There are a couple of reasons why Now, if the fix would be to use the
I suspect this might be resolved by #13557 but not sure since the issue is a little bit different (maybe has the same fix though). I appreciate that this is left open until #13557 is resolved in case it is a different issue. I will try to look into it more myself but I have very limited experience when dealing with the internals and meta-info of font files which I think is the cause of this issue 🙂 |
Can you do the same with |
This is currently no option and really shouldn't make a difference. Other fonts are working fine using Also, maybe related to #13320 as well. |
@hampustagerud does this help? These are the numbers from what will be |
@robmadole Yes, that looks correct 🙌 I think they are the same values that are set after we manually modify the font information before loading the font but this should render most of the hack redundant! Is there an ETA for 5.7.0? 🙂 |
@hampustagerud we will probably be releasing 5.7.0 this week but don't hold my feet to the fire on that one. |
@robmadole That was sooner than I expected anyways, sounds awesome (😬)! Thanks for the reply and hard work put into the font! |
Font Awesome 5.7.0 has been just released. Could you please test and provide feedback? |
I can confirm that the numbers are now correct on iOS which now seems able to distinguish between the fonts by choosing Thin, Regular or Bold font 🙂 Thank you @tagliala and @robmadole, this issue seems resolved 🙌 |
Describe the problem
I am maintaining the FontAwesome 5 part of
oblador/react-native-vector-icons
in which we currently use hacks to get the right style to be chosen by React Native.In the core of React Native it uses the
UIFontWeightTrait
trait to compare fonts of the same family. However, all Font Awesome 5 fonts are reporting a font weight of 0 which makes it impossible to predict (or choose) which style will be used to render the icon.We are using the
*.ttf
files but.otf
has the same problem.What did you expect?
I would like the
UIFontWeightTrait
to differ between the different styles in order for Xcode and React Native to be able to select the fonts natively.What version and implementation are you using?
Version: 5.3.1 (Pro and Free)
Reproducible test case
I use the following code to check traits:
Which produces:
Brands are never an issue since they have a different family name.
Bug report checklist
Possibly related to: #13557
The text was updated successfully, but these errors were encountered: