LOGFONT, Font.FromLogFont & Font.ToLogFont


L

Lloyd Dupont

I am using LOGFONT definition from here:
http://www.pinvoke.net/default.aspx/Structures/LOGFONT.html

I get my LOGFONT with
myFont.ToLogFont(lf);


a bit later I attempt to recreate the same font with:
Font.FromLogFont(lf);

And what is then is:
if I get the LOGFONT again (with previous call) it shows me the value I
expect, however the drawing on screen done with some default font instead of
the one I expect.

Even more strange, if I open the FontDialog and set my font, it's not
selected!
 
Ad

Advertisements

Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top