MeasureString Error Using Font

Posted by: brian on 27 November 2020, 7:47 am EST

    • Post Options:
    • Link

    Posted 27 November 2020, 7:47 am EST

    I get the following error using the attached font:

    “Object reference not set to an instance of an object”

    Stack Trace:

    cz+a..ctor(Byte* A_0):214
    cz..ctor(Byte* A_0):57
    GrapeCity.Documents.Text.Font.a(FontTables A_0, TableTag A_1, Byte* A_2, Int32 A_3):840
    GrapeCity.Documents.Text.Font.a(FontTables A_0, Byte* A_1, TableTag[] A_2, Int32 A_3):141
    GrapeCity.Documents.Text.Font.a(FontTables A_0, Byte* A_1, TableTag[] A_2):312
    GrapeCity.Documents.Text.FontTables.LoadTables(TableTag[] tags):24
    GrapeCity.Documents.Drawing.GcGraphics.MeasureString(String text, TextFormat textFormat, Nullable`1 width):53

    I believe the text being measured is “Clearly Gothic Bold”

  • Posted 30 November 2020, 10:57 pm EST

    Hi Brian,

    We too can observe the issue at our end and escalated this to the developers. We will let you know once we get any update on this from their end.

    [Internal Tracking ID: 2596]


    Prabhat Sharma.

  • Posted 13 December 2020, 12:28 am EST

    Hi Brian,

    The issue has been fixed in the latest version of builds GrapeCity.Documents.Imaging Please upgrade to the latest version to get rid of this error.


    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels