GWAK
September 25, 2022, 3:32am
1
ref link : [Android] Regarding the Android mode, has the text breakage been resolved?
Please refer to the image.
example) Korean / Japanese / English
If you experiment through, All texts are broken except in English.
CharSequence[] Choice_v = {"공급기-1","공급기-2","공급기-3","공급기-4","공급기-5","공급기-6"}; // Korean
CharSequence[] Choice_v = {"FEED-1","FEED-2","FEED-3","FEED-4","FEED-5","FEED-6"}; // English
I’ve mentioned it before.
2-1) There is no ‘text break phenomenon’ in Android 3.0.
2-2) In Android 4.0, ‘text is broken’ occurs.
Q1) Have you ever solved it?
Q2) Is there any way to solve it?
Q3) I wonder if there are any plans to solve it.
GWAK
March 17, 2023, 6:13pm
2
@Rupesh_Kumar
@svan
By any chance, has the phenomenon of broken languages (foreign languages) other than English been resolved?
Or does anyone have a solution?
1 Like
GWAK
March 27, 2023, 12:10am
3
String msg1 = "こんにちは。";
String msg2 = "안녕하세요.";
String msg3 = "你好。";
void setup(){
size(displayWidth,displayHeight);
background(255); fill(0);
PFont myFont = createFont(" ", 40); // Fonts with the language of each country
textFont(myFont);
textAlign(LEFT,CENTER);
text(msg1,10,100);
text(msg2,10,150);
text(msg3,10,200);
}
void draw(){
}
‘Android solvers’ @Rupesh_Kumar @svan
As shown in the picture above, the ‘foreign language other than English’ font is broken.
Is there a solution or is there a reason?
If anyone knows, please share or a solution.
link : Is there an Android Mode 4.1 problem(characters are broken.) / solution? - #9 by GWAK
jafal
March 27, 2023, 4:04am
5
1 Like
svan
March 27, 2023, 4:46am
6
I noticed that you left the font name blank. Is there a particular font that has these characters? To which language do these characters belong?
1 Like
GWAK
March 27, 2023, 5:56am
7
@jafal @svan (Dear svan)
Thank you for your reply.
There was a problem in Android 4.1 Mode.
It seems to have been resolved in Android 4.5 Mode (?)
Thank you for your reply.
svan
March 27, 2023, 5:34pm
8
1 Like
GWAK
March 27, 2023, 6:32pm
9
@svan
Thanks for your reply and interest.
This is an Android (Processing) problem issue.
svan
March 27, 2023, 7:11pm
10
This is an Android (Processing) problem issue.
It may be a font issue. Microsoft no longer has the unicode fonts that contain the bazillion characters for Asian languages (at least that I can find). On a mac the asian characters show up correctly in a Processing sketch. You are apparently using three different languages in your demo and may have to use the correct font for each language before trying to print the strings. My advice is to look for fonts that will print these characters on your system.
1 Like
svan
March 28, 2023, 6:48am
11
The following code runs without error on my Mac in Android mode with Processing 4.2. Same code failed on my Windows 11 system.
String msg1 = "こんにちは。";
String msg2 = "안녕하세요.";
String msg3 = "你好。";
void setup(){
fullScreen();
background(255); fill(0);
PFont myFont = createFont("Arial Unicode MS Regular", 40); // Fonts with the language of each country
textFont(myFont);
textAlign(LEFT,CENTER);
text(msg1,10,100);
text(msg2,10,150);
text(msg3,10,200);
}
void draw(){
}
output:
1 Like
GWAK
March 28, 2023, 1:39pm
12
@svan
You’re right. This was once an issue and appears to have been resolved.
(This seems to have been fixed with an update.)
svan
March 28, 2023, 10:57pm
13
Are you able to run the code that I posted above on your Windows system and does it show the text correctly?
1 Like
GWAK
March 28, 2023, 11:01pm
14
@svan
Yes, that’s right. It works fine on windows.
I am currently using a lower ‘Android’ version.
It seems to be possible if processed through ‘Processing4.0’.
Thank you for your interest.