FreeType2 class

Inheritance

Constructors

FreeType2.create({String? filename, int idx = 0})
Create a FreeType2 object.
factory
FreeType2.fromPointer(FreeType2Ptr ptr, [bool attach = true])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
no setterinherited
ptr Pointer<FreeType2>
getter/setter pairinherited
ref → FreeType2
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
getTextSize(String text, int fontHeight, int thickness) → (Size, int)
Calculates the width and height of a text string.
loadFontBuffer(Uint8List buffer, int idx) → void
Load font data.
loadFontBufferAsync(Uint8List buffer, int idx) Future<void>
async version of loadFontBuffer
loadFontData(String filename, int idx) → void
Load font data.
loadFontDataAsync(String filename, int idx) Future<void>
async version of loadFontData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putText(InputOutputArray img, String text, Point org, int fontHeight, Scalar color, {int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false}) → void
Draws a text string. The function putText renders the specified text string in the image. Symbols that cannot be rendered using the specified font are replaced by "Tofu" or non-drawn.
putTextAsync(InputOutputArray img, String text, Point org, int fontHeight, Scalar color, {int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false}) Future<void>
Async version of putText
setSplitNumber(int num) → void
Set Split Number from Bezier-curve to line
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

finalizer NativeFinalizer
final