in reply to Setting up a log to determine font size
sub DetermineFontSize ($) { my ($tagCnt) = @_; my $cntRatio; if ($useLogCurve) { $cntRatio = (log($tagCnt) - $minLog)/$logRange; } my $fsize = $minFontSize + $fontRange * $cntRatio; return $fsize; }
So what do you expect to happen if $useLogCurve isn't set? Currently the sub will always return $minFontSize in that case (and emit a warning that $cntRatio is uninitialized).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting up a log to determine font size
by Anonymous Monk on May 22, 2008 at 10:33 UTC | |
by moritz (Cardinal) on May 22, 2008 at 10:55 UTC |