Debian Codegraph @

doc/sphinx/techref/selections.rst

raw
1 X Selections and the X Clipboard
2 ================================
3
4 The general description of how selections and the clipboard works under X is
5 given in
6 `clipboards.txt <http://www.freedesktop.org/standards/clipboards.txt>`__.
7 FontForge tries to follow this.
8
9 FontForge only supports the PRIMARY selection within textfields. Text is
10 exported as
11
12 * ``STRING``
13 * ``UTF8_STRING``
14 * ``text/plain;charset=UTF8``
15 * ``text/plain;charset=ISO-10646-USC2``
16
17 Traditionally the PRIMARY selection is available for pasting by clicking on the
18 middle mouse button.
19
20 After a Copy command FontForge will place data in the X CLIPBOARD. For text
21 selections (in textfields) the above format types are supported. For contour
22 data (ie. the contents of an outline character) the format "image/eps" or
23 "image/svg" will be used. As a special case, if a single point is in the
24 clipboard then it will also be exported as a STRING containing the coordinates
25 of the point (to make it easier for people to identify points when sending me
26 email, or in the comment field). For bitmap image data either "image/bmp" or
27 "image/png" (assuming you have libpng on your system).