Skip to content

Font Calculator Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/SequenceDiagramConfig/properties/messageFont

返回 FontConfig 的 JavaScript 函数。默认情况下,这些函数返回适当的 *FontSize*FontFamily*FontWeight 值。

For example, the font calculator called boundaryFont might be defined as:

javascript
boundaryFont: function () {
  return {
    fontFamily: this.boundaryFontFamily,
    fontSize: this.boundaryFontSize,
    fontWeight: this.boundaryFontWeight,
  };
}
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusUnknown identifiabilityForbiddenAllowednoneconfig.schema.json*

messageFont Type

unknown (Font Calculator)