Class FontWeightAndStyle

java.lang.Object
de.hsh.graja.util.comment.FontWeightAndStyle
All Implemented Interfaces:
Serializable, Iterable<FontWeightAndStyle.FontDecoration>

public class FontWeightAndStyle extends Object implements Iterable<FontWeightAndStyle.FontDecoration>, Serializable

This class describes a font weight or a font style in an InlineContent or a ParagraphContent. It is possible to adapt the size of the font, the weight (strong, or emphasized) and the style (underline). An instance of this class is comprised of a set of one or more FontWeightAndStyle.FontDecoration elements.

Usage example:

ParagraphContent p= new ParagraphContent(includeSpec, "Summary", FontWeightAndStyle.H1));
p.addItem(InlineContent.format(includeSpec, "%s", FontWeightAndStyle.smaller(), "this is a minor remark"));
See Also: