Font .FromLogFont(), .ToLogFont()

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

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?
 
Back
Top