Fix language font for PDF
This commit is contained in:
parent
ea7ef29ca2
commit
138e93402d
@ -1,9 +1,15 @@
|
|||||||
# Dolibarr language file - Source file is en_US - main
|
# Dolibarr language file - Source file is en_US - main
|
||||||
DIRECTION=ltr
|
DIRECTION=ltr
|
||||||
|
# Default for FONTFORPDF=helvetica
|
||||||
# Note for Chinese:
|
# Note for Chinese:
|
||||||
# msungstdlight or cid0ct are for traditional Chinese (traditional does not render with Ubuntu pdf reader)
|
# msungstdlight or cid0ct are for traditional Chinese zh_TW (traditional does not render with Ubuntu pdf reader)
|
||||||
# stsongstdlight or cid0cs are for simplified Chinese
|
# stsongstdlight or cid0cs are for simplified Chinese zh_CN
|
||||||
# To read Chinese pdf with Linux: sudo apt-get install poppler-data
|
# 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
|
FONTFORPDF=helvetica
|
||||||
FONTSIZEFORPDF=10
|
FONTSIZEFORPDF=10
|
||||||
SeparatorDecimal=.
|
SeparatorDecimal=.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Dolibarr language file - Source file is en_US - main
|
# Dolibarr language file - Source file is en_US - main
|
||||||
DIRECTION=ltr
|
DIRECTION=ltr
|
||||||
FONTFORPDF=helvetica
|
FONTFORPDF=freemono
|
||||||
FONTSIZEFORPDF=10
|
FONTSIZEFORPDF=10
|
||||||
SeparatorDecimal=.
|
SeparatorDecimal=.
|
||||||
SeparatorThousand=,
|
SeparatorThousand=,
|
||||||
|
|||||||
@ -186,7 +186,7 @@ class LangTest extends PHPUnit\Framework\TestCase
|
|||||||
|
|
||||||
$result=$tmplangs->transnoentitiesnoconv("FONTFORPDF");
|
$result=$tmplangs->transnoentitiesnoconv("FONTFORPDF");
|
||||||
print __METHOD__." FONTFORPDF=".$result."\n";
|
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");
|
$result=$tmplangs->transnoentitiesnoconv("DIRECTION");
|
||||||
print __METHOD__." DIRECTION=".$result."\n";
|
print __METHOD__." DIRECTION=".$result."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user