![]() In general, just don't do that unless you are sure you want to. If your font is in another format, you may need to customize the Metro bundler configuration to get anything other than TTF and OTF to work. In general, both formats are very similar and perfectly acceptable. Sometimes OTF files render slightly better in certain contexts. If you have both OTF and TTF versions of a font, prefer OTF. ![]() If your font is in another format, you will require to set up an advanced configuration for your project. The two officially supported font formats that work consistently in the Expo SDK across Android, iOS and the web, are OTF and TTF. assets/fonts directory, but you can put them anywhere you like. A common convention in React Native apps is to put your fonts in an. For a working example, we are going to use Inter Black from the free and open source Inter font family by Rasmus Anderson. This documentation covers the aspects of getting a custom font, loading it in your project and what are some of the best practices to use when the font is being loaded in your project. Learn about using custom fonts, supported font formats for each platform and loading them.īoth Android and iOS and most desktop operating systems come with their own set of platform fonts but if you want to inject some more brand personality into your app, a well-picked font can go a long way.Īs each operating system has its own set of platform fonts, if you want to produce an experience that is consistent for all users, you will want to use your fonts in your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |