Debian Codegraph @

doc/sphinx/ui/menus/editmenu.rst

raw
1 The Edit Menu
2 =============
3
4 .. _editmenu.Undo:
5
6 .. object:: Undo
7
8 In the outline view and the bitmap view this will undo the last command. The
9 number of commands that may be undone for any glyph is controlled by the
10 :ref:`UndoDepth <prefs.UndoDepth>` preference item.
11
12 In the font and metrics views, this does NOT undo the last command. It undoes
13 the last operation on all selected glyphs.
14
15 .. _editmenu.Redo:
16
17 .. object:: Redo
18
19 In the outline view and the bitmap view this will redo the last command
20 undone. Up to twelve commands may be redone (after that they get thrown away)
21
22 In the font and metrics views, this does NOT undo the last command. It undoes
23 the last operation on all selected glyphs.
24
25 .. _editmenu.Cut:
26
27 .. object:: Cut
28
29 In the font view this command puts the foreground of all selected glyphs into
30 the clipboard and then deletes them. Depending on the setting of
31 :ref:`Copy From <editmenu.From>` it will either refer all glyphs (bitmap and
32 outline) corresponding to this entry, or just the glyph being displayed.
33
34 In the Outline View this will copy any selected points, References, or Images
35 into the clipboard and then delete them. If a point is removed from a path
36 then the path will be broken at there, see the :ref:`Merge <editmenu.Merge>`
37 command for information on how to leave the path whole but without the point.
38 (if there is no selection nothing happens)
39
40 In the Bitmap View this will copy the selection into the clipboard and then
41 delete it. If there is no selection nothing happens.
42
43 .. _editmenu.Copy:
44
45 .. object:: Copy
46
47 In the font view this command puts the foreground and hints of all selected
48 glyphs into the clipboard. Depending on the setting of
49 :ref:`Copy From <editmenu.From>` it will either copy all glyphs (bitmap and
50 outline) corresponding to this entry, or just the glyph being displayed.
51 Normally it will not copy a glyph's name, but if
52 :ref:`Copy From->Char Name <editmenu.CharName>` is set then it will copy the
53 name as well.
54
55 In the Outline View this will copy any selected points, References, or Images
56 into the clipboard. If there is no selection everything in the current layer
57 will go into the clipboard.
58
59 In the Bitmap View this will copy the selection into the clipboard, if there
60 is no selection everything is copied.
61
62 To external applications selected points (and associated contours) will be
63 exported to the clipboard with format "image/eps", while a selected image
64 will be exported with formats "image/png" and "image/bmp". If you Copy a
65 series of glyphs into the clipboard, the only the first one will be exported
66 to external applications. If the clipboard contains a single point, then this
67 will also be exported in STRING format (giving the coordinates of the point);
68 the intent is to make it easier to people to identify the point. See the
69 section on :doc:`selections </techref/selections>`
70
71 .. _editmenu.Reference:
72
73 .. object:: Copy Reference
74
75 In the font view this command puts a reference to all selected glyphs into
76 the clipboard.
77
78 In the Outline and Bitmap Views this will copy a reference to the current
79 glyph into the clipboard (only available in foreground mode).
80
81 .. _editmenu.CopyLookup:
82
83 .. object:: Copy Lookup Data
84
85 Copies lookup data (substitutions, ligatures, kerning, anchor points, etc)
86 from the selected glyphs. This command does not work quite as expected:
87
88 * The data are not actually copied. Instead fontforge makes a note of which
89 glyphs it copied the data from. FontForge actually copies the data when the
90 user does a Paste (so any changes in the lookup data will be pasted).
91 * When the user does a Paste s/he will be prompted with a dialog asking what
92 lookups should be copied.
93
94 .. _editmenu.Width:
95
96 .. object:: Copy Width
97
98 In the Font View this command copies the widths of all selected glyphs and
99 stores them in the clipboard.
100
101 In the Outline View this command copies the width of the current glyph and
102 stores it in the clipboard.
103
104 This command is not available in the Bitmap View.
105
106 .. _editmenu.VWidth:
107
108 .. object:: Copy VWidth
109
110 In the Font View this command copies the vertical widths of all selected
111 glyphs and stores them in the clipboard.
112
113 In the Outline View this command copies the vertical width of the current
114 glyph and stores it in the clipboard.
115
116 This command is not available in the Bitmap View.
117
118 .. _editmenu.LBearing:
119
120 .. object:: Copy LBearing
121
122 In the Font View this command copies the left side bearings of all selected
123 glyphs and stores them in the clipboard.
124
125 In the Outline View this command copies the left side bearing of the current
126 glyph and stores it in the clipboard.
127
128 This command is not available in the Bitmap View.
129
130 .. _editmenu.RBearing:
131
132 .. object:: Copy RBearing
133
134 In the Font View this command copies the right side bearings of all selected
135 glyphs and stores them in the clipboard.
136
137 In the Outline View this command copies the right side bearing of the current
138 glyph and stores it in the clipboard.
139
140 This command is not available in the Bitmap View.
141
142 .. _editmenu.CopyGridFit:
143
144 .. object:: Copy Grid Fit
145
146 Only available in the outline glyph view and only if
147 :ref:`View->Show Grid Fit <viewmenu.ShowGridFit>` is selected. This will
148 place a copy of the grid fit version of the glyph into the clipboard.
149
150 .. _editmenu.Paste:
151
152 .. object:: Paste
153
154 In the Font View this command will paste whatever is in the clipboard into
155 the foregrounds of all selected glyphs (exception: if the clipboard contains
156 an image it will usually not go into the foreground), clearing out whatever
157 was there. If there are more selected glyphs than there is information in the
158 clipboard then the clipboard will be repeated until all selected glyphs have
159 had something pasted in them (that is if glyphs A and B were selected when
160 the copy happened and now glyphs C, D and E are selected, the C will get A, D
161 will get B and E will also get A). If exactly one glyph is selected but the
162 clipboard contains more that one glyph, the selection will be extended so
163 that enough glyphs are selected that something may be pasted in each.
164
165 If the clipboard contains outline information then that information will go
166 into the glyph outline regardless of the setting of Copy From. If the
167 clipboard contains a bitmap and the display is set to outline then the bitmap
168 is pasted into the bitmap font it was copied from (ie. the one with the same
169 pixel size), if the clipboard contains a bitmap and the display is set to a
170 bitmap then the bitmap will be pasted into the currently displayed font. If
171 the clipboard contains a bitmap of a size which does not exist in our
172 database, then you will be asked if you want to create a bitmap font to put
173 the bitmap into.
174
175 In the Outline View this command will paste whatever is in the clipboard to
176 the current editing layer.
177
178 In the Bitmap View this command will flatten any floating selection and paste
179 the contents of the clipboard into a new floating selection.
180
181 If the clipboard is owned by an external application FontForge will attempt
182 to Paste the following selection types (the bitmap view does not currently
183 respond to external clipboards):
184
185 .. object:: "image/png", "image/bmp"
186
187 background images
188
189 .. object:: "image/eps", "image/ps", "image/svg"
190
191 as spline data
192
193 See the section on :doc:`selections </techref/selections>`
194
195 .. _editmenu.PasteInto:
196
197 .. object:: Paste Into
198
199 Only available in the fontview. Just like Paste, except it does not clear the
200 contents of the glyph before adding to it.
201
202 .. _editmenu.PasteAfter:
203
204 .. object:: Paste After
205
206 Only available in the fontview. Pastes the contents of the clipboard into the
207 selected glyph, shifts it over by the advance width, and then adds the
208 advance width of the glyph in the clip to this glyph. Essentially this makes
209 it easy to build up words. (If the font has vertical metrics, then glyphs
210 will be stacked vertically. If the glyph is right to left then the clipboard
211 will be added on the left).
212
213 .. _editmenu.SameGlyphAs:
214
215 .. object:: Same Glyph As
216
217 Only available in the fontview. If the clipboard contains a single reference
218 to a glyph then applying this command makes all selected encoding points
219 refer to that same glyph. (For example the non-breaking-space glyph (U+00A0)
220 frequently uses the same glyph as the space glyph. To accomplish this, select
221 the space glyph, Copy Ref, select the non-breaking-space glyph and Same Glyph
222 As).
223
224 Adobe suggests that you avoid this. Use a reference instead. In some
225 situations (I think pdf files is one) having one glyph with several encodings
226 causes problems (Acrobat uses the glyph to back-map through the encoding to
227 work out the unicode code point. But that will fail if a glyph has two
228 unicode code points associated with it).
229
230 .. _editmenu.Clear:
231
232 .. object:: Clear
233
234 Similar to :ref:`Cut <editmenu.Cut>` except it does not copy anything to the
235 clipboard.
236
237 .. _editmenu.Background:
238
239 .. object:: Clear Background
240
241 Only in the font view. This command clears the backgrounds of all selected
242 glyphs.
243
244 .. _editmenu.Merge:
245
246 .. object:: Merge
247
248 This command is only available in the Outline View. If a point on a path is
249 selected, the merge command will remove that point from the path and join the
250 two points around the removed one with a new spline which approximates the
251 curve between the two before. The two surrounding points will retain their
252 slopes (unless both are corner points).
253
254 :ref:`How is this done? <pfaeditmath.Approximating>`
255
256 .. _editmenu.Join:
257
258 .. object:: Join
259
260 This command is not available in the bitmap view. It looks for any paths with
261 endpoints as the endpoints of other paths and then join those two paths. Also
262 if the endpoint of a path is the same as the start point it will make that
263 path into a loop. (The commands that move points around will normally do this
264 automatically, but Paste will not).
265
266 In the Outline view things are slightly more complicated: If any paths have
267 selected points on them it will only attempt to join those paths.
268
269 .. _editmenu.CopyFg:
270
271 .. object:: Copy Fg To Bg
272
273 This command is only available in the Outline and Font Views. It cleans out
274 all the splines in the background layer and replaces them with a copy of all
275 the splines in the foreground layer. Note: Any background images remain.
276
277 .. _editmenu.CopyL2L:
278
279 .. object:: Copy Layer To Layer
280
281 This command is only available in the Outline and Font Views. It brings up a
282 dialog which lets you select a base layer to copy from and another layer to
283 copy to. You may also choose to clear the destination layer, or to append to
284 it. Then it copies the contents of the source layer (contours and references,
285 but not images) to the destination layer.
286
287 .. _editmenu.Select:
288
289 .. object:: Select
290
291 In the outline view there is a select menu, other views just have Select All.
292
293 .. _editmenu.All:
294
295 .. object:: Select All
296
297 In the outline view it selects all points, all references (all images if
298 the background is active) and the width line (and the vertical width line
299 if that is enabled). In the fontview it selects all glyphs. In the bitmap
300 view it selects the current bitmap region.
301
302 .. _editmenu.Invert:
303
304 .. object:: Invert Selection
305
306 Selects anything not selected, and deselects everything selected.
307
308 .. _editmenu.Deselect:
309
310 .. object:: Deselect All
311
312 Deselects anything selected
313
314 .. _editmenu.FirstPt:
315
316 .. object:: First Point
317
318 Deselects everything and then selects the first point on the first path of
319 the glyph.
320
321 .. _editmenu.NextContour:
322
323 .. object:: First Point, Next Contour
324
325 Deselects everything and then selects the first point on the next contour.
326 (If the last contour is selected then deselects everything).
327
328 .. _editmenu.NextP:
329
330 .. object:: Next Point
331
332 Deselects the current point and selects the next point.
333
334 .. _editmenu.PrevP:
335
336 .. object:: Prev Point
337
338 Deselects the current point and selects the previous point
339
340 .. _editmenu.NextCP:
341
342 .. object:: Next Control Point
343
344 Selects the "Next Control Point" of the current point.
345
346 .. _editmenu.PrevCP:
347
348 .. object:: Prev Control Point
349
350 Selects the "Prev Control Point" of the current point.
351
352 .. _editmenu.PointAt:
353
354 .. object:: Point At
355
356 Allows the user to enter an X,Y coordinate and selects the point at that
357 location.
358
359 .. _editmenu.Contours:
360
361 .. object:: Points on Selected Contours
362
363 If a contour contains any selected points, then select all points on the
364 contour.
365
366 .. _editmenu.SelectPoints:
367
368 .. object:: Select All Points & Refs
369
370 Just like select all, but it doesn't select anchor points or the width
371 lines.
372
373 .. _editmenu.SelectAnchors:
374
375 .. object:: Select Anchors
376
377 Select all the Anchor points in the glyph.
378
379 .. _editmenu.SelWidth:
380
381 .. object:: (De)Select Width
382
383 Toggles whether the width line is selected.
384
385 .. _editmenu.SelVWidth:
386
387 .. object:: (De)Select VWidth
388
389 (if vertical metrics are enabled) Toggles whether the vertical width line
390 is selected.
391
392 .. _editmenu.SelHM:
393
394 .. object:: Select Points Affected by Current HintMask
395
396 if a single point with a hintmask is selected, then this command selects
397 all points affected by that hintmask.
398
399 .. _editmenu.Color:
400
401 .. object:: Select by Color>
402
403 Only in the font view. Displays a submenu containing a list of colors and
404 allows you to select all glyphs which you have set to that color with the
405 Char Info dlg. Normally the selection is cleared before setting the
406 colored glyphs, but if you hold down the shift key the selection will be
407 extended to the colored glyphs.
408
409 .. _editmenu.SelectName:
410
411 .. object:: Select by Wildcard...
412
413 Select all glyphs that match the wildcard pattern specified. A glyph may
414 also be mapped to more than one encoding slot. Select all encoding slots
415 that refer to the named glyph. I think this is primarily useful for
416 detaching .notdef.
417
418 .. _editmenu.SelectScript:
419
420 .. object:: Select by Script...
421
422 Allows you to specify an OpenType script tag and then ff will select all
423 glyphs which have that script.
424
425 In the fontview, the following menu items will have slightly different
426 meanings depending on whether you are holding down the Shift of Control keys.
427
428 If you hold down neither, then the current selection is cleared, and the
429 selection is set to whatever the command specifies.
430
431 If you hold down just the Shift key, then the current selection is retained
432 and any glyphs specified by the command will be merged into that selection.
433 (a logical or operation)
434
435 If you hold down just the Control key, then any glyphs specified by the
436 command will be removed from the selection.
437
438 If you hold down both keys, then only glyphs specified in both the command
439 and the old selection will be selected. (a logical and operation)
440
441 .. _editmenu.SelWorth:
442
443 .. object:: Glyphs worth outputting
444
445 Generally this means that either the glyph's width has been set, or that
446 in one of its foreground layers there is some data -- a contour or a
447 reference.
448
449 .. _editmenu.SelRefs:
450
451 .. object:: with only references
452
453 Select all glyphs which contain at least one reference (in the active
454 layer) and no contours.
455
456 .. _editmenu.SelSplines:
457
458 .. object:: Glyphs with only Splines
459
460 Select all glyphs which contain at least one contour (in the active layer)
461 and no references.
462
463 .. _editmenu.SelBoth:
464
465 .. object:: Glyphs with both
466
467 Select all glyphs in the active layer with both contours and references.
468 This is something which cannot be expressed in a TrueType font, and
469 fontforge has various tricks for dealing with it, but it might be
470 something you'd like to fix up.
471
472 .. _editmenu.SelWhite:
473
474 .. object:: Whitespace Glyphs
475
476 Select all glyphs which contain neither references nor contours (but which
477 have had their widths set).
478
479 .. _editmenu.SelChanged:
480
481 .. object:: Changed
482
483 Selects all changed glyphs
484
485 .. _editmenu.SelHinting:
486
487 .. object:: Hinting Needed
488
489 Selects all glyphs which FontForge thinks need to be hinted.
490
491 .. _editmenu.SelAutohintable:
492
493 .. object:: Autohintable
494
495 Selects all glyphs which FontForge thinks can be autohinted -- ie. all
496 glyphs not marked :ref:`Hints->Don't Autohint <hintsmenu.DontAutoHint>`
497 (this does not check whether ff thinks the glyphs in question NEED to be
498 autohinted)
499
500 .. _editmenu.SelectByATT:
501
502 .. object:: Select By Lookup Subtable...
503
504 Only in the font view. Brings up a :doc:`dlg </ui/dialogs/selectbyatt>` which allows
505 you to select various glyphs depending on various advanced typographic
506 features.
507
508 .. _editmenu.Find:
509
510 .. object:: Find / Replace
511
512 Only in the font view, this brings up a :doc:`dialog </ui/dialogs/search>` that allows
513 you to find patterns within glyphs and replace them with other patterns.
514
515 .. _editmenu.ReplaceRef:
516
517 .. object:: Replace With Reference
518
519 Only in the font view, this command will search the font finding any glyph
520 which contains an inline copy of one of the selected glyphs, and converts
521 that copy into a reference to the appropriate glyph. In other words it finds
522 things which should be references and makes them be.
523
524 This is primarily for use after reading a postscript (type1, otf or cff)
525 font. The reference information will usually be lost in these formats, and
526 this command can find it again.
527
528 Suppose the font contains a glyph "Acircumflex" which contains an embedded
529 copy of "A" (a copy of the contours, not a references), then if you select
530 "A" and apply this command it will search all glyphs in the font for
531 something that looks like "A", remove it from any glyphs in which it is found
532 and replace it with a reference. It applies this same algorithm for all
533 selected glyphs. If you want to check for every possibility, just select all
534 glyphs first.
535
536 After completion, the selection will be set to those glyphs which have been
537 changed by the command.
538
539 .. _editmenu.Unlink:
540
541 .. object:: Unlink Reference
542
543 This will remove a referenced glyph and replace it with the splines and
544 points (or bitmap raster) that make it up.
545
546 .. _editmenu.From:
547
548 .. object:: Copy From
549
550 Only available in the Font View.
551
552 .. _editmenu.Fonts:
553
554 .. object:: All Fonts
555
556 If this is set then Copy (and Cut and Clear) will copy from the outline
557 font and from all the bitmap fonts
558
559 .. _editmenu.Displayed:
560
561 .. object:: Displayed Font
562
563 If this is set then Copy will only copy from the font currently being
564 displayed.
565
566 .. _editmenu.CharName:
567
568 .. object:: Char Metadata
569
570 Normally Copy does not copy the metadata (name, unicode encoding, comment,
571 ligature info) associated with a glyph, but if this is checked then it
572 will.
573
574 .. _editmenu.TTInstr:
575
576 .. object:: TrueType Instructions
577
578 Controls whether truetype instructions should be copied with a glyph. If
579 copying glyphs from one font to another it may not be appropriate to copy
580 the truetype instructions (which may depend on subroutines or values in
581 the 'fpgm', 'prep' and 'cvt ' tables).
582
583 This also controls the behavior of the
584 :ref:`Transform <elementmenu.Transform>` and
585 :ref:`Build Accented <elementmenu.Accented>` glyph commands.
586
587 .. _editmenu.Remove-Undoes:
588
589 .. object:: Remove Undoes
590
591 Not available in the Metrics View. This allows you to free up some of the
592 memory FontForge is currently squandering on keeping track of Undoes (and
593 Redoes). Obviously this command cannot be undone.
594
595 * In the Outline Glyph view this will free up all undoes/redoes in the current
596 edit mode
597 * In the Bitmap Glyph view this will free up all bitmap undoes/redoes
598 * In the Font View this will free up all undoes/redoes in all selected glyphs,
599 outline and bitmap, background and foreground.