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:
00409748
Views:
24
David,

Do you know from experience that the common dialog ActiveX control will show hard-wired fonts? Trying to code for these and not having a printer with cartridge fonts is kinda like designing a Form without a monitor. I had always assumed that GETFONT() showed all fonts but now I'm finding out different. I see your post about ChooseFont and have your SpyIn sample so I might try that as well. I'll also take a look at what you wrote on Wiki. Between ChooseFont and the CommDlg which do you think would be the best method to use?

Ed

>Ed,
>
>The commondialog activeX can indeed do this. Drop one on the form, on it's property dialog, select the Font page, set Flags to 1 to see screen fonts, 2 to see printer fonts or 3 to see both. Call the oCommonDialog.ShowFont() method and then look at the oCommonDialog.Object properties to see what was chosen ? oCommonDialog.Object.FontName. Look at the MSDN help file for more info about the flags you want to set. The commdlg.h file from VC holds all the values for the flags.
>
>>I have a user with a printer that has a font cartridge with fonts that he wants to choose from when making mailing labels. My application uses GETFONT() to offer him a selection of available fonts for him to choose from but he says that his printer's internal fonts are not showing on the list.
>>
>>I do not have a printer with internal fonts to test this but, assumeing that this is correct, is there a way to include internal printer fonts when letting a user choose?
Previous
Reply
Map
View

Click here to load this message in the networking platform