<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:vvort@yandex.ru" title="vvort@yandex.ru">vvort@yandex.ru</a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Incorrect value in ascent field of GfxFont"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75667">bug 75667</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>NEW
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Incorrect value in ascent field of GfxFont"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75667#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Incorrect value in ascent field of GfxFont"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75667">bug 75667</a>
from <span class="vcard"><a class="email" href="mailto:vvort@yandex.ru" title="vvort@yandex.ru">vvort@yandex.ru</a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=75667#c3">comment #3</a>)
<span class="quote">> I don't know what i'm supposed to see in the pdf.</span >
I don't know how many software are affected by this problem.
But LibreOffice do.
Here is instruction to how track this bug with LibreOffice:
1. Open PDF with LibreOffice Draw. You will see that underlines are crossing
the text. If you will not see, this means that my patch was commited. No need
to worry - bug is still there.
2. This happens because text is rendered slightly below it's actual position.
Navigate to \sdext\source\pdfimport\xpdfwrapper\pdfioutdev_gpl.cxx, function
PDFOutDev::drawChar(). There you can find function call
'state->textTransformDelta(0.0, state->getFont()->getAscent(), &x2, &y2 ); This
is transition from LibreOffice code to poppler code. And here getAscent()
returns incorrect value.
3. Incorrect value assigned here: \poppler\GfxFont.cc, precisely in this lines:
'if (builtinFont && embFontID.num < 0) { ascent = 0.001 * builtinFont->ascent;
...'. "Arial" font's property ascent gets value from "Helvetica"'s
builtinFont->ascent, which is incorrect (0.905 needed, 0.718 - what we get)
Switched state back to NEW. Switch back again if needed.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>