BlockNoteFontConfig class
Font configuration for BlockNote editor.
Allows specifying custom fonts using Flutter-friendly API instead of raw CSS. Supports both system fonts (no files needed) and custom font files.
Constructors
-
BlockNoteFontConfig({required String family, List<
BlockNoteFontFile> files = const []}) -
Creates a new font configuration.
const
Properties
- family → String
-
Font family name (CSS font-family string).
final
-
files
→ List<
BlockNoteFontFile> -
Font files for @font-face declarations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateCss(
) → String? - Generates CSS @font-face declarations if files are provided.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited