I see the signature of these methods:
Font.FromLogFont(object o)
Font.ToLogFont(object o)

how does that work?

my problem:
I am porting a MacOSX application to Windows.... (yep, I succesfuly switched
to windows ;-)(but not yet my boss).

Anyway it's only a platform issue, the app produce file. These file could be
share amongst different user with different PC/OS. And they contains styled
text (text + font).

Now I want to be able to have reasonably similar display on different
computer, even though user 1 on PC1 use a font not available to user 2 on PC
2.

I see there is CreateFontIndirect() just for that, but I have yet to figure
out how to use it with .NET.
Any tip?

Re: Font .FromLogFont(), .ToLogFont() by Lloyd

Lloyd
Wed Jul 20 21:10:41 CDT 2005

Solved!

"Lloyd Dupont" <net.galador@ld> wrote in message
news:uf2ZvYYjFHA.3316@TK2MSFTNGP14.phx.gbl...
>I see the signature of these methods:
> Font.FromLogFont(object o)
> Font.ToLogFont(object o)
>
> how does that work?
>
> my problem:
> I am porting a MacOSX application to Windows.... (yep, I succesfuly
> switched to windows ;-)(but not yet my boss).
>
> Anyway it's only a platform issue, the app produce file. These file could
> be share amongst different user with different PC/OS. And they contains
> styled text (text + font).
>
> Now I want to be able to have reasonably similar display on different
> computer, even though user 1 on PC1 use a font not available to user 2 on
> PC 2.
>
> I see there is CreateFontIndirect() just for that, but I have yet to
> figure out how to use it with .NET.
> Any tip?
>