You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.
Hi,
I had an issue where text would not rotate with a custom font using this library. I resolved by modifying the APi.text method
Below transformationMatrix = [f2(c), f2(s), f2(s * -1), f2(c)];
I added
xtra = [f2(c), f2(s), f2(s * -1), f2(c), ''].join(" ") + "";
mode = 'Tm';
I declared mode at the top of method and initialised to Td
I then modified the args passed into the out function as folllows:
out('BT\n/' + activeFontKey + ' ' + activeFontSize + ' Tf\n' + // font face, style, size
activeFontSize * lineHeightProportion + ' TL\n' + // line spacing
textColor + '\n' + xtra + f2(x * k) + ' ' + f2((pageHeight - y) * k) + ' ' + mode + '\n' + text + ' Tj\nET');
(added xtra and modified mode)
Looks to be working for me, hope this helps somebody!
The text was updated successfully, but these errors were encountered: