Open RaySnow opened 1 month ago
Hey, thanks for reaching out :)
The text styles you mentioned should actually be supported. See here: https://github.com/joseph-grabinger/flutter_to_pdf/blob/main/lib/args/text_style.dart#L119
Regarding font weights, the following are supported: FontWeight.normal
& FontWeight.bold
.
Also the font styles FontStyle.normal
& FontStyle.italic
should be supported.
Same holds for TextDecoration.underline
, TextDecoration.overline
& TextDecoration.lineThrough
.
If you still have problems with any of the listed styles, please provide a concrete reproducible example of your usage so we can investigate :)
i used Almarai font and not supported and i want to use it , do you hava any solution for this ?
@Salmakhaled123 did you register the font as described in the README ?
I solved this now the pdf file when it downloaded, it doesn't show me that downloaded to mobile
On Thu, 7 Nov 2024, 1:01 pm Joseph Grabinger, @.***> wrote:
@Salmakhaled123 https://github.com/Salmakhaled123 did you register the font as described in the README ?
— Reply to this email directly, view it on GitHub https://github.com/joseph-grabinger/flutter_to_pdf/issues/89#issuecomment-2461936824, or unsubscribe https://github.com/notifications/unsubscribe-auth/A22RFARB2AMOT2Q2W6N2PCTZ7NCANAVCNFSM6AAAAABO2FNZEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRRHEZTMOBSGQ . You are receiving this because you were mentioned.Message ID: @.***>
I found that many attributes in font styles are not supported. These styles do not take effect after exporting PDF. Is my usage wrong? Or it doesn’t support?
unsupport TextStyle like 'fontWeight: FontWeight.bold' 、'fontStyle: FontStyle.italic'、'decoration: TextDecoration.underline'