original_string: function recalculate_width()
      {
          $style = $this->get_style();
          $text = $this->get_text();
          $size = $style->font_size;
          $font = $style->font_family;
          $word_spacing = (float)$style->length_in_pt($style->word_spacing);
          $char_spacing = (float)$style->length_in_pt($style->letter_spacing);
  
          return $style->width = $this->_dompdf->getFontMetrics()->getTextWidth($text, $font, $size, $word_spacing, $char_spacing);
      }
code: function recalculate_width()
      {
          $style = $this->get_style();
          $text = $this->get_text();
          $size = $style->font_size;
          $font = $style->font_family;
          $word_spacing = (float)$style->length_in_pt($style->word_spacing);
          $char_spacing = (float)$style->length_in_pt($style->letter_spacing);
  
          return $style->width = $this->_dompdf->getFontMetrics()->getTextWidth($text, $font, $size, $word_spacing, $char_spacing);
      }
code_tokens: function recalculate_width ( ) { $ style = $ this -> get_style ( ) ; $ text = $ this -> get_text ( ) ; $ size = $ style -> font_size ; $ font = $ style -> font_family ; $ word_spacing = ( float ) $ style -> length_in_pt ( $ style -> word_spacing ) ; $ char_spacing = ( float ) $ style -> length_in_pt ( $ style -> letter_spacing ) ; return $ style -> width = $ this -> _dompdf -> getFontMetrics ( ) -> getTextWidth ( $ text , $ font , $ size , $ word_spacing , $ char_spacing ) ; }
docstring: Recalculate the text width
  
  @return float
docstring_tokens: Recalculate the text width