dart_pdf icon indicating copy to clipboard operation
dart_pdf copied to clipboard

When i use a portuguese character, the packege crash and can't generate the pdf file, exemplo: "Ú"

Open VictorCampos404 opened this issue 1 year ago • 1 comments

Describe the bug When i use a portuguese character, the packege crash and can't generate the pdf file, exemplo: "Ú"

To Reproduce ` late pw.Font? regular;

regular = await PdfGoogleFonts.montserratRegular();

pw.Text("Última", style: pw.TextStyle( fontSize: 12, fontNormal: regular, color: const PdfColor.fromInt(0xff000000))),

`

Expected behavior The pdf package dont crash

Screenshots No screenshot, its is just visible in debug console

Flutter Doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.1, on macOS 13.5.1 22G90 darwin-x64, locale pt-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.82.2) [✓] Connected device (3 available) [✓] Network resources

• No issues found!

Desktop (please complete the following information):

  • [x] iOS
  • [x] Android
  • [ ] Browser
  • [ ] Windows
  • [ ] Linux

Smartphone (please complete the following information):

  • Device: [iPhone SE 3rd Generation and Pixel XL]

VictorCampos404 avatar Oct 24 '23 12:10 VictorCampos404

Can you change the font type and try , also if you cath the error and share with us we would be happy. Thanks

bksbora avatar Nov 10 '23 08:11 bksbora