Added Japaense as a 'large font'

This commit is contained in:
Hillel Coren 2016-03-13 13:47:46 +02:00
parent 4a5cb794d1
commit 44344e7676

View File

@ -1050,7 +1050,13 @@ class Account extends Eloquent
public function hasLargeFont() public function hasLargeFont()
{ {
return stripos($this->getBodyFontName(), 'chinese') || stripos($this->getHeaderFontName(), 'chinese'); foreach (['chinese', 'japanese'] as $language) {
if (stripos($this->getBodyFontName(), $language) || stripos($this->getHeaderFontName(), $language)) {
return true;
}
}
return false;
} }
public function getFontsUrl($protocol = ''){ public function getFontsUrl($protocol = ''){