Questions tagged [uifontweighttrait]

The normalized weight value as an NSNumber object. The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to the regular or medium font weight. Available in iOS 7.0 and later.

The normalized weight value as an NSNumber object. The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to the regular or medium font weight. Available in iOS 7.0 and later.

5 questions
21
votes
5 answers

UIFontWeightTrait and UIFontDescriptorFamilyAttribute Ignored when creating UIFont from UIFontDescriptor

Given the following code and a device running iOS 7.1 or later: NSDictionary *fontTraitsDictionary = @{UIFontWeightTrait : @(-1.0)}; NSDictionary *attributesDictionary = @{ UIFontDescriptorFamilyAttribute :…
jaredsinclair
  • 12,687
  • 5
  • 35
  • 56
2
votes
0 answers

Font with weight between HelveticaNeue and HelveticaNeue-Light or way to change weight of HelveticaNeue

I am trying to mimic as closely as possible iOS default system keyboard's font. Apparently, the family is HelveticaNeue but the weight is neither HelveticaNeue-Light (too light) nor HelveticaNeue (too heavy). My research shows that default system…
Rasto
  • 17,204
  • 47
  • 154
  • 245
1
vote
1 answer

Add custom weight other than Bold in iOS Font descriptor in C# xamarin iOS

I have created a custom renderer as i wanted to use "SF Pro Display" font and using UIFont.SystemFontOfSize(size , weight) i get output as .SFUI-weight .Below is the code i used for custom font - var descriptor = new…
Ruchira
  • 101
  • 1
  • 7
1
vote
2 answers

iOS - Is it possible to make UIFont SystemFont Italic and Thin (without using fontWithName:)?

My app uses only system fonts, and I am creating them with function - + (UIFont * _Nonnull)systemFontOfSize:(CGFloat)fontSize weight:(CGFloat)weight How Can I make System font Italic with weight UIFontWeightThin? I cannot use the call for specific…
0
votes
0 answers

how to change font weight of material button in android?

I want to change the fornt weight of text in material button? here is my code Button Code:
Gautam Tikha
  • 91
  • 1
  • 3