How can I disable font smoothing within a figure annotation textbox?

1 回表示 (過去 30 日間)
cokakola
cokakola 2016 年 3 月 11 日
コメント済み: cokakola 2016 年 3 月 12 日
I want to globally disable font smoothing for all text entries within figures, since smoothed text looks very poor.
I can toggle font smoothing for all axes elements (Title, Ticks,Labels) and I found in the forum how to do it for the legend.
But I can not find how to do it for the annotation textbox. Global setting for the figure or axes does not affect the annotation box.
How can I switch the smoothing off for text in an annotation?
I use Matlab 2015b

回答 (1 件)

Morteza T
Morteza T 2016 年 3 月 11 日
You can change the graphic smoothing attribution of any object off or on like easily. for whole figure you can do like this:
f = figure(1);
f.GraphicsSmoothing = 'off';
  1 件のコメント
cokakola
cokakola 2016 年 3 月 12 日
Sorry, this seems to be a good answer to another question.
First: I want to switch of *Font* Smoothing
Second: The legend and the annotations are special Children of the Figure, they do not follow the global figure settings.
Unfortuanately, the command f.FontSmoothing='off' has no impact on the text in an annotation textbox.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by