TeXViewFont class

Represents a custom font to be used within a TeXView.

This class is used to declare a font family and its source URL, which is then used by the rendering engine to load and apply the font.

Constructors

TeXViewFont({required String fontFamily, required String src})
Creates a definition for a custom font.
const

Properties

fontFamily String
The name of the font family, which will be used in CSS font-family.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
src String
The path or URL to the font file (e.g., 'fonts/MyCustomFont.ttf').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, String>
Converts this object into a JSON format suitable for the rendering engine.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited