Closed Alttaf closed 4 years ago
@Alttaf We cannot reproduce this. Can you attach a full contained example (with PDF and code that is runnable)? Also, can you confirm that this is the behavior on the newest unipdf version? (3.3.0).
Thanks.
running versions 2.2.0 github.com/unidoc/unidoc v2.2.0+incompatible
you will need to add a grid.pdf to the same location as the main.go file grid.pdf
main.txt rename to main.go below main.txt
you may need to change the variable called emojiText := "text with emoji 😀 🧟" to experiment with different variations I have added comments to describe the behaviour
to run
go run main.go
I will now try with the latest version of unidoc and post my results here
The behaviour on the latest version of unidoc with the creator.New() syntax does not make the text vertical so is fixed, it does not print the emoji's hower, is there something is should be doing differently?
To print emoji's you need to have a font that supports those as well as encoding. I am not aware of this having been done before with unipdf so needs some investigation and possibly a new feature.
Created a ticket in unipdf repository for tracking. Will close this one https://github.com/unidoc/unipdf/issues/206
While using an emoji the unidoc newParagraph function, the text is not displayed correctly see screen shots
when entering this this character sequence
p = creator.NewParagraph(text)
Ç % { < a@E£@!&%@&^!@($*))_))!@)(£&*^%^! without the emoji it prints all the characters
Ç % { < a@E£@!&%@&^!@($*))_))!@)(£&*^%^! /😀 with emoji at the end verticalises the text and does not print emoji