Hi,
I am very new to this technology and once i heard of CROSSOVER i thought let's make our hand dirty.
I tried to run my application which uses gdiplus heavily. i found one striking difference between windows
and the linux outputs which i got. Most of the Line drawing functions worked similar but the fonts were not rendered properly in the application.
The next step i did was i wrote a sample application with all the overloads of the DrawString api (MFC Dialog application , the draw was made on CClientDC with "Arial" font), tested it in both the OS and found that the output (text is rendered in linux) is same, but the same code when applied to the my application was unable to render the text("Entire Text is missing") properly with the same sample code and text in the linux. The text is completely missing in the linux os when applied on crossover latest ver.
Both the applications are Visual studio 6.0 MFC applications only.
SolidBrush brush(Color(255, 0, 255, 0));
SolidBrush brush1(Color(255, 255, 0, 0));
SolidBrush brush2(Color(255, 0, 0, 255));
FontFamily fontFamily(L"Arial");
Font font(&fontFamily, 24, FontStyleRegular, UnitPixel);
PointF pointF(layoutRect.X , layoutRect.Y);
PointF pointF1(layoutRect.X , layoutRect.Y+20);
PointF pointF2(layoutRect.X , layoutRect.Y+40);
//[Text not rendered in Linux
graphics.DrawString(L"Hello World!", -1, &font, pointF1, &brush);
graphics.DrawString(L"Hello World! 2", -1, &font, pointF2,&format, &brush1);
graphics.DrawString(L"Hello World! 2 34", -1, &font, layoutRect,&format, &brush2);
//]
CString strSamp ="Line2";
graphics.DrawRectangle(&Pen(Color::Blue, 3), layoutRect); //Works in both and linux
pDC.TextOut(rectText.left ,rectText.bottom-20 ,strSamp); //Works in both and linux
Can I know why its happening or is it a known issue.
Kind regards,
Pavan