Lines Matching refs:this

19     $this->SimpleInlineBox();
21 $this->words = array();
22 $this->encodings = array();
23 $this->hyphens = array();
24 $this->_word_widths = array();
25 $this->_wrappable = array();
26 $this->wrapped = null;
27 $this->_widths = array();
29 $this->font_size = 0;
30 $this->ascender = 0;
31 $this->descender = 0;
32 $this->width = 0;
33 $this->height = 0;
40 $hyphens = $this->hyphens[$subword_index];
45 …$subword_wrappable_width = $base_width + $driver->stringwidth(substr($this->words[$subword_index],…
47 … $this->encodings[$subword_index],
60 … return join('', array_map(array($this, 'get_content_callback'), $this->words, $this->encodings));
69 return $this->height;
73 $this->height = $value;
85 $height = $this->get_height();
86 $under = $height - $this->default_baseline;
88 $line_height = $this->get_css_property(CSS_LINE_HEIGHT);
91 …$scale = $line_height->apply($this->ascender + $this->descender) / ($this->ascender + $this->desce…
99 $this->put_height(($this->ascender + $this->descender)*$scale);
100 $this->default_baseline = $this->default_baseline + $delta/2;
104 if (isset($this->_cache[CACHE_TYPEFACE][$subword_index])) {
105 return $this->_cache[CACHE_TYPEFACE][$subword_index];
110 $font = $this->get_css_property(CSS_FONT);
115 $this->encodings[$subword_index]);
117 $this->_cache[CACHE_TYPEFACE][$subword_index] = $typeface;
123 $text_transform = $this->get_css_property(CSS_TEXT_TRANSFORM);
139 $this->words[] = $subword;
140 $this->encodings[] = $encoding;
141 $this->hyphens[] = $hyphens;
163 $this->_readCSSLengths($state,
170 return $this->descender;
174 return $this->ascender;
178 return $this->baseline;
182 return $this->get_full_width();
186 return $this->get_full_width();
190 return $this->get_full_width();
209 if ($last->is_note_call() && $this->is_punctuation()) {
215 $right_x = $this->get_full_width() + $parent->_current_x;
234 $ti = $this->get_css_property(CSS_TEXT_INDENT);
246 $parent->_current_y -= $this->get_height();
251 $size = count($this->_wrappable);
258 $this->_find_soft_hyphen($parent, $width_delta);
264 $element = $this->parent;
278 $size = count($this->_wrappable);
280 $wrappable = $this->_wrappable[$i];
281 if ($this->get_width() - $wrappable[3] > $width_delta) {
282 $this->save_wrapped($wrappable, $parent, $context);
283 $parent->append_line($this);
290 $this->wrapped = array($wrappable,
291 $parent->_current_x + $this->get_extra_left(),
292 $parent->_current_y - $this->get_extra_top());
302 do { $i++; } while ($this->maybe_line_break($parent, $context) && $i < 100);
305 $this->_apply_line_height();
308 $this->baseline = $this->default_baseline;
311 $parent->append_line($this);
314 $this->guess_corner($parent);
317 if (!is_null($this->wrapped)) {
318 $parent->_current_x += $this->get_full_width() - $this->wrapped[0][2];
320 $parent->_current_x += $this->get_full_width();
324 $parent->extend_height($this->get_bottom());
334 return $this->wrapped[0][3];
338 return $this->wrapped[0][2];
342 $num_words = count($this->words);
356 $font_name = $this->_get_font_name($driver, 0);
361 $ascender = $driver->font_ascender($font_name, $this->encodings[0]);
367 $descender = $driver->font_descender($font_name, $this->encodings[0]);
376 $font = $this->get_css_property(CSS_FONT_SIZE);
383 $this->ascender = $ascender * $koeff;
384 $this->descender = $descender * $koeff;
386 $this->default_baseline = $this->ascender;
387 $this->height = $this->ascender + $this->descender;
396 $font_name = $this->_get_font_name($driver, $i);
398 $current_width = $driver->stringwidth($this->words[$i],
400 $this->encodings[$i],
402 $this->_word_widths[] = $current_width;
405 …$this->_wrappable = array_merge($this->_wrappable, $this->_make_wrappable($driver, $width, $font_n…
410 $this->width = $width;
412 $this->width = 0;
415 $letter_spacing = $this->get_css_property(CSS_LETTER_SPACING);
418 $this->_widths = array();
421 $num_chars = strlen($this->words[$i]);
424 $this->_widths[] = $driver->stringwidth($this->words[$i]{$j},
426 $this->encodings[$i],
430 $this->width += $letter_spacing->getPoints()*$num_chars;
441 $font_size = $this->get_css_property(CSS_FONT_SIZE);
448 $top = $this->get_top_margin();
450 $bottom = $this->get_bottom_margin();
459 return $this->_showText($driver);
463 if (!is_null($this->wrapped)) {
464 return $this->_showTextWrapped($driver);
466 return $this->_showTextNormal($driver);
474 $font_size = $this->get_css_property(CSS_FONT_SIZE);
476 $decoration = $this->get_css_property(CSS_TEXT_DECORATION);
483 $letter_spacing = $this->get_css_property(CSS_LETTER_SPACING);
492 $left = $this->wrapped[1];
493 $top = $this->get_top() - $this->default_baseline;
494 $num_words = count($this->words);
499 for ($i=0; $i<$this->wrapped[0][0]; $i++) {
501 $status = $driver->setfont($this->_get_font_name($driver, $i),
502 $this->encodings[$i],
509 $driver->show_xy($this->words[$i],
511 $this->wrapped[2] - $this->default_baseline);
512 $left += $this->_word_widths[$i];
515 $index = $this->wrapped[0][0];
517 $status = $driver->setfont($this->_get_font_name($driver, $index),
518 $this->encodings[$index],
525 $driver->show_xy(substr($this->words[$index],0,$this->wrapped[0][1])."-",
527 $this->wrapped[2] - $this->default_baseline);
533 $left = $this->get_left();
534 $top = $this->get_top();
535 $driver->show_xy(substr($this->words[$index],$this->wrapped[0][1]),
537 $top - $this->default_baseline);
539 $size = count($this->words);
540 for ($i = $this->wrapped[0][0]+1; $i<$size; $i++) {
542 $status = $driver->setfont($this->_get_font_name($driver, $i),
543 $this->encodings[$i],
550 $driver->show_xy($this->words[$i],
552 $top - $this->default_baseline);
554 $left += $this->_word_widths[$i];
564 $font_size = $this->get_css_property(CSS_FONT_SIZE);
566 $decoration = $this->get_css_property(CSS_TEXT_DECORATION);
573 $letter_spacing = $this->get_css_property(CSS_LETTER_SPACING);
581 $size = count($this->words);
582 $left = $this->get_left();
586 $status = $driver->setfont($this->_get_font_name($driver, $i),
587 $this->encodings[$i],
594 $driver->show_xy($this->words[$i],
596 $this->get_top() - $this->default_baseline);
598 $left += $this->_word_widths[$i];
603 $left = $this->get_left();
604 $top = $this->get_top() - $this->default_baseline;
605 $num_words = count($this->words);
608 $num_chars = strlen($this->words[$i]);
611 $status = $driver->setfont($this->_get_font_name($driver, $i),
612 $this->encodings[$i],
615 $driver->show_xy($this->words[$i]{$j}, $left, $top);
616 $left += $this->_widths[$current_char] + $letter_spacing->getPoints();
626 $font_size = $this->get_css_property(CSS_FONT_SIZE);
633 return $this->_showText($driver);
642 if (!is_null($this->wrapped)) {
643 $this->offset_wrapped($dx, $dy);
648 $this->wrapped[1] += $dx;
649 $this->wrapped[2] += $dy;