Hi!
I need to use cyrillic font characters, is there anyway to change default input "abcdefg..etc" char set?
Hi Ryumaster,
You can use the SetFontCharacters function to map a range of font characters on a surface by indicating the first and last character. See the EDGELIB Reference entry at:
http://www.edgelib.com/index.php?node=894
I'm not sure though how cyrillic characters are organized. Please let me know if this helps.
Edit:
Also take a look at the SetFontCharacterSet function, this might be useful for you as well.
http://www.edgelib.com/index.php?node=922
Thank you for reply.
It is a bit difficult for me to get SetFontCharacterSet function working without example.
As far as I understand, I should write shmtng like font.SetFontCharacterSet("Авбгдеёжзийклмнопрст etc "); ?
And what are escape symbols?
Hi Ryumaster,
Yes, you can specify a string of characters to the SetFontCharacterSet function. You probably need to make it an unicode string:
- Code:
font.SetFontCharacterSet(L"Авбгдеёжзийклмнопрст");
You can escape characters with a backslash. Here are some examples:
\n: newline
\\: backslash
\": quote
I did few tests, for example, SetFontCharacterSet works good when and typing non-unicode chars like
SetFontCharacterSet("&^#$#$AFVVDVF"), but when it gets to unicode, I get empty string no matter what.
Probably I need to specify start char and end char additionally, I'll figure out this firstly.
Hi Ruymaster,
Unfortunately we've found a bug in the EDGELIB SDK. Using unicode strings and character sets in DrawFont doesn't work properly at the moment.
We will fix this issue for the upcoming EDGELIB release.