this one (made by you ):Originally Posted by Clootie
//-----------------------------------------------------------------------------
// Name: DrawText()
// Desc: Draws 2D text
//-----------------------------------------------------------------------------
function CD3DFont.DrawText(x, y: Single; dwColor: DWORD;
strText: PChar; dwFlags: DWORD): HRESULT;
Ok, so I get a true type font with charset 1251 and use it in my app, creating the 3DFont with:Standart cyrillic charset for Windows is win-1251. This is single byte charset with cyrillic chars encoded in upper (128-255) part of table. So, localizing person could type them in cyrillic, save text without formatting and this text can be pasted in Delphi IDE (but will look strange on your system).
CD3DFont.Create(strFontName: PChar; dwHeight, dwFlags: DWORD);
(your code too)
The localizing person type cyrillic, but save it in plain ANSI and not unicode.
And that's all?
A question by the way, XLS is not able to save cyrillic except in unicode, do you know a workaround? (My localization file is a XLS file, saved in CSV).
Bookmarks