Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

San Francisco is not a system font? #8

Open
jhalborg opened this issue May 21, 2017 · 10 comments
Open

San Francisco is not a system font? #8

jhalborg opened this issue May 21, 2017 · 10 comments

Comments

@jhalborg
Copy link

Hey,

First of all, thanks for putting this together.

I have issues with the San Francisco font on my iPhone 6 emulator, iOS 10.3. Expo claims that it is not a system font, and must be loaded through Expo.Font.loadAsync ?

screen shot 2017-05-21 at 13 10 22

Testing some other fonts, it works fine - Arial, Avenir etc., but I consitently get the error on San Fransisco (and on the font mentioned in usage example, too - "Iowan Old Style").

Any idea why?

@Jacse
Copy link

Jacse commented May 30, 2017

You need to use fontFamily: 'system font' instead.

@jhalborg
Copy link
Author

I found out, actually, but totally forgot I raised this issue - sorry! :)

It's just "System", by the way :) I don't know how to use "Iowan Old Style", though?

This issue might be more about updating the docs to reflect this, rather than the font 'not working'. Also, the question is raised how this would work cross platform? Now I'm assigning "System" font for all my text while creating the iOS app - will this mean that the Android app will have the "Roboto" font all these places?

@pavloko
Copy link

pavloko commented Sep 11, 2017

@jhalborg Have you figured out how to choose between Display and Text variants of SF font?

@jhalborg
Copy link
Author

I just use fontFamily: 'System' and style it from there @pavloko

@trungtrungkang
Copy link

How to set "System font" for WebView?

@blakek
Copy link

blakek commented Oct 9, 2017

@trungtrungkang You'd use something like font-family: -apple-system;

@SimonVillage
Copy link

Does anyone have a solution for this?

The system font on iOS for Thai is Thonburi. Setting it to system does not load San Francisco.

@thorep
Copy link

thorep commented May 30, 2021

Not loading font using System or system..

@etherealsunshine
Copy link

Hi,
using fontFamily: 'system font' doesn't seem to be working, are there any other solutions?

@etherealsunshine
Copy link

Never mind, I just loaded it through font.async,

here's the docs if anyone is interested https://docs.expo.dev/versions/latest/sdk/font/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants