Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Android text rendering problem?
Started by ojnab Jun 14 2019 04:40 AM

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

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 563 posts
  • Corona SDK

We have a small percentage of users reporting that the text is unreadable in our app. It is on android only.

 

We can not recreate the problem on our test devices, but we can see from the screenshot users are sending that there must be a problem. 

 

It seems like a text rendering problem. It looks like the text string is being rendered multiple times with a small offset each time.

 

Did anyone else encounter this problem? 

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,684 posts
  • Enterprise

Can you get the device information from the person reporting the issue? Text is rendered using the device's OS's text rendering system. Are you using native.systemFont/native.systemFontBold by any chance? Could they have some disability feature turned on for larger/bolder fonts?

 

If you're using your own provided .ttf file, I would think Corona would behave the same regardless, but it's potentially OS related.

 

Rob


  • ojnab likes this

[TOPIC: post.html]
#3

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 563 posts
  • Corona SDK

We are using a .ttf file for the font.

 

I found device information on 3 devices from users that reported the error.

They are all on different device types with OS Android 9 in common.



[TOPIC: post.html]
#4

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 563 posts
  • Corona SDK

Thanks Rob

 

You were right.

 

I found out that under the disability features there is an option to show bold text.

Turning this option on makes the text unreadable in our app.

Unfortunately our app is text based, so it makes it almost impossible to play.

 

Is there any way to ignore this setting?



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,684 posts
  • Enterprise

Not that I'm aware of. 



[TOPIC: post.html]
#6

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 563 posts
  • Corona SDK

Ok. At least I know what causes the problem now.

Thanks



[TOPIC: post.html]
#7

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 563 posts
  • Corona SDK

For you information I found a solution to the problem.

I was only using the bold version of the font, so I only embedded the ttf file for the bold style.

 

The solution is to embed the regular font style even though it is not used.

I guess the system got confused because it was missing.



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,684 posts
  • Enterprise

Glad you solved this.

 

Rob




[topic_controls]
[/topic_controls]