Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

How do I pass a Font file from a Dll to a Font field ?

$
0
0
I am already able to access the path to the Font file in my dll. I just need to pass the data to a Font field . Here is how I access the path and Font data in my dll. Assembly myAssembly = Assembly.GetExecutingAssembly(); Stream myStream = myAssembly.GetManifestResourceStream(myAssembly.GetName().Name + ".Resources.Awesomefont.ttf'); //Font font = ? from that point on how do i assign it to `font` If i even have to create a byte array from `myStream` then i already can do that . I still cant pass it to the Font field `font` thanks for any help

Viewing all articles
Browse latest Browse all 706

Trending Articles