You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ x ] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
When using Excel file with i.e. Calibri, it should find the installed font, when it is installed on /usr/share/fonts/truetype/vista/calibri.ttf. All truetype fonts installed on our server at least, are installed grouped by directories.
What is the current behavior?
It cannot find the font. And the reason is pretty obvious. $fontFile = self::$trueTypeFontPath . $fontFile;. It makes no effort to look in sub-directories.
What are the steps to reproduce?
Set true-type font directory to /usr/share/fonts/truetype/ as the documentation states, and try to use it.
What features do you think are causing the issue
Reader
Writer
Styles
Data Validations
Formula Calulations
Charts
AutoFilter
Form Elements
[ x ] Fonts
The text was updated successfully, but these errors were encountered:
FixPHPOffice#2809. User felt font files should be searched recursively. The problem could be overcome merely by specifying a more precise font location. However, user has a point - the file layout on user's system is pretty common, and can be integrated into PhpSpreadsheet code easily. As a bonus, the DocBlock for setTrueTypeFontPath, which the user felt was misleading, doesn't even have to change.
This is:
What is the expected behavior?
When using Excel file with i.e. Calibri, it should find the installed font, when it is installed on
/usr/share/fonts/truetype/vista/calibri.ttf
. All truetype fonts installed on our server at least, are installed grouped by directories.What is the current behavior?
It cannot find the font. And the reason is pretty obvious.
$fontFile = self::$trueTypeFontPath . $fontFile;
. It makes no effort to look in sub-directories.What are the steps to reproduce?
Set true-type font directory to
/usr/share/fonts/truetype/
as the documentation states, and try to use it.What features do you think are causing the issue
The text was updated successfully, but these errors were encountered: