overlapped letters and too long lines

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

overlapped letters and too long lines

Postby Tim » December 30th, 2005, 5:07 pm

Hello,

I've two problems when I draft on the PrintPreview. They're surely little ones, and I would be thankful, if you can help me.

System:
WinXP
Delphi 2005
PrintPreview 4.61

Settings:
Units: mmLoMetric
1)
If I print with a FontHeight < 50 some of the letters overlap, as you can see on the attached sample3.
I use the font 'Arial' but there is the same problem with all other fonts which have not the same pitch for each letter. I also tried to fix it by using Font.Pitch:= fpFixed.

2)
I draft some rectangles and lines like the following.
Code: Select all
      Rectangle(left,top,left+1000,top+1500);
      MoveTo(left,top+300);
      LineTo(left+1000,top+300);

And as you can see on the attached sample2 the lines are too long. For the correct display I've to correct the lines with '-2'.
It's the same problem by drafting rectangles (sample1). For the right display I have to correct the coordinates with the '+3' (see the 2 top rectangels of sample1.
Code: Select all
      Rectangle(left+1200,top,left+1500,top+70+3);   // KW, Termine, Uhrzeit
      Rectangle(left+1200,top+70,left+1500,top+140);
      Rectangle(left+1200,top+140,left+1500,top+210);
      Rectangle(left+1200,top+210,left+1500,top+280);


If I send the same directly to a printer, there aren't these problems.

Best wishes

Tim
Attachments
sample1.gif
sample1.gif (1.04 KiB) Viewed 1579 times
sample2.gif
sample2.gif (567 Bytes) Viewed 1579 times
sample3.gif
sample3.gif (880 Bytes) Viewed 1579 times
Tim
Active Member
Active Member
 
Posts: 5
Joined: August 28th, 2005, 4:02 pm
Location: Germany

Postby Kambiz » January 30th, 2006, 7:18 pm

Sorry for being so late in answering your questions.

1) Have you ever tried to convert a 1024x748 pixel image to a 320x240 pixels image? I'm sure you did. They same happens for fonts, and some information is lost. When there is need to draw a text in very small font size, it's more applicable to use fonts that are designed for this purpose. For example: Small Fonts.

2) Print Preview converts values in the selected measurement unit to pixels to draw an item. During conversion definitely should be some lose of presicion because we don't have fraction of a pixel. This problem is more obvious when the target device has a lower resolution (like screen). If you check out preview of MS Excel sheets or MS Word tables, you will see they are suffering the same problem.

Cheers
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby Tim » February 22nd, 2006, 2:04 pm

Thanks for your help.

Now, the fonts are displayed right.
Tim
Active Member
Active Member
 
Posts: 5
Joined: August 28th, 2005, 4:02 pm
Location: Germany


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron