Remove characters in the text from
start (inclusive) to
deleteCharacters(start: number, end: number): void
This API allows you to remove characters in a text node while preserving the styles of the existing characters. However, you still need to call
figma.loadFontAsync before using this API.