[rrd-users] SVG fonts on Ubuntu Server

This is a discussion on [rrd-users] SVG fonts on Ubuntu Server within the RRD Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1387571177== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C89726.4D0D7C60" This ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-05-2008
Rob Conway
 
Posts: n/a
Default [rrd-users] SVG fonts on Ubuntu Server

This is a multi-part message in MIME format.

--===============1387571177==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0018_01C89726.4D0D7C60"

This is a multi-part message in MIME format.

------=_NextPart_000_0018_01C89726.4D0D7C60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi List



I was trying to see if I could optimize the file size of some of my graphs
by trying SVG format instead of the default png



rrdtool graph /var/www/ph1d.svg --start $stime --end $etime \

--upper-limit 7.2 --lower-limit 6.2 --slope-mode --units-length 2 \

--interlaced \

--imgformat SVG \

--rigid \

--width 424 --height 200 \

--vertical-label "pH\n" \

--color GRID#3D5229 \

--color MGRID#385E0F \

--color FONT#E0E0E0 \

--color CANVAS#000000 \

--color BACK#121212 \

DEF:phv=/var/scripts/rrd/aqua_ph.rrd:P1:AVERAGE LINE1:phv#0000FF:"Ph=" \

VDEF:phlast=phv,LAST GPRINT:phlast:"%3.2lf%S" \

VDEF:phavg=phv,AVERAGE GPRINT:phavg:"avg=%3.2lf%spH " \

--watermark "Aquarium PH Graph"





When I run the script I get



Can't find font '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf'



However that font is actually in the directory


------=_NextPart_000_0018_01C89726.4D0D7C60
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi List</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I was trying to see if I could optimize the file size =
of
some of my graphs by trying SVG format instead of the default =
png</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>rrdtool graph /var/www/ph1d.svg --start $stime --end =
$etime
\</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--upper-limit 7.2 --lower-limit 6.2 --slope-mode
--units-length 2 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--interlaced \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--imgformat SVG \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--rigid \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--width 424 --height 200 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--vertical-label &quot;pH\n&quot; \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--color GRID#3D5229 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--color MGRID#385E0F \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--color FONT#E0E0E0 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--color CANVAS#000000 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--color BACK#121212 \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>DEF:phv=3D/var/scripts/rrd/aqua_ph.rrd:P1:AVERAGE&nbsp=
; LINE1:phv#0000FF:&quot;Ph=3D&quot;
\</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>VDEF:phlast=3Dphv,LAST =
GPRINT:phlast:&quot;%3.2lf%S&quot; \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>VDEF:phavg=3Dphv,AVERAGE =
GPRINT:phavg:&quot;avg=3D%3.2lf%spH&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;
&quot; \</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>--watermark &quot;Aquarium PH =
Graph&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I run the script I get =
&nbsp;&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>Can't find font =
'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf'</span></font></=
b></p>

<p class=3DMsoNormal><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>&nbsp;</span></font></b></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>However that font is actually in the =
directory</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0018_01C89726.4D0D7C60--


--===============1387571177==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

--===============1387571177==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0