We are about to switch to a new forum software. Until then we have removed the registration on this forum.
int currentSlide;
String[] slide;
String tl;
String tr;
String bl;
String br;
int time;
int wait=5000;
void setup(){
size(800,1000);
time=millis();
currentSlide=0;
slide=new String[500];
slide=loadStrings("data for rosetta stone.txt"));
tl=slide[0];
tr=slide[2];
bl=slide[1];
br=slide[3];
}
void draw(){
textSize(35);
rectMode(CENTER);
if(millis()-time>=wait){
time=millis();
print("tick");
tl=slide[currentSlide+4];
tr=slide[currentSlide+6];
bl=slide[currentSlide+3];
br=slide[currentSlide+5];
}
background(255/2+50);
fill(0);
text(tl,50,50);
text(tr,width/2+100,50);
text(bl,50,height/2+50);
text(br,width/2+50,height/2+50);
}
data in the text file
Ahoj
Hello
Zbohom
Goodbye
Ako sa máš
How are you
Ako sa voláš
What is your name
Answers
http://Studio.SketchPad.cc/sp/pad/view/ro.9hlrt8LyDd9uA/latest
It looks like your problem is:
Slovak contains Unicode characters that are not in the default processing font.
In order to display those characters correctly, use createFont and textFont (or just textFont) as per @GoToLoop's example.
Indeed Processing's default font is enough to display accented characters. :-bd
Only for the ancient Chinese text under Java Mode I had to pick another font, such as ("Roman"). :-\"