From: deostroll on
Trying to select one particular font for my application. Checked out
the msdn pages for doing such a thing and came across
EnumFontFamiliesEx. It says it can list out more than one font
depending on the typeface name we give. I am confused as to how I can
select "one" font.

Moreover I suppose the next function I am supposed to call is the
ChooseFont(). But what are the flags I need to set for the choose font
struct for this...(I do not want to call the select font dialog box
here!).

--deostroll
From: Christian ASTOR on
deostroll wrote:
> Trying to select one particular font for my application. Checked out
> the msdn pages for doing such a thing and came across
> EnumFontFamiliesEx. It says it can list out more than one font
> depending on the typeface name we give. I am confused as to how I can
> select "one" font.

Just fill LOGFONT structure, return 0 in callback and what you want in
lParam