We have been trying to use custom text editor example. When we set a large font size with transparent background, we see annotation text in the back shifted. We tried various padding and margin options for the text box. However, none of them helped. If you can provide some input on this issue that will be great.

In our example the TextBox control is used for editing the annotation text. Example shows the TextBox over the annotation and you see the text, which is drawn by TextBox. Also SDK draws the updated annotation text when you editing the annotation text. You do not see the updated annotation text, which is drawn by SDK, because the text is located under the TextBox.

You will see the text, which is drawn by SDK, and the text, which is drawn by TextBox, if you use the transparent background in TextBox. The drawn texts may be different because SDK does not know the exact algorithm, which is used for drawing the text in TextBox. This is the reason of your problem.

For solving the problem you can go by 2 ways.

WAY 1: Use TextBox with not transparent background.

WAY 2: Create custom algorithm, which allows to draw and edit annotation text without TextBox.