diff --git a/example/assets/fonts/SF-Pro-Display-Regular.otf b/example/assets/fonts/SF-Pro-Display-Regular.otf new file mode 100755 index 00000000..1279121f Binary files /dev/null and b/example/assets/fonts/SF-Pro-Display-Regular.otf differ diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index 674b3053..4e08e5be 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; +import 'dart:ui'; import 'package:file_picker/file_picker.dart'; import 'package:filesystem_picker/filesystem_picker.dart'; @@ -201,6 +202,14 @@ class _HomePageState extends State { const VerticalSpacing(0, 0), null), sizeSmall: const TextStyle(fontSize: 9), + subscript: const TextStyle( + fontFamily: 'SF-UI-Display', + fontFeatures: [FontFeature.subscripts()], + ), + superscript: const TextStyle( + fontFamily: 'SF-UI-Display', + fontFeatures: [FontFeature.superscripts()], + ), ), embedBuilders: [ ...FlutterQuillEmbeds.builders(),