Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

native.systemFont does not use "San Francisco" on iOS 11
Started by CoronaChris Jul 13 2018 12:21 AM

1 reply to this topic

Best Answer CoronaChris , 13 July 2018 - 12:29 AM

solved: problem solved, my bad. I checked the wrong textfield when verifying which font is used. Stupid me

Mods: You're more than welcome to delete this topic, totally up to you :)

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

CoronaChris

[GLOBAL: userInfoPane.html]
CoronaChris
  • Contributor

  • 162 posts
  • Corona SDK

/edit: problem solved, my bad. I checked the wrong textfield when verifying which font is used. Stupid me :)

 

 

Dear Corona-community,

 

I'd like to use the native fonts in a display.newText object:

-- add explanation text
	helperTextOptions = 
		{
			text = "Möchtest du dich wirklich von diesem Gerät abmelden?", 
			x = centerX,
			y = logoutButton.y - logoutButton.height/2 - 16,
			parent = sceneGroup,
			width = bgTop.width * 0.8,
			font = native.systemFont,   
			fontSize = 14,
			align = "center"  -- Alignment parameter
		}
	helperText = display.newText(helperTextOptions)

unfortunately, on my iPhone 5s with iOS 11.4.1 the expected font "San Francisco" ist not used. Don't know the name of the font that actually IS used, but it looks exactly like the font that is used on my android devices.

 

Am I missing something?

 

Thanks :)



[TOPIC: post.html]
#2

CoronaChris

[GLOBAL: userInfoPane.html]
CoronaChris
  • Contributor

  • 162 posts
  • Corona SDK

  Best Answer

solved: problem solved, my bad. I checked the wrong textfield when verifying which font is used. Stupid me

Mods: You're more than welcome to delete this topic, totally up to you :)




[topic_controls]
[/topic_controls]