FreeType2 class
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
- isDisposed → bool
-
Whether this object has been disposed.
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 -
Releases the underlying native resources. Idempotent: calling it more
than once is safe, but the object must not be used after dispose.
inherited
-
freeNative(
) → void -
Frees the native resources owned by this object. Subclasses implement the
concrete free logic here; callers must use dispose instead.
override
-
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