Math

Answered

How to ensure that the style of the text in the exported image remains unchanged?

In the demo of Android, the font style in the exported picture changes, such as “√ ̄”display in the exported picture  abnormal. How can I achieve the same font style for exported pictures?


eg: 

Screenshot of the handwriting in the demo:

image


Export pictures of handwriting in demo:

image





Best Answer

Dear longjunhao,


thank you for the update, I am glad you found the solution.


Best regards,


Olivier


Dear Long Junhao,


thank you for your question.


We are a bit puzzled by this behavior as we are not able to reproduce and it is the first time we see such thing.


Could you also export as JIIX and provide us with the export? This may be of help.


Also, are you using our "default samples", or you did other changes? Did you change the font? Are you using our font Metrics Provider, or you developed your own one? Did you do other changes?


Thank you,


Best regards,


Olivier

Dear Olivier :


Thank you for your answer, I am very sorry to reply to you now.


The demo I used only replaced MyCertificate.java and did not modify other code. Demo address:https://github.com/MyScript/interactive-ink-examples-android


I have solved this problem, just set the Typeface when exporting pictures.That is, call : imageDrawer.setTypefaceMap(typefaceMap);


Thank you,

 

 

Best regards,

 

 

longjunhao


Answer

Dear longjunhao,


thank you for the update, I am glad you found the solution.


Best regards,


Olivier

  • Support
  • Forums
  • Math
  • How to ensure that the style of the text in the exported image remains unchanged?