Restored from previous forum. Originally posted by blueb.
From Help File: LoadFont(#Font, Name$, YSize)
When I set my printer font to:
DrawingFont(LoadFont(0, "Arial", 12))
It prints very, very small. I realize I can just
set the YSize to 100, but I don't understand the
range of "YSize". I assumed it was the font's character
height.
Any ideas?
blueb
Printer Fonts
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Paul.
Hello blueb,
When using fonts the size is most always in picas but the drawing canvas is in pixels. You must also take into account that not everyones printer has the same DPI as yours, so if you decide the size 100 looks good on your 300DPI printer and someone runs your app using a 600DPI printer, their printout will be half the size.
You must do some math to figure out what numbers will work across many different printers. There is a small snippet on the Resources Site called "perfect print" that will help you.
Another quick way to design print layouts that work on any printer is to send your data to a WebGadget and then print from there (this also gives you an easy print preview... this is what I do quite often)
Good luck.
Visit the PB Resources Site at http://www.reelmediaproductions.com/pb
Hello blueb,
When using fonts the size is most always in picas but the drawing canvas is in pixels. You must also take into account that not everyones printer has the same DPI as yours, so if you decide the size 100 looks good on your 300DPI printer and someone runs your app using a 600DPI printer, their printout will be half the size.
You must do some math to figure out what numbers will work across many different printers. There is a small snippet on the Resources Site called "perfect print" that will help you.
Another quick way to design print layouts that work on any printer is to send your data to a WebGadget and then print from there (this also gives you an easy print preview... this is what I do quite often)
Good luck.
Visit the PB Resources Site at http://www.reelmediaproductions.com/pb