We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, i'm trying to write the Norwegian characters æøå and ÆØÅ to PDF, but they don't seem to be included when I use createFont.
I've tried specifying an array of chars that looks like this:
char[] letters = {'a','b','c','d','e','f','g','h',
'i','j','k','l','m','n','o','p',
'q','r','s','t','u','v','w','x',
'y','z','æ','ø','å',
'A','B','C','D','E','F','G','H',
'I','J','K','L','M','N','O','P',
'Q','R','S','T','U','V','X','Y',
'Z','Æ','Ø','Å'};
but all the special characters turn up blank when I write to the PDF here's the createFont line:
font = createFont("Neutraface2Text-Bold", 36, true, letters);
any idea what I'm doing wrong?
Answers
The problem was the .txt i was reading from, had some weird encoding going on. Move along.