Font-Size option in Figure labels is ignored

2 views (last 30 days)
Hannes
Hannes on 28 Mar 2012
Hi,
I am using Matlab R2011a under Ubuntu 11.10 and when I create Figures the "FontSize" option for any object is ignored. In the property editor changes in font size sometimes show up shortly but then dissapear again.
A minimal example is:
fig1=figure; annotation(fig1,'textbox',... [0.5 0.5 0.2 0.2],... 'String',{'test'},... 'FontSize',15);
The textbox is drawn, but the textsize is independent of the FontSize value. This is true for other objects such as Labels.
Does anyone have an idea?
Thanks, hannes
  1 Comment
Daniel Shub
Daniel Shub on 28 Mar 2012
This is a duplicate of http://www.mathworks.com/matlabcentral/answers/1238-font-size-changes-in-figures

Sign in to comment.

Answers (1)

Hannes
Hannes on 28 Mar 2012
Is seems that the Matlab fonts are not recognised in Ubuntu. A partial solution is to install the packages: xfonts-100dpi and xfonts-75dpi from ubuntu software center
However, while the size can be changed then, the rendering of the fonts is very bad (you see the pixels).
Any ideas?
  1 Comment
Daniel Shub
Daniel Shub on 28 Mar 2012
In my answer to http://www.mathworks.com/matlabcentral/answers/1238-font-size-changes-in-figures, for Arch Linux I also suggest installing xorg-fonts-type1. Does Ubuntu have an equivalent package (and if so does it help)?

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!