Mode: Android Mode 0232 Renderer: P3D TextMode: PConstants.SHAPE
Issue 1: Some letters not displaying at all
The issue is shown here:
I am using createFont() in setup with smooth turned on and textFont(), then using textSize() at different points.
The problem appears on some Android devices, on some not. I have tried to look for the problem. I created the following table:
Could not draw conclusions from it apart from the observation that most vowels display and most consonants don't. Most signs display.
Issue 2: Some letters displayed with stroke
The issue is shown here:
On devices on which the font actually displays, some letters are rendered with stroke, some not. In the picture above, notice how "b" and "d" display differently than the rest. I tried calling noStroke() before text(), but to no avail. Switching from P3D to OPENGL does not solve the problem. Changing the font did not solve the issue either.
Issue 3: textFont not changing the font when called second and all consecutive times.
Since in P3D and OPENGL the fonts are generated as bitmaps in the setup(), different fonts must be instantiated to accomodate for different font sizes. Then, in draw(), textFont() should be used depending on the dimensions of the text which needs to be displayed. That is the way it should work in theory. In practice, however, in my case, calling textFont() works only once, at the beginning. Consecutive calls bear no effect.
Neither issue is, to my knowledge, present with the JAVA2D renderer.
Could anybody point me to the right direction to solve any of the problems?
Thank you in advance.