Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


ttf Fonts

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
princea



Joined: 10 Jun 2005
Posts: 31

PostPosted: Fri Nov 09, 2007 9:44 am    Post subject: ttf Fonts Reply with quote

all,

I have recently built a new cacti server - using the below versions:-

Quote:
Cacti Version - 0.8.7
Plugin Architecture - 1.3
Poller Type - CMD.php
Server Info - Linux 2.6.18-8.1.15.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp
MySQL - 5.0.22
RRDTool - 1.2.23
SNMP - 5.3.1
Plugins
    Global Plugin Settings (settings - v0.3)
    Thresholds (thold - v0.3.8 )
    Update Checker (update - v0.4)
    Host Info (hostinfo - v0.2)
    PHP Network Weathermap (weathermap - v0.93)
    Network Tools (tools - v0.2)


I have several ttf fonts that I have used in my current server using the fontdefine command , but in the editor of any map they are not available. I have copied them to /var/www/cacti/plugins/weathermap

the same place I always put them??

Any help/suggestions will be appreciated.
Back to top
woodwalker



Joined: 12 Dec 2007
Posts: 2

PostPosted: Sat Dec 15, 2007 9:54 pm    Post subject: Reply with quote

give more messages,when you run the check.php all test past?
it seems that you don't complie the freetype,php must use the gd and freetype to draw the gd and truetype font.
a tip,under Weathermap.class.php file there is a funtion called myimagestring that use to draw the truetype font.


Last edited by woodwalker on Mon Dec 17, 2007 8:36 pm; edited 1 time in total
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Sun Dec 16, 2007 3:39 am    Post subject: Reply with quote

The editor only shows the fonts that are already defined in that map.

Try using the full path to the font files. The way that freetype searches for fonts is sometimes different from one OS to the next.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group