🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11782

Pixel size of text

#11782
From: Malcolm Smith
Date: Wed, 14 Jan 2004 11:16
23 lines
1499 bytes
I need to know the number of pixels text will be rendered on a printer.

I've been using

    Printer()->Canvas->TextHeight("0");

but this reveals 75 pixels for both physical printers on my system (laser
and deskjet).

On the 600dpi laser printer this is fine, but on the 120dpi deskjet (draft
mode) it is WAY OFF.

I'm printing thumbnail images with captions and a 2mm gap. On my deskjet
this becomes a 16mm gap.

Is there a more reliable way to test the printer canvas ?

-- 
---
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com
Borland Technology Partner
Technical Details
Message-ID: <400524f6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,68caf32dd13ae34,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-14 03:40:00 PST
Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au>
From: "Malcolm Smith" <mjfreelancing@optusnet.com.au>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Pixel size of text
Date: Wed, 14 Jan 2004 22:16:50 +1100
Lines: 25
Organization: MJ Freelancing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 211.30.147.112
Message-ID: <400524f6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074078966 211.30.147.112 (14 Jan 2004 03:16:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail