So when I use these 2 line to change the font for the UACS menu I get this:
D3D9: ERROR: D3D9Client::clbkReleaseSurface() Input Surface is NULL
000046.756: D3D9: [Destroy Render Window Called]
D3D9: ERROR: [Failed to Reset DirectX Device] (Likely blocked by undeleted resources)
000046.756: **** Closing simulation session
oapi::Font* font = [B][COLOR=rgb(184, 49, 47)]oapiCreateFont[/COLOR][/B](15, true, "Arial", FONT_BOLD);
skp->SetFont(font);
int x = HIWORD(skp->GetCharSize());
int rightX = hps->W - x;
int startY = int(0.215 * hps->H);
int y = startY;
int space = LOWORD(skp->GetCharSize());
int largeSpace = int(1.5 * space);
if (hudMode == HUD_OP)
{
buffer = std::format("Selected available cargo: {}", mdlAPI.GetAvailCargoName(cargoHUD.idx));
skp->Text(x, y, buffer.c_str(), buffer.size());