Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
Fonts support in Infragistics Document Engine
posted

What kinds of fonts are supported / not supported by the Infragistics Document Engine?

 True Type fonts ( ttf )  seem to work, but Open Type Fonts (otf) do not seem to work.  Is there a work-around?

Is there a particular way to install fonts such that the Document Engine will "see" the fonts and make use of them.

 Til now I've been putting all of my fonts into the C:\Windows\Fonts folder.

  • 575
    posted

    For example:

     

    Cambria and Verdana will work (true type font)

     MyriadPro-Black does not work (open type font)

     

    Sample declarations:

    public static Infragistics.Documents.Graphics.Font SubSubHeadingFont = new Infragistics.Documents.Graphics.Font(new System.Drawing.Font("Cambria", 12));

    public static Infragistics.Documents.Graphics.SolidColorBrush SubSubHeadingBrush = new Infragistics.Documents.Graphics.SolidColorBrush(new Infragistics.Documents.Graphics.Color(54, 95, 145));

     

    public static Infragistics.Documents.Graphics.Font ScoreFont = new Infragistics.Documents.Graphics.Font(new System.Drawing.Font("MyriadPro-Black", 17));

    public static Infragistics.Documents.Graphics.SolidColorBrush ScoreBrush = new Infragistics.Documents.Graphics.SolidColorBrush(new Infragistics.Documents.Graphics.Color(0, 0, 0));