Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ee4065f9
Commit
ee4065f9
authored
Sep 07, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1201041: Allow OpenType fonts as well as TrueType (.otf as well as .ttf) for graphs
r=gerv a=justdave
parent
a52e66eb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Common.pm
Bugzilla/Config/Common.pm
+2
-2
dependencygraph.html.tmpl
template/en/default/admin/params/dependencygraph.html.tmpl
+4
-4
No files found.
Bugzilla/Config/Common.pm
View file @
ee4065f9
...
...
@@ -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 .t
tf)"
if
(
$font
!~
/\.
(ttf|otf)
$/
)
{
return
"The file must point to a TrueType
or OpenType font file (its extension must be .ttf or .o
tf)"
}
if
(
!
-
f
$font
)
{
return
"The file '$font' cannot be found. Make sure you typed the full path to the file"
...
...
template/en/default/admin/params/dependencygraph.html.tmpl
View file @
ee4065f9
...
...
@@ -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 " _
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment