いつもすみません、たろうです
縦書きフォントを使った際の文章(Y軸)幅を得る方法はありますでしょうか?
下の様にしても正確な数値が得られないようですm(__)m
#include "DxLib.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( TRUE ) ;
DxLib_Init();
int h=0,w=50;
int font=CreateFontToHandle("@MS Mincho",40,9,DX_FONTTYPE_NORMAL);
SetFontLineSpaceToHandle(w,font);
while( ProcessMessage() == 0 )
{
ClearDrawScreen();
h=GetDrawFormatStringWidth("縦書きフォント");
DrawFormatVStringToHandle(300,10,GetColor(255,255,255),font,"縦書きフォント");
DrawFormatString( 0,0,GetColor(255,255,255),"%d,%d",w,h);
DrawBox(300,0,300+w,h,GetColor(255,255,255),0);
ScreenFlip();
}
DxLib_End() ;
return 0 ;
}
お忙しいところすみません