From 44344e767629e7508dd40f6976fcb5af9fc76a54 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 13 Mar 2016 13:47:46 +0200 Subject: [PATCH] Added Japaense as a 'large font' --- app/Models/Account.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index b729f46ffb50..5662cad9a510 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1050,7 +1050,13 @@ class Account extends Eloquent 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 = ''){