IFont <-> System::Drawing::Font

  • Thread starter Thread starter Phil Atkin
  • Start date Start date
P

Phil Atkin

(Posted here because nobody wants to answer me in framework.interop, and I
_am_ using VC++!)

IFont to System::Drawing::Font is easy enough: get the hFont property and
then use Font::FromHfont.

But how can I go from a Font to a corresponding IFont?

TIA

Phil Atkin
 
OleCreateFontIndirect: thanks; I was afraid of that...

I haven't seen the example (don't subscribe to Experts Exchange - is it
worth it?) but it seems like hard work to unpick all the properties of an
existing object, pack them into a structure, and then recreate everything.
Still, if that's the only way...

Thanks again,

Phil
 
Back
Top