Question on fonts
I already finished IrrFontTool.cpp and he successfully deduced(removed) in a format .bmp Russian font, but during game instead of Russian letters the squares are shown.
P.S. The text is translated the interpreter.
texel@rambler.ru
P.S. The text is translated the interpreter.
texel@rambler.ru
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
Texel, please, as soon as you are done post the solution somewhere, I really need it!
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
Lantis, please, can you email the copy of your IrrFontTool.cpp as well?? nechaeff@byxon.comLantis wrote:You must modify IrrFontTool.cpp and recompile for it.
Write your email here and im can send you modified source
code of IrrFontTool for support national languages.
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
true!
but I couldn't make irrlicht work with russian fonts![Sad :(](./images/smilies/icon_sad.gif)
![Smile :)](./images/smilies/icon_smile.gif)
but I couldn't make irrlicht work with russian fonts
![Sad :(](./images/smilies/icon_sad.gif)
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
ok! I've changed the code in irrfonttool and I can get a big texture of 1600 symbol, but how do I change the engine to make it read and display the font?????? please give me a hint!
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
The answer
In order to make it work with russian (and probably other languages) you gotta change some code:
in IrrFontTools:
In IrrLichtl, in CGUIFont.cpp:
in IrrFontTools:
Code: Select all
HFONT font = CreateFont(
-MulDiv(fontSize, GetDeviceCaps(dc, LOGPIXELSY), 72),
0,
0,
0,
bold ? FW_BOLD : 0,
italic,
0,
0,
RUSSIAN_CHARSET,
0,
0,
ANTIALIASED_QUALITY,
0,
str);
Code: Select all
case IDC_BUTTON1:
copyFontToClipBoard(hwndDlg, 1600);
return TRUE;
In IrrLichtl, in CGUIFont.cpp:
Code: Select all
//! constructor
CGUIFont::CGUIFont(video::IVideoDriver* driver)
: Driver(driver), Positions(1601), Texture(0), WrongCharacter(0)
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Code: Select all
ANTIALIASED_QUALITY
-
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
Why I have really strange letters in editbox? The captions are ok in all elements.
I have, with no success though...Has anyone tried messing with this to get better font quality?
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
support Chinese (or China) in irrlicht fonts?
support Chinese (or China) in irrlicht fonts?