Skip to main content
Participant
October 1, 2024
Question

[Programming] How do I change the font size of the freetext?

  • October 1, 2024
  • 1 reply
  • 245 views

I am stuck at this, so currently, I have a code to get the DS (and DA) string and modify the font number. I successfully modified them, but the freetext font size doesn't change.

 

 

I also tried to scale the matrix and bbox, from AP>N but didn't work too.

 

Any idea, please?

This topic has been closed for replies.

1 reply

S_S
Community Manager
Community Manager
October 1, 2024

Hi @anh_duy_0925,

 

Hope you are doing well. Thanks for writing in!

 

While I do not have much expertise on this, what I could get on this is:

The default text size for FreeTextAnnotations is set to 9pt, and it should not change on resize.
If you wish the text to fill the box, you can set their font size to 0pt (which indicates automatic font sizing) as follows:
 
freeText.FontSize = '0pt';
 
 
Let me know if this helps.


-Souvik