XFA Rich Text Wrapping

The rich text draw pipeline lays XHTML paragraph text into consecutive lines using the draw width, effective paragraph margins and the first-line textIndent

Words move together when their styled fragments fit a complete line, including words spanning adjacent span elements without an intervening space; words wider than a line split into measured prefixes, and UTF-16 surrogate pairs remain intact

Normal XHTML spaces, tabs and source line endings collapse to one space between words, and spaces at the beginning or end of a line are omitted; a br element forces a line break and consecutive breaks retain empty intermediate lines

Each line computes its own center or right alignment and common baseline; justified lines distribute spare width across actual word spaces after a soft wrap, while the final line and lines ended by br retain their natural spacing

The effective native para.lineHeight applies to every line and cannot reduce the line step below the text height; adjacent paragraph spacing is applied once around the complete paragraph

تجاوزات الخطوط والألوان المضمّنة تنجو من تجزئة الأسطر، والأنماط المتداخلة داخل ارتباط نصي تبقى فعالة؛ وكل شظية ارتباط نصي متموضعة تحفظ وجهتها وتنشئ مستطيل ارتباط PDF أصليًا خاصًا بها

HPDFXFAFlatten uses the supplied TXFAMeasureTextFunc for fitting, with bounded prefix probes for oversized words; when no measurer is supplied, its fallback uses one half-em advance per Unicode scalar

THotPDF.ApplyXFAAsAcroForm uses the native font measurer and preserves runtime changes through XDP save and reload, including independent text, color and paragraph overrides on repeated instances

فاك الأسطر الحالي يستخدم حدود كلمات بالفراغات والتجزئة الطارئة الآمنة للـ scalars؛ وقواعد فواصل أسطر Unicode الكاملة ومجموعاتها الكتابية وأنماط white-space في CSS الإضافية وتحرير النص الغني الكامل لـ widgets وهندسة الزخرفة المتبقية تواصل كأهداف منفصلة

هندسة الفقرات، تجاوزات خصائص النص الغني و ApplyXFAAsAcroForm