@Override
  default @NotNull Component font(final @Nullable Key key) {
    return this.style(this.style().font(key));
  }
Sets the font.

@param key a font
@return a component
@since 4.10.0
api/src/main/java/net/kyori/adventure/text/Component.java