About Store Forum Documentation Contact



Post Reply 
Font maker. (Polish letters)
Author Message
b1s Offline
Member

Post: #1
Font maker. (Polish letters)
Hey.
We are having some difficulties with some languages.
Should it be enough to just use the font maker?
I tried creating a font with these languages and added special characters also but for some reason they show as ? in game.

The font maker showed the text fine.
04-17-2012 07:06 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Font maker. (Polish letters)
1. are you sure you loaded the correct "font" in the codes that was generated by the tool?
2. in the codes are you using C++ strings with the L character? - L"ą"

if that doesn't work please attach sample font file, and sample code/project
04-17-2012 07:25 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: Font maker. (Polish letters)
Problem is the Missing L.
Any idea how to use this with functions?
something like this?
L""+funcStr(2);
04-17-2012 07:57 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #4
RE: Font maker. (Polish letters)
Been searching the web for an answer, but without any luck.
Any ideas?
is there a function of this type in the engine somewhere?
Code:
Str _stringToWstring(const std::string &strPicPath) {
    std::wstring temp(strPicPath.length(), L' ');
    std::copy(strPicPath.begin(), strPicPath.end(), temp.begin());
    return temp;
}
(This post was last modified: 04-17-2012 09:16 AM by b1s.)
04-17-2012 09:01 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #5
RE: Font maker. (Polish letters)
Mmm.. There might be many other solutions also to my problem
What I'm pretty much trying to do is to read a polish xml file and paste it in game.
Where should this format be changed and how?
Okays.. finally found a way..
Managed to change the xml file to unicode.
(This post was last modified: 04-17-2012 10:58 AM by b1s.)
04-17-2012 10:43 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Font maker. (Polish letters)
glad you got it working, few notes:

you shouldn't use any std::string or std::wstring at all, Str is unicode and is enough.

if you're using EE::XmlData then it should support unicode files as well and return Str unicode strings.

L""+funcStr(2); - no, the L needs to be present only for "" texts, if funcStr returns Str then it's already unicode
04-19-2012 04:28 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #7
RE: Font maker. (Polish letters)
Yeah. Thanks. Not too familiar with these sort of things.
But everything seems fine now. All localization files running and working.
04-19-2012 01:26 PM
Find all posts by this user Quote this message in a reply
Post Reply