From: George W. <gw...@si...> - 2004-07-25 03:56:26
|
On Thu, 2004-07-22 at 19:30, Andrey V. Panov wrote: > I have a feature request: copying of the information about all kerning pairs > from one glyph to another. This would be useful after, for example, building > of accented character. Ok. There's a new menu command Edit->Copy Glyph Features. There's a new scripting command CopyGlyphFeatures The menu brings up a dlg showing all features associated with the current glyph and allows you to pick which ones you want to copy. The dialog distinguishes between kerning pairs where the current glyph is the initial glyph and those where the current glyph is the final glyph. (suppose "o" is selected. Then you can request kerning pairs "o*" separate from "*o" (you may also select both)). This does not copy information stored in kerning classes, contextual/chaining, or apple state machines. The script command takes as argument either: a string which must be a 4 character opentype tag, or a mac feature/setting as <1,1> a number Which must be either a 4 character opentype tag as a number ('kern' => 'k'<<24 | 'e'<<16 | 'r' << 8 | 'n') or a feat/set as a number (feat<<16 | set) an array Of strings/numbers in one of the above formats (in which case we select features which match any of the tags) The tag 'kern' matches all kerning pairs where the current glyph is the initial glyph. The (fake) tag '_krn' matches all kerning pairs where the current glyph is the final one. (Similarly 'vkrn' and '_vkn') |