mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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
|
||||
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=.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Dolibarr language file - Source file is en_US - main
|
||||
DIRECTION=ltr
|
||||
FONTFORPDF=helvetica
|
||||
FONTFORPDF=freemono
|
||||
FONTSIZEFORPDF=10
|
||||
SeparatorDecimal=.
|
||||
SeparatorThousand=,
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user