I've tried to tweak the example linked to for version 0.8.5 but have not had any luck - the placeholders for the page numbers don't get replaced.
$font = Font_Metrics::get_font("helvetica", "bold");
$font = $fontMetrics->getFont('helvetica', 'bold');
but no luck. Any ideas?