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).
In reply to Re: Setting up a log to determine font size
by moritz
in thread Setting up a log to determine font size
by Quicksilver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |