Debian Codegraph @

pycontrib/GlyphAlignment/README.md

raw symbols SCIP
1 ========================================================
2
3 ##### Description of GlyphAlignment.py
4
5 ========================================================
6
7 Made by: asdasdsasa
8
9 Version: 20260609
10
11 ========================================================
12
13 ###### Hotkeys e.g:
14
15 ✓ Ctrl+ᄉ(Numpad5): Glyph alignment in FontView and CharView.
16
17 ✗ ᄉ(Numpad5): Align selected elements in CharView.
18
19 ✗ Ctrl+Alt+ᄉ(Numpad5): Align selected element 1 to selected element 2 in CharView.
20
21 ========================================================
22
23 ###### Recommended Workflow
24
25 1\. Copy selected path(s) from Inkscape by Ctrl+C.
26
27 2\. Paste into the selected glyph in FontView or CharView of FontForge by Ctrl+V.
28
29 3\. Align the glyph(s) by hotkey.
30
31 ========================================================
32
33 ###### Script Path
34
35 Windows Installable Version: C:\\Users\\YourUsername\\AppData\\Roaming\\FontForge\\python\\
36
37 Windows Portable Version: FontForge\\share\\fontforge\\python\\
38
39 Linux\\Mac: \~/.config/fontforge/python/
40
41 ========================================================
42
43 ###### Tools -> Glyph Alignment -> Select 1 of 15 below:
44
45 Ctrl+Numpad. : Center in Height
46
47 Ctrl+Numpad0: Center in Width
48
49 Ctrl+Numpad5: Center in Height \& Width
50
51 Ctrl+Numpad8: Center Top
52
53 Ctrl+Numpad2: Center Bottom
54
55 Ctrl+Numpad4: Center Left
56
57 Ctrl+Numpad6: Center Right
58
59 Ctrl+Numpad7: Top Left
60
61 Ctrl+Numpad9: Top Right
62
63 Ctrl+Numpad1: Bottom Left
64
65 Ctrl+Numpad3: Bottom Right
66
67 Ctrl+Numpad/: Left
68
69 Ctrl+Numpad\*: Right
70
71 Ctrl+Numpad-: Top
72
73 Ctrl+Numpad+: Bottom
74
75 ========================================================
76
77 ###### Tools -> Glyph Alignment -> Select Transformation Command:
78
79 ✗Ctrl+Numpad Enter: Transformation Command (Unsupported)
80
81 ✓Numpad0 : Transformation Command (Interimistical)
82
83   Transformation Command (Space-separated, supports expressions and %):
84
85   ━━━━━━━━━━━━━━━━━━━━━━
86
87   Local : x, y | Both: xy, yx
88
89   Global: z, t | Both: zt, tz
90
91   Scale : w, h | Both: wh, hw
92
93   Rotate: l, r | Flip : fh, fv
94
95   ━━━━━━━━━━━━━━━━━━━━━━
96
97   Enter commands e.g: xy-100 hw120% r30
98
99 ========================================================
100
101 ##### 说明GlyphAlignment.py
102
103 ========================================================
104
105 制作: 留幺
106
107 版本: 20260609
108
109 ========================================================
110
111 ###### 键位用途
112
113 ✓ Ctrl+ᄉ(小键盘5): 字形置位用于字体本体窗口、字形编辑窗口。
114
115 ✗ ᄉ(小键盘5): 所选置位用于字形编辑窗口 。
116
117 ✗ Ctrl+Alt+ᄉ(小键盘5): 所选其一置位其二,用于字形编辑窗口。
118
119 ========================================================
120
121 ###### 推荐做法
122
123 1\. Inkscape复制所选物体路径。
124
125 2\. FontForge字体窗口,字形窗口黏贴所选字形。
126
127 3\. 使用快捷按键,各个自动置位。
128
129 ========================================================
130
131 ###### 脚本路径
132
133 Windows安装版本: C:\\Users\\用户名\\AppData\\Roaming\\FontForge\\python\\
134
135 Windows无痕版本: FontForge\\share\\fontforge\\python\\
136
137 Linux\\Mac: \~/.config/fontforge/python/
138
139 ========================================================
140
141 ###### 工具 -> 字形置位 -> 十五居一:
142
143 Ctrl+小键盘. : 居中从
144
145 Ctrl+小键盘0: 居中横
146
147 Ctrl+小键盘5: 居中正
148
149 Ctrl+小键盘8: 居中上
150
151 Ctrl+小键盘2: 居中下
152
153 Ctrl+小键盘4: 居中左
154
155 Ctrl+小键盘6: 居中右
156
157 Ctrl+小键盘7: 居左上
158
159 Ctrl+小键盘9: 居右上
160
161 Ctrl+小键盘1: 居左下
162
163 Ctrl+小键盘3: 居右下
164
165 Ctrl+小键盘/: 居左
166
167 Ctrl+小键盘\*: 居右
168
169 Ctrl+小键盘-: 居上
170
171 Ctrl+小键盘+: 居下
172
173 ========================================================
174
175 ###### 工具 -> 字形置位 -> 变换指令:
176
177 ✗Ctrl+Numpad Enter: 变换指令(其无此能)
178
179 ✓Numpad0 : 变换指令(暂代按键)
180
181   变换指令 (空格分隔,支持算式与%):
182
183   ━━━━━━━━━━━━━━━━━━━━━━
184
185   横从: x, y | 并行: xy, yx
186
187   纬经: z, t | 并行: zt, tz
188
189   宽高: w, h| 并行: wh, hw
190
191   顺逆: r, l | 反倒: fh, fv
192
193   ━━━━━━━━━━━━━━━━━━━━━━
194
195   指令案例:xy-100 hw120% r30
196