Hi, so what im trying to do is create a very simple text converter. I plan to have a whole array of different character sets and then convert normal input into any one of them at random.
My problem is when im taking a character from the desired font, i assume the encoding is getting messed up and returning either a weird symbol or just a ?. I've tried various encoding functions but still no luck. If i just print out $font it displays as it should but it seems when i take a single character from the set, it starts to mess up.
Code: http://pastebin.com/3CS6TKXA
My current idea is to take the position from the normal font and use that position to get the matching character from the new font. I'm not sure if that's the best way, but it seems to get the job done.
Thanks!😁
My problem is when im taking a character from the desired font, i assume the encoding is getting messed up and returning either a weird symbol or just a ?. I've tried various encoding functions but still no luck. If i just print out $font it displays as it should but it seems when i take a single character from the set, it starts to mess up.
Code: http://pastebin.com/3CS6TKXA
My current idea is to take the position from the normal font and use that position to get the matching character from the new font. I'm not sure if that's the best way, but it seems to get the job done.
Thanks!😁


