Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Using the system font
Started by philipp3 May 07 2019 12:28 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 76 posts
  • Corona SDK

Hello,

 

As far as I know, there are only two options to get Apple’s system font (San Francisco): native.systemFont and native.systemFontBold. These should be the weights "Regular" and "Bold".

 

I need the other weights as well, like San Francisco Medium, San Francisco Semibold, etc. Apple says it’s unsafe to load them with their name, because their names might change over the iOS versions (plus, they are hidden, and don’t want to be found), as described here: https://stackoverflow.com/questions/31369711/how-to-use-new-san-francisco-font-in-ios-9

 

Is there any way to use the other weights as well?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,546 posts
  • Enterprise

Corona only supports regular and bold fonts. We are cross platform and we can't be sure that other system's will support the alternate weights. 

 

I guess if it's really important, you could get involved in the open source project and add additional font weights and maybe even italic support but you would need to make sure to find or default native.sytemFontSemiBold.

 

Rob




[topic_controls]
[/topic_controls]