aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-09-07 20:08:41 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-09-07 20:08:41 +0200
commitee4065f9ae0f7308387c56d1319b0b37965227c6 (patch)
treecb5f0586f03d1a7e947c79124e05e26196c791ee
parenta52e66ebe0d98854108f366a9dc3be3790d18180 (diff)
downloadbugs-ee4065f9ae0f7308387c56d1319b0b37965227c6.tar
bugs-ee4065f9ae0f7308387c56d1319b0b37965227c6.tar.gz
bugs-ee4065f9ae0f7308387c56d1319b0b37965227c6.tar.bz2
bugs-ee4065f9ae0f7308387c56d1319b0b37965227c6.tar.xz
bugs-ee4065f9ae0f7308387c56d1319b0b37965227c6.zip
Bug 1201041: Allow OpenType fonts as well as TrueType (.otf as well as .ttf) for graphs
r=gerv a=justdave
-rw-r--r--Bugzilla/Config/Common.pm4
-rw-r--r--template/en/default/admin/params/dependencygraph.html.tmpl8
2 files changed, 6 insertions, 6 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm
index a5b32c1db..e8dfe3e9d 100644
--- a/Bugzilla/Config/Common.pm
+++ b/Bugzilla/Config/Common.pm
@@ -249,8 +249,8 @@ sub check_font_file {
$font = trim($font);
return '' unless $font;
- if ($font !~ /\.ttf$/) {
- return "The file must point to a TrueType font file (its extension must be .ttf)"
+ if ($font !~ /\.(ttf|otf)$/) {
+ return "The file must point to a TrueType or OpenType font file (its extension must be .ttf or .otf)"
}
if (! -f $font) {
return "The file '$font' cannot be found. Make sure you typed the full path to the file"
diff --git a/template/en/default/admin/params/dependencygraph.html.tmpl b/template/en/default/admin/params/dependencygraph.html.tmpl
index 64a334a20..6ef25807c 100644
--- a/template/en/default/admin/params/dependencygraph.html.tmpl
+++ b/template/en/default/admin/params/dependencygraph.html.tmpl
@@ -34,10 +34,10 @@
for other systems the needed measures may vary. You can run <kbd>checksetup.pl</kbd>
to recreate the .htaccess file if it has been lost.",
- font_file => "You can specify the full path to a TrueType font file which will be used " _
- "to display text (labels, legends, ...) in charts and graphical reports. " _
- "To support as many languages as possible, we recommend to specify a TrueType " _
- "font such as <a href=\"http://unifoundry.com/unifont.html\">Unifont</a> " _
+ font_file => "You can specify the full path to a TrueType or OpenType font file which will " _
+ "be used to display text (labels, legends, ...) in charts and graphical reports. " _
+ "To support as many languages as possible, we recommend to specify a font " _
+ "such as <a href=\"http://unifoundry.com/unifont.html\">Unifont</a> " _
"which supports all printable characters in the Basic Multilingual Plane. " _
"If you leave this parameter empty, a default font will be used, but " _
"its support is limited to English characters only and so other characters " _