From: Ruben Rodriguez Date: Tue, 8 Jun 2021 21:35:34 +0000 (+0200) Subject: Improved arabic and hebrew scripts X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=df0076e05efd754ba69802b47447f95e466dda57;p=civicrm-core.git Improved arabic and hebrew scripts --- 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}