I just tried D3D9 client R12 and encountered a problem with the MFD I am developing.
I use 2 different font sizes by selecting the standard fonts. It looks something like this:
This works fine with standard orbiter client, but in D3D9 the "1" size is ignored and everything drawn in standard "0" size. In some cases this destroys my graphical layout.
From other add-on MFDs I use, I only found "Glideslope 2" using different font sizes and I also see this problem there. I know built-in MFDs like surface and map using different font sizes and these do work in D3D9.
Has someone else encountered and solved such issues? Or can some D3D9 developer explain what's going wrong?
I use 2 different font sizes by selecting the standard fonts. It looks something like this:
PHP:
MyMFD2::Update (oapi::Sketchpad *skp)
{
HDC hDC = skp->GetDC();
SelectDefaultFont (hDC, 1);
sprintf(buffer, "Some small text");
TextOut(hDC, x, y, buffer, strlen(buffer));
SelectDefaultFont (hDC, 0);
sprintf(buffer, "Some standard text");
TextOut(hDC, x, y, buffer, strlen(buffer));
}
This works fine with standard orbiter client, but in D3D9 the "1" size is ignored and everything drawn in standard "0" size. In some cases this destroys my graphical layout.
From other add-on MFDs I use, I only found "Glideslope 2" using different font sizes and I also see this problem there. I know built-in MFDs like surface and map using different font sizes and these do work in D3D9.
Has someone else encountered and solved such issues? Or can some D3D9 developer explain what's going wrong?