Clear Filters
Clear Filters

Some characters are cut off by "text" function in 2019a on Mac

3 views (last 30 days)
Hi,
this problem appears with Unicode characters for the set of natural numbers ℕ or the set of real numbers ℝ, for example.
Here is a picture:
Also, this seems to happen on Mac only (tested on MacBook Pro Late 2016, MacOS Mojave 10.14.3) and in multiple fonts (I tested Times New Roman and Helvetica). It worked in 2018b.
Has anyone come across this and knows how to fix it or has a good workaround?
  2 Comments
Josh Pughe
Josh Pughe on 18 Jan 2023
I found a workaround while needing to plot \mathcal{R}. There seems to be an issue with how text.Extent is defined (perhaps)?
While
text(xPosition,yPosition,{' ',[char(8475),' .'],' '},'FontSize',30);
clips the character, the workaround
text(xPosition,yPosition,{' ',[char(8475),' .'],' '},'FontSize',30);
does not. The multple lines add vertical padding, and " ." adds horizontal padding. Luckily, the "." actually gets clips, and is not visible.

Sign in to comment.

Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!