feat(pdf): roll out shared RTL layout to all templates

Introduce createRtlStyleHelpers and a single rtl flag on RenderProvider,
migrate every template page to mirrored layout styles, and rename
alignRight to alignEnd. Fix plain rich text rendering via PdfText
paragraph renderers and map legacy Times New Roman to Times-Roman.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Amruth Pillai
2026-05-25 16:29:50 +02:00
co-authored by Cursor
parent 86fff7237f
commit 24c882fa9f
28 changed files with 501 additions and 276 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ const legacyFontAliases: Record<string, string> = {
Cambria: "Tinos",
Calibri: "Carlito",
Garamond: "EB Garamond",
"Times New Roman": "Tinos",
"Times New Roman": "Times-Roman",
};
export function resolveLegacyFontAlias(family: string): string | null {