Hello. When creating text run like this:
let currentFont: pdftron.PDFNet.Font = await Font.create(pdfDoc, Font.StandardType1Font.e_times_roman); element = await eb.createTextRun(value, currentFont, currentFontSize);
and trying to write a “—” (em dash) character as the value, am seeing â€” on screen.
Have couple of questions regarding this:
- Are there any other options rather than using StandardType1Font fonts in Web API. Unicode fonts for example?
- what format does the
createTextRunUnsignedfunction expect for the text_data? Whatever I pass. am getting following error in the console:
Uncaught (in promise) abort(16). Build with -s ASSERTIONS=1 for more info.
- any approaches to solve the problem? My guess is it won’t be just limited to the “em dash” character.