In this case, use HTML formatting. Please see section Properties of Graph Elements in the yEd Manual for additional information.