Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

expo-font

expo5mMIT13.0.4TypeScript support: included

Load fonts at runtime and use them in React Native components.

react-native, expo, font

readme

expo sdk

Expo

Expo SDK version Chat or ask a question License: MIT Downloads

Try Expo in the Browser  •  Read the Documentation  •  Learn more on our blog  •  Request a feature

Follow us on

Expo on X   Expo on GitHub   Expo on Reddit   Expo on LinkedIn   Expo on LinkedIn

Introduction

Expo is an open-source platform for making universal native apps that run on Android, iOS, and the web. It includes a universal runtime and libraries that let you build native apps by writing React and JavaScript.

This repository includes the Expo SDK, Modules API, Go app, CLI, Router, documentation, and various other supporting tools. Expo Application Services (EAS) is a platform of hosted services that are deeply integrated with Expo open source tools. EAS helps you build, ship, and iterate on your app as an individual or a team.

Read the Expo Community Guidelines before interacting in the repository. Thank you for helping keep the Expo community open and welcoming!

Table of contents

📚 Documentation

Learn about building and deploying universal apps in our official docs!

🗺 Project Layout

  • packages All the source code for Expo modules, if you want to edit a library or just see how it works this is where you'll find it.
  • apps This is where you can find Expo projects which are linked to the development modules. You'll do most of your testing in here.
  • apps/expo-go This is where you can find the source code for Expo Go.
  • apps/expo-go/ios/Exponent.xcworkspace is the Xcode workspace. When developing iOS, always open this instead of Exponent.xcodeproj because the workspace also loads the CocoaPods dependencies.
  • docs The source code for https://docs.expo.dev
  • templates The template projects you get when you run npx create-expo-app
  • react-native-lab This is our fork of react-native used to build Expo Go.
  • guides In-depth tutorials for advanced topics like contributing to the client.
  • tools contain build and configuration tools.
  • template-files contains templates for files that require private keys. They are populated using the keys in template-files/keys.json.
  • template-files/ios/dependencies.json specifies the CocoaPods dependencies of the app.

🏅 Badges

Let everyone know your app can be run instantly in the Expo Go app!

runs with Expo Go

runs with Expo Go

