Archive for May, 2009

Using User-Installed Fonts with Clicker

Saturday, May 23rd, 2009

If you are a Mac user and have tried to use fonts that you installed in your local Fonts directory, you may have had some trouble. I’ve tried to fix this a few times, but never found the hint I needed. Today that changed!

Create a ~/.fonts.conf that contains the following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
 
<!-- Font directory list -->
<!-- Add to system list -->
 
        <dir>/System/Library/Fonts</dir>
        <dir>/Library/Fonts</dir>
        <dir>~/Library/Fonts</dir>
 
</fontconfig>

This should enable any font-config enabled application to find your precious fonts!

New Renderer: CandleStick

Friday, May 8th, 2009

This has been on my list for quite some time and tonight I finally got around to it.

It’s included in the latest release, just uploaded to CPAN.

Proper Text Rotation

Saturday, May 2nd, 2009

The just-uploaded 2.24 release of Chart::Clicker depends on a fresh release of the Graphics::Primitive Cairo driver. This is important because Clicker’s ornery text-rotation bug is now gone. Previously, rotation didn’t calculate a bounding box, it instead allocated space that was a square as big as original box’s largest dimension. The yield can be seen quickly in this composite of a before (0.36) and after (0.37) shot of a simple chart:

You can see how much space was wasted on the vertical y-axis label. On the right things are sized properly.

The only other “major” bug I’ve got hanging around in Clicker is an overflow bug due to broken legend wrapping. I’ll attack this next.