ShowText unicode β (U+03B2) endless loop/freeze c#

Help
Kevin
2013-05-31
2013-10-04
  • Kevin
    Kevin
    2013-05-31

    Hi, I have been using this for a few days and am loving the ease of use. I cannot seem to figure out this problem i am having. whenever the insert comes up on the β when using blockcomposer the server goes into an endless loop and i have to manually stop the process.

    It seems to be getting stuck in the TextFitter.cs class in function the function Fit, but i cannot seem to figure out why.

    here is some example code

    ~~~~~~~
    BlockComposer blockComposer = new BlockComposer(composer)

    //variableFrame declared elsewhere
    blockComposer.Begin(variableFrame, XAlignmentEnum.Left, YAlignmentEnum.Top);

    blockComposer.ShowText('\u03B2'.ToString());

    blockComposer.End();

    ~~~~~~

    Any ideas on how to fix this?

    Thanks

     
  • veej
    veej
    2013-10-04

    Hi Kevin,
    I run into the same issue, and I fixed it as you can see in the patch I attached in this post. I've already sent the patch to Stefano and I'm waiting for comments or a better solution.

    I hope it can be helpful ;)

    Bye

     
    Attachments