Home » U++ Library support » RichText,QTF,RTF... » Bad text quality problem in Qtf
Re: Bad text quality problem in Qtf [message #24510 is a reply to message #24509] |
Thu, 21 January 2010 17:43   |
 |
koldo
Messages: 3443 Registered: August 2008
|
Senior Veteran |
|
|
koldo wrote on Thu, 21 January 2010 17:36 | Hello all
I have found some strange behaviour. This is the code labelled "Case B" in picture. The text "(Hello)" looks well.

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
void MyFunc() {
ImageDraw idw(1200, 600);
idw.DrawRect(0, 0, 1200, 600, White);
idw.DrawText(0, 0, "(Hello)", Serif(400));
DrawingDraw dw(350, 250);
dw.DrawImage(0, 0, 350, 250, idw);
QtfRichObject pict(CreateDrawingObject(dw.GetResult(), Size(350, 250), Size(350, 250)));
String qtf;
qtf << "[A6 This is some drawing in QTF: " << pict << "&";
qtf << "[C3*@B And now in the table: {{1:1 " << pict << ":: Another cell " << pict << "}}";
PromptOK(qtf);
}
GUI_APP_MAIN {
MyFunc();
}
If It is called MyFunc() in a bigger program it is got "Case A", where text is bad rendered
Is there any parameter in RichEdit to do a good os bad quality rendering ?
Best regards
Koldo
|
Oh !
If MyFunc() is called in a package without Painter, it works well.
If we add Painter to the package (and we do not call any Painter function), the bad render is got
Best regards
Koldo
Best regards
IƱaki
|
|
|
 |
|
Bad text quality problem in Qtf
By: koldo on Thu, 21 January 2010 17:36
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Thu, 21 January 2010 17:43
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Fri, 22 January 2010 09:32
|
 |
|
Re: Bad text quality problem in Qtf
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Sat, 23 January 2010 16:15
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Sat, 23 January 2010 19:45
|
 |
|
Re: Bad text quality problem in Qtf
|
 |
|
Re: Bad text quality problem in Qtf
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Sat, 23 January 2010 21:45
|
 |
|
Re: Bad text quality problem in Qtf
By: mirek on Sun, 24 January 2010 19:24
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Mon, 25 January 2010 09:59
|
 |
|
Re: Bad text quality problem in Qtf
By: mirek on Mon, 25 January 2010 10:18
|
 |
|
Re: Bad text quality problem in Qtf
By: mirek on Mon, 25 January 2010 12:08
|
 |
|
Re: Bad text quality problem in Qtf
By: koldo on Mon, 25 January 2010 13:41
|
Goto Forum:
Current Time: Sun Aug 24 15:37:22 CEST 2025
Total time taken to generate the page: 0.04742 seconds
|