Debian Codegraph @

doc/sphinx/ui/mainviews/bitmapview.rst

raw
1 Bitmap Glyph View
2 =================
3
4 .. image:: /images/BitmapView.png
5 :align: right
6
7 The bitmap view is vaguely similar to the :doc:`outline view <charview>`. It is
8 also designed for editing glyph shapes, but here bitmap glyph shapes.
9
10 At the top of the view is a small region showing an unmagnified view of the
11 glyph, to the right of that are two information displays, the first shows the
12 current location of the mouse pointer, and the second shows (if the mouse button
13 has been depressed and not released yet) the offset from the place where the
14 mouse was pressed to the current pointer location. The coordinate system here is
15 in pixels with the origin at the glyph's origin. Next to this is a button (here
16 truncated) that allows you to recalculate the bitmap (rasterize the outline and
17 place the result in the window for editing).
18
19 Underneath is the main display, showing the bits in the image, the outline of
20 the glyph and a grid.
21
22 .. figure:: /images/BitmapReference.png
23
24 A bitmap glyph composed of two bitmap references
25
26 As in the outline view you may choose to make the palettes free floating windows
27 by unchecking :menuselection:`View --> Palettes --> Dock Palettes`.
28
29
30 .. _bitmapview.Layers:
31
32 Layers
33 ------
34
35 .. image:: /images/bvlayers.png
36 :align: left
37
38 There are three layers to the bitmap view, the bitmap itself, the outline glyph
39 and the grid lines. You are always editing in the bitmap layer so there is no
40 control over what layer is editable, just which ones are visible.
41
42
43 .. _bitmapview.Tools:
44
45 Tools
46 -----
47
48 .. image:: /images/bvtools.png
49 :align: left
50
51 There are only six tools on the bitmap palette (there are some others available
52 by right clicking in the view, this generates a popup menu.
53
54 The pointer tool allows you to select a region of the screen, and move it around
55 or copy it (a copy when nothing is selected copies the entire bitmap). The arrow
56 keys will also move the selection around. In a bitmap only font the pointer tool
57 can change the advance width.
58
59 The if you click with the magnifying tool the view is magnified, centered around
60 the point at which you clicked. If you hold down the
61 :ref:`Meta (or Alt or CapsLock) <charview.alt-meta-capslock>` key during the
62 click then the view will be minified.
63
64 The pencil tool allows you to set or clear bits. If you depress the mouse button
65 then the pencil will toggle the bit under the cursor, if you then drag it over
66 other bits they will be set if the first bit was set, and cleared if the first
67 was cleared.
68
69 The line tool (the pencil with the line beside it) will draw straight lines. It
70 behaves like the pencil tool on whether it sets or clears a line. The Shift key
71 does not constrain this window.
72
73 The four-arrow tool moves the entire bitmap.
74
75 The hand scrolls the screen.
76
77
78 Additional tools from the popup menu.
79 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
81 * Draw an open rectangle
82 * Draw a filled rectangle
83 * Draw an open ellipse
84 * Draw a filled ellipse
85 * Rotate the bitmap 90° Counter Clockwise.
86 * Rotate it 90° Clockwise.
87 * Rotate it 180°.
88 * Flip it horizontally
89 * Flip it vertically.
90 * Set Width
91
92 This is only available if there is no outline font (ie. if you opened a bdf file
93 directly).
94
95 It sets the width (glyph advance) of the bitmap.
96
97
98 .. _bitmapview.AA:
99
100 Anti-Aliased Glyphs
101 -------------------
102
103 .. image:: /images/greymapedit.png
104 :align: right
105
106 This window may also be used to edit anti-aliased glyphs (glyphs which are
107 represented by shades of grey rather than by black and white. In the information
108 area there is a little rectangle which shows the current color that will be used
109 by the pencil (line, rectangle, etc.) tool.
110
111 The behavior of the drawing tools is slightly different here. In a bitmap glyph
112 the color used for drawing is the opposite of whatever color is currently under
113 the cursor, but that doesn't work in an environment with more than two colors.
114 So you must select what color you are going to draw with manually.
115
116 There are two ways to select the drawing color:
117
118 * With the pencil tool selected, hold down the Alt (Meta) key. The cursor changes
119 to an eyedropper. Position the cursor over a pixel with the right color and
120 click the mouse.
121 * Use the :ref:`Shades <bitmapview.Shades>` palette.
122
123
124 .. _bitmapview.Shades:
125
126 Shades
127 ------
128
129 .. flex-grid::
130
131 * - .. figure:: /images/Shades.png
132
133 Shades of grey available with 8 bits/pixel
134 - .. figure:: /images/Shades4.png
135
136 Shades of grey available with 4 bits/pixel
137 - .. figure:: /images/Shades2.png
138
139 Shades of grey available with 2 bits/pixel
140
141 The shades palette is only visible in an anti-aliased glyph. The palette
142 displays all the possible shades of grey available to this glyph. Glyphs with
143 more bits per pixel will have more shades of grey.
144
145 The currently selected drawing color is outlined in green. To select a new
146 color, move the cursor to the desired color and click the mouse.
147
148 As the cursor moves over the bitmap in the bitmap view, the color under the
149 cursor will be outlined in white.
150
151 .. container:: clearer
152
153 ..