ChooseFont (Modify)
ChooseFont.
Functional Difference from WIN95
- The panel appearance is in PM style.
- Not all option flags are supported.
Functional
Difference from SBCS Open32
- A Script Combo Box is added, to display the scriptnames.
- The following option flags are supported.
Flag
CF_ANSIONLY
OEM and SYMBOL CharSet fonts are excluded from the
list.
CF_INITTOLOGFONTSTRUCT
show
the closest match to the LOGFONT as the initial selection.
CF_NOOEMFONTS
OEM CharSet fonts are excluded from the list.
CF_NOSCRIPTSEL
Disable script combo box. CharSet in the LOGFONT
is set to DEFAULT_CHARSET when ChooseFont returns.
CF_NOVECTORFONT
CF_NOVERTFONTS
Vertical writing fonts are excluded from the list.
CF_SCRIPTSONLY
CF_SELECTSCRIPT
Only fonts
of CharSet in the LOGFONT are included in the list. This flag do not be
supported same as Windows 95.
Implementation
- This function should be implemented based on EnumFontFamiliesEx
Open32 function, to support scriptnames.
- This function must call the font mapper internally
to find the closest match to the LOGFONT, when CF_INITTOLOGFONTSTRUCT option
flag is specified.
- This function must exclude both Windows vertical
writing fonts (@facename) and the Postscript vertical writing fonts (facename-V,
facename-V-some) from the list, when CF_NOVERTFONT option flag is specified.
See The
Metrics Mapping and The Font Mapper
for details.
--
This function is implemented in Open32 and PAX.
PAX uses WinFontDlg() with FNTS_CUSTOM
flag to use custom dialog template. The all parameter flags should be processed
in the font dialog initialisation routine.
The following flags are defined in os2win.h in SBCS Open32.
CF_ANSIONLY
CF_INITTOLOGFONTSTRUCT
CF_NOOEMFONTS
The following flags are not defined in os2win.h in SBCS Open32. And should
be defined in os2win.h in Open32 NLS Extension.
CF_NOSCRIPTSEL
CF_NOVERTFONTS
CF_SCRIPTSONLY
CF_SELECTSCRIPT
[Back: Functional Description by API]
[Next: CreateFont/CreateFontIndirect (Modify)]