<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [PATCH] Replace Splash font rendering by Qt font rendering"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102290#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [PATCH] Replace Splash font rendering by Qt font rendering"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102290">bug 102290</a>
from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>(In reply to oliver.sander from <a href="show_bug.cgi?id=102290#c6">comment #6</a>)
<span class="quote">> BTW: My life would be much simpler if I knew what the parameters of the
> drawChar method are. Right now I operate mainly by educated guesswork.
> Could somebody please take the time and write down descriptions of what they
> are? I'll gladly prepare a patch from any kind of description. Thanks!</span >
Have a look at the cairo backend code (CairoOutputDev and CairoFontEngine) as
it is doing a similar thing to what you are trying to do. ie drawing to an
external drawing API that has its own font support.
CharCode code, int nBytes, Unicode *u, int uLen
code is the character code in the content stream. This needs to be mapped back
to a glyph index. GfxFont has the code to do this. u is the UCS-4 mapping used
for text extraction (TextOutputDev). nBytes and ULen are the number of
character codes and unicode respectively. You can ignore the unicode. Also the
unicode is not always valid so you can't use it for drawing.
I can't recall how all the x/y params work. Just copy what splash or cairo
backends are doing.</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>