File: transform.html

package info (click to toggle)
fontforge 1%3A20230101~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 63,260 kB
  • sloc: ansic: 462,618; python: 6,916; cpp: 214; objc: 122; sh: 101; makefile: 55; xml: 11
file content (230 lines) | stat: -rw-r--r-- 14,952 bytes parent folder | download | duplicates (3)
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
<HTML>
<HEAD>
  <!-- Created with AOLpress/2.0 -->
  <!-- AP: Created on: 14-Dec-2000 -->
  <!-- AP: Last modified: 22-Mar-2005 -->
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!--<TITLE>Transform Dialog</TITLE> -->
    <TITLE>変形ダイアログ</TITLE>
  <LINK REL="icon" href="../../_static/fftype16.png">
  <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<DIV id="in">
<H1 ALIGN=Center>
<!--Transform Dialog-->
    変形ダイアログ
</H1>
<P>
<IMG src="../../_images/transform.png" WIDTH="379" HEIGHT="395">
<P>
<!--
This dialog is available in the font, outline and metrics views. In the font
view it applies to all selected glyphs. In the outline view if there is a
selection then it applies to that. if there is no selection then it applies
to the entire glyph. -->
このダイアログはフォントビュー、アウトラインビューおよびメトリックビューで使用可能です。フォントビューでは選択されたすべての点に変形が適用されます。アウトラインビューでは、何かが選択されていれば変形はそれに適用され、選択されていなければグリフ全体が変形の対象となります。
<P>
<!--
You may choose whether you want the transformation to be centered at the
glyph's origin, the center of the selection (or of the glyph as a whole if
there is no selection), or the location of the last point on which you clicked
the mouse. -->
変形の中心は、グリフの原点・選択範囲の中心 (何も選択されていないときはグリフの中心)・マウスを最後にクリックした点のいずれかから選択することができます。
<P>
<!--
You may apply several different transformations at once: -->
いくつかの異なる変換をいっぺんに指定することができます。
<DL>
  <DT>
<!--Do Nothing-->
    <CODE>何もしない</CODE>
  <DD>
<!--A very simple transformation.-->
    この上なく単純な変換です。
  <DT>
<!--Move-->
    <CODE>移動...</CODE>
  <DD>
<!--You may move the selection an arbitrary amount in the x and y directions-->
    選択範囲を、x 軸および y 軸方向に任意の距離だけ移動できます。
  <DT>
<!--Rotate-->
    <CODE>回転...</CODE>
  <DD>
<!--You may rotate the selection an arbitrary number of degrees.-->
    選択範囲を任意の度数だけ回転できます。
  <DT>
<!--Scale-->
    <CODE>拡大・縮小...</CODE>
  <DD>
<!--You may scale the two coordinates differently-->
    両方の座標軸に沿って、異なる比率で拡大・縮小できます。
  <DT>
<!--Scale Uniformly-->
    <CODE>一様に拡大・縮小...</CODE>
  <DD>
