LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Font size in PrintText

Hello! I have noticed thatin CVI 5.5 and 6.0:
when I set the Windows desktop to show caracters with big size
(typical 125% more) and I use the PrintTextFile or PrintTextBuffer
functions, the character size that I set (for example Courier New 10) is
"scaled" to 80% (approx) of 10 points per char when text is printed
(sent to the printer).
I have tried this on Win98 and XP with multiple kind of printers
(Deskjet, Laserjet, Postscript and WinFax too..) and it happens always.
Of course when I put a "standard" caracter size display in windows, all
is printed OK without any scaling. It seems that is Windows that
"rescale" all the fonts.
The question is: how can I know from CVI the Display font size scale
factor? Knowing that I can "scale" the va
lues in SetPrintAttribute
(ATTR_PRINT_POINT_SIZE, ).
Thanks in advance
Raffaele
0 Kudos
Message 1 of 2
(2,685 Views)
Hello,
I printed out some text using PrintTextBuffer function in CVI, when the font is set to larger sizes, but I did not see any difference in the sizes of printed text. I used Win XP and HP LaserJet, and I went to Display->Apperance to change the font size.

Any way, you can call GetPrintAttribute and get the value of ATTR_PRINT_POINT_SIZE to get the size of the font to use when printing a text file or buffer.

Mika Fukuchi
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,685 Views)