function reflow_text(&$driver) { if (is_null(parent::reflow_text($driver))) { return null; } // Override widths $letter_spacing = $this->getCSSProperty(CSS_LETTER_SPACING); $word_spacing = $this->getCSSProperty(CSS_WORD_SPACING); $this->width = $this->height * WHITESPACE_FONT_SIZE_FRACTION + $letter_spacing->getPoints() + $word_spacing->getPoints(); return true; }
function reflow_text(&$viewport) { // In XHTML images are treated as a common inline elements; they are affected by line-height and font-size global $g_config; if ($g_config['mode'] == 'xhtml') { $width = $this->width; $height = $this->height; $default_baseline = $this->default_baseline; if (is_null(TextBox::reflow_text($viewport))) { return null; } $this->height = $height; $this->width = $width; $this->default_baseline = $default_baseline; } else { $this->ascender = $this->get_height(); $this->descender = 0; } return true; }
function reflow_text(&$viewport) { if (is_null(TextBox::reflow_text($viewport))) { return null; } // Override widths $this->width = $this->font_size * WHITESPACE_FONT_SIZE_FRACTION; return true; }