Jump to content
Software FX Community

Cfx98: Setting charset for all possible fonts?


User (Legacy)

Recommended Posts

Hi,      (Chart FX 98, Windows NT/9x, MS VC++ 6, ATL)

How can I get IFont for all the fonts that are used

by Chart FX 98? The goal is to set charset for all

of the fonts to the given value.

Earlier, I have asked how to set the charset for some

specific font.

Francisco answered...

>

> Instead of using the Fonts property, you need to set

> the font using an OLE Font object (IFont). The IFont

> interface has a property called CharSet that allows

> you to change the Character set.

So I did try (checking omitted for the sake of

readability):

CComQIPtr<IFont,&IID_IFont>

pFont(spChartFX->GetSerLegBoxObj()->GetFont());

pFont->put_Charset(EASTEUROPE_CHARSET);

...and it worked perfectly.

How can I do the same for all of the fonts used by

Chart FX 98? I.e., how to get pFont pointer in the

loop though all of the fonts to be able to call

put_Charset() for all of them?

Thanks,

Petr

--

Petr Prikryl, SKIL s.r.o., e-mail: prikrylp at skil dot cz

Please, don't reply via e-mail.

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...