mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 04:29:37 +08:00
Replace CFX_BidiString usage in CPVT_Section::OutputLines() with CFX_BidiResolver to implement the Unicode Bidirectional Algorithm. Pass the state from CPVT_VariableText::GetDirection() down to the resolver to establish the base paragraph direction context. Resolve visual runs globally across the entire paragraph to correctly reverse mixed direction text and handle trailing spaces. Update unit tests to assert new layout coordinates. Bug: 534486929 Change-Id: I67ce57e19f25a7e99ad09e19d0cef0aca076fd67 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/152251 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Seung Hyun Jin <seunghyunjin@google.com>