<!--You may scale the two coordinates the same amount (which can of course be
    done above, but it's slightly easier only to set one number). -->
    2 つの座標軸を同じ比率で拡大・縮小できます (もちろん上の方法でもできますが、1 個の数値だけを指定するほうがわずかに簡単です)。
  <DT>
<!--Flip-->
    <CODE>反転...</CODE>
  <DD>
<!--You may flip either horizontally or vertically<FONT COLOR="Red"><BR>
    <STRONG>Note: After flipping an outline you will almost certainly want to
    apply <A HREF="elementmenu.html#Correct">Element-&gt;Correct
    Direction</A>.</STRONG></FONT> -->
    水平または垂直に反転することができます<BR>
    <FONT COLOR="Red"><STRONG>注意: アウトラインを反転した場合、ほとんど確実に <A HREF="elementmenu.html#Correct"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>アウトラインの向きを修正(<U>C</U>)</CODE></A> を適用する必要が生じるでしょう。</STRONG></FONT>
  <DT>
<!--Skew-->
    <CODE>傾き...</CODE>
  <DD>
<!--You may skew the selection a certain number of degrees (to create an oblique
    font for example). -->
    選択範囲を指定した度数だけ傾けることができます (例えば斜体フォントの作成に使えます)。
  <DT>
<!--Rotate 3D Around...-->
    <CODE>3次元の回転...</CODE>
  <DD>
<!--You may do a three dimensional rotation of the glyph around either the X
    axis or the Y axis. This operation is immediately followed by a projection
    of the result back into the xy-plane (A rotation around the Z axis is a normal
    rotaton (and isn't included here). <BR> -->
    グリフの 3 次元回転を X 軸または Y 軸に沿って行うことができます。この操作の後、結果は即座に XY 平面に射影されます (Z 軸の周りの回転は通常の回転です (だからここには含まれていません)。
<!--Following the rotation by a projection produces the same results no matter
    what the sign of the angle (so there are no Clockwise/CounterClockwise options
    here). -->
    回転の後に射影を行っても、その角度の正負によらず同じ結果が得られます (だから 時計回り/反時計回り のオプションはここにはありません)。
  <DT>
<!--Move by Ruler-->
    <CODE>ものさしを使って移動...</CODE>
  <DD>
<!--Fill in the amount to move from the x and y offsets of the last measurements
    made with the <A HREF="charview.html#Ruler">ruler tool</A>. -->
    <A HREF="charview.html#Ruler">ものさしツール</A>で最後に行った移動の x および y 方向のオフセットを移動量の欄に入力します。
  <DT>
<!--Rotate by Ruler-->
    <CODE>ものさしを使って回転...</CODE>
  <DD>
<!--Fill in the rotation angle from the angle of the last measurements made with
    the <A HREF="charview.html#Ruler">ruler tool</A>. -->
    <A HREF="charview.html#Ruler">ものさしツール</A>で最後に行った移動の角度を回転角度の欄に入力します。
  <DT>
<!--Skew by Ruler -->
    <CODE>ものさしを使って変形...</CODE>
  <DD>
<!--Fill in the skew angle from the angle of the last measurements made with
    the <A HREF="charview.html#Ruler">ruler tool</A>. -->
    <A HREF="charview.html#Ruler">ものさしツール</A>で最後に行った変形の角度を変形角度の欄に入力します。
</DL>
<P>
<!--
If you are in the font view, and if <A HREF="editmenu.html#From">Copy From</A>
is set to all fonts, then the transformation will also be applied to the
bitmaps. Not all of these transforms can be mapped to ones on the bitmap
font (arbitrary rotations, scales, etc. do not map). Only rotations by 90
degrees, flips, skews and moves will be approximated on the bitmap glyphs. -->
フォントビューで作業中の場合、もし  <A HREF="editmenu.html#From"><CODE>コピー元の指定(<U>F</U>)</CODE><A> が <CODE>すべてのフォント(<U>A</U>)</CODE> に設定されているならば、変換操作はビットマップにも適用されます。全ての変換がビットマップに適用できるわけではありません (任意の角度の回転、拡大・縮小などは適用できません)。90 度単位の回転、反転、傾きと移動のみがビットマップグリフに近似的に適用されます。
</A>
<P>
<!--
If you are in the font view, then any pair-wise kerning information whose
first glyph is selected will be scaled (but not translated) by the transformation
matrix. Similarly and simple positioning features that apply to a selected
glyph will be transformed by the matrix (but again not translated). You may
choose to scale kerning class as well.-->
フォントビューで操作を行った場合、ペア単位のカーニング情報のうち、最初のグリフが選択されているすべてのものが、変換行列に従って拡大・縮小されます (が平行移動はしません)。同様に、選択中のグリフに適用される単純位置指定機能も、変換行列に従って拡大・縮小されます (これも平行移動はしません)。カーニングクラスも同時に拡大・縮小するか選択することができます。
<P>
<!--
If you are in the font view or the outline view and there is no selection
(and you are in the foreground) there is a "[] Transform Background Too"
check box. If you check this then anything in the background will be transformed
with the foreground. -->
操作をフォントビューかアウトラインビューで行い、そのとき何も選択されていない (そして編集しているのが前面である) 場合、“[] 背景も一緒に変換する(<U>B</U>)</CODE>”というチェックボックスが出てきます。この項目にチェックを入れると、背景のすべての物も前面と一緒に座標変換されます。
<P>
<!--
If you check [] Round to Int then after the transformation has been applied
everything will be rounded to an integer value. -->
“<CODE>[] 整数値に変換(<U>D</U>)</CODE>”にチェックが入っていると、変更が適用された後にすべての座標値が整数値に丸められます。
<P>
<!--
Transformations in the Outline glyph view are not applied to any bitmaps.
(Nor are transformations in the bitmap window mapped back to the outline). -->
アウトライングリフビューにおける変換はビットマップには一切適用されません (ビットマップウィンドウでの変換も、アウトラインには適用されません)。
<H2>
<!--<A NAME="Non-Linear">Non-Linear </A>Transformations -->
    <A NAME="Non-Linear">非線形の</A>変換
</H2>
<P>
<IMG src="../../_images/non-linear.png" WIDTH="282" HEIGHT="166" ALIGN="Right"><!--Non-linear
transformations are defined by providing two expressions, one of which results
in the transformed value for the X coordinate, the other provides the y
coordinate. In the example at right: -->
非線形の座標変換は X 座標の変換式と Y 座標の変換式の 2 個の数式を指定することにより定義されます。右の例は、以下のように定義されています。
<BLOCKQUOTE>
  <I>x' = 5&#183;x<SUP>2</SUP> + x + 3&#183;sin(y)<BR>
  y' = y</I>
</BLOCKQUOTE>
<P>
<!--
Expressions may be made up of the usual C operators: "+", "-", "*", "/",
"%", "!", "==", "&lt;", "&gt;", "&lt;=", "&gt;=", "!=", "&amp;&amp;", "||"
and "? :" as well as "^" which means "raise to the power of". They may also
contain the standard functions: "log", "exp", "sqrt", "sin", "cos", "tan",
"atan2", "abs", "rint", "floor", "ceil". -->
数式を組み立てるのに使える演算子は、 C と同じ意味をもつ、以下の演算子 (“+”,“-”,“*”,“/”,“%”,“!”,“==”,“&lt;”,“&gt;”,“&lt;=”,“&gt;=”,“!=”,“&amp;&amp;”,“||" および“? :”) に加えて、 冪乗を表す“^”です。数式には、以下の標準関数を使用することもできます:“log”,“exp”,“sqrt”,“sin”,“cos”,“tan”,“atan2”,“abs”,“rint”,“floor”,“ceil”.
<P>
<!--
Note: In non-linear transformations the result is only an approximation to
the correct result (A linear transformation will transform a cubic spline
to another cubic spline. A non-linear transformation may not). -->
注意: 非線形の変換では、変換結果は正しい結果の近似でしかありません (線形変換は 3 次スプラインを別の 3 次スプラインに移しますが、非線形変換では不可能だからです)。
<H2>
  <IMG src="../../_images/PoV.png" WIDTH="337" HEIGHT="331" ALIGN="Right"><!--<A NAME="PoV">Point
  of View Projection</A> -->
  <A NAME="PoV">透視変換</A>
</H2>
<P>
<!--
I have a hard time describing this. There are three different coordinate
systems involved. There is the (2D) coordinate system in which your glyph
has been drawn. There is a 3D coordinate system in which we embed it, and
finally there is another 2D coordinate system onto which we project it. -->
これを説明するのは大変です。これには 3 個の異なる座標系が関連しています。グリフが描画される (2 次元) 座標系が存在します。それが埋め込まれている 3 次元座標系が存在し、最後に、投影の対象となるもう一つの 2 次元座標系あります。
<P>
<!--
Assume your eye is at the origin of 3 space, and you are looking up along
the Z axis. Assume that the plane in which your glyph has been drawn
is tilted by an angle theta (from the XY plane in 3 space) and the intersection
between the Z axis and the drawing plane is z units along the Z axis. Assume
that the projection plane is parallel to the XY plane and is at a distance
d along the Z axis. -->
あなたの目がこれら 3 番目の空間の原点にあると仮定して、Z 軸の上の方向に視線が向いているとしましょう。そしてグリフが描かれている平面が角度θだけ (3 番目の空間の XY 平面から) 傾いていて、Z 軸とその平面との交点は、Z 軸に沿って z だけ離れているとしましょう。投影面は XY 平面に平行で、Z 軸に沿って d だけ離れているとしましょう。
<P>
<IMG src="../../_images/Bperspective.png" WIDTH="186" HEIGHT="180" ALIGN="Left"><!--Then for
each point in the glyph we draw a line between that point and your eye (which
is at the origin). The location where that line intersects the projection
plane is the transformed location of that point. Again the result is only
an approximation. -->
その時、我々が描画するグリフの各点に対し、(原点にある) あなたの目からその点に向けて直線を引きます。その線が投影面と交わる位置が、その点の変換後の位置です。この場合も、結果は近似でしかありません。
<P>
<!--
The Point Of View dialog gives you a little more freedom than is described
above. It allows you to set the location of the eye (instead of fixing it
at the origin), and allows you to change in what direction the vanishing
point will lie (instead of fixing it on the y axis). -->
透視変換ダイアログは、上の説明よりも自由度が少し高くなっています。目の位置を (原点固定ではなく) 設定できますし、消失点がある方向を (y 軸方向固定ではなく) 指定することができます。
<P>
<!--
The dialog also calculates the location of the vanishing point as you change
fields (Note: It cannot figure out meta information like "Center of Selection",
so whenever the eye is positioned with this value, it just assumes a value
of 0 for that coordinate. -->
このダイアログは、入力値を変更するごとに消失点の位置を再計算します (注意: 「<CODE>選択領域の中心点</CODE>」のようなメタ情報は算出することはできず、その座標の 0 にあると単純に仮定しています)。
<P ALIGN=Center>
— <A HREF="elementmenu.html">前</A> — <A HREF="overview.html">目次</A>
— <A HREF="elementmenu.html">次</A> —
</DIV>
</BODY></HTML>