Why is Text Vertically Misaligned when I use a Custom Font?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
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.
채택된 답변
Adam Danz
2021년 2월 2일
편집: Adam Danz
2021년 2월 2일
It seems that this particular font has caused vertical alignment issues in other systems as well.
- A user in the Figma forum has reported this problem with Sofia Pro (see first link on that page for a depiction)
- A user in StackOverflow has reported this problem with Sofia Pro in Safari
- 4 users on this adobe thread have reported vertical alignment problems with Sofia Pro
- User complains of vertical alignment wiht Sofia Pro in Windows but not Mac (jpgs included)
댓글 수: 3
Jan
2021년 2월 3일
The creator of the font has to fix the problem. Your solution is to choose another font.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!