Roger, etal,
I'm working on a report using dcprint, with a standard grid of 60x80.
One of the items i'm printing is using a small font 7.Arial or 8.Arial.
I'd like to move down a partial row (xx:=xx+.nn) instead of an entire row (xx++) when printing an entire paragraph in this small font.
How do i calculate the specific row height (.nn) in terms of xx for a given font ?
Brian
calculating row height for specific font
calculating row height for specific font
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
breadmanbrian@bsky.social
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
breadmanbrian@bsky.social
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: calculating row height for specific font
Hi Brian,
Have a look at Roger's PageSize example in \Samples\Printer
Best regards,
Rick
Have a look at Roger's PageSize example in \Samples\Printer
Best regards,
Rick
Re: calculating row height for specific font
Brian -
Look at the function DC_GraQueryTextBox().
It returns an array based on the text and font.
Roger
Look at the function DC_GraQueryTextBox().
It returns an array based on the text and font.
Roger
The eXpress train is coming - and it has more cars.
Re: calculating row height for specific font
Hi Brian,
I'm using the following:
Hope this helps.
I'm using the following:
Code: Select all
oPrinter:SetFont(aFont[x])
oFont := oPrinter:GetFontObject()
nHeight := oFont:height