newsuk/times-components

iOS italic fonts are missing

colincclark opened this issue · 2 comments

Do you want to request a feature or report a bug?

bug

What is the current behaviour?

When a font is set to italic, it will only be picked up if a fontFamily is not set. If one is set, the italic style is overriden. This is for native iOS.

If the current behaviour is a bug, please provide the steps to reproduce.

Check out the upcoming Key Facts default story, or add a <Text> Component with the following styles:

fontFamily: "TimesDigitalW04",
fontStyle: "italic"

What is the expected behaviour?

It should be italic

@colincclark That's weird how do you setup that the font name is TimesDigitalW04 ?

On Android, there is no such font, it will be TimesDigitalW04_italic, the fontStyle doesn't change anything

Component needed to be written using the appropriate font