• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

print proportional font

Hi, how to set printer to print proportional font, so character like "I" and "M" should has same width printed. Thx and Rgds.
0
powerfool
Asked:
powerfool
  • 2
1 Solution
 
QJohnsonCommented:
You want a fixed width font NOT A PROPORTIONAL font.

You simply have to know the names of the ones available that are fixed width.  The one everyone uses for safety's sake is Courier New

If you want to be polite and re-set it the way you found it:

dim strFoundFontName as string
dim sglFoundFontSize as single

with Printer
   ' get existing values
   strFoundFontName = .FontName
   sglFoundFontSize = .FontSize
   ' set ours
   .FontName = "Courier New"
   .FontSize = 10
   '  print our stuff here
   < your printing code >
   '  set them back like we found them
   .FontName = strFoundFontName
   .FontSize = sglFoundFontSize
end with

Good luck.

Q
0
 
QJohnsonCommented:
You want a fixed width font NOT A PROPORTIONAL font.

You simply have to know the names of the ones available that are fixed width.  The one everyone uses for safety's sake is Courier New

If you want to be polite and re-set it the way you found it:

dim strFoundFontName as string
dim sglFoundFontSize as single

with Printer
   ' get existing values
   strFoundFontName = .FontName
   sglFoundFontSize = .FontSize
   ' set ours
   .FontName = "Courier New"
   .FontSize = 10
   '  print our stuff here
   < your printing code >
   '  set them back like we found them
   .FontName = strFoundFontName
   .FontSize = sglFoundFontSize
end with

Good luck.

Q
0
 
CleanupPingCommented:
powerfool:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
DanRollinsCommented:
Moderator, my recommended disposition is:

    Accept QJohnson's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now