Fix language font for PDF

This commit is contained in:
Laurent Destailleur 2022-07-26 14:15:38 +02:00
parent ea7ef29ca2
commit 138e93402d
3 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,15 @@
# Dolibarr language file - Source file is en_US - main
DIRECTION=ltr
# Default for FONTFORPDF=helvetica
# Note for Chinese:
# msungstdlight or cid0ct are for traditional Chinese (traditional does not render with Ubuntu pdf reader)
# stsongstdlight or cid0cs are for simplified Chinese
# msungstdlight or cid0ct are for traditional Chinese zh_TW (traditional does not render with Ubuntu pdf reader)
# stsongstdlight or cid0cs are for simplified Chinese zh_CN
# To read Chinese pdf with Linux: sudo apt-get install poppler-data
# cid0jp is for Japanish
# cid0kr is for Korean
# DejaVuSans is for some Eastern languages, some Asian languages and some Arabic languages
# freemono is for ru_RU or uk_UA, uz_UZ
# freeserif is for Tamil
FONTFORPDF=helvetica
FONTSIZEFORPDF=10
SeparatorDecimal=.

View File

@ -1,6 +1,6 @@
# Dolibarr language file - Source file is en_US - main
DIRECTION=ltr
FONTFORPDF=helvetica
FONTFORPDF=freemono
FONTSIZEFORPDF=10
SeparatorDecimal=.
SeparatorThousand=,

View File

@ -186,7 +186,7 @@ class LangTest extends PHPUnit\Framework\TestCase
$result=$tmplangs->transnoentitiesnoconv("FONTFORPDF");
print __METHOD__." FONTFORPDF=".$result."\n";
$this->assertTrue(in_array($result, array('msungstdlight', 'stsongstdlight', 'helvetica', 'DejaVuSans', 'cid0jp', 'cid0kr', 'freemono')), 'Error bad value '.$result.' for FONTFORPDF in main.lang file '.$code);
$this->assertTrue(in_array($result, array('msungstdlight', 'stsongstdlight', 'helvetica', 'DejaVuSans', 'cid0jp', 'cid0kr', 'freemono', 'freeserif')), 'Error bad value '.$result.' for FONTFORPDF in main.lang file '.$code);
$result=$tmplangs->transnoentitiesnoconv("DIRECTION");
print __METHOD__." DIRECTION=".$result."\n";