Thai text wrapping

Thai text wrapping

Forum member · Nov 24, 2016
Hi, We are generating pdf documents with Thai text. Thai text doesn't have spaces and we want to use zero width spaces to have some control over where the text wraps. I've tried using zero width spaces and they show as norm spaces. I have tried using the UniversalLineBreaker but this doesn't make any difference. I can't roll my own LineBreaker because the base class has an internal abstract method and can't be derived from outside of your assembly. Is there any way of controlling the wrapping? Thanks

Re: Thai text wrapping

Support · Nov 25, 2016
Hello, The DynamicPDF API wraps the text as per the width of the page element (TextArea, Label or FormattedTextArea) and length of the last word in the text line. It is not possible to control the text wrapping explicitly using DynamicPDF API. Also please note that warping is done for the whole word in the text line and not per the characters/letters in the word. A word of caution when using open type fonts: Any font that uses complex text layout (CTL) is not supported in our API so when you use an open type font file with our API to add a certain language characters to the PDF file you would need to check with the font vendor to see if the languages supported in that font file use CTL or not. Typically Thai, Hebrew, Arabic & Indic language fonts are implemented using CTL. The complex scripting or complex text layout (CTL) is a method of implementing a certain language alphabet in a font. Thanks, ceTe Software Support Team.