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

How can I set the font size of attributes and methods in UML class nodes?

0 votes
in Help by (3.4k points)

1 Answer

+1 vote
 
Best answer

Generally, UML class nodes in yEd contain three sections. The class name section, the attribute section and the method section. The font size setting for class name can be basically found in the label settings (Label tab) of the node's properties window (F6).

To set the font size for both last sections (Attributes and Methods), you should write the text (names of attributes and methods) in HTML format and set the font size using the HTML style attribute.
To do that, select your UML node. Then open the dialog to input the attribute or method names. You can find it in the UML section of the properties window (F6 and UML tab). Now write your text using HTML tags. e.g.:
<html> 
<p style="font-size:30pt;"> 
Attribute1 <br> 
Attribute2 <br> 
Attribute3 <br> 
</p> 
</html>
This example shows how to set the font size to 30 pt for attribute names of a UML class node.

For more information on using HTML markup in a label, see also: http://yed.yworks.com/qa/16.

 

by [yWorks] (23.7k points)
Legal Disclosure | Privacy Policy
...