forked from fontforge/fontforge.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitmapview.html
360 lines (360 loc) · 11.9 KB
/
bitmapview.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<HTML>
<HEAD>
<!-- Created with AOLpress/2.0 -->
<!-- AP: Created on: 6-Dec-2000 -->
<!-- AP: Last modified: 27-Mar-2009 -->
<TITLE>Bitmap Character View</TITLE>
<LINK REL="icon" href="fftype16.png">
<LINK REL="stylesheet" TYPE="text/css" HREF="/assets/css/old/FontForge.css">
</HEAD>
<BODY id="menued">
<div style="margin:0; height: 4 em; padding: 0.5em; background: red; color:yellow; text-align:center; font-size:1em; font-family: sans-serif;">
<p><a href="http://fontforge.github.io" style="padding: 0.5em; color: yellow; font-weight: bold; text-decoration: none;" onmouseover="this.style.background='black';" onmouseout="this.style.background='red';" >This is part of the old website. New website begins at fontforge.github.io</a></p>
<p><a href="https://github.com/fontforge/fontforge.github.io" style="padding: 0.5em; color: yellow; font-weight: bold; text-decoration: none;" onmouseover="this.style.background='black';" onmouseout="this.style.background='red';" >Are you a web developer? Help us migrate this page on Github</a></p>
</div>
<P ALIGN=CENTER>
<IMG SRC="/assets/img/old/fontforge-banner-420.jpeg" WIDTH=420 HEIGHT=80>
<DIV class="menucontainer">
<UL class="menubar">
<LI class="menu">
<A href="http://sourceforge.net/projects/fontforge/files/">Download</A>
<UL>
<LI>
<A href="http://sourceforge.net/projects/fontforge/files/fontforge-docs/"
>Documentation</A>
<LI>
<A href="http://sourceforge.net/projects/fontforge/files/fontforge-source/"
>Source</A>
</UL>
<LI>
<A HREF="overview.html#TOC">Introduction</A>
<LI>
<A href="editexample.html">Tutorial</A>
<LI class="menu">
<A href="fontview.html">Windows</A>
<UL>
<LI>
<A href="fontview.html" >Font</A>
<LI>
<A href="charview.html" >Outline Glyph</A>
<LI>
<SMALL><A href="charview.html#Debugging" > Debugging
TrueType</A></SMALL>
<LI>
<SMALL><A href="multilayer.html" > Type3 Glyphs</A></SMALL>
<LI>
<A href="bitmapview.html" >Bitmap Glyph</A>
<LI>
<A href="metricsview.html" >Metrics</A>
</UL>
<LI class="menu">
<A href="fontinfo.html">Dialogs 1</A>
<UL>
<LI>
<A href="fontinfo.html" >Font Information</A>
<LI>
<SMALL><A href="histogram.html" > Histogram Dialog</A></SMALL>
<LI>
<A href="charinfo.html" >Glyph Information</A>
<LI>
<A href="getinfo.html" >Point, Reference Information</A>
<LI>
<A href="multilayer.html#Layer" >Type3 Layer Information</A>
<LI>
<A href="bdfinfo.html" >Bitmap Properties</A>
<LI>
<A href="baseline.html" >Baseline Information</A>
<LI>
<A HREF="justify.html">Justification Information</A>
<LI>
<A href="math.html" >Math Information</A>
<LI>
<A href="multiplemaster.html" >Multiple Master Information</A>
<LI>
<HR>
<LI>
<A href="lookups.html" >Lookups & subtables</A>
<LI>
<A href="metricsview.html#kernpair" >Kerning glyph pairs 1</A>
<LI>
<A href="kernpairs.html" >Kerning glyph pairs 2</A>
<LI>
<A href="metricsview.html#kernclass" >Kerning by classes</A>
<LI>
<A href="anchorcontrol.html" >Anchor Control</A>
<LI>
<A href="contextchain.html" >Contextual lookup dialog</A>
<LI>
<A href="statemachine.html" >Apple State Machine dialog</A>
<LI>
<A href="showatt.html" >Show Advanced Typography</A>
<LI>
<HR>
<LI>
<A href="problems.html" >Potential Problems dialog</A>
<LI>
<A href="validation.html" >Font Validation dialog</A>
</UL>
<LI class="menu">
<A href="generate.html">Dialogs 2</A>
<UL>
<LI>
<A href="filemenu.html#Open" >Open Fonts dialog</A>
<LI>
<A href="oflib.html" >Browsing OFLib dialog</A>
<LI>
<A href="generate.html" >Generate Fonts dialog</A>
<LI>
<A href="generate.html#Mac" >Generate Mac Family dialog</A>
<LI>
<HR>
<LI>
<A href="display.html" >Print & Display dialog</A>
<LI>
<A href="prefs.html" >Preferences dialog</A>
<LI>
<A href="groups.html" >Groups dialog</A>
<LI>
<HR>
<LI>
<A href="elementmenu.html#Bitmaps">Manage Bitmap Strikes</A>
<LI>
<A href="elementmenu.html#Regenerate">Re-Rasterize Bitmap Strikes</A>
<LI>
<HR>
<LI>
<A href="search.html" >Search & Replace dialog</A>
<LI>
<A href="Styles.html" >Style Transformation dialogs</A>
<LI>
<A href="transform.html" >Transformation dialog</A>
<LI>
<A href="elementmenu.html#Expand" >Expand Stroke dialog</A>
<LI>
<A href="tilepath.html" >Tile Path dialog</A>
<LI>
<A href="InsertTextDlg.html" >Insert Text dialog</A>
<LI>
<HR>
<LI>
<A href="metricsmenu.html#Width">Set width dialogs</A>
<LI>
<A href="metricsmenu.html#Width">Set left/right bearings</A>
<LI>
<A href="autowidth.html" >Auto Width & Kern dialogs</A>
<LI>
<HR>
<LI>
<A href="hintsmenu.html#Review" >Review PS Hints dialog</A>
<LI>
<A href="ttfinstrs.html" >TrueType Instruction Editor</A>
<LI>
<A href="ttfinstrs.html#cvt" >TrueType 'cvt ' Editor</A>
<LI>
<HR>
<LI>
<A href="selectbyatt.html" >Select by feature dialog</A>
<LI>
<A href="elementmenu.html#MassRename" >Rename Glyphs dialog</A>
<LI>
<A href="elementmenu.html#CompareFonts" >Compare Fonts dialog</A>
</UL>
<LI class="menu">
<A href="filemenu.html">Menus</A>
<UL>
<LI>
<A href="filemenu.html" >File</A>
<LI>
<A href="editmenu.html" >Edit</A>
<LI>
<A href="pointmenu.html" >Point</A>
<LI>
<A href="elementmenu.html">Element</A>
<LI>
<A href="toolsmenu.html">Tools</A>
<LI>
<A href="hintsmenu.html" >Hints</A>
<LI>
<A href="encodingmenu.html" >Encoding</A>
<LI>
<A href="viewmenu.html" >View</A>
<LI>
<A href="metricsmenu.html" >Metrics</A>
<LI>
<A href="cidmenu.html" >CID</A>
<LI>
<A href="mmmenu.html" >Multi Master</A>
<LI>
<A href="windowmenu.html" >Window</A>
<LI>
<A href="helpmenu.html" >Help</A>
</UL>
<LI>
<A href="faqFS.html">FAQ</A>
<LI>
<A href="IndexFS.html">Index</A>
<LI>
<A href="GlossaryFS.html">Glossary</A>
</UL>
</DIV>
<DIV id="in">
<H1 ALIGN=Center>
Bitmap Glyph View
</H1>
<P>
<TABLE ALIGN="Right">
<TR>
<TD ALIGN="Center"><IMG SRC="/assets/img/old/BitmapReference.png" WIDTH="359" HEIGHT="457"><BR>
A bitmap glyph composed of two bitmap references</TD>
</TR>
</TABLE>
<P>
<IMG SRC="/assets/img/old/BitmapView.png" WIDTH="254" HEIGHT="273">
<P>
The bitmap view is vaguely similar to the <A HREF="charview.html">outline
view</A>. It is also designed for editing glyph shapes, but here bitmap glyph
shapes.
<P>
At the top of the view is a small region showing an unmagnified view of the
glyph, to the right of that are two information displays, the first shows
the current location of the mouse pointer, and the second shows (if the mouse
button has been depressed and not released yet) the offset from the place
where the mouse was pressed to the current pointer location. The coordinate
system here is in pixels with the origin at the glyph's origin. Next to this
is a button (here truncated) that allows you to recalculate the bitmap (rasterize
the outline and place the result in the window for editing).
<P>
Underneath is the main display, showing the bits in the image, the outline
of the glyph and a grid.
<P>
As in the outline view you may choose to dock the palettes in the window
with View->Palettes->Dock Palettes.
<H2>
<A NAME="Layers">Layers</A>
</H2>
<P>
<IMG SRC="/assets/img/old/bvlayers.png" WIDTH="77" HEIGHT="77">
<P>
There are three layers to the bitmap view, the bitmap itself, the outline
glyph and the grid lines. You are always editing in the bitmap layer so there
is no control over what layer is editable, just which ones are visible.
<H2>
<A NAME="Tools">Tools</A>
</H2>
<P>
<IMG SRC="/assets/img/old/bvtools.png" WIDTH="57" HEIGHT="83">
<P>
There are only six tools on the bitmap palette (there are some others available
by right clicking in the view, this generates a popup menu.
<P>
The pointer tool allows you to select a region of the screen, and move it
around or copy it (a copy when nothing is selected copies the entire bitmap).
The arrow keys will also move the selection around. In a bitmap only font
the pointer tool can change the advance width.
<P>
The if you click with the magnifying tool the view is magnified, centered
around the point at which you clicked. If you hold down the
<A HREF="charview.html#alt-meta-capslock">Meta (or Alt or CapsLock)</A> key
during the click then the view will be minified.
<P>
The pencil tool allows you to set or clear bits. If you depress the mouse
button then the pencil will toggle the bit under the cursor, if you then
drag it over other bits they will be set if the first bit was set, and cleared
if the first was cleared.
<P>
The line tool (the pencil with the line beside it) will draw straight lines.
It behaves like the pencil tool on whether it sets or clears a line. The
Shift key does not constrain this window.
<P>
The four-arrow tool moves the entire bitmap.
<P>
The hand scrolls the screen.
<H3>
Additional tools from the popup menu.
</H3>
<UL>
<LI>
Draw an open rectangle
<LI>
Draw a filled rectangle
<LI>
Draw an open ellipse
<LI>
Draw a filled ellipse
<LI>
Rotate the bitmap 90° Counter Clockwise.
<LI>
Rotate it 90° Clockwise.
<LI>
Rotate it 180°.
<LI>
Flip it horizontally
<LI>
Flip it vertically.
<LI>
Set Width<BR>
This is only available if there is no outline font (ie. if you opened a bdf
file directly).<BR>
It sets the width (glyph advance) of the bitmap.
</UL>
<H2>
<A NAME="AA">Anti-Aliased Glyphs</A>
</H2>
<P>
<IMG SRC="/assets/img/old/greymapedit.png" WIDTH="274" HEIGHT="273" ALIGN="Right">This window
may also be used to edit anti-aliased glyphs (glyphs which are represented
by shades of grey rather than by black and white. In the information area
there is a little rectangle which shows the current color that will be used
by the pencil (line, rectangle, etc.) tool.
<P>
The behavior of the drawing tools is slightly different here. In a bitmap
glyph the color used for drawing is the opposite of whatever color is currently
under the cursor, but that doesn't work in an environment with more than
two colors. So you must select what color you are going to draw with manually.
<P>
There are two ways to select the drawing color:
<UL>
<LI>
With the pencil tool selected, hold down the Alt (Meta) key. The cursor changes
to an eyedropper. Position the cursor over a pixel with the right color and
click the mouse.
<LI>
Use the <A HREF="#Shades">Shades</A> palette.
</UL>
<P>
<BR Clear=Right>
<H2>
<A NAME="Shades">Shades</A>
</H2>
<TABLE CELLPADDING="2">
<TR>
<TD><P ALIGN=Center>
<IMG SRC="/assets/img/old/Shades.png" WIDTH="156" HEIGHT="175"><BR>
Shades of grey available<BR>
with 8 bits/pixel</TD>
<TD><P ALIGN=Center>
<IMG SRC="/assets/img/old/Shades4.png" WIDTH="156" HEIGHT="175"><BR>
Shades of grey available<BR>
with 4 bits/pixel</TD>
<TD><P ALIGN=Center>
<IMG SRC="/assets/img/old/Shades2.png" WIDTH="156" HEIGHT="175"><BR>
Shades of grey available<BR>
with 2 bits/pixel</TD>
</TR>
</TABLE>
<P>
The shades palette is only visible in an anti-aliased glyph. The palette
displays all the possible shades of grey available to this glyph. Glyphs
with more bits per pixel will have more shades of grey.
<P>
The currently selected drawing color is outlined in green. To select a new
color, move the cursor to the desired color and click the mouse.
<P>
As the cursor moves over the bitmap in the bitmap view, the color under the
cursor will be outlined in white.
<P>
<P ALIGN=Center>
-- <A HREF="charview.html">Prev</A> -- <A HREF="overview.html">TOC</A> --
<A HREF="metricsview.html">Next</A> --
</DIV>
</BODY></HTML>