Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Initializing Choosefont dialog box

rswy
Beginner
272 Views
For some reason the font dialog box refuses to reflect a selected font type at the time it is initialized.The font style and size are all selected but the name of the font alone does not appear in the list box.I use a logfont structure that has lf%facename as 'ARIAL' or some other standard value.I use the following:
chf%lpLogFont = LOC(lf)
chf%Flags =IOR(IOR(CF_SCREENFONTS,CC_PREVENTFULLOPEN),CF_INITTOLOGFONTSTRUCT )
I would like to use NOT(CF_NOFACESEL) but am not sure how to incorporate it.Any pointers on this will be appreciated.
-rswy
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
272 Views
CF_SCREENFONTS flag lists only "screen", i.e. bitmapped fonts, such as "Terminal" and that's the reason you don't see "Arial", which is TrueType; you should remove that flag.

Jugoslav
0 Kudos
Reply