Lines Matching refs:text

162 	private function font_dims($fontidx, $text, $angle = 0)  argument
164 return imagettfbbox($this->font_sizes[$fontidx], $angle, $this->font_path($fontidx), $text);
167 public function font_height($fontidx, $text = "", $angle = 0) argument
169 if ($text == "")
170 $text = $this->text_range;
171 return $this->_font_height($this->font_dims($fontidx, $text, $angle));
174 public function font_width($fontidx, $text, $angle = 0) argument
176 return $this->_font_width($this->font_dims($fontidx, $text, $angle));
178 private function _text($x, $y, $fontidx, $text, $height_text, $angle = 0) argument
181 $fw = $this->font_width($fontidx, " $text ", $angle);
186 $y + $fh, $this->black, $this->font_path($fontidx), $text);
188 public function exact_text($x, $y, $fontidx, $text, $angle = 0) argument
190 return $this->_text($x, $y, $fontidx, $text, $text, $angle);
192 public function text($x, $y, $fontidx, $text, $angle = 0) argument
194 return $this->_text($x, $y, $fontidx, $text, "", $angle);
252 $text = $register->name;
254 $text .= ": " . $register->desc;
256 $text .= " - " . $register->perms;
257 $im->text($x, $y, FONT_TITLE, $text);
262 $im->text($x, $y + $ymin, FONT_DESC, " ".$register->sub_desc);
281 $im->text($xmin - $mmrsx, $y, FONT_LABELS, $mmr_disp);
284 $im->text($xmin - $resetsx, $y, FONT_LABELS, $reset_disp);
337 $im->text($x+$xoff, $y-$yoff, FONT_BITS, $b);
376 $text = $bit->format_name($bitset_h, $register->bitrange);
377 $desc_adjust = max($desc_adjust, $im->font_width(FONT_LABELS, $text." "));
396 $text = $bit->format_name($bitset_h, $register->bitrange);
422 $cx2_indent = $desc_adjust - $im->font_width(FONT_LABELS, $text." ");
432 $im->text($cx2+$fw, $cy2-$fh, FONT_LABELS, $text);
440 $text = explode("\n", $bdesc);
441 foreach ($text as $t) {
442 $im->text($cx2+$fw, $cy2+$fh, FONT_DESC, $t);