Unable to create glyphtypeface object using odttf font file in .Net Framework4.0 RRS feed

  • Question

  • hi,

    In my application i am creating Glyph Typeface object using odttf fontfile saved in disk. The glyph typeface constructor is taking uri of that fontfile.

    GlyphTypeface typeface = new GlyphTypeface(new Uri(strFontfile));

    this call is throwing the Exception "Object reference not set to an instance of an object" in .Net framework4.0.

    It is working perfectly in .Net Framework3.5.

    can anybody tell me why it is failing?

    Wednesday, April 21, 2010 6:13 AM