I'm getting bad output of non-European characters while generating PNG output. OTRS locale is set to Unicode (language: ru), machine has Unicode locale too (en_US.UTF-8). PDF and CSV are fine with using Unicode so all the characters seen well.
Please advice me where to dig.
P.S. Merry Christmas!
[SOLVED] Bad characters while generating PNG reports
Moderator: crythias
-
- Znuny newbie
- Posts: 15
- Joined: 25 Dec 2010, 03:11
- Znuny Version: 2.4.7
- Location: Europe/Kiev
[SOLVED] Bad characters while generating PNG reports
OTRS 3.0.11 (RPM) + ITSM with PostgreSQL 8.1 on Centos 5.7 x86_64 on both production and testing machines.
-
- Znuny newbie
- Posts: 15
- Joined: 25 Dec 2010, 03:11
- Znuny Version: 2.4.7
- Location: Europe/Kiev
Re: [SOLVED] Bad characters while generating PNG reports
1. Install X11 Font subsystem.
2. Install appropriate TTF fonts, for example, DejaVu LGC.
3. In /Kernel/System/Stats.pm insert font configuration for GD::Graph element to section # build plot data
2. Install appropriate TTF fonts, for example, DejaVu LGC.
3. In /Kernel/System/Stats.pm insert font configuration for GD::Graph element to section # build plot data
Code: Select all
# build plot data
my @PData = ( $HeadArrayRef, @StatArray );
my ( $XSize, $YSize ) = split( m{x}x, $Param{GraphSize} );
my $graph = $GDBackend->new( $XSize || 550, $YSize || 350 );
# Added 20101226 9:05
$graph->set_title_font("/usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf",12);
$graph->set_legend_font("/usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf",8);
$graph->set_x_label_font("/usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf",8);
$graph->set_y_label_font("/usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf",8);
#end of added
$graph->set(
OTRS 3.0.11 (RPM) + ITSM with PostgreSQL 8.1 on Centos 5.7 x86_64 on both production and testing machines.