#2867: Add font setter to ComponentBuilder

This commit is contained in:
Max Lee 2020-06-26 00:52:31 +01:00 committed by GitHub
parent 3409fe6dd3
commit c803f42a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
*