Very frustrated. . . this should not be hard.
I have a font as an embedded resource in my program. I think the problem is that I cannot access it to get the size in bytes (if that is possible). I think that I need to put the font into the byte array to write it to disk but I cannot get its attributes or access it.
Here is what I have so far:
I have a font as an embedded resource in my program. I think the problem is that I cannot access it to get the size in bytes (if that is possible). I think that I need to put the font into the byte array to write it to disk but I cannot get its attributes or access it.
Here is what I have so far:
C#:
FileStream FS=new FileStream("C:\\Windows\\verdana.ttf", FileMode.Create, FileAccess.Write);
ResourceWriter RW=new ResourceWriter(FS);
RW.AddResource("verdana.ttf", "1");
RW.Close();
byte[]b= new Byte[200];
FS.Write(b, 0, 200);
FS.Close();
Last edited by a moderator: