dart_ass 1.2.2 copy "dart_ass: ^1.2.2" to clipboard
dart_ass: ^1.2.2 copied to clipboard

Advanced ASS Subtitle Reader & Editor for Dart

example/dart_ass_example.dart

import 'package:dart_ass/dart_ass.dart';

void main() async {
  AssFont assFont = AssFont(
    styleName: 'Default',
    fontName: 'Arial',
    fontSize: 50,
    bold: true,
    italic: false,
    underline: true,
    strikeOut: true,
    scaleX: 100,
    scaleY: 100,
    spacing: 10,
  );
  await assFont.init();
  String? shape = assFont.getTextToShape('SAMPLE TEXT');
  if (shape != null) {
    print(shape);
  }
  // String? svg = assFont.getTextToSvg('SAMPLE TEXT');
  // if (svg != null) {
  //   print(svg);
  // }
}
0
likes
120
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Advanced ASS Subtitle Reader & Editor for Dart

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dart_freetype, ffi, path

More

Packages that depend on dart_ass