We are seeing an issue with the FreeTextAnnotations SetLineColor method. When SetLineColor is called, the FreeText annotation loses its FontSize – and it cannot be set again, it will always return zero. Here is the code:
FreeText text = FreeText.Create(doc, textRect);
double fSize = text.GetFontSize(); // fSize is 30
ColorPt cpt = new ColorPt(1, 0, 0);
fSize = text.GetFontSize(); // fSize is 0.0
Thank you for bringing this issue up. We are working on fixing this in future versions.
In the meantime, you may be better off setting the default appearance string manually, as shown in the following:
Can confirm this bug and i would really appreciate a fix
This has been fixed and starting tomorrow will be available in our stable nightly releases. Thank you for the report and your patience.