#2867: Add font setter to ComponentBuilder
This commit is contained in:
parent
3409fe6dd3
commit
c803f42a84
@ -324,6 +324,18 @@ public final class ComponentBuilder
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the font of the current part.
|
||||
*
|
||||
* @param font the new font
|
||||
* @return this ComponentBuilder for chaining
|
||||
*/
|
||||
public ComponentBuilder font(String font)
|
||||
{
|
||||
getCurrentComponent().setFont( font );
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether the current part is bold.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user