[poppler] poppler/OutputDev.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Aug 29 21:55:49 UTC 2017
poppler/OutputDev.h | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 90bc39daf9d3276b166b4c88e1d2c1988aa41c71
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date: Mon Aug 28 10:25:12 2017 +0200
Document some parameters of the drawChar method
Thanks to Adrian Johnson, who explained their meaning to me.
diff --git a/poppler/OutputDev.h b/poppler/OutputDev.h
index bc9fca07..0f60f60f 100644
--- a/poppler/OutputDev.h
+++ b/poppler/OutputDev.h
@@ -249,6 +249,16 @@ public:
virtual void endStringOp(GfxState * /*state*/) {}
virtual void beginString(GfxState * /*state*/, GooString * /*s*/) {}
virtual void endString(GfxState * /*state*/) {}
+
+ // Draw one glyph at a specified position
+ //
+ // Arguments are:
+ // CharCode code: This is the character code in the content stream. It needs to be mapped back to a glyph index.
+ // int nBytes: The text strings in the content stream can consists of either 8-bit or 16-bit
+ // character codes depending on the font. nBytes is the number of bytes in the character code.
+ // Unicode *u: The UCS-4 mapping used for text extraction (TextOutputDev).
+ // int uLen: The number of unicode entries in u. Usually '1', for a single character,
+ // but it may also have larger values, for example for ligatures.
virtual void drawChar(GfxState * /*state*/, double /*x*/, double /*y*/,
double /*dx*/, double /*dy*/,
double /*originX*/, double /*originY*/,
More information about the poppler
mailing list