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=af1f5694ee410e59667695b504cdce59267203ce;p=civicrm-core.git Improved arabic and hebrew scripts --- diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index d1cdf93448..ee08bd45cc 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}