[![runs with Expo Go](https://img.shields.io/badge/Runs%20with%20Expo%20Go-000.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000)](https://expo.dev/client)

[![runs with Expo Go](https://img.shields.io/badge/Runs%20with%20Expo%20Go-4630EB.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000)](https://expo.dev/client)

👏 Contributing

If you like Expo and want to help make it better then check out our contributing guide! Check out the CLI package to work on the Expo CLI.

❓ FAQ

If you have questions about Expo and want answers, then check out our Frequently Asked Questions!

If you still have questions you can ask them on our Discord and Forums or X @expo.

💙 The Team

Curious about who makes Expo? Here are our team members!

License

The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.

Star the Expo repo on GitHub to support the project

changelog

Changelog

Unpublished

🛠 Breaking changes

🎉 New features

🐛 Bug fixes

💡 Others

13.0.4 — 2025-02-19

This version does not introduce any user-facing changes.

13.0.3 — 2025-01-10

🐛 Bug fixes

  • [ios] Fix crash when writing to fontFamilyAliases (#34044 by @techied)

13.0.2 — 2024-12-19

🐛 Bug fixes

  • [iOS] Fix crash when accessing resource from multiple threads (#33574 by @chrfalch)

13.0.1 — 2024-11-05

💡 Others

13.0.0 — 2024-10-22

🛠 Breaking changes

🎉 New features

  • More detailed error messages for FontLoader native module rejections (#31104 by @vonovak)
  • Add getLoadedFonts() function (#30431 by @vonovak)

🐛 Bug fixes

  • useFonts could previously attempt to set state on an unmounted component (#31143 by @vonovak)
  • On iOS loadAsync() will reject if font loading fails. (#31053 by @vonovak)
  • Add missing react peer dependencies for isolated modules. (#30467 by @byCedric)
  • Only import from expo/config to follow proper dependency chains. (#30501 by @byCedric)

💡 Others

  • Stopped scoping font family names in Expo Go on Android. (#28797 by @lukmccall)
  • Replaced @testing-library/react-hooks with @testing-library/react-native. (#30742 by @byCedric)
  • Removed all NativeModulesProxy occurrences. (#31496 by @reichhartd)

12.0.10 - 2024-09-03

🐛 Bug fixes

12.0.9 - 2024-07-16

🐛 Bug fixes

  • On iOS, fix issues where fonts were removed when the app is backgrounded. (#30400 by @alanjhughes)

12.0.8 - 2024-07-11

🎉 New features

  • Allow woff and woff2 format on iOS with the config plugin. (#30220 by @titozzz)

12.0.7 - 2024-06-06

🐛 Bug fixes

  • On iOS, store the font postscriptName instead of fullName which is what iOS will use to register the font. (#29502 by @alanjhughes)

12.0.6 - 2024-05-29

🐛 Bug fixes

  • [iOS] Fix font registration failing when font was in use. (#28989 by @aleqsio)

12.0.5 — 2024-05-10

🐛 Bug fixes

  • Fixed some vector icons not rendering correctly. (#28747 by @tsapeta)

12.0.4 — 2024-04-24

This version does not introduce any user-facing changes.

12.0.3 — 2024-04-24

12.0.2 — 2024-04-23

This version does not introduce any user-facing changes.

12.0.1 — 2024-04-22

💡 Others

  • Stopped scoping font family names in Expo Go on iOS. (#28344 by @tsapeta)

12.0.0 — 2024-04-18

🎉 New features

  • [iOS] The native module has been simplified and rewritten to Swift. (#26380 by @tsapeta)

💡 Others

11.10.3 - 2024-02-16

🐛 Bug fixes

11.10.2 - 2024-01-18

This version does not introduce any user-facing changes.

11.10.1 - 2024-01-10

🎉 New features

11.10.0 — 2023-12-12

🎉 New features

  • Added custom native fonts support to Font.isLoaded(). (#25770 by @kudo)

11.9.0 — 2023-11-14

🛠 Breaking changes

🐛 Bug fixes

11.8.0 — 2023-10-17

🛠 Breaking changes

🎉 New features

11.7.0 — 2023-09-15

🎉 New features

💡 Others

11.6.0 — 2023-09-04

🎉 New features

💡 Others

11.5.1 — 2023-08-02

💡 Others

11.5.0 — 2023-07-28

🐛 Bug fixes

  • Gracefully catch exceptions during font loading on web with fontfaceobserver. (#22954 by @bradjones1)

11.4.0 — 2023-06-21

This version does not introduce any user-facing changes.

11.3.0 — 2023-06-13

🐛 Bug fixes

11.2.0 — 2023-05-08

🐛 Bug fixes

11.1.1 — 2023-02-09

This version does not introduce any user-facing changes.

11.1.0 — 2023-02-03

💡 Others

  • On Android bump compileSdkVersion and targetSdkVersion to 33. (#20721 by @lukmccall)

11.0.1 — 2022-10-28

This version does not introduce any user-facing changes.

11.0.0 — 2022-10-06

🛠 Breaking changes

  • Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. (#18873 by @tsapeta)

🎉 New features

10.2.0 — 2022-07-07

This version does not introduce any user-facing changes.

10.1.0 — 2022-04-18

⚠️ Notices

  • On Android bump compileSdkVersion to 31, targetSdkVersion to 31 and Java version to 11. (#16941 by @bbarthec)

10.0.5 - 2022-02-01

🐛 Bug fixes

  • Fix Plugin with id 'maven' not found build error from Android Gradle 7. (#16080 by @kudo)

10.0.4 — 2021-11-17

This version does not introduce any user-facing changes.

10.0.1 — 2021-10-01

This version does not introduce any user-facing changes.

10.0.0 — 2021-09-28

🛠 Breaking changes

🐛 Bug fixes

  • Fix building errors from use_frameworks! in Podfile. (#14523 by @kudo)

9.3.0 — 2021-09-08

💡 Others

9.2.0 — 2021-06-16

🐛 Bug fixes

💡 Others

  • Migrated unimodules-font-interface and unimodules-constants-interface to expo-modules-core. (#12949, #12876 by @tsapeta)
  • Build Android code using Java 8 to fix Android instrumented test build error. (#12939 by @kudo)

9.1.0 — 2021-03-10

🎉 New features

  • Updated Android build configuration to target Android 11 (added support for Android SDK 30). (#11647 by @bbarthec)

🐛 Bug fixes

  • Remove peerDependencies and unimodulePeerDependencies from Expo modules. (#11980 by @brentvatne)

9.0.0 — 2021-01-15

🛠 Breaking changes

🐛 Bug fixes

8.4.0 — 2020-11-17

This version does not introduce any user-facing changes.

8.3.0 — 2020-08-18

This version does not introduce any user-facing changes.

8.2.2 — 2020-07-27

🐛 Bug fixes

  • Fixed fonts not being loaded in Internet Explorer. (#8652 by @d4rky-pl)

8.2.1 — 2020-05-29

This version does not introduce any user-facing changes.

8.2.0 — 2020-05-27

This version does not introduce any user-facing changes.

8.1.1 - 4/07/2020

🐛 Bug fixes

  • Fixed timeout on Firefox #7420