I am trying to use paint to dynamically resize text. I notice that when I have one emoji and let it fill in the view that opengl throws an error thatFont size to large to fit in cache.
In other matters, people suggested extending the text path for rendering it or trying to turn off hardware acceleration. They do not seem to solve the problem.
I just need to know how I can determine what maximum size I can display if the size is too large so that it does not display.
Update:
I tried using text paint to see if the text has enough space for rendering in the view. So I know that I have the correct view size, but I still see this problem.
Update 4/15/15:
I forgot to update my question, but I created an issue for Android, and this was accepted as a problem. It was suggested to use
setLayerType(View.LAYER_TYPE_SOFTWARE, null)
But since there is no callback or way to get a rejection of the renderer, you should always use it View.LAYER_TYPE_SOFTWAREfor your views, not HARDWARE.
source
share