Fontvariant small-caps with custom font

I am building an app that requires Times New Roman or an equivalent. I have found that a style with fontVariant: ['small-caps'] has no effect. Are there specific fonts that have this capability? Is there a better way to specify this with the font?

I am loading fonts with

await Font.loadAsync({
    'times': require('./assets/fonts/TimesRoman.ttf'),

I have also tried the same with styled-components but small-caps does not work with this custom font.

Testing on simulator via react-native run-ios

Thanks to all,

Hey @ptmagnuson,

My best guess is that it may be only available/compatible with certain fonts. Perhaps the best route forward is to keep trying with similar fonts til it works as expected. I did a little googling but nothing definitive came up.



This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.