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
Re: Bad text quality problem in Qtf [message #24549 is a reply to message #24548] Sat, 23 January 2010 21:45 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
andrei_natanael wrote on Sat, 23 January 2010 20:45

Hi Koldo,
I know what your problem is related to. When you add Painter package and compile with it, it put at program initialization two pointers in Draw package for it to use Painter initialization functions for ImageAnyDraw. Your problem is related to line 233 in Painter/DrawOp.cpp
INITBLOCK {
	ImageAnyDrawPainter(sCP, sEP);
}

Sorry for delayed response. Sad

Andrei


Yes, it is there (thank you Honza too Smile)

The problem is in sCP:

void ImageAnyDrawPainter(Draw *(*f)(Size sz), Image (*e)(Draw *w))
{
	//sCreateImageDraw = f;
	sExtractImageDraw = e;
}


With this comment, there is no problem.

sCP is:

static Draw *sCP(Size sz)
{
	return new ImagePainter(sz);
}


and ImagePainter is:

class ImagePainter : private ImageBuffer__, public BufferPainter {
public:
	ImagePainter(Size sz, int mode = MODE_ANTIALIASED);
...

ImagePainter::ImagePainter(Size sz, int mode)
:	ImageBuffer__(sz), BufferPainter(ImageBuffer__::ib, mode)
{}


So ImagePainter is MODE_ANTIALIASED...

but it does not work like this.

Best regards
Koldo


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: Sun Aug 24 15:15:31 CEST 2025

Total time taken to generate the page: 0.04870 seconds