Fix: on ne pouvait pas écrire en petit

This commit is contained in:
Regis Houssin 2007-10-22 16:41:54 +00:00
parent bc46284b5d
commit d6781666df

View File

@ -2232,7 +2232,7 @@ function _out($s)
if (isset($attr['face']) and in_array(strtolower($attr['face']), $this->fontlist)) { if (isset($attr['face']) and in_array(strtolower($attr['face']), $this->fontlist)) {
$this->SetFont(strtolower($attr['face'])); $this->SetFont(strtolower($attr['face']));
//$this->issetfont=true; //créait un problème de police dans le pdf $this->issetfont=true; //créait un problème de police dans le pdf
} }
if (isset($attr['size'])) { if (isset($attr['size'])) {
$headsize = intval($attr['size']); $headsize = intval($attr['size']);
@ -2241,7 +2241,7 @@ function _out($s)
} }
$currentFontSize = $this->FontSize; $currentFontSize = $this->FontSize;
$this->tempfontsize = $this->FontSizePt; $this->tempfontsize = $this->FontSizePt;
$this->SetFontSize($this->FontSizePt + $headsize); $this->SetFontSize($this->FontSizePt + $headsize - 3); // Todo: correction pour xx-small
$this->lasth = $this->FontSize * K_CELL_HEIGHT_RATIO; $this->lasth = $this->FontSize * K_CELL_HEIGHT_RATIO;
break; break;
} }