File: TextWalker.rst

package info (click to toggle)
mupdf 1.27.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,224 kB
  • sloc: ansic: 335,320; python: 20,906; java: 7,520; javascript: 2,213; makefile: 1,152; xml: 675; cpp: 639; sh: 513; cs: 307; awk: 10; sed: 7; lisp: 3
file content (37 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.. default-domain:: js

.. highlight:: javascript

TextWalker
==========

.. class:: TextWalker

An object implementing this interface of optional callback functions
can be used to get calls whenever `Text.prototype.walk()` iterates over a text object.

.. function:: beginSpan(font, trm, wmode, bidiLevel, markupDirection, language)

	Called before every text span in the `Text` being walked.

	:param Font font:
	:param Matrix trm:
	:param number wmode:
	:param int bidiLevel:
	:param int markupDirection:
	:param string language:

.. function:: endSpan()

	Called at the end of every span in the text.

.. function:: showGlyph(font, trm, gid, ucs, wmode, bidiLevel)

	Called once per character for in a text span.

	:param Font font:
	:param Matrix trm:
	:param number gid:
	:param number ucs:
	:param number wmode:
	:param number bidiLevel: