7

Apple released a new font, New York, with iOS 13. Is it possible to set it in CSS for web content, like using -apple-system for San Francisco?

2 Answers 2

3

Try

font-family: -apple-system-ui-serif, ui-serif;

https://www.w3.org/TR/css-fonts-4/#ui-serif-def

2
0

I was able to reference the fonts on my MacBook with these:

.NewYork-Regular
.NewYork-Bold
.NewYork-Medium
.NewYork-RegularItalic
.NewYork-BoldItalic
.NewYork-MediumItalic

Others may exist, but these are the only ones that worked for me. I did install the font from their developer page before testing, but I'm not sure it's needed - it may be included with Catalina. I'm not sure how the names map to the fonts - my system shows NewYorkExtraLarge, NewYorkLarge, NewYorkMedium, and NewYorkSmall, while the filenames (that I could find) are NewYork.ttf and NewYorkItalic.ttf - there may be others, though.

I tried the same thing in the latest iOS simulator, but none of them worked there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.