![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1507744/image.png)
- The difference in appearance between the text in the two figures is due to the different ways MATLAB handles ‘uicontrol’ and ‘annotation’.
- ‘uicontrol’ (Figure 1) is a low-level UI component that directly uses the system's rendering for the text, which is why it looks smaller and less bold which is seen in Figure 1. This control allows for more precise control over the appearance of the text.
- ‘annotation’ is a high-level function that creates an annotation object in a figure. It uses MATLAB's rendering engine to display the text, which can cause the text to appear larger and bolder which is seen in Figure 2.
- The 'FontSize' property in ‘uicontrol’ and ‘annotation’ may not correspond to the same actual size. The 'FontSize' in ‘uicontrol’ is in character units, while in ‘annotation’, it is in points. Character units are based on the default ‘uicontrol’ font of the system, and it varies with the specific operating system and the system preferences. Points are a standard unit of measure in the printing industry.
- https://in.mathworks.com/help/releases/R2023b/matlab/ref/uicontrol.html
- https://in.mathworks.com/help/releases/R2023b/matlab/ref/annotation.html?searchHighlight=annotation&s_tid=doc_srchtitle