From df0076e05efd754ba69802b47447f95e466dda57 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 8 Jun 2021 23:35:34 +0200 Subject: [PATCH] Improved arabic and hebrew scripts --- CRM/Utils/PDF/Utils.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index 381485e244..ff77869a3b 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -50,14 +50,16 @@ class CRM_Utils_PDF_Utils { \usepackage{fontspec,xunicode} %% VERY IMPORTANT. Configures supported languages and fonts to use for each one. \usepackage[Latin, Hebrew, Arabics, CJK, Diacritics]{ucharclasses} +\newfontfamily\arabfont{FreeSerif}[Script = Arabic] +\newfontfamily\hebrewfont{FreeSerif}[Script = Hebrew] \newfontfamily{\normalfont}[Ligatures=TeX]{FreeSerif} \newfontfamily{\cjkfont}{WenQuanYi Zen Hei} \setDefaultTransitions{\normalfont}{} \setTransitionsForLatin{\normalfont}{} -\setTransitionsForArabics{\normalfont}{} +\setTransitionsForArabics{\arabfont}{} \setTransitionsForCJK{\cjkfont}{} \setTransitionsForDiacritics{\normalfont}{} -\setTransitionTo{Hebrew}{\normalfont} +\setTransitionTo{Hebrew}{\hebrewfont} \setmainfont{FreeSerif} \newcommand{\fsfclosing}[1]{\par\nobreak\vspace{\parskip} -- 2.25.1