CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Strange behaviour:Issue in Rendering some fonts

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

It's not obvious to me why this is happening, and it's not a known issue.

I suggest you check the return values of the calls you're making. A log file with the +gdiplus channel may also reveal something.

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM5NTcwNzYwLCJjc3JmX3Rva2VuIjoiaFdjRVRGNUJmRnVaQzdjSyIsImdkcHIiOjB9