Hi!
garycuthbert wrote:
is there an alternative?
If we knew a simple solution then it would be included in MigraDoc.
If you find a good solution please let us know.
The old implementation is still there, but commented out:
Code:
[Obsolete("This function is removed from DocumentObjectModel and always returns false.")]
public static bool Exists(string fontName)
{
//System.Drawing.FontFamily[] families = System.Drawing.FontFamily.Families;
//foreach (System.Drawing.FontFamily family in families)
//{
// if (String.Compare(family.Name, fontName, true) == 0)
// return true;
//}
return false;
}
I don't know how good this old implementation works.
It may work better for the GDI build than the WPF build.