Google has been of no help (either it can't be done, or I am searching for the wrong things)..
I have a TTF file (converted from a OTF i got online) that I would like to use in my program. The problem is I don't want to have to install said font on every computer that uses my program, and don't know how to do this..
Help?
PS. I converted the OTF to a TTF because everything I found online says OTF isn't supported in VS, if this is no longer the case I would be happy to stay with OTF (though I don't know how to use that either).
I have the above code.. but the font never actually gets used, just the size and the default fontCode:Dim myFonts As PrivateFontCollection Dim fontBuffer As IntPtr myFonts = New PrivateFontCollection Dim font() As Byte = My.Resources.Norse fontBuffer = Marshal.AllocCoTaskMem(font.Length) Marshal.Copy(font, 0, fontBuffer, font.Length) myFonts.AddMemoryFont(fontBuffer, font.Length) Label3.Font = New Font(myFonts.Families(0), 14)




Reply With Quote
