Code: Select all
var fontCollection = new PrivateFontCollection();
fontCollection.AddFontFile(Server.MapPath("~/fonts/abraham-webfont.ttf"));
fontCollection.Families.Count(); // => This line tells me, that the collection has 0 items.
Ich habe überprüft, dass der Pfad gültig ist (
Code: Select all
File.Exists
Code: Select all
Response.Write(System.IO.File.Exists(Server.MapPath("~/fonts/abraham-webfont.ttf"))); // # => Renders "True"

Irgendwelche Vorschläge?