fix: encode native signature stamps as WinAnsi - #8236
Conversation
Signed-off-by: w3lld1 <42353747+w3lld1@users.noreply.github.com>
vitormattos
left a comment
There was a problem hiding this comment.
I think we should fix this first in LibreSign/xobject-template.
This package is responsible for building the XObject content and resources, so Unicode font support should be handled there instead of adding a WinAnsi limitation in LibreSign.
We also need to check if signer-php needs any change to support the font resources generated by xobject-template.
After this is ready, we can release a new version of xobject-template, add it to LibreSign, and use it from SignatureStampAppearanceBuilder.
Then we can update this PR if it is still needed, or close it if the new integration replaces these changes.
|
I opened the follow issue to handle Unicode support in the XObject renderer: I think this should be fixed there first. After that change is merged and released, we can update this PR to use the new support, or close it if these changes are no longer needed. |
Fixes #8155
Summary
/WinAnsiEncodingfor Helvetica.How to test
PhpNativesignature engine.Signé par Renée.Validation
SignatureStampAppearanceBuilderTest: 3 tests, 6 assertions passed on PHP 8.4.24.git diff --checkpassed.API / back-end changes
Checklist