Why is Text Vertically Misaligned when I use a Custom Font?

6 ビュー (過去 30 日間)
MrPowerElectronics
MrPowerElectronics 2021 年 2 月 2 日
When changing the font of my axis labels and legend in a figure, my text is always vertically misaligned when I use a specific custom font (Sofia Pro).
See the following two pictures (left: custom font, right: helvetica).
Everything else it the same, and I'm using:
set(gca,'FontName',Font Name)
to change the font. I haven't seen this behaviour with any other fonts.
On other programs such as MS Office, there does not seem to be an issue with the alignment. I'm having this issue in both 2019a and 2020b.
Does anyone know where the issue is or how it could be resolved?
  4 件のコメント
dpb
dpb 2021 年 2 月 2 日
Bizzaro stuff like this always raises Q? re: the rendering engine -- what does
get(gcf,'Renderer')
return?
If is 'opengl', see
ogl=opengl('data')
to see info about driver, etc.
If on Windows, see if
opengl software
will change symptoms. If so, try to find updated OpenGL drivers from the graphics hardware vendor's download site.
MrPowerElectronics
MrPowerElectronics 2021 年 2 月 2 日
@dpb Thank you for the suggestions, it was opengl from NVIDIA. However, even changing it to
opengl software
didn't change anything.

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

採用された回答

Adam Danz
Adam Danz 2021 年 2 月 2 日
編集済み: Adam Danz 2021 年 2 月 2 日
  3 件のコメント
Jan
Jan 2021 年 2 月 3 日
The creator of the font has to fix the problem. Your solution is to choose another font.
MrPowerElectronics
MrPowerElectronics 2021 年 2 月 3 日
Yes, I understand this, I meant hopefully it is fixed soon [by the creator of the font].

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by