Hi,
I am having some issues using truetype fonts in 0.9...I specify in my conf file the name of the font I want to use, and the font is in my weathermap directory, now if I use the web editor to add a new node or make a small change it seems to remove the line in my conf file that is defining the font.
i.e. it removes this line
FONTDEFINE 20 Tahoma 12
Any ideas?
Issues using true type fonts
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Issues using true type fonts
If you add that line, use the font, and NOT edit the map in the editor, does the font appear in the map correctly after one poller cycle?Syngress wrote:Hi,
I am having some issues using truetype fonts in 0.9...I specify in my conf file the name of the font I want to use, and the font is in my weathermap directory, now if I use the web editor to add a new node or make a small change it seems to remove the line in my conf file that is defining the font.
i.e. it removes this line
FONTDEFINE 20 Tahoma 12
Any ideas?
I think you'll find that it doesn't and that in the cacti.log is a line like
Code: Select all
Failed to load ttf font Tahoma - at config line 12
So the problem is not that the editor removes it, but that the font is incorrectly specified. Unfortunately, the freetype library cabe funny about this. Try adding the .ttf extension, or using the full path to the (full, with .ttf) filename...
Of course, I could be guessing wrong But if the font isn't loaded, then the editor won't write it, so this seems the likely cause.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 1 guest