Groups | Blog | Home
all groups > c# > february 2004 >

c# : saving a font


Brian W
2/6/2004 3:01:50 PM
Install it through the API with P/Invoke, see the docs for AddFontResource()

HTH
Brian W




[quoted text, click to view]

Brian W
2/6/2004 7:25:51 PM
You have to copy the font to the Font dir then call AddFontResource

See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_2ylq.asp
for more information.


HTH
Brian W



[quoted text, click to view]

2G
2/6/2004 10:16:35 PM
Hi

How do you install a font using c# ? Copying it into the dir won't work.

Grtz.

2G
2/7/2004 1:30:41 AM
I do
int i = AddFontResource("c:\\microN55.ttf");

and it returns 1 but the font doesn't seem to be installed (I can't find it
in the fonts dir). What should i do?

Grtz





[quoted text, click to view]

AddThis Social Bookmark Button