forked from science-ation/science-ation
Fix a font metric bug (submitted to sourceforge).
This commit is contained in:
parent
29f799f0a2
commit
a6887423d1
@ -3407,7 +3407,7 @@ if (!class_exists('TCPDF', false)) {
|
||||
} else {
|
||||
$this->FontAscent = 0.8 * $this->FontSize;
|
||||
}
|
||||
if (isset($this->CurrentFont['desc']['Descent']) AND ($this->CurrentFont['desc']['Descent'] > 0)) {
|
||||
if (isset($this->CurrentFont['desc']['Descent']) AND ($this->CurrentFont['desc']['Descent'] < 0)) {
|
||||
$this->FontDescent = - $this->CurrentFont['desc']['Descent'] * $this->FontSize / 1000;
|
||||
} else {
|
||||
$this->FontDescent = 0.2 * $this->FontSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user