Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETFONT() & Installed Device Fonts.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00409567
Message ID:
00409858
Views:
16
Ed,

The code I posted on the Wiki is by far the easiest way to go.

As far as the fonts go, I tested by switching the default printer back to my old HP LJ3 and I see CG Times, Univers, and Line Printer which are all native builtin fonts for that printer. These are designated with a printer icon in font list. The first two are scalable and the dialog shows various font sizes. The thrid is non scalable and the dialog only displays 8 pt as the size.

If the end user can see their printer fonts from the cartridges in other apps then the dialog should show them for your app too.

VFP's GetFont() function appears to only call the dialog up with CF_TEXT not CF_BOTH because I do not see the printer fonts on my machine. It would sure be handy if they added a 4th parameter that allowed us to specify additional flags, but it's also much easier to work with the font attributes of the loComDialog object than it is to parse out the old 2.x font style return value of GetFont().

>In your Wiki example I see that you mention Printer fonts and Screen fonts. GETFONT() will show "Printer" fonts. That is the fonts that go to the printer as opposed to the fonts that show on the screen but my problem is the fonts that are hard-wired in a printer cartridge as opposed to the sofware fonts that come on a disk. Will the COMDLG32 ActiveX show these hard-wired fonts?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform