Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Bug in display of bold names

0 votes

Hello,

First, some info :

  • yEd 3.23.1
  • Java 15.0.2
  • Windows 11 21H2

To reproduce the bug :

  • create an UML class and enter some methods names ;
  • set the longest one in bold ;
  • you'll see the last character is not totally displayed, even if you resize the box.

It seems the display of characters is based on the bounding box of the character to display, but without the bold setting.

in Help by

Would it be possible for you to upload a sample GraphML file that shows the problem?
yEd does not offer a way to change the font weight for method names, thus I do not understand your second step in the reproduction instructions.

As I don't have account, it seems I can't upload screengrab.

To change the font settings, I enter the methods names as HTML.
I see. Thank you very much for the clarification.

1 Answer

0 votes

Unfortunately, this is a result if incorrect measuring of HTML text in Java's rendering framework. Thus there is very little that can be done about in yEd.

However, there is a fairly easy workaround: add a non-breaking space   at the end of your longest method name.

by [yWorks] (161k points)
OK, thank you !
Legal Disclosure | Privacy Policy
...