Page 1 of 1

PaintRichText function doesn't seem to work correctly

PostPosted: June 28th, 2006, 7:43 am
by martt_1er
Hello.

First, please excuse me for my english.

I'm using the PrintPreview component to print some texts and pictures.
Pictures and symbols are displayed correctly but the text is so ... ugly.
Look at these screenshots : (first with a 30% zoom then with a 100% zoom)

With a 30% zoom :


With a 100% zoom :


The unit of my PrintPreview is mmPixel, but I tried with all others (mmHiMetric, mmLoMetric....) and the result is the same.

Do you think the problem comes from my Form, my RichEdit, or my PrintPreview ?

Thanks a lot.

Martt

PostPosted: June 28th, 2006, 10:30 am
by Johnny_Bit
what font?

PostPosted: June 28th, 2006, 12:35 pm
by martt_1er
It's the default one !
where have I to check the font ? In the TRichEdit or in the TPrintPreview ?
Anyway, it's the deault one for the 2 components.
Font : (Name=MSSansSerif, Pitch=fpDefault, size=8, height=-11...)

Martt

PostPosted: June 28th, 2006, 8:53 pm
by Kambiz
"MS Sans Serif" is a raster font. For having WYSIWYG result, use a true type font.

PostPosted: June 28th, 2006, 9:35 pm
by martt_1er
Wou-hou ! :D It works !

Thanks for your help, you resolved a very big problem.
See you, and congratulation for that helpful component.
Bye

Martt

PostPosted: June 29th, 2006, 7:29 am
by Johnny_Bit
Hey, there supposed to be list of no-go fonts already.