User (Legacy) Posted October 23, 2000 Report Share Posted October 23, 2000 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 More sharing options...
Software FX Posted July 22, 2002 Report Share Posted July 22, 2002 There is no "global" font in Chart FX 98, we have included this concept in Chart FX for .NET. To change all the fonts, you need to change them one by one. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.