Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fonts ??
Message
De
20/03/1999 07:59:47
 
 
À
20/03/1999 06:50:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00200115
Message ID:
00200118
Vues:
20
>at my old program, i can use 20cpi fonts to print something at LQ2170 printer. ( we have 160charter per line )
>
>can i do that in VFP6.0 with HP laser printer.

If you did this before using line-by-line programmed output rather than the Report Writer, and inserted specific print codes for your dot matrix printer as a part of the process, you may not be able to access the same fonts in the laser, and you may have to go through a number of changes to prevent Windows from 'massaging' your output for you. Under most circumstances, the Windows print facilities will try to convert characters for output using graphic fonts that are sent as bit images rather than print codes and characters.

The report writer will allow you to use very some small fonts; I've been able to access fonts as small as 4 point (normal graphic font sizes are typically in the 10 or 12 point size range) with some (not all) fonts. You'll have an easier time trying to use TrueType or ATM scaleable fonts, since they can be adjusted in size over a wide range of values, rather than a few fixed sizes.

The issue of character width can be a bit tricky if you're 'rolling your own' reports programmatically, since unlike most of the fonts built into dot matrix printers, which have a fixed character width regardless of what character is printed (these are often referred to as monospaced fonts), Windows offers both proportional fonts, which adjust character width based on what character is being printer, and monospaced fonts. If you use a graphical tool like Report Writer, you can deal with form alignment with proportional fonts much more easily than if you try to create your output a line at a time using @...SAY or ?/??/???. If you do use programmatic output, selection of a monospaced font will make getting alignment correct significantly easier.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform