Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying other font but Arial #7

Open
JAlcaraz opened this issue Nov 29, 2015 · 3 comments
Open

Not displaying other font but Arial #7

JAlcaraz opened this issue Nov 29, 2015 · 3 comments

Comments

@JAlcaraz
Copy link

Hi! Thanks for this awesome Plugin. The issue I found is that, on mobile, the only font that is displayed while typing is Arial. I've tried to change the value of Font property in the Text object but still displays Arial. This would be very important to me to be resolved and don't know if it's possible to fix :(

@jonbro
Copy link

jonbro commented Jun 30, 2016

This is way after the fact, but it is possible to change the font through the native level code. Not the most perfect solution, and I haven't figured out how to make the changes automatically yet, but it should be doable.

@pjarnfelt
Copy link

Where would one change the font in the native code?
Right now the font is tiny (not at all the same size as the Unity Input field) and the wrong font.
I am using Scale With Screen Size on my canvas. So maybe that's the problem on the font size.

@pjarnfelt
Copy link

I half-fixed it by manually changing the font name in the NativeEditBox.cs to a font that is pre-installed on iOS devices. But that obviously doesn't help on Android. Which is why you use Unity normally, to avoid these native headaches!

Here is a list of iOS supported fonts iosfontlist.com (look at it on an iOS device to see the actual fonts)

Code:
mConfig.font = "ChalkboardSE-Regular";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants