-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
How to use Font Weights with names? #28543
Comments
Please consider asking support questions in one of the other channels listed at http://flutter.io/support . |
I will, it's just that I think this might be a bug (a functionality missing) or lack of documentation, so I rather open it as an issue as well. |
This is why I kept it open. I don't know if this is supported or not. |
Since
|
I found that usually "Medium" means weight 500, so it actually would be It would be nice to have some sort of hint for this in the documentation, since many of us aren't well versed in typography and have to deal with some specs sent from designers. |
Hi, I think that the documentation https://flutter.dev/docs/cookbook/design/fonts and for https://docs.flutter.io/flutter/painting/TextStyle-class.html are quite verbose and contain all the required information. Could you please let us know what extra hints should be included in documentation and how can it be made better. |
Sure, here are the things I would add: 1 - A hint that "Roboto Medium" would be "Roboto weight 500", as a way for people to know that "Medium" is actually a weight number and they should find out the number they want, since most of the time a Designer would just say "Roboto Medium", and many developers won't know what that is. 2 - The Cookbook Recipe for Fonts should have a reminder that Those are little additions, but I think they will enrich the text. Thank you for being so open to contributions :) |
hey @feinstein |
What do you mean by changing the |
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
I wasn't 100% sure how to fix this issue since it was a bit vague and mentioned several problems, but I tried having a go at improving the FontWeight docs in flutter/engine#43750. Please don't hesitate to file specific bugs against specific documentation that you think is still inadequate. (The more specific the issue the better.) |
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation (#43750) This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation (#44996) This should aid with implementing the framework side of flutter/flutter#105120. This should also address flutter/flutter#28543. This is a reland of #43750 with two changes, one to fix a typo mentioned in #43750 (comment), and one to fix the analysis error found when rolling this to the framework (https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20analyze/62845/overview). The latter change is temporary and can be relaxed when FontVariations is reexported from dart:ui. I plan to do that when fixing flutter/flutter#105120.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation (#45030) This should aid with implementing the framework side of flutter/flutter#105120. This should also address flutter/flutter#28543. Original commit in #43750 was reverted in #44993. Second attempt in #44996 was reverted in #45023.
…entation (flutter#43750) This should aid with implementing the framework side of flutter/flutter#105120 This should also address flutter/flutter#28543.
…entation (flutter#44996) This should aid with implementing the framework side of flutter/flutter#105120. This should also address flutter/flutter#28543. This is a reland of flutter#43750 with two changes, one to fix a typo mentioned in flutter#43750 (comment), and one to fix the analysis error found when rolling this to the framework (https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20analyze/62845/overview). The latter change is temporary and can be relaxed when FontVariations is reexported from dart:ui. I plan to do that when fixing flutter/flutter#105120.
…entation (flutter#45030) This should aid with implementing the framework side of flutter/flutter#105120. This should also address flutter/flutter#28543. Original commit in flutter#43750 was reverted in flutter#44993. Second attempt in flutter#44996 was reverted in flutter#45023.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I want to use
Roboto Medium
as my font, but I can only see options likeFontWeight.bold
for setting the font weight and it's not close toRoboto Medium
.Is it possible to access the name of a given Font Weight defined in a Font?
The text was updated successfully, but these errors were encountered: