Support => NGUI 3 Support => Topic started by: beyonddoor on August 08, 2016, 11:18:56 PM
Title: NGUI dynamic font texture became solid rectanges at some Android devices
Post by: beyonddoor on August 08, 2016, 11:18:56 PM
My game is developed by Unity 4.6 and NGUI, the fonts are dynamic fonts to support Asian characters, but at some Android devices the fonts failed to display properly, characters became solid blocks. (http://i.stack.imgur.com/xm2m4.png)
I have tried to render the font texture, the UIFont.texture is defined as
and property material is mDynamicFont.material, the rendering result is a solid black rectangle. (http://i.stack.imgur.com/hF3hf.png) Font texture size is 512x1024, and the uv of CharacterInfo is valid, so I dont know why font texture became so wired and how to fix it.
Title: Re: NGUI dynamic font texture became solid rectanges at some Android devices
Post by: ArenMook on August 09, 2016, 06:02:28 AM
Dynamic fonts = all Unity here. If you draw the texture and it appears solid, then that's just what Unity gives NGUI to work with. It may be due to it not having enough memory, the android device not working properly when the texture is not square, or the texture size exceeding what's supposed by the device. Although if you say the font is only 1024x512, then nothing should be that ghetto. As far as I know all mobiles support 1024x1024 textures.
I would say submit a bug report to Unity, but since your Unity version is so far out of date I highly doubt they will even look at it. I'm sure they will tell you to update your Unity to the latest and try it there.
Title: Re: NGUI dynamic font texture became solid rectanges at some Android devices
Post by: beyonddoor on August 10, 2016, 10:49:44 PM
Here comes the new situation, when the font's displaying wired, I enlarge the font texture by RequestCharactersInTexture, when the texture size changed, the texture becomes normal now. still don't know what the cause and how to fix it
Title: Re: NGUI dynamic font texture became solid rectanges at some Android devices
Post by: ArenMook on August 13, 2016, 03:46:36 PM
Is your NGUI even up to date? NGUI requires at least Unity 4.7.