umi icon indicating copy to clipboard operation
umi copied to clipboard

Custom Font on Android

Open oliverebert opened this issue 4 years ago • 7 comments

For some reason, the custom font is not displayed in an Android build of our Unity project, but iOS works fine. If I build the plugin with the DemoScene in a completely new Unity project on Android, it works without problems. But when I build your DemoScene on our Unity project, it doesn't work.

Could it be that it is not compatible with some other plugin that we use or do you have another tip on what this could be?

oliverebert avatar Feb 01 '21 16:02 oliverebert

So, seems, your project settings or some plugins brake smth. Build app, and try to profile it with ADB.

mopsicus avatar Feb 02 '21 07:02 mopsicus

Unfortunately I don't see any errors in the log :(

oliverebert avatar Feb 03 '21 13:02 oliverebert

Mate, I can't debug your project :) If demo works fine, and your project doesn't, than causes in your project. Did you add all files and make Plugin object to receive messages from plugin?

mopsicus avatar Feb 03 '21 14:02 mopsicus

I am also not able to get the Custom font to work, not even in your demo scene in a fresh project (2019.4.19 & 2020.2.3) . Even tried it with opening the demo scene directly from explorer so that it opens a new Unity project and uses your project settings.

(On 2020.2.3 I do get an error that Gradle min-sdk could not be specified and needs to be removed. After removing the min-sdk part from AndroidManifest it built successfully, but no custom font. )

On your demo scene's SingleInputField I set the Custom font name to 'Chilanka'. Is there another step I am missing?

RobinopdeBeek avatar Feb 17 '21 12:02 RobinopdeBeek

Also wondering the same thing...

seancheno avatar Mar 30 '21 20:03 seancheno

Seems, need more tests...

mopsicus avatar Mar 31 '21 08:03 mopsicus

I'm in the same boat. I tried this last night using Android 10 with three different copies of the same project: 2019.3.9f1, 2019.4.25f1, and 2020.3.6f1. In all cases, I used Chilanka for the SingleInputField and while the rest of the functionality worked flawlessly, I wasn't able to get the custom font to appear.

If I make any headway debugging this, I'll post my results here.

jwilkinson-simwave avatar May 06 '21 16:05 jwilkinson-simwave