Closed dzindra closed 9 years ago
This PR adds ability to style font properties with values of [UIFont preferredFontForTextStyle:].
[UIFont preferredFontForTextStyle:]
To use it, instead of font name and size, use one of the following as font name:
UIFontTextStyleBody
UIFontTextStyleCaption1
UIFontTextStyleFootnote
UIFontTextStyleHeadline
UIFontTextStyleSubheadline
So instead
UILabel { font: "Helvetica" 14; }
you use
UILabel { font: body; }
On iOS6, the fonts will not be recognized, so you should use media queries.
Thanks!
This PR adds ability to style font properties with values of
[UIFont preferredFontForTextStyle:]
.To use it, instead of font name and size, use one of the following as font name:
UIFontTextStyleBody
UIFontTextStyleCaption1
UIFontTextStyleCaption1
UIFontTextStyleFootnote
UIFontTextStyleHeadline
UIFontTextStyleSubheadline
So instead
you use
On iOS6, the fonts will not be recognized, so you should use media queries.