protected function doDrawEnumeration(Document $document, BasicList $list, GraphicsContext $gc, $xCoord, $yCoord)
 {
     $encoding = $list->getEncoding();
     $gc->saveGS();
     $color = $list->getRecurseAttribute('color');
     if ($color) {
         $gc->setLineColor($color);
         $gc->setFillColor($color);
     }
     $font = $list->getFont($document);
     $size = $list->getFontSizeRecursively();
     if ($font && $size) {
         $gc->setFont($font, $size);
     }
     $gc->drawText($this->enumerationText, $xCoord, $yCoord, $encoding);
     $gc->restoreGS();
 }
 public function getWidthOfTheBiggestPosibleEnumerationElement(Document $document, BasicList $list)
 {
     return $this->getWidthOfText($list->getType(), $list->getFont($document), $list->getFontSizeRecursively());
 }