Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Bad text quality problem in Qtf
Bad text quality problem in Qtf [message #24509] Thu, 21 January 2010 17:36 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello all

I have found some strange behaviour. This is the code labelled "Case B" in picture. The text "(Hello)" looks well.

index.php?t=getfile&id=2152&private=0

#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 Crying or Very Sad

Is there any parameter in RichEdit to do a good os bad quality rendering ?

Best regards
Koldo
  • Attachment: dib.PNG
    (Size: 31.18KB, Downloaded 747 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UWord and Windows fole association
Next Topic: Default font and fontsize in RichEdit
Goto Forum:
  


Current Time: Sat Apr 27 03:05:52 CEST 2024

Total time taken to generate the page: 2.05138 seconds