Debian Codegraph @

doc/sphinx/olddocs/old/ja/ref-caveats.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <!-- Created with AOLpress/2.0 -->
4 <!-- AP: Created on: 13-Nov-2005 -->
5 <!-- AP: Last modified: 11-Dec-2005 -->
6 <!--<TITLE>Caveats about References</TITLE>-->
7 <TITLE>参照に関する警告</TITLE>
8 <LINK REL="icon" href="../../_static/fftype16.png">
9 <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
10 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
11 </HEAD>
12 <BODY>
13 <div id="in">
14 <P>
15 <!--
16 Different font formats place different restrictions on the use of references.
17 This does NOT mean you should avoid references -- they are a useful way of
18 encapsulating information even if the font format cannot support them directly.
19 If FontForge finds a situation where it can't use a refered glyph as a reference
20 it will fix it up somehow, usually this means replacing it with the equivalent
21 outlines. -->
22 各種のフォントフォーマットには参照の使用方法に関する制限があり、その内容はそれぞれ少しずつ異なっています。だからと言って、参照を使うなと言いたいわけでは<em>ありません</em>——たとえフォントフォーマットのサポートによって直接それを扱えない場合でも、参照が情報をカプセル化する有用な方法であることに変わりありません。グリフ参照を参照の形のままでフォントに書き出せない場合でも、FontForge はなんとかして問題を解決しようと試みます。具体的な解決策としては、参照をそれと等価なアウトラインに置き換えるのが普通です。
23 <P>
24 <!--
25 Let us examine the most common font formats: -->
26 最もありふれたフォントフォーマットについて確認してみましょう:
27 <DL>
28 <DT>
29 TrueType
30 <DD>
31 <!--In TrueType any glyph may be referenced, and TrueType supports almost a full
32 range of linear transformations that may be applied to a reference, however
33 if a reference is scaled by 200% or more (or -200% or less) it cannot be
34 represented in TrueType. -->
35 TrueType では、任意のグリフを参照することができます。また、TrueType では参照に適用される可能性がある線形変換のほとんど全ての範囲をサポートしていますが、参照を 200% 以上 (または -200% 以下) の比率で拡大したときには、TrueType では表現不可能です。
36 <P>
37 <!--TrueType also does not support mixing outlines and references. -->
38 また、TrueType は、アウトラインと参照との混在をサポートしていません。
39 <P>
40 <!--If you have a glyph containing a reference which cannot be used (or that
41 mixes outlines and references) then ALL references will be converted to outlines
42 during output. -->
43 あるグリフに使用できない参照が 1 つでも含まれている場合 (または、アウトラインと参照が混在している場合)、グリフに含まれる<strong>全ての</strong>参照が出力時にアウトラインに変換されます。
44 <P>
45 <!--This means that any instructions in the glyph itself will be meaningless,
46 and any instructions in referred glyphs will not be executed.<BR>
47 NOTE: Just because general transformations are supported, it isn't always
48 a good idea to use them. If you flip a reference, the rasterizer will probably
49 have difficulties with it (its contours will run in the wrong direction).
50 If you rotate a reference any instructions inside it will not work well. -->
51 結論を言えば、グリフ内に含まれる命令はすべて意味を失い、参照されているグリフに含まれる参照されたグリフに含まれることを意味します。<BR>
52 注意: 一般的な変換がサポートされているからと言うだけで、それを使用するのは常によい考えであるわけではありません。参照を反転すると、ラスタライザはたぶんそれに対して困難を抱えることになるでしょう (輪郭線の向きが正しい方向の逆になるでしょう)。参照を回転すると、そこに含まれる命令はおそらくは正しく働かなくなるでしょう。
53 <DT>
54 Type1
55 <DD>
56 <!--Type1 (and Type2) fonts have the basic limitation that the only transformation
57 that may be applied to a reference is translation no scaling, rotating or
58 flipping are allowed. Type1 fonts have two different mechanisms for using
59 references. The first is the simplest to describe. -->
60 Type1 (および Type2) フォントは、参照に適用することのできる変換は平行移動だけであり、拡大/縮小・回転・反転は許されないという根本的な制限があります。Type1 フォントでは、参照を使用するための機構として 2 つの異なる方式が用意されています。最初の方式は説明が最も簡単です。
61 <P>
62 <!--If you have a glyph which contains exactly two references to characters which
63 are themselves part of the Adobe Standard Encoding, and one of those references
64 has an identity transformation matrix applied to it (that is, it is not moved,
65 scaled, rotated, flipped, etc.) and the width of the composite glyph is the
66 same as the width of this referred glyph and the other is only translated
67 (possibly by 0, but not scaled, rotated, flipped, etc.) THEN FontForge can
68 generate two references (this is done with the 'seac' instruction). CID-keyed
69 fonts do not support this.<BR> -->
70 あるグリフに、Adobe 標準エンコーディングに属する文字への参照 2 個だけが含まれでいて、そのうちのどちらかの参照に適用されている変換行列が単位行列であり (すなわち、移動・拡大/縮小・反転などが一切行われていない)、もう片方は平行移動しか行われていない (移動量が 0 でも構いませんが、拡大/縮小・回転・反転などは不可) という条件が満たされているときに<STRONG>限って</STRONG>、FontForge はこれら 2 つを参照として書き出すことができます (それには&lsquo;seac&rsquo;命令を使います)。CID キー指定フォントはこれをサポートしていません。<BR>
71 <!--The implications of this are that this form of referencing is useless for
72 non-latin scripts (except for glyphs shared by latin and another script,
73 Greek and Cyrillic often share the glyph used for latin A).<BR>
74 FontForge makes a slight extension, in that if you have a glyph which contains
75 one single untranslated reference, then FontForge will add a dummy reference
76 to the space glyph to make it fit the two reference requirement. -->
77 これから解ることは、この方式の参照はラテン文字以外の用字系には役に立たないということです (ラテン文字とその他の用字系で共有されているグリフは除きます。ラテン文字の A と同じ形のグリフをギリシャ文字やキリル文字で使うのはよくあることです)。<BR>
78 FontForge はちょっとした拡張を行っており、平行移動を含まない 1 個の参照のみからなるグリフがある場合、FontForge は空白へのダミー参照を追加して、参照の個数がちゃんと 2 個になるようにします。
79 <P>
80 <!--The second format is more general in some ways but has more arcane restrictions
81 imposed on it. PostScript fonts have the concept of "subroutines" which can
82 be used to define the contours of several glyphs. FontForge's algorithm is
83 quite complex and can depend on what other glyphs are refered to. But basically
84 if a glyph contains no hint substitutions, nor flex hints it can be put into
85 a subroutine. If it does contain these it can be put into a subroutine if
86 it has not been translated. Even if one reference cannot be put into a
87 subroutine, another may be (ie. TrueType references are an all or nothing
88 affair, that is not true of PostScript subroutines). If a reference cannot
89 be put in a subroutine, FF may still be able to put some of its components
90 (assuming it is a glyph with references) in a subroutine. -->
91 第 2 のフォーマットはある意味ではより汎用的ではありますが、上記の方式に比べて一層複雑な制約条件を満たしている必要があります。PostScript フォントには、いくつかのグリフで共用される輪郭を定義するのに使用可能な“サブルーチン”の概念があります。FontForge のアルゴリズムは極めて複雑で、どのようにしてグリフ参照を行ったかによっても結果が変わります。しかし基本的には、あるグリフがヒント置換も flex ヒントも含んでいないならば、そのデータをサブルーチンに置くことができます。それらが含まれている場合は、平行移動を行わないときに限りサブルーチン化可能です。複数の参照を含むグリフでは、ある参照をサブルーチン化できない場合でも、その他の参照はサブルーチン化できる可能性があります (TrueType では常に全て参照にするかしないかのどちらかに限られるが、PostScript ではそうとは限らないということです)。参照をサブルーチン化できない場合でも、(参照先のグリフが参照を含む場合であれば) 一部の構成要素をサブルーチン化できることもあります。
92 <P>
93 <!--FontForge will recognize 'seac' as defining references, but it does not recognize
94 subroutine calls. Use <A HREF="editmenu.html#ReplaceRef">Edit-&gt;Replace
95 With Reference</A> after loading a Type1 font. -->
96 FontForge は&lsquo;seac&rsquo;を参照の定義と解釈しますが、サブルーチン呼出しは参照とは見なしません。いったん Type1 フォントを読み込んでから <A HREF="editmenu.html#ReplaceRef"><CODE>編集(<U>E</U>)</CODE>→<CODE>参照に置換</CODE></A> を使用してください。
97 <DT>
98 <!--Type2 ("OpenType") -->
99 Type2 (“OpenType”)
100 <DD>
101 <!--does not have anything equivalent to the 'seac' instruction (well, it sort
102 of does, but the instruction is depreciated and FontForge will not generate
103 it) but does support subroutines. -->
104 Type1 と同様に、参照は平行移動のみが可能 (拡大/縮小、回転などは不可) です。Type2 は&lsquo;seac&rsquo;命令と等価なメカニズムは全く存在しません (まあ、無いことはないのですがその命令は廃止されているので FontForge はそれを出力しないことにしています) が、サブルーチンはサポートしています。
105 <P>
106 <!--Here a referenced glyph can be put into a subroutine if it contains no hint
107 substitutions, or if it is not translated and none of the other components
108 of the final composite contain any hints at all. Again this is not an all
109 or nothing affair. -->
110 Type2 では、参照されたグリフ記述をサブルーチンに置くことができるのは、ヒント置換が全く含まれていない場合か、ヒント置換を含む参照が元と同じ位置に置かれ、最後以外の構成要素にはヒントが全く含まれていない場合に限られます。Type1 と同様、部分的に参照を使用することができます。
111 <P>
112 <!--FontForge will not recognize any references when loading a Type2 (otf, cff,
113 cef, gai) font. Use <A HREF="editmenu.html#ReplaceRef">Edit-&gt;Replace With
114 Reference</A> after loading the font. -->
115 FontForge は Type2 (OTF, CFF, CEF, GAI) フォントの読み込み時に参照をいっさい認識しません。フォントを読み込んだ後に <A HREF="editmenu.html#ReplaceRef"><CODE>編集(<U>E</U>)</CODE>→<CODE>参照に置換</CODE></A> を使用してください。
116 <DT>
117 Type3
118 <DD>
119 <!--There are no restrictions on references.-->
120 参照に関する制約は存在しません。
121 <DT>
122 SVG
123 <DD>
124 <!--Does not seem to have an easy way of handling references.-->
125 参照を取り扱う手軽な方法は存在しないようです。
126 </DL>
127 <P>
128 </div>
129 </BODY></HTML>