DrawExtendStringToHandle()で文字を表示すると、
環境に依って表示のされ方が異なります。
試した環境は、
・Win7 Enterprise Service Pack 1
・WinXP Professional Service Pack 3
なのですが何が原因で表示が変わってしまうのでしょうか?
上記二つの環境で実行した時のスクリーンショットとソースコードを添付します。
宜しくお願い致します。
win7での実行結果
http://www1.axfc.net/uploader/so/3488013.bmp
winxpでの実行結果
http://www1.axfc.net/uploader/so/3488014.bmp
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
SetGraphMode( 640, 480, GameConfig::DISPLAY_COLOR_BIT );
ChangeWindowMode( TRUE );
DxLib_Init();
DrawBox(0, 0, 640, 480, GetColor(255, 255, 255), TRUE);
// grid
for(int x = 0; x < 640; x += 10) {
DXLW::getGraphic().DrawLine(x, 0, x, 480, GetColor(255, 0, 0), 1);
}
for(int y = 0; y < 640; y += 10) {
DXLW::getGraphic().DrawLine(0, y, 640, y, GetColor(255, 0, 0), 1);
}
int h = CreateFontToHandle("MS ゴシック", 13, 1, DX_FONTTYPE_NORMAL);
DrawExtendStringToHandle(0, 0, 1, 2.2, "あいうえお確認", GetColor(16, 16, 16), h, GetColor(32, 32, 32));
DrawExtendStringToHandle(0, 50, 1, 2.0, "あいうえお確認", GetColor(16, 16, 16), h, GetColor(32, 32, 32));
DrawExtendStringToHandle(0, 100, 2, 4.4, "あいうえお確認", GetColor(16, 16, 16), h, GetColor(32, 32, 32));
DrawExtendStringToHandle(0, 200, 2, 4.0, "あいうえお確認", GetColor(16, 16, 16), h, GetColor(32, 32, 32));
WaitKey() ;
SaveDrawScreen(0, 0, 640, 480, "./test.bmp");
DxLib_End() ;
}