lordzero
03-10-2007, 02:49 AM
Hello
hdc := CreateCompatibleDC(0);
hfont:=CreateFont(12, //Height
0, //Width
0, //Escapement
0, //Orientation
FW_NORMAL, //Weight
0, //Italic
0, //Underline
0, //Strikeout
DEFAULT_CHARSET,//Charset
OUT_DEFAULT_PRECIS, //Output Precision
CLIP_DEFAULT_PRECIS, //Clipping Precision
DEFAULT_QUALITY, //Quality
DEFAULT_PITCH or FF_DONTCARE, //Pitch and Family
'Arial');
hFontOld := SelectObject(hdc, hFont);
D3DXCreateText(Direct3DDevice, hDC, PChar(Text), Deviation, Extrusion, Mesh, nil, nil);
SelectObject(hdc, hFontOld);
DeleteObject(hFont);
DeleteDC(hdc);
see the comment line "height" using this value to change the size of my 3D text but cant works, the size still the same... only using a matrix transformation i can chnage the size... dont have other way?
Greetings
hdc := CreateCompatibleDC(0);
hfont:=CreateFont(12, //Height
0, //Width
0, //Escapement
0, //Orientation
FW_NORMAL, //Weight
0, //Italic
0, //Underline
0, //Strikeout
DEFAULT_CHARSET,//Charset
OUT_DEFAULT_PRECIS, //Output Precision
CLIP_DEFAULT_PRECIS, //Clipping Precision
DEFAULT_QUALITY, //Quality
DEFAULT_PITCH or FF_DONTCARE, //Pitch and Family
'Arial');
hFontOld := SelectObject(hdc, hFont);
D3DXCreateText(Direct3DDevice, hDC, PChar(Text), Deviation, Extrusion, Mesh, nil, nil);
SelectObject(hdc, hFontOld);
DeleteObject(hFont);
DeleteDC(hdc);
see the comment line "height" using this value to change the size of my 3D text but cant works, the size still the same... only using a matrix transformation i can chnage the size... dont have other way?
Greetings