Re: printer question

new topic     » goto parent     » topic index » view thread      » older message » newer message

George Walters wrote:
> 
> 
> Using win32lib 59.1 I'm trying to find how many chars will fit on a printer
> line with a specific font size. My question is how many pixels are between
> each character. I've been using this
> 
> fontSize = getFontSize( Printer )
> printerSize = getExtent( Printer )
>     and
> charsPerLine = floor(printerSize[1]/fontSize[1])
> 
> But I'm guessing that I'm missing the pixels between each character. This
> above
> method says I have 85 chars on a line when there is only 80. 
> 
> Anyone know the answer?

Try getTextExtent(Printer," ")

Don Cole
 Bonds > Ruth.
 Giants STILL in last place 
 Hmmmmmmmm!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu