https://bugzilla.wikimedia.org/show_bug.cgi?id=21497
--- Comment #14 from JeLuF <[email protected]> 2011-02-05 22:22:48 UTC --- I'm tempted to have the font a per-timeline option, with FreeSans as default: Index: Timeline.php =================================================================== --- Timeline.php (revision 72554) +++ Timeline.php (working copy) @@ -48,8 +48,13 @@ return true; } -function renderTimeline( $timelinesrc ){ +function renderTimeline( $timelinesrc, $attr ){ global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory, $wgRenderHashAppend; + + if ( isset( $attr[font] ) ) { + $wgTimelineSettings->fontFile = preg_replace( '/[^a-zA-Z0-9_-]/', '', $attr[font] ) . '.ttf'; + } + $hash = md5( $timelinesrc ); if ($wgRenderHashAppend != "") $hash = md5( $hash . $wgRenderHashAppend ); =================================================================== <timeline font="FreeSerif"> ..... </timeline> -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
