JP3065223B2 - Typesetting equipment - Google Patents

Typesetting equipment

Info

Publication number
JP3065223B2
JP3065223B2 JP33908794A JP33908794A JP3065223B2 JP 3065223 B2 JP3065223 B2 JP 3065223B2 JP 33908794 A JP33908794 A JP 33908794A JP 33908794 A JP33908794 A JP 33908794A JP 3065223 B2 JP3065223 B2 JP 3065223B2
Authority
JP
Japan
Prior art keywords
point
character
font data
arrangement
color density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP33908794A
Other languages
Japanese (ja)
Other versions
JPH08184952A (en
Inventor
秀樹 中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Screen Holdings Co Ltd, Dainippon Screen Manufacturing Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP33908794A priority Critical patent/JP3065223B2/en
Publication of JPH08184952A publication Critical patent/JPH08184952A/en
Application granted granted Critical
Publication of JP3065223B2 publication Critical patent/JP3065223B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Preparing Plates And Mask In Photomechanical Process (AREA)
  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、デスク・トップ・パブ
リッシング(DTP)等で構成される組版処理装置に係
り、特に、テキストデータを構成する各文字を遠近感を
持たせて配置して、組版処理を行なう組版処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a typesetting processing apparatus composed of a desktop publishing (DTP) or the like, and more particularly, to arranging characters constituting text data with a perspective. The present invention relates to a typesetting processing device that performs typesetting processing.

【0002】[0002]

【従来の技術】この種の組版処理装置は、与えられた文
字列(基本的に各文字に対応する文字コードで構成され
るテキストデータのファイルとして一般的に扱われる)
に対して指定された組版指示に従って、各文字に対応し
たフォントデータを求めた配置位置に配置されるように
出力(例えば、表示や印刷、フィルム焼き付け等)す
る。
2. Description of the Related Art A typesetting processor of this type is provided with a given character string (generally handled as a file of text data basically composed of character codes corresponding to each character).
In accordance with the typesetting instruction specified for the character string, font data corresponding to each character is output (for example, displayed, printed, or printed on a film) so as to be arranged at the determined arrangement position.

【0003】なお、フォントとは、同一書体を基にして
作られた、一連の文字(かな、漢字等の文字種以外の英
数字・記号等を含み、以下、「文字」というときには、
特に断らない限り同じ意味に使用する)のセットであっ
て、文字部分をドットで表したドットフォントの他、今
日ではベクトルデータ(アウトラインフォントなど)で
構成されることが多い。
A font is a series of characters (including alphanumeric characters and symbols other than character types such as kana and kanji, etc.) created based on the same typeface.
Unless otherwise specified, the same set is used. In many cases, vector data (such as outline fonts) is often used today in addition to dot fonts in which character portions are represented by dots.

【0004】また、書体とは、一連の文字の1セットに
対し、印刷や表示のために、美観等のコンセプトに基づ
いて統一的に施された意匠デザインをいい、例えば、明
朝体やイタリック体、ゴチック体等が知られており、フ
ォントデータとはそのように表示・出力される文字その
もののデータである。
[0004] In addition, a typeface is a design design that is applied to a set of characters in a unified manner for printing and displaying based on a concept such as aesthetics. A body, a gothic body, and the like are known, and font data is data of a character itself displayed and output in such a manner.

【0005】ここで、そのフォントデータの構成を図5
9に示す模式図を参照して定義する。図59では、文字
の「大」の構成要素を示している。文字の字体形状は、
文字の寸法を示す矩形状の枠である『仮想ボディ』IB
に収められ、この仮想ボディIBの横方向の長さXを
『文字幅』とし、縦方向の長さYを『文字高さ』とす
る。一般的には、図59(a)に示すように、文字幅X
と文字高さYとは同じ値、すなわち、仮想ボディIBは
正方形に構成されている。
Here, the structure of the font data is shown in FIG.
9 is defined with reference to the schematic diagram shown in FIG. FIG. 59 shows the components of the character “large”. The font shape of the character is
"Virtual body" IB which is a rectangular frame indicating the size of the character
The length X in the horizontal direction of the virtual body IB is defined as “character width”, and the length Y in the vertical direction is defined as “character height”. Generally, as shown in FIG.
And the character height Y have the same value, that is, the virtual body IB has a square shape.

【0006】仮想ボディIBの内側には、適宜の位置に
文字自体の字体形状を示す『字面』Fが配置され、この
字面Fは、点の集まりからなるドットデータや数学的に
形状を示すベクトルデータにより構成されている。
[0006] Inside the virtual body IB, a "character surface" F indicating the character shape of the character itself is arranged at an appropriate position, and the character surface F is composed of dot data consisting of a group of points or a vector representing a mathematical shape. It consists of data.

【0007】また、仮想ボディIBが正方形であるフォ
ントデータに対して、図59(b)に示すように、文字
高さYを「100%」とした平体率hp(%)が指定さ
れると、仮想ボディIBの文字高さYが(100−h
p)%に圧縮された横長の字面Fが形成され、同様に、
図59(c)に示すように、文字幅Xを「100%」と
した長体率lp(%)が指定されると、仮想ボディIB
の文字幅Xが(100−lp)%に圧縮された縦長の字
面Fが形成される。
Further, as shown in FIG. 59B, a flatness ratio hp (%) with a character height Y of “100%” is specified for font data whose virtual body IB is a square. And the character height Y of the virtual body IB is (100-h
p) A horizontal face F compressed to% is formed, and
As shown in FIG. 59C, when the long body ratio lp (%) with the character width X being “100%” is designated, the virtual body IB
The vertical character face F in which the character width X is compressed to (100-lp)% is formed.

【0008】ここに、上記のように定義した構成を有す
る1文字の文字データを、この明細書では、特に断らな
い限りフォントデータと定義する。そして、本明細書に
おいては、文字ないしは変形文字を所要に配置すること
が基本であり、説明を分かり易くするために「文字を配
置する」として記述するが、これは即ちデータ処理とし
ては「フォントデータを配置する」ことであり、必要に
応じて表現を変えて記述する。
Here, in the present specification, one character data having the configuration defined as above is defined as font data unless otherwise specified. In this specification, it is fundamental to arrange characters or deformed characters as required. In order to make the description easy to understand, this is described as “arranging characters”. This is to arrange the data ”, and the description is changed as necessary.

【0009】さて、上記の文字列を配置する際の基準に
なるものが必要であり、ここでは、仮想ボディIBの左
下をその基準点Pとする。
Now, it is necessary to provide a reference for arranging the above-mentioned character strings. In this case, the lower left of the virtual body IB is set as the reference point P.

【0010】すなわち、組版処理装置では、各文字のフ
ォントデータをその基準点Pを基準にして、求めた配置
位置になるように出力している。
That is, the typesetting processor outputs the font data of each character so as to be at the determined arrangement position with reference to the reference point P.

【0011】ところで、近年、例えば、流通業者が頒布
するチラシなどに見られるように、見る者の注意を引き
付けるために、出力時の文字をデザイン的に変形配置し
たいという要望が増えつつあり、そのための機能を組版
処理装置に備えることが望まれている。
By the way, in recent years, as seen in, for example, flyers distributed by distributors, there is an increasing demand to design and arrange the characters at the time of output in order to attract the viewer's attention. It is desired that the typesetting processing device be provided with the above function.

【0012】従来、例えば、文字を円弧上に配置する
等、平面的に配置する機能を備えた組版装置は徐々に提
供されつつあるが、文字が視覚的な奥行きを持つように
変形配置する(以下、単に「遠近配置」と記す)機能を
備えたものは少ない。
Conventionally, for example, a typesetting device having a function of arranging characters in a plane such as arranging characters on an arc has been gradually provided, but is deformed and arranged so that the characters have a visual depth. In the following, there are few devices provided with a function (hereinafter simply referred to as “persistent arrangement”).

【0013】従って、従来の装置で、文字を前述のよう
に遠近配置しようとする場合、操作者が、変形処理のた
めのデータ処理を各フォントデータ毎に行い、その配置
位置を決めながら編集しなければならず、非常な手間を
要している。
Therefore, in the conventional apparatus, when characters are to be arranged at a distance as described above, the operator performs data processing for deformation processing for each font data and edits the data while determining the arrangement position. It has to be very time consuming.

【0014】また、そのような遠近配置処理の機能を備
えた従来の組版装置では、図60に示すように、指定さ
れた収束点Qに収束するように、各フォントデータを図
形として台形に変形させている。
Further, in the conventional typesetting apparatus having such a perspective arrangement processing function, as shown in FIG. 60, each font data is transformed into a trapezoid as a graphic so as to converge to a designated convergence point Q. Let me.

【0015】[0015]

【発明が解決しようとする課題】しかしながら、このよ
うな構成を有する従来例の場合には、次のような問題が
ある。すなわち、従来装置による文字の遠近配置処理で
は、各文字の字面に関係なく前述のように変形させてい
るので、遠近感がうまく表示されないという問題があ
る。
However, the prior art having such a structure has the following problems. In other words, in the perspective arrangement processing of the character by the conventional device, since the character is deformed as described above regardless of the character surface of the character, there is a problem that the perspective is not displayed well.

【0016】さらに、従来装置では、各フォントデータ
を図形化し、指定の遠近配置になるように一体的に処理
しているので、文字の修正や挿入、削除等に対して柔軟
に対応できないという問題もある。
Further, in the conventional apparatus, since each font data is formed into a graphic and integrally processed so as to be in a specified perspective arrangement, it is not possible to flexibly cope with correction, insertion and deletion of characters. There is also.

【0017】例えば、図60における”イ”を”い”に
修正する場合、図61(a)に示すように、”い”に対
応するフォントデータFd2’を、変形処理された”
イ”と同じ寸法、形状で作成し、図61(b)に示すよ
うに、そのフォントデータFd2’をフォントデータF
d2と入れ換える必要があるが、修正したい文字に対応
する新たなフォントデータを単独で図形として作成する
必要があり煩雑である。
For example, when "i" in FIG. 60 is modified to "i", as shown in FIG. 61 (a), the font data Fd2 'corresponding to "i" is transformed to "i".
61B, and the font data Fd2 'is converted to the font data F as shown in FIG.
Although it is necessary to replace it with d2, it is necessary to separately create new font data corresponding to the character to be corrected as a figure, which is complicated.

【0018】また、図60における”イ”と”え”の間
に”う”の文字を挿入する場合、図62(a)に示すよ
うに、”う”のフォントデータFd3を、フォントデー
タFd4と同じ寸法、形状で作成し、図62(b)に示
すように、”イ”と”え”の間に挿入することになる
が、この場合、”え”や”お”の寸法や形状がずれてし
まうので、それぞれ図62(c)のフォントデータFd
5、Fd6と同じ寸法、形状に修正しなければならず、
処理は一層煩雑になる。
When the character "U" is inserted between "A" and "E" in FIG. 60, the font data Fd3 of "U" is replaced with the font data Fd4 as shown in FIG. As shown in FIG. 62B, it is created with the same size and shape as shown in FIG. 62B, and inserted between "a" and "e". In this case, the size and shape of "e" and "o" are used. Are shifted, the font data Fd shown in FIG.
5, must be modified to the same size and shape as Fd6,
The process becomes more complicated.

【0019】さらに、図60における”イ”を削除した
場合、図63に示すように、”お”及び”え”の寸法や
形状がずれてしまうので、これらのフォントデータFd
4、Fd5の寸法や形状を修正しなければならず処理は
煩雑である。
Further, if "A" in FIG. 60 is deleted, the sizes and shapes of "O" and "E" are shifted as shown in FIG.
4. The size and shape of Fd5 must be corrected, and the process is complicated.

【0020】一方、文字を変形し遠近配置した後、文字
の修正や挿入、削除等を行なう場合には、元の文字列を
所望の文字列に修正し、処理を最初からやり直すことも
できるが、処理を最初からやり直すのはやはり処理効率
が悪い。
On the other hand, when the character is modified, inserted, deleted, etc. after the character is deformed and arranged in perspective, the original character string can be corrected to a desired character string, and the process can be restarted from the beginning. To restart the process from the beginning, the processing efficiency is still poor.

【0021】本発明は、このような事情に鑑みてなされ
たものであって、字面に基づいた自然な遠近配置を行
い、配置後のフォントデータの修正や挿入、削除等に柔
軟に対応することができる組版処理装置を提供すること
を目的とする。
The present invention has been made in view of such circumstances, and provides a natural perspective arrangement based on a character surface, and flexibly copes with correction, insertion, and deletion of font data after arrangement. It is an object of the present invention to provide a typesetting processing device capable of performing the following.

【0022】[0022]

【課題を解決するための手段】本発明は、このような目
的を達成するために、次のような構成をとる。すなわ
ち、請求項1に記載の発明は、与えられたテキストデー
タを構成する各文字に対応する各フォントデータを遠近
配置する文字配置処理を含む組版処理を行ない、組版処
理後の各文字に対応するフォントデータを、予め登録さ
れているフォントから、各文字の文字コードを用いて読
み出し、組版処理後の結果を出力する組版処理装置にお
いて、テキストデータと、前記テキストデータ内の最初
の文字に対応するフォントデータの、出力領域における
配置開始点PS1、PS2と、前記テキストデータを構成す
る各文字に対応する各フォントデータを、前記出力領域
内に遠近配置するときの前記出力領域における収束点P
eとを設定する設定手段と、前記テキストデータ内の所
定の文字に対応するフォントデータの配置開始点Paと
Pbとを結ぶ線分を仮想ボディの一辺とした矩形のフォ
ントデータの寸法を求める寸法特定手段と、前記寸法特
定手段で特定された寸法のフォントデータの仮想ボディ
の一辺を、そのフォントデータの寸法を特定した際の配
置開始点PaとPbとを結ぶ線分に一致させ、かつ、前
記配置開始点PaとPbとを結ぶ線分を挟んで前記収束
点Pe側に、前記フォントデータを仮想的に配置したと
きの、前記点PS1と前記点Peとを結ぶ線分、および前
記点PS2と前記点Peとを結ぶ線分と、前記フォントデ
ータの仮想ボディとの交点をそれぞれ求め、求めた交点
を通過する、前記点PS1と前記点PS2とを結ぶ線分に平
行な線と、前記点PS1と点Peとを結ぶ線分、および前
記点PS2と点Peとを結ぶ線分との各交点(前記仮想的
に配置したフォントデータに対応する所定の文字の次の
文字に対応するフォントデータの配置開始点Pa、P
b)を求める配置開始点特定手段と、前記設定手段で設
定された配置開始点PS1、PS2を最初の文字に対応する
フォントデータの配置開始点Pa、Pbとして前記寸法
特定手段に与えて、前記テキストデータ内の最初の文字
に対応するフォントデータの寸法を求め、求めた最初の
文字の寸法と前記配置開始点PS1、PS2とに基づき、前
記最初の文字に対応するフォントデータの配置位置を求
め、前記配置開始点PS1、PS2と前記最初の文字の寸法
に関するデータを前記配置開始点特定手段に与えて、前
記テキストデータ内の2番目の文字の配置開始点Pa、
Pbを求め、次に、前記求めた2番目の文字の配置開始
点Pa、Pbを前記寸法特定手段に与えて、前記2番目
の文字に対応するフォントデータの寸法を求め、求めた
2番目の文字の寸法と、前記2番目の文字の寸法を求め
た際の配置開始点Pa、Pbとに基づき、前記2番目の
文字に対応するフォントデータの配置位置を求め、前記
2番目の文字の寸法を求めた際の配置開始点Pa、Pb
と前記2番目の文字の寸法に関するデータを前記配置開
始点特定手段に与えて、前記テキストデータ内の3番目
の文字の配置開始点Pa、Pbを求める処理を繰り返
し、前記テキストデータ内の各文字に対応する各フォン
トデータの寸法と、その配置位置を求めるよう制御する
文字配置処理制御手段と、前記テキストデータ内の各文
字に対応する各フォントデータを、各文字の文字コード
を用いて前記フォントから読み出し、読み出した各フォ
ントデータを、前記文字配置処理制御手段で得られた各
フォントデータの寸法と配置位置とに基づき出力する出
力手段と、を備えたものである。
The present invention has the following configuration in order to achieve the above object. That is, according to the first aspect of the present invention, a typesetting process including a character arrangement process for arranging font data corresponding to each character constituting the given text data in a perspective view is performed, and the character corresponding to each character after the typesetting process is processed. Font data is read from a pre-registered font using the character code of each character, and in a typesetting processing device that outputs the result after the typesetting process, the text data corresponds to the first character in the text data. The arrangement start points P S1 and P S2 of the font data in the output area, and the convergence point P in the output area when the font data corresponding to each character constituting the text data are arranged in the output area in perspective.
e, and a dimension for obtaining a dimension of rectangular font data in which a line connecting the arrangement start points Pa and Pb of font data corresponding to predetermined characters in the text data is one side of a virtual body. Specifying means and one side of the virtual body of the font data of the size specified by the size specifying means coincides with a line segment connecting the arrangement start points Pa and Pb when specifying the size of the font data; and A line segment connecting the point P S1 and the point Pe when the font data is virtually arranged on the convergence point Pe side with a line segment connecting the arrangement start points Pa and Pb interposed therebetween; A line segment connecting the point P S2 and the point Pe and an intersection point between the virtual body of the font data and the line segment connecting the point P S1 and the point P S2 pass through the obtained intersection point. Line and the point Line connecting the S1 and the point Pe, and the intersection of the line segment connecting the the point Pe said point P S2 (font corresponding to the next character in the predetermined character corresponding to the font data placed the virtually Data placement start points Pa, P
b) and the layout start points P S1 and P S2 set by the setting means are given to the dimension specifying means as layout start points Pa and Pb of the font data corresponding to the first character. Determining the size of the font data corresponding to the first character in the text data, and determining the font data corresponding to the first character based on the determined size of the first character and the arrangement start points P S1 and P S2 . The arrangement position is determined, and the arrangement start points P S1 and P S2 and the data on the size of the first character are given to the arrangement start point specifying means, and the arrangement start point Pa of the second character in the text data is obtained.
Pb is determined, and then the determined layout start points Pa and Pb of the second character are given to the dimension specifying means to determine the dimensions of the font data corresponding to the second character. Based on the size of the character and the layout start points Pa and Pb when the size of the second character is obtained, the layout position of the font data corresponding to the second character is obtained, and the size of the second character is obtained. Start points Pa and Pb when
And the data relating to the dimensions of the second character are given to the arrangement start point specifying means, and the processing of obtaining the arrangement start points Pa and Pb of the third character in the text data is repeated. Character arrangement processing control means for controlling a size of each font data corresponding to the character data and an arrangement position thereof, and converting each font data corresponding to each character in the text data to the font by using a character code of each character. And output means for outputting each read font data based on the size and arrangement position of each font data obtained by the character arrangement processing control means.

【0023】また、請求項2に記載の発明は、上記請求
項1に記載の組版処理装置において、前記設定手段から
設定された配置開始点PS1とPS2とを結ぶ線分を、前記
出力領域内の座標軸に平行あるいは一致させるように、
前記点PS1(または前記点PS2)を中心として、前記収
束点Peと前記点PS2(または前記点PS1)とを所定角
度回転させた点Pe’と点PS2’(または点PS1’)と
の座標を求める回転処理手段を備えるとともに、前記寸
法特定手段、前記配置開始点特定手段、前記文字配置処
理制御手段では、前記収束点Peと前記点PS2(または
前記点PS1)を、回転処理手段で求めた点Pe’と点P
S2’(または点PS1’)として、前記テキストデータ内
の各文字に対応する各フォントデータの寸法と、前記点
S1(または前記点PS2)と前記点Pe’と前記点
S2’(または前記点PS1’)とに対する、各フォント
データの配置位置を求め、また、前記求めた点PS1(ま
たは点PS2)と点Pe’と点PS2’(または点PS1’)
とに対する、各フォントデータの配置位置を、前記所定
角度分、逆回転させて前記配置開始点PS1、PS2と前記
収束点Peに対する、各フォントデータの配置位置を求
める逆回転手段を備え、前記出力手段では、前記フォン
トから読み出した各フォントデータを、前記求めた寸法
と、前記配置開始点PS1、PS2と前記収束点Peに対す
る、各フォントデータの配置位置に基づき出力するよう
に構成したものである。
According to a second aspect of the present invention, in the typesetting processing apparatus according to the first aspect, a line connecting the arrangement start points P S1 and P S2 set by the setting means is output to the output unit. So that it is parallel or coincident with the coordinate axes in the area,
A point Pe ′ and a point P S2 ′ (or a point P S ′ ) obtained by rotating the convergence point Pe and the point P S2 (or the point P S1 ) by a predetermined angle around the point P S1 (or the point P S2 ). S1 ′), and the size specifying means, the arrangement start point specifying means, and the character arrangement processing control means include the convergence point Pe and the point P S2 (or the point P S1). ) Is converted to the points Pe ′ and P obtained by the rotation processing means.
The size of each font data corresponding to each character in the text data, the point P S1 (or the point P S2 ), the point Pe ′, and the point P S2 ′ as S2 ′ (or the point P S1 ′). The position of each font data with respect to (or the point P S1 ′) is obtained, and the obtained point P S1 (or point P S2 ), point Pe ′ and point P S2 ′ (or point P S1 ′) are obtained.
And reverse rotation means for reversely rotating the arrangement position of each font data by the predetermined angle to obtain the arrangement position of each font data with respect to the arrangement start points P S1 and P S2 and the convergence point Pe. The output means is configured to output each font data read from the font based on the obtained dimensions and the arrangement position of each font data with respect to the arrangement start points P S1 , P S2 and the convergence point Pe. It was done.

【0024】また、請求項3に記載の発明は、上記請求
項1または請求項2のいずれかに記載の組版処理装置に
おいて、前記テキストデータの最初の文字に対応するフ
ォントデータの色濃度(開始色濃度)と前記テキストデ
ータの最後の文字に対応するフォントデータの色濃度
(終了色濃度)とを設定する色濃度設定手段と、前記開
始色濃度と前記終了色濃度との変化量と、前記テキスト
データの全文字数とに基づき、前記テキストデータの各
文字に対応する各フォントデータに対する色濃度の変化
率を求め、前記テキストデータ内における各文字の順番
と、前記求めた色濃度の変化率とに基づき、前記テキス
トデータの各文字に対応するフォントデータに対する、
前記開始色濃度からの色濃度の変化量を求め、前記求め
た開始色濃度からの色濃度の各変化量を前記開始色濃度
に加算して、前記テキストデータの各文字に対応するフ
ォントデータの色濃度を求める色濃度特定手段と、を備
え、前記出力手段では、前記テキストデータ内の各文字
に対応する各フォントデータを、前記色濃度特定手段で
特定した各色濃度で出力するように構成したものであ
る。
According to a third aspect of the present invention, in the typesetting device according to the first or second aspect, the color density of the font data corresponding to the first character of the text data (start Color density) and a color density (end color density) of font data corresponding to the last character of the text data; a change amount between the start color density and the end color density; Based on the total number of characters of the text data, the change rate of the color density for each font data corresponding to each character of the text data is obtained, the order of each character in the text data, and the obtained change rate of the color density are calculated. Based on the font data corresponding to each character of the text data,
A change amount of the color density from the start color density is obtained, and each change amount of the color density from the obtained start color density is added to the start color density to obtain a font data corresponding to each character of the text data. A color density specifying unit for obtaining a color density, wherein the output unit outputs each font data corresponding to each character in the text data at each color density specified by the color density specifying unit. Things.

【0025】[0025]

【作用】請求項1に記載の発明の作用は次のとおりであ
る。まず、設定手段から、テキストデータと、テキスト
データ内の最初の文字に対応するフォントデータの、出
力領域における配置開始点PS1、PS2と、テキストデー
タを構成する各文字に対応する各フォントデータを、出
力領域内に遠近配置するときの、出力領域における収束
点Peとが設定される。
The operation of the first aspect of the invention is as follows. First, from the setting means, the text data, the font data corresponding to the first character in the text data, the layout start points P S1 and P S2 in the output area, and the font data corresponding to each character constituting the text data Is set to a convergence point Pe in the output area when the distance is set in the output area.

【0026】次に、文字配置処理制御手段は、まず、設
定手段から設定された配置開始点PS1、PS2を、テキス
トデータ内の最初の文字に対応するフォントデータの配
置開始点Pa、Pbとして寸法特定手段に与えて、テキ
ストデータ内の最初の文字に対応するフォントデータの
寸法を求め、求めた最初の文字の寸法と配置開始点
S1、PS2とに基づき、最初の文字に対応するフォント
データの配置位置を求め、配置開始点PS1、PS2と最初
の文字の寸法に関するデータを配置開始点特定手段に与
えて、テキストデータ内の2番目の文字の配置開始点P
a、Pbを求める。
Next, the character arrangement processing control means firstly sets the arrangement start points P S1 and P S2 set by the setting means to the arrangement start points Pa and Pb of the font data corresponding to the first character in the text data. To the dimension specifying means to determine the size of the font data corresponding to the first character in the text data, and correspond to the first character based on the determined size of the first character and the arrangement start points P S1 and P S2. The arrangement position of the font data to be obtained is obtained, and the arrangement start points P S1 and P S2 and the data relating to the size of the first character are given to the arrangement start point specifying means, and the arrangement start point P of the second character in the text data is given.
Find a and Pb.

【0027】寸法特定手段では、与えられた配置開始点
PaとPbとを結ぶ線分を仮想ボディの一辺とした矩形
のフォントデータの寸法を求める。
The size specifying means obtains the size of rectangular font data in which a line connecting the given arrangement start points Pa and Pb is one side of the virtual body.

【0028】また、配置開始点特定手段では、出力する
フォントデータを、PS1とPeとを結ぶ線分と、PS2
Peとを結ぶ線分に沿って配置するように、寸法特定手
段で寸法が特定されたフォントデータの次に配置するフ
ォントデータの配置開始点Pa、Pbを求める。
In the arrangement start point specifying means, the font data to be output is arranged by the dimension specifying means so as to be arranged along a line connecting P S1 and Pe and a line connecting P S2 and Pe. The layout start points Pa and Pb of the font data to be placed next to the font data whose dimensions are specified are obtained.

【0029】文字配置処理制御手段は、次に、上記で求
めた2番目の文字の配置開始点Pa、Pbを寸法特定手
段に与えて、2番目の文字に対応するフォントデータの
寸法を求め、求めた2番目の文字の寸法と、2番目の文
字の寸法を求めた際の配置開始点Pa、Pbとに基づ
き、2番目の文字に対応するフォントデータの配置位置
を求め、2番目の文字の寸法を求めた際の配置開始点P
a、Pbと2番目の文字の寸法に関するデータを配置開
始点特定手段に与えて、テキストデータ内の3番目の文
字の配置開始点Pa、Pbを求める処理を繰り返し、テ
キストデータ内の各文字に対応する各フォントデータの
寸法と、その配置位置を順次求める。
Next, the character arrangement processing control means gives the arrangement start points Pa and Pb of the second character obtained above to the dimension specifying means to determine the dimensions of the font data corresponding to the second character. The arrangement position of the font data corresponding to the second character is determined based on the determined second character size and the arrangement start points Pa and Pb at the time of determining the second character size. Starting point P for determining the dimensions of
a, Pb and the data relating to the dimensions of the second character are given to the arrangement start point specifying means, and the processing for obtaining the arrangement start points Pa, Pb of the third character in the text data is repeated. The size of each corresponding font data and its arrangement position are sequentially obtained.

【0030】そして、出力手段は、テキストデータ内の
各文字に対応する各フォントデータを、各文字の文字コ
ードを用いて、予め登録されているフォントから読み出
し、読み出した各フォントデータを、文字配置処理制御
手段で得られた各フォントデータの寸法と配置位置とに
基づき出力する。
The output means reads out each font data corresponding to each character in the text data from a font registered in advance using a character code of each character, and reads out each read font data into a character arrangement. The output is performed based on the size and arrangement position of each font data obtained by the processing control means.

【0031】出力された結果は、PS1とPeとを結ぶ線
分と、PS2とPeとを結ぶ線分に沿って、矩形のフォン
トデータが徐々に小さくなるように、すなわち、テキス
トデータを構成する各文字に対応する各フォントデータ
が視覚的な奥行きを持つように遠近配置されたものとな
る。
The output result is such that the rectangular font data is gradually reduced along the line connecting P S1 and Pe and the line connecting P S2 and Pe, that is, the text data is The font data corresponding to each of the constituent characters is distantly arranged so as to have a visual depth.

【0032】つまり、本発明では、各フォントデータを
図形化することなく、また、出力される各フォントデー
タは矩形であるので、字面に基づいた自然な遠近配置が
可能となる。
That is, according to the present invention, each font data is not formed into a graphic, and each font data to be output is rectangular, so that a natural perspective arrangement based on the character surface is possible.

【0033】さらに、各フォントデータは、遠近配置す
るように、それぞれの寸法と配置位置が求められてお
り、文字コードを用いてフォントデータを出力してい
る。従って、フォントデータの修正を行なうときには、
修正するフォントデータに対応する文字の文字コードを
修正して、そのフォントデータを出力してやることによ
り、修正前の寸法、配置位置に修正後の文字に対応する
フォントデータが出力される。また、フォントデータの
挿入や削除についても、フォントデータに対応する文字
の文字コードをシフトさせてフォントデータを再出力す
ることで対応することができる。従って、出力結果に対
するフォトデータの修正や挿入、削除等に柔軟に対応す
ることができる。
Further, each font data is required to have its size and arrangement position so as to be arranged at a distance, and the font data is output using a character code. Therefore, when correcting font data,
By correcting the character code of the character corresponding to the font data to be corrected and outputting the font data, the font data corresponding to the corrected character is output to the dimensions and arrangement position before correction. Also, insertion or deletion of font data can be handled by shifting the character code of the character corresponding to the font data and re-outputting the font data. Therefore, it is possible to flexibly cope with correction, insertion, deletion, and the like of the photo data with respect to the output result.

【0034】また、請求項2に記載の発明の作用は次の
とおりである。回転処理手段は、設定された配置開始点
S1とPS2とを結ぶ線分を、出力領域(x−y座標系)
の座標軸(x軸またはy軸)に平行あるいは一致させる
ように、点PS1(または点PS2)を中心として、収束点
Peと点PS2(または点PS1)とを所定角度回転させた
点Pe’と点PS2’(または点PS1’)との座標を求め
る。
The operation of the invention described in claim 2 is as follows. The rotation processing means converts the line segment connecting the set arrangement start points PS1 and PS2 into an output area (xy coordinate system).
The convergence point Pe and the point P S2 (or the point P S1 ) are rotated by a predetermined angle around the point P S1 (or the point P S2 ) so as to be parallel to or coincide with the coordinate axis (x-axis or y-axis). The coordinates of the point Pe ′ and the point P S2 ′ (or the point P S1 ′) are obtained.

【0035】寸法特定手段、配置開始点特定手段、文字
配置処理制御手段では、設定された収束点Peと点PS2
(または点PS1)を、回転処理手段で求めた点Pe’と
点PS2’(または点PS1’)として、テキストデータ内
の各文字に対応する各フォントデータの寸法と、その配
置位置を求める。このとき、点PS1(または点PS2)と
点PS2’(または点PS1’)とは、x−y直交座標系の
x軸またはy軸に平行あるいは一致しているので、各フ
ォントデータの寸法や配置位置の算出が容易になる。し
かし、求められた各フォントデータの配置位置は、点P
S1(または点PS2)と点Pe’と点PS2’(または点P
S1’)とに対するものである。
The size specifying means, the layout start point specifying means and the character layout processing control means set the convergence point Pe and the point P S2.
(Or the point P S1 ) as the points Pe ′ and P S2 ′ (or the point P S1 ′) obtained by the rotation processing means, the size of each font data corresponding to each character in the text data, and the arrangement position thereof Ask for. At this time, since the point P S1 (or the point P S2 ) and the point P S2 ′ (or the point P S1 ′) are parallel to or coincide with the x-axis or the y-axis of the xy orthogonal coordinate system, Calculation of data dimensions and arrangement positions becomes easy. However, the position of the obtained font data is the point P
S1 (or point P S2 ), point Pe ′ and point P S2 ′ (or point P
S1 ').

【0036】従って、逆回転処理手段は、求めた点PS1
(または点PS2)と点Pe’と点PS2’(または点
S1’)とに対する、各フォントデータの配置位置を、
回転処理手段で点Pe’と点PS2’(または点PS1’)
を得た際の回転角度分、逆回転させて、設定された配置
開始点PS1、PS2と収束点Peに対する、各フォントデ
ータの配置位置を求め、出力手段で、フォントから読み
出した各フォントデータを、設定された配置開始点
S1、PS2と収束点Peに対する、各フォントデータの
配置位置と求めた寸法とに基づき出力する。これによ
り、設定された配置開始位置PS1、PS2から収束点Pe
に収束するように各フォントデータが遠近配置されて出
力される。
Therefore, the reverse rotation processing means determines the point P S1
(Or the point P S2 ), the point Pe ′ and the point P S2 ′ (or the point P S1 ′)
Point Pe ′ and point P S2 ′ (or point P S1 ′) by the rotation processing means
Are rotated in the reverse direction by the rotation angle at the time of obtaining the position of each font data with respect to the set arrangement start points P S1 , P S2 and the convergence point Pe. The data is output based on the arrangement position of each font data with respect to the set arrangement start points P S1 and P S2 and the convergence point Pe and the obtained dimensions. Thereby, the convergence point Pe is set from the set arrangement start positions P S1 and P S2.
The font data is arranged and output so that it converges to.

【0037】また、請求項3に記載の発明の作用は次の
とおりである。色濃度設定手段からは、与えられたテキ
ストデータの最初の文字に対応するフォントデータの色
濃度(開始色濃度)とテキストデータの最後の文字に対
応するフォントデータの色濃度(終了色濃度)とが設定
される。
The operation of the invention described in claim 3 is as follows. From the color density setting means, the color density of the font data corresponding to the first character of the given text data (start color density), the color density of the font data corresponding to the last character of the text data (end color density), Is set.

【0038】色濃度特定手段では、開始色濃度から終了
色濃度へ、徐々に(直線的に)各文字に対応する各フォ
ントデータの色濃度が変化するように、各フォントデー
タの色濃度を求める。
The color density specifying means obtains the color density of each font data so that the color density of each font data corresponding to each character gradually (linearly) changes from the start color density to the end color density. .

【0039】出力手段は、テキストデータ内の各文字に
対応する各フォントデータを、各文字の文字コードを用
いて予め登録されているフォントから読み出し、読み出
した各フォントデータを、求めた寸法と配置位置と、色
濃度特定手段で特定した各色濃度とに基づき出力する。
The output means reads each font data corresponding to each character in the text data from a font registered in advance by using a character code of each character, and outputs each read font data to a determined size and layout. An output is performed based on the position and each color density specified by the color density specifying means.

【0040】[0040]

【実施例】以下、図面を参照して本発明の一実施例を説
明する。図1は、本発明の第一実施例に係る組版処理装
置の内部構成を示すブロック図である。この第一実施例
は、主に、請求項1と、請求項1に従属する請求項3と
に記載された発明に対応した実施例である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the internal configuration of the typesetting apparatus according to the first embodiment of the present invention. The first embodiment is an embodiment mainly corresponding to the invention described in claim 1 and claim 3 dependent on claim 1.

【0041】図中、符号1は組版された文字列の最終デ
ータを演算作成する文字配置処理部を示す。
In the figure, reference numeral 1 denotes a character arrangement processing unit for calculating and preparing the final data of a formalized character string.

【0042】テキストデータバッファ2には、組版処理
対象のテキストデータを構成する各文字の文字コード
が、文字列の順に記憶される。テキストデータは、入力
部9からI/Oインターフェース10を介して入力制御
部11に取り込まれ、それぞれ文字コードとして順次テ
キストデータバッファ2に記憶される。
The text data buffer 2 stores the character codes of the characters constituting the text data to be subjected to typesetting in the order of the character strings. The text data is taken into the input control unit 11 from the input unit 9 via the I / O interface 10, and is sequentially stored in the text data buffer 2 as a character code.

【0043】また、組版に関する指示も入力部9から入
力され、I/Oインターフェース10、入力制御部11
を介して組版指示バッファ3に記憶される。なお、本実
施例では、この組版指示の各要素は、組方向と、各フォ
ントデータの長平体率と、文字列の配置開始位置と、遠
近配置するときの収束点(後述する)位置と、最初の文
字の色濃度(開始色濃度)と、最後の文字の色濃度(終
了色濃度)のそれぞれを少なくとも含むものである。
Also, instructions relating to typesetting are input from the input unit 9, and the I / O interface 10 and the input control unit 11
Is stored in the typesetting instruction buffer 3 via the. In the present embodiment, each element of the typesetting instruction includes a composition direction, a long and flat ratio of each font data, a character string arrangement start position, a convergence point (to be described later) position at the time of perspective arrangement, and It includes at least the color density of the first character (start color density) and the color density of the last character (end color density).

【0044】入力部9は、例えば、マウス等のポインテ
ィングデバイスやキーボード(K/B)など直接操作す
るものや、既に作成された文字列ファイル(文章ファイ
ル)や組版指示データファイルからデータを得る場合の
フレキシブルディスクドライバ(FDD)や通信ドライ
バ等の各種の機器が選択的に組み合わされて構成され
る。
The input unit 9 is used for directly operating, for example, a pointing device such as a mouse or a keyboard (K / B), or for obtaining data from an already created character string file (sentence file) or typesetting instruction data file. Various devices such as a flexible disk driver (FDD) and a communication driver are selectively combined.

【0045】寸法特定部4は、各文字の配置開始位置デ
ータに基づき、その文字の矩形の仮想ボディの寸法を求
め、文字配置処理部1に与える。
The size specifying unit 4 obtains the size of the virtual imaginary body of the character based on the layout start position data of each character, and gives the size to the character layout processing unit 1.

【0046】配置開始点特定部5は、遠近配置のための
特定点(図9を用いて後述する点PS1、PS2、Pe)
と、各文字(矩形)のフォントデータの寸法データと、
先の文字の配置位置データとに基づき、次の文字の配置
位置データを求め、文字配置処理部1に与える。
The arrangement start point specifying unit 5 specifies specific points for perspective arrangement (points P S1 , P S2 , and Pe described later with reference to FIG. 9).
And the dimension data of the font data of each character (rectangle),
Based on the previous character arrangement position data, the next character arrangement position data is obtained and given to the character arrangement processing unit 1.

【0047】色濃度特定部6は、開始色濃度と終了色濃
度と、文字列の全文字数とに基づき、各文字に対する色
濃度の変化率を求め、各文字に対応するフォントデータ
の色濃度を演算し、そのデータを文字配置処理部1に与
える。
The color density specifying section 6 calculates the rate of change of the color density for each character based on the start color density, the end color density, and the total number of characters in the character string, and calculates the color density of the font data corresponding to each character. Calculation is performed and the data is provided to the character arrangement processing unit 1.

【0048】組版データテーブル7には、文字配置処理
部1により得られた組版された文字列の出力用データが
記憶され、また、組版補助データテーブル8には、既に
遠近配置された文字列に新たな文字を挿入する際の処理
に必要なデータ(補助データ)が記憶されると共に両デ
ータは、磁気ディスク装置等の外部記憶装置18にも記
憶される。これは、それらのデータに基づいて、以後そ
の組版された文字列を随時出力できるように、メモリす
るためである。
The typesetting data table 7 stores the output data of the typeset character string obtained by the character arrangement processing unit 1, and the typesetting auxiliary data table 8 stores the typesetting character string that has already been arranged in the near and far directions. Data (auxiliary data) necessary for processing for inserting a new character is stored, and both data are also stored in an external storage device 18 such as a magnetic disk device. This is for storing the formatted character string so that it can be output at any time based on the data.

【0049】出力制御部12は、組版データテーブル7
に作成されたデータに基づき、フォント格納部13に予
め登録されたフォントデータを読み出し、表示装置14
に表示し、あるいはプリンタ15で印刷や図示しない出
力スキャナによりフィルムへの焼付けを行なう。
The output control unit 12 controls the typesetting data table 7
The font data registered in advance in the font storage unit 13 is read based on the data created in the display device 14.
Or printing on a printer 15 or printing on a film by an output scanner (not shown).

【0050】図中の制御部16は、装置全体の制御等を
行なう。例えば、制御部16が入力制御部11を制御し
て、テキストデータや組版指示が各バッファ2、3に記
憶されると、文字配置処理部1に文字配置の演算処理を
開始させる指示を与え、組版データテーブル7、組版補
助データテーブル8に所定のデータが作成されたこと
を、文字配置処理部1から通知されると、出力制御部1
2を制御して、組版結果の出力を行う。
The control section 16 in the figure controls the entire apparatus. For example, when the control unit 16 controls the input control unit 11 and the text data and the typesetting instruction are stored in the buffers 2 and 3, the character arrangement processing unit 1 is instructed to start the character arrangement arithmetic processing. When the character arrangement processing unit 1 notifies that the predetermined data has been created in the typesetting data table 7 and the typesetting auxiliary data table 8, the output control unit 1
2 to output the formatted result.

【0051】メモリ17は、外部記憶装置18に予め記
憶された処理に必要なデータや、文字配置処理部1、寸
法特定部4、配置開始点特定部5、色濃度特定部6、入
力制御部11、出力制御部12、制御部16が実行する
処理手順(プログラム)を、外部記憶装置18から読み
出して記憶するとともに、処理中のデータの一時記憶等
に使用される。
The memory 17 stores data necessary for processing stored in the external storage device 18 in advance, a character arrangement processing section 1, a dimension identification section 4, an arrangement start point identification section 5, a color density identification section 6, an input control section. The processing procedure (program) executed by the output control unit 12, the output control unit 12, and the control unit 16 is read from the external storage device 18 and stored, and is used for temporary storage of data being processed.

【0052】なお、テキストデータバッファ2、組版指
示バッファ3、組版データテーブル7、組版補助データ
テーブル8、メモリ17は、RAM(ランダム・アクセ
ス・メモリ)で構成されている。
The text data buffer 2, the typesetting instruction buffer 3, the typesetting data table 7, the typesetting auxiliary data table 8, and the memory 17 are constituted by a RAM (random access memory).

【0053】また、入力部9と入力制御部11は、本発
明における設定手段と色濃度設定手段に相当する。さら
に、寸法特定部4は、本発明における寸法特定手段に相
当し、配置開始点特定部5は、本発明における配置開始
点特定手段に相当する。また、文字配置処理部1は、本
発明における文字配置処理制御手段に相当し、文字配置
処理部1と色濃度特定部7は、本発明における色濃度特
定手段に相当する。さらに、出力制御部12と表示装置
14とプリンタ15は、本発明における出力手段に相当
する。
The input unit 9 and the input control unit 11 correspond to setting means and color density setting means in the present invention. Further, the dimension specifying unit 4 corresponds to a dimension specifying unit in the present invention, and the arrangement start point specifying unit 5 corresponds to an arrangement start point specifying unit in the present invention. The character arrangement processing unit 1 corresponds to a character arrangement processing control unit in the present invention, and the character arrangement processing unit 1 and the color density specifying unit 7 correspond to a color density specifying unit in the present invention. Further, the output control unit 12, the display device 14, and the printer 15 correspond to output means in the present invention.

【0054】次に、本実施例装置の文字列の遠近配置組
版における処理手順を図2ないし図5のフローチャート
を参照して説明する。図2は、その処理手順を示すメイ
ンフローチャートである。
Next, the processing procedure of the apparatus of this embodiment in the composition of the character string in the perspective arrangement will be described with reference to the flowcharts of FIGS. FIG. 2 is a main flowchart showing the processing procedure.

【0055】図2において、まず、テキストデータの取
込みを行なう(ステップS1)。すなわち、オペレータ
が処理対象の文字列のデータファイルを入力部9で指定
すると入力制御部11は、各文字の文字コードを順次テ
キストデータバッファ2に記憶していく。
In FIG. 2, first, text data is fetched (step S1). That is, when the operator specifies a data file of a character string to be processed by the input unit 9, the input control unit 11 sequentially stores the character codes of each character in the text data buffer 2.

【0056】図6では、文字列”大バーゲン”を例にし
てテキストデータバッファ2に記憶されたテキストデー
タの内容・構成を示している。以下、文字列として”大
バーゲン”を例に以後の説明を行なう。
FIG. 6 shows the contents and structure of the text data stored in the text data buffer 2 using the character string "large bargain" as an example. Hereinafter, the following description will be given by taking "large bargain" as an example of a character string.

【0057】図2に戻って、次に、組版指示の取込み
(ステップS2)の処理手順を図3を参照して説明す
る。
Returning to FIG. 2, the processing procedure of taking in the typesetting instruction (step S2) will be described with reference to FIG.

【0058】ここで、遠近配置の基本的な指示要素につ
いて図9を用いて説明する。図9(a)〜(d)は”大
バーゲン”の文字列の”大”が最も近くに、”ン”を最
も遠くに見えるように各文字を変形して配置する様子
を、それぞれ文字の向きを変えて示したもので、図から
分かるように遠近配置のためには最も近い文字配置と最
も遠い文字配置を指定ないし確定する必要がある。以下
では、それぞれの文字を単に「最近文字」、「最遠文
字」と記す。本発明では、最近文字の配置に対してはそ
の文字のフォントデータの手前の2点(PS1、PS2
と、最遠文字の配置に対しては遠近法的に見た収束点P
eを指定し、この3点を結ぶ三角形に沿って文字列を変
形配置することを基本としている。
Here, basic indicating elements of the distance arrangement will be described with reference to FIG. FIGS. 9A to 9D show how each character is deformed and arranged so that "Large" in the character string "Large bargain" is closest and "N" is farthest away. The orientation is changed, and as can be seen from the figure, it is necessary to designate or determine the closest character arrangement and the furthest character arrangement for the perspective arrangement. In the following, each character is simply referred to as a “recent character” and a “farthest character”. In the present invention, for the arrangement of the most recent character, two points (P S1 and P S2 ) in front of the font data of the character are used.
And the convergence point P from the perspective of the arrangement of the farthest characters
Basically, a character string is deformed and arranged along a triangle connecting these three points by designating e.

【0059】まず、テキストデータの最初の文字に対応
するフォントデータを出力する際の配置開始点PS1、P
S2のユーザー空間(プレーンメモリなどのコンピュータ
処理領域上の座標(x−y座標)で実際に組版する出力
領域に相当する。)における各座標と、テキストデータ
を構成する各文字を遠近配置するときの収束点Peの座
標の取込みを行なう(ステップS11)。
First, the layout start points P S1 and P S1 when outputting font data corresponding to the first character of the text data.
When arranging the coordinates in the user space of S2 (coordinates (xy coordinates) on a computer processing area such as a plane memory and equivalent to an output area to be actually typeset) and each character constituting text data in perspective The coordinates of the convergence point Pe are taken in (step S11).

【0060】すなわち、図7(a)に示すように、点P
S1、点PS2、点Peの各(x,y)座標を指定する。な
お、x−y直交座標系の原点(0,0)は、表示装置1
4の表示空間の予め決められた点、プリント、あるい
は、フィルムの焼付け等による組版出力する領域の予め
決められた点にそれぞれ対応する。
That is, as shown in FIG.
The (x, y) coordinates of S1 , point Ps2 , and point Pe are designated. Note that the origin (0, 0) of the xy rectangular coordinate system is the display device 1
4 corresponds to a predetermined point in the display space, and a predetermined point in a region where a typesetting is output by printing or printing a film.

【0061】ユーザーにより、各点の座標が入力部9か
ら設定されると、入力制御部11は、それら各座標を、
組版指示バッファ3の所定エリアに記憶する。
When the coordinates of each point are set by the user from the input unit 9, the input control unit 11 converts the coordinates into
It is stored in a predetermined area of the typesetting instruction buffer 3.

【0062】ここで、組版指示バッファ3の構成を図8
に示す。図8に示すように、組版指示バッファ3には、
指定点PS1、PS2、Peの各(x,y)座標の他、後述
する組方向指示、長平体率、開始色濃度、終了色濃度を
記憶するためのエリアが設けられている。
Here, the configuration of the typesetting instruction buffer 3 is shown in FIG.
Shown in As shown in FIG. 8, the typesetting instruction buffer 3 includes:
In addition to the (x, y) coordinates of the designated points P S1 , P S2 , and Pe, areas for storing later-described set direction instructions, a long flat body ratio, a start color density, and an end color density are provided.

【0063】ところで、処理対象の文字列を変形配置す
るためには、点PS1、点PS2から点Peに収束するよう
に、換言すると点PS1、点PS2、点Peは三角形を形成
するように設定されなければならない。これら3点の位
置関係は、例えば図7(a)、(b)、(c)、
(d)、(e)の種々の形態があるが、基本的には点P
S1とPS2を結ぶ線(直線PS1−PS2)を含む線(1次関
数)上に点Peが位置しないことで上記の条件を調べる
ことができる。
By the way, in order to deform places the string to be processed, the point P S1, so as to converge from the point P S2 to the point Pe, the point P S1 in other words, the point P S2, the point Pe triangle formed Must be set to The positional relationship between these three points is, for example, as shown in FIGS. 7 (a), (b), (c),
Although there are various forms of (d) and (e), basically the point P
The above condition can be checked if the point Pe is not located on a line (linear function) including a line (straight line PS1- PS2 ) connecting S1 and PS2 .

【0064】なお、図7(a)に示すように、各点の座
標を点PS1(xs1,ys1)、点PS2(xs2,ys2
s1)、点Pe(xe ,ye )とし、ここでは、点PS1
と点PS2とを結ぶ線分SLが、x軸に平行に設定された
もの(点PS1と点PS2のy座標が同じである)として以
下の説明を行なう。
As shown in FIG. 7A, the coordinates of each point are represented by a point PS1 ( xs1 , ys1 ) and a point PS2 ( xs2 , ys2 =
y s1), and the point Pe (x e, and y e), where the point P S1
The following description will be made on the assumption that the line segment SL connecting the point P S2 and the point P S2 is set parallel to the x-axis (the y coordinate of the point P S1 and the point P S2 is the same).

【0065】この場合の遠近配置のための各文字の配置
位置を求める処理方法を以下では『処理パターン1』と
する。
In this case, the processing method for obtaining the arrangement position of each character for the perspective arrangement is hereinafter referred to as “processing pattern 1”.

【0066】図3に戻って、次に、組方向指示の取込み
を行なう(ステップS12)。組方向指示とは、横組み
で組版するか縦組みで組版するかを指定するための指示
である。横組みを指示すると、点PS1、点PS2、点Pe
との位置関係に応じて、図9(a)、(b)に示すよう
に組版され、同様に縦組みを指示すると、図9(c)、
(d)に示すように組版される。
Returning to FIG. 3, next, a set direction instruction is fetched (step S12). The composition direction instruction is an instruction for specifying whether to perform composition in horizontal composition or vertical composition. When the horizontal composition is designated, the points P S1 , P S2 , and Pe
9 (a) and 9 (b) in accordance with the positional relationship between them, and when the vertical composition is designated in the same manner, FIG.
Typesetting is performed as shown in (d).

【0067】ユーザーにより、入力部9から組方向指示
を意味するコード(例えば、「0」が横組み、「1」が
縦組みを意味するとする)が指定されると、入力制御部
11により指定コードが組版指示バッファ3(図8参
照)の<組方向>のエリアに記憶される。
When the user designates a code (for example, “0” means horizontal composition and “1” means vertical composition) from the input unit 9, the code is designated by the input control unit 11. The code is stored in the <composition direction> area of the composition instruction buffer 3 (see FIG. 8).

【0068】図3に戻って、次に、長平体率の取込みを
行なう(ステップS13)。ユーザーは、組版文字の形
状に応じて、長体率または平体率の設定を入力部9から
行なう。長体率を指定するときには、図59(c)にお
けるlp(%)を指定し、平体率を指定するときには、
図59(b)におけるhp(%)を指定し、それぞれ組
版指示バッファ3の<長体率>、<平体率>のエリアに
記憶される。なお、指定できるのは、長体率、平体率の
内いずれか一方のみであり、双方とも指定しないときに
は、長体率、平体率ともに「0」となる。
Returning to FIG. 3, next, the long flat body ratio is fetched (step S13). The user sets the long body ratio or the flat body ratio from the input unit 9 according to the shape of the typesetting character. When specifying the long body ratio, lp (%) in FIG. 59C is specified, and when specifying the flat body ratio,
Hp (%) in FIG. 59 (b) is designated and stored in the <long body ratio> and <plain body ratio> areas of the typesetting instruction buffer 3, respectively. Note that only one of the long body ratio and the flat body ratio can be specified, and when neither of them is specified, both the long body ratio and the flat body ratio become “0”.

【0069】図3に戻って、次に、対象文字列の最初の
文字の色濃度(開始色濃度)と、最後の文字の色濃度
(終了色濃度)を取り込む(ステップS14)。ユーザ
ーにより入力部9から設定された開始色濃度と終了色濃
度とは、組版指示バッファ3の<開始色濃度>、<終了
色濃度>のエリアにそれぞれ記憶される。
Returning to FIG. 3, next, the color density of the first character (start color density) and the color density of the last character (end color density) of the target character string are fetched (step S14). The start color density and the end color density set by the user from the input unit 9 are stored in the <start color density> and <end color density> areas of the typesetting instruction buffer 3, respectively.

【0070】ところで、この開始色濃度と終了色濃度デ
ータは、カラー表示装置やプリンタ等の組版結果の出力
装置に応じてR(赤),G(緑),B(青)の色濃度
(例えば、最高濃度100に対する%)あるいは、Y
(黄),M(マゼンダ),C(シアン),K(墨)の色
濃度(網%等)で指定され、組版指示バッファ3には、
図10の開始色濃度で示すように、それぞれの色濃度を
記憶するエリアが確保されている。
By the way, the start color density and end color density data are used for R (red), G (green), and B (blue) color densities (for example, according to a type display device such as a color display device or a printer). ,% Of maximum density 100) or Y
(Yellow), M (magenta), C (cyan), and K (black) color densities (shade% etc.).
As shown by the starting color densities in FIG. 10, areas for storing the respective color densities are secured.

【0071】また、RGBとYMCKの各色濃度は相互
に変換(周知技術なので詳述しない)できるので、一方
のみを指定し、他方を演算で求めてもよい。
Further, since the respective color densities of RGB and YMCK can be converted into each other (not described in detail because it is a well-known technique), it is possible to specify only one and calculate the other by calculation.

【0072】図2に戻って、次に、各フォントデータの
寸法、配置位置、色濃度を求めて組版データテーブル7
を編集するための前処理を行なう(ステップS3)。
Returning to FIG. 2, next, the size, arrangement position, and color density of each font data are obtained, and the typesetting data table 7 is obtained.
Is performed (step S3).

【0073】ここで、組版データテーブル7の構成と本
文字列での例を図11に示す。この組版データテーブル
7はヘッダ部HAとテキストデータを構成する各文字に
対応する各フォントデータの文字処理データ部FAn
(nは対象文字列の文字数)とで構成されている。ヘッ
ダ部HAは、<組方向>、<長体率>、<平体率>、<
回転角度θ>、<文字数>、<処理済文字数>のデータ
エリアで構成され、文字処理データ部FAnは、各文字
毎に<文字コード>、<配置位置x>、<配置位置y
>、<寸法>、<色濃度>のデータエリアで構成されて
いる。
FIG. 11 shows the structure of the typesetting data table 7 and an example of this character string. The typesetting data table 7 includes a header part HA and a character processing data part FAn of each font data corresponding to each character constituting the text data.
(N is the number of characters in the target character string). The header portion HA includes <assembly direction>, <long body ratio>, <flat body ratio>, <
The rotation angle θ>, <number of characters>, and <number of processed characters> are included in the data area, and the character processing data portion FAn includes a <character code>, <arrangement position x>, and <arrangement position y for each character.
>, <Dimensions>, and <color density>.

【0074】この前処理では、まず、文字配置処理部1
が、テキストデータバッファ2からは各文字の文字コー
ドを、組版指示バッファ3から組方向、長体率、平体
率、開始色濃度、終了色濃度の各データを、組版データ
テーブル7に記憶する。
In this preprocessing, first, the character arrangement processing unit 1
However, the character code of each character is stored in the typesetting data table 7 from the text data buffer 2, and the data of the setting direction, long body ratio, flat body ratio, start color density, and end color density are stored in the typesetting instruction buffer 3. .

【0075】なお、開始色濃度と終了色濃度は、それぞ
れ最初と最後の文字に対応する文字処理データ部(本例
ではFA1とFA5の色濃度データエリア)に記憶す
る。また、文字処理データ部FAnの<色濃度>は、組
版指示バッファ3と同様に、Y,M,C,K及びR,
G,Bの各色濃度を記憶する。
The start color density and the end color density are stored in character processing data sections (color density data areas of FA1 and FA5 in this example) corresponding to the first and last characters, respectively. The <color density> of the character processing data part FAn is set to Y, M, C, K, R,
The color densities of G and B are stored.

【0076】そして、組版データテーブル7の文字処理
データ部FAnの各<文字コード>のエリアには”大バ
ーゲン”の文字コードを記憶していく。なお、このと
き、テキストデータの文字数のカウント値(本実施例で
は「5」)を<文字数>のエリアに、また、<回転角度
θ>のエリアには、出力時のフォントデータの回転角度
を記憶するが、これにより図12に示すように、フォン
トデータをx−y直交座標系のx軸に対して仮想ボディ
IBの基準点Pを中心として、θ回転させて出力するこ
とになる。
Then, the character code of "Large bargain" is stored in each <character code> area of the character processing data portion FAn of the typesetting data table 7. At this time, the count value of the number of characters of the text data ("5" in the present embodiment) is set in the area of <number of characters>, and in the area of <rotation angle θ>, the rotation angle of the font data at the time of output is set. As a result, as shown in FIG. 12, the font data is output after being rotated by θ around the reference point P of the virtual body IB with respect to the x-axis of the xy orthogonal coordinate system.

【0077】図9は先に一部説明したが、それぞれ特定
点Pe、PS1、PS2と、”大バーン”の文字列を
(c)、(d)では縦組み、(a)、(b)では横組み
に指示した場合の組版例で、図から明らかなように回転
角度は、 図9(a)では、θ=+90、 図9(b)では、θ=−90(あるいは、+270)、 図9(c)、(d)では、θ=0 となる。
[0077] Although FIG. 9 has been described in part above, each specific point Pe, and P S1, P S2, a string of "large bar game down" (c), the (d) vertically arranged, (a) 9B shows an example of the typesetting in the case where the horizontal composition is instructed. As is clear from the drawing, the rotation angle is θ = + 90 in FIG. 9A and θ = −90 (or FIG. 9B). , +270), and in FIGS. 9C and 9D, θ = 0.

【0078】さらに、文字配置処理部1は、図13に示
す組版補助データテーブル8と、メモリ17内に設けた
図14に示すワークエリア21とにそれぞれ組版指示バ
ッファ3に記憶されたPS1、PS2、Peの各(x,y)
座標を図のように対応する各エリアに記憶する。また、
ワークエリア21の<Paのx座標、y座標>、<Pb
のx座標、y座標>のエリアには、初期値として点
S1、PS2の各(x、y)座標を記憶する。組版補助デ
ータテーブル8は、別文字の挿入処理を行なう際に使用
するテーブルで、この実処理において寸法や配置位置、
色濃度等を求める際の作業用エリアとしてワークエリア
21も使用される。挿入処理については後述する。
Further, the character arrangement processing unit 1 stores P S1 , P S1 stored in the typesetting instruction buffer 3 in the typesetting auxiliary data table 8 shown in FIG. 13 and the work area 21 shown in FIG. Each of (x, y) of P S2 and Pe
The coordinates are stored in each corresponding area as shown in the figure. Also,
<P x coordinate, y coordinate>, <Pb of work area 21
X, y coordinates>, the (x, y) coordinates of the points P S1 and P S2 are stored as initial values. The typesetting auxiliary data table 8 is a table used when performing another character insertion processing. In this actual processing, dimensions, arrangement positions,
The work area 21 is also used as a work area when obtaining color density and the like. The insertion process will be described later.

【0079】次に、開始色濃度(網%でYS 、MS 、C
S 、KS とする)と終了色濃度(網%でYE 、ME 、C
E 、KE とする)の各データに基づき、各文字の色濃度
を決めるための色濃度の変化率(αY 、αM 、αC 、α
K )を求める。変化率は、(開始色濃度−終了色濃度)
/(文字数−1)で求められる。本実施例の場合、文字
数が「5」であるから、以下のようになる。 αY =(ME −MS )/4 αM =(ME −MS )/4 αC =(CE −CS )/4 αK =(KE −KS )/4 αR =(RE −RS )/4 αG =(GE −GS )/4 αB =(BE −BS )/4 なお、αR 、αG 、αB はRGBの色濃度での変化率で
あり、先述のYMCKとRGBの相互変換によりいづれ
でも選択採用される。これらを、図15の各グラフで示
す。得られた各変化率データは、組版補助データテーブ
ル8に記憶される。
Next, the starting color density (Y S , M S , C
S , K S ) and end color density (Y E , M E , C
E , K E ), the rate of change in color density (α Y , α M , α C , α) for determining the color density of each character
K ). The rate of change is (start color density-end color density)
/ (Number of characters -1). In the case of the present embodiment, since the number of characters is “5”, the following is obtained. α Y = (M E -M S ) / 4 α M = (M E -M S) / 4 α C = (C E -C S) / 4 α K = (K E -K S) / 4 α R = (R E -R S) / 4 α G = (G E -G S) / 4 α B = (B E -B S) / 4 Note, α R, α G, α B in color density of RGB , And can be selected and adopted in any case by the above-described mutual conversion between YMCK and RGB. These are shown in each graph of FIG. The obtained change rate data is stored in the typesetting auxiliary data table 8.

【0080】図2に戻って、前処理が終わると、次に、
テキストデータを構成する各文字に対応する各フォント
データの寸法、配置位置、色濃度を求める(ステップS
4)。具体的な処理手順を図4に示すフローチャートを
参照して説明する。
Returning to FIG. 2, when the pre-processing is completed,
The size, arrangement position, and color density of each font data corresponding to each character constituting the text data are obtained (step S
4). A specific processing procedure will be described with reference to a flowchart shown in FIG.

【0081】まず、処理変数iに「1」をセットする
(ステップS21)。次に、i番目の文字(ここi=1
では最初の文字”大”)の出力寸法を求める(ステップ
S22)。
First, "1" is set to the processing variable i (step S21). Next, the i-th character (where i = 1
Then, the output size of the first character "large" is determined (step S22).

【0082】これを、図16、図17を参照して説明す
る。なお、図16は、図9(c)、(a)の場合、図1
7は、図9(d)、(b)の場合をそれぞれ示す。ま
た、Pa、Pb、Pc、Pdは、各文字毎にそのフォン
トデータを変形配置する都度使用される点で、各点を図
16、図17のように各角に対応させている。なお、点
Pa、Pbの座標は、ワークエリア21のPa、Pbの
(x、y)座標のエリアに記憶された値を使用し、最初
の文字は、Pa=PS1、Pb=PS2(前処理で初期値と
してセットした)であり、2番目以降の文字のPa、P
bは、前の文字におけるステップS31(後述する)で
特定され、ワークエリア21のPa、Pbの(x、y)
座標のエリアの記憶内容が更新される。
This will be described with reference to FIGS. FIG. 16 shows the case of FIG. 9C and FIG.
7 shows the cases of FIGS. 9D and 9B, respectively. Pa, Pb, Pc, and Pd are used each time the font data is deformed and arranged for each character. Each point corresponds to each corner as shown in FIGS. Note that the coordinates of the points Pa and Pb use values stored in the (x, y) coordinate area of Pa and Pb of the work area 21, and the first characters are Pa = P S1 and Pb = P S2 ( Pa, P of the second and subsequent characters)
b is specified in step S31 (described later) of the previous character, and (x, y) of Pa and Pb of the work area 21
The storage contents of the coordinate area are updated.

【0083】図16、図17の(a)、(b)は、長体
率、平体率がともに指定されていない正方形の仮想ボデ
ィIBのフォントデータをそれぞれ縦組み、横組みで配
置する。この場合のフォントデータの寸法はPa、Pb
間の長さである。Pa、Pb間の長さLは、Paの座標
を(xa ,ya )、Pbの座標を(xb ,ya )とする
と、文字底辺がx軸に平行であるので、以下の式で算出
することができる。 L=X=|xb −xa | ……… (22-1)
16 (a) and 17 (b), the font data of the square virtual body IB for which neither the long body ratio nor the flat body ratio is specified is arranged vertically and horizontally, respectively. The dimensions of the font data in this case are Pa, Pb
Is the length between them. Pa, the length L between Pb, the coordinates of Pa (x a, y a) , the coordinates of Pb (x b, y a) When, because character base is parallel to the x-axis, the following formula Can be calculated. L = X = | x b -x a | (22-1)

【0084】図16、図17の(c)は、平体率(hp
%)が指定されたフォントデータを縦組みで配置する場
合で、文字高さをY’(=Y×(100−hp)/10
0)に圧縮したフォントデータを所定の配置位置に配置
する。この場合のフォントデータの寸法は前式(22-1)
と同じ値のLである。
FIGS. 16 and 17C show the flatness ratio (hp).
%) Is arranged vertically, and the character height is set to Y ′ (= Y × (100−hp) / 10
The font data compressed to 0) is arranged at a predetermined arrangement position. The size of the font data in this case is given by the formula (22-1)
Is the same value as L.

【0085】図16、図17の(d)は、長体率(lp
%)が指定されたフォントデータを横組みで配置する場
合で、文字幅がX’(=X×(100−lp)/10
0)に圧縮されたフォントデータを所定の配置位置に配
置する。この場合のフォントデータの寸法も前式(22-
1)と同じLである。
FIGS. 16 and 17D show the long body ratio (lp
%) When the specified font data is arranged horizontally, and the character width is X ′ (= X × (100−lp) / 10
The font data compressed to 0) is arranged at a predetermined arrangement position. The dimensions of the font data in this case are also calculated according to the previous formula (22-
L is the same as in 1).

【0086】図16、図17の(e)は、長体率(lp
%)が指定されたフォントデータを縦組みで配置する場
合で、文字幅がX’(X’は、Pa、PbのX座標より
求められる)に圧縮されたフォントデータを所定の配置
位置に配置する。従って、元のフォントデータの寸法に
相当するXは以下の式で求めることができる。 X=(100・X’)/(100−lp) ……… (22-2)
FIGS. 16 and 17E show the long body ratio (lp
%) Is arranged in a vertical layout, and font data whose character width is compressed to X ′ (X ′ is obtained from the X coordinate of Pa and Pb) is arranged at a predetermined arrangement position. I do. Therefore, X corresponding to the size of the original font data can be obtained by the following equation. X = (100 · X ′) / (100−lp) (22-2)

【0087】図16、図17の(f)は、平体率(hp
%)が指定されたフォントデータを横組みで配置する場
合で、文字高さがY’(Y’は、Pa、PbのX座標よ
り求められる)に圧縮されたフォントデータを所定の配
置位置に配置する。従って、元のフォントデータの寸法
に相当するYは以下の式で求めることができる。 Y=(100・Y’)/(100−hp) ……… (22-3)
FIGS. 16 and 17F show the flatness ratio (hp).
%), The font data whose character height is compressed to Y ′ (Y ′ is obtained from the X coordinate of Pa and Pb) is placed at a predetermined layout position. Deploy. Therefore, Y corresponding to the size of the original font data can be obtained by the following equation. Y = (100 · Y ′) / (100−hp) (22-3)

【0088】こうして求められた各指定組版でのフォン
トデータの寸法は組版データテーブル7(図11参照)
のi番目の文字に対応する文字処理データ部FAiの<
寸法>のエリアに記憶する。
The dimensions of the font data for each designated typesetting obtained in this way are set in the typesetting data table 7 (see FIG. 11).
Of the character processing data portion FAi corresponding to the i-th character of
Dimension> area.

【0089】図4に戻って、次に、求められたフォント
データの寸法が1mm未満か否かを判定し(ステップS2
3)、1mm未満であればステップS24のエラー処理に
進み、一方、1mm以上であればステップS25に進む。
これは、出力するフォントデータの寸法が1mm未満であ
ると字面が見づらくなることに対処するためである。
Returning to FIG. 4, it is next determined whether or not the size of the obtained font data is less than 1 mm (step S2).
3) If the distance is less than 1 mm, the flow proceeds to the error processing in step S24. If the distance is 1 mm or more, the flow proceeds to step S25.
This is in order to cope with the difficulty of seeing the character surface when the size of the font data to be output is less than 1 mm.

【0090】ステップS24のエラー処理では、まず、
例えば、エラーメッセージを表示装置14に表示して、
エラー終了したことをユーザーに知らせると共に、組版
補助データテーブル8(図13参照)の<エラー有無>
のエリアに、寸法が1mm未満でエラー終了したことを示
すコード(例えば、「1」)を記憶して、図4の処理を
終了する。
In the error processing in step S24, first,
For example, by displaying an error message on the display device 14,
In addition to notifying the user of the end of the error, <error presence>
A code (for example, "1") indicating that the error has ended with the dimension being less than 1 mm is stored in the area of, and the processing in FIG. 4 ends.

【0091】なお、このような不都合が起きる原因とし
て、例えば、テキストデータの文字数に対して、指定さ
れた3点PS1、PS2、Peの位置関係が不適切(例え
ば、図18に示すように、点PS1、PS2間の長さが、点
S1、Pe間の長さ、点PS2、Pe間の長さに比べて長
い等)の場合で、点PS1、PS2、Peを設定し直すよう
に施すメッセージを上記エラーメッセージに追加しても
よい。次に、(i−1)を組版データテーブル7(図1
1参照)の<処理済文字数>のエリアに記憶する。この
<処理済文字数>は、寸法、配置位置、色濃度の全てが
編集されたフォントデータに対応する文字の数で現在の
i番目の処理においては、処理済の文字数は(i−1)
である。
As a cause of such inconvenience, for example, the positional relationship between the designated three points P S1 , P S2 , and Pe is inappropriate with respect to the number of characters of the text data (for example, as shown in FIG. 18). In the case where the length between the points P S1 and P S2 is longer than the length between the points P S1 and Pe, the length between the points P S2 and Pe, etc.), the points P S1 , P S2 , A message for resetting Pe may be added to the error message. Next, (i-1) is converted into the typesetting data table 7 (FIG. 1).
1)) in the <number of processed characters> area. The <number of processed characters> is the number of characters corresponding to the font data whose dimensions, arrangement positions, and color densities are all edited. In the current i-th processing, the number of processed characters is (i-1).
It is.

【0092】図4に戻って、ステップS25では、ステ
ップS24で文字配置したときの残りの2点Pc、Pd
の座標を求める。このとき、図16、図17に示すよう
に、点PS1、PS2、Peの位置関係により、出力時のフ
ォントデータの配置状態が異なる。
Returning to FIG. 4, in step S25, the remaining two points Pc and Pd when the characters are arranged in step S24.
Find the coordinates of. At this time, as shown in FIGS. 16 and 17, the arrangement state of the font data at the time of output differs depending on the positional relationship between the points P S1 , P S2 , and Pe.

【0093】まず、図16は収束点Peの位置が配置開
始点PS1、PS2よりも上に指定された場合を示してい
る。この場合、図16(a)〜(f)における点Pc、
Pdの各x座標xc 、xdは、図からも明らかなように
それぞれ xc =xad =xb ……… (25-1) である。
First, FIG. 16 shows a case where the position of the convergence point Pe is specified above the arrangement start points P S1 and P S2 . In this case, the point Pc in FIGS.
Each of the x coordinates x c and x d of Pd is x c = x ax d = x b (25-1) as is clear from the figure.

【0094】また、点Pc、Pdの各y座標yc 、yd
は、図16(a)、(e)、(b)、(f)と図16
(c)と図16(d)の場合で異なる。
The y coordinates y c and y d of the points Pc and Pd
16 (a), (e), (b), (f) and FIG.
16C and FIG. 16D.

【0095】図16(a)、(e)の場合、点Pc、P
dのy座標は、それぞれ配置開始点Pa、Pbのy座標
に文字高さY(=L)を加算したものである。従って、 yc =yd =ya +L ……… (25-2) となる。
In the case of FIGS. 16A and 16E, the points Pc, P
The y-coordinate of d is obtained by adding the character height Y (= L) to the y-coordinate of the arrangement start points Pa and Pb, respectively. Therefore, y c = y d = y a + L ......... (25-2).

【0096】図16(b)、(f)の場合、点Pc、P
dのy座標は、それぞれ配置開始点Pa、Pbのy座標
に文字幅X(=L)を加算したものである。従って、こ
の場合の、点Pc、Pdの各y座標yc 、yd は、結果
的に上式(25-2)で求められる。
In the case of FIGS. 16B and 16F, the points Pc, P
The y coordinate of d is obtained by adding the character width X (= L) to the y coordinate of the arrangement start points Pa and Pb, respectively. Therefore, in this case, the point Pc, the y-coordinate y c of Pd, y d are consequently determined by the above equation (25-2).

【0097】図16(c)の場合、点Pc、Pdのy座
標は、それぞれ配置開始点Pa、Pbのy座標に、平体
率hp分圧縮した文字高さY’を加算したものである。
従って、この場合は、 yc =yd =ya +(L×(100−hp)/100)) ……… (25-3) である。
In the case of FIG. 16C, the y-coordinates of the points Pc and Pd are obtained by adding the character height Y 'compressed by the flatness ratio hp to the y-coordinates of the arrangement start points Pa and Pb, respectively. .
Therefore, in this case, y c = y d = y a + (L × (100−hp) / 100)) (25-3)

【0098】図16(d)の場合、点Pc、Pdのy座
標は、それぞれ配置開始点Pa、Pbのy座標に、長体
率lp分圧縮した文字幅X’を加算したものである。従
って、この場合は、 yc =yd =ya +(L×(100−lp)/100) ……… (25-4) である。
In the case of FIG. 16D, the y-coordinates of the points Pc and Pd are obtained by adding the character width X ′ compressed by the long body ratio lp to the y-coordinates of the arrangement start points Pa and Pb, respectively. Therefore, in this case, y c = y d = y a + (L × (100−lp) / 100) (25-4)

【0099】次に、図17は図16の場合とは逆に収束
点Peの位置が配置開始点PS1、PS2より下に指定され
た場合を示している。
Next, FIG. 17 shows a case where the position of the convergence point Pe is designated below the arrangement start points P S1 and P S2 , contrary to the case of FIG.

【0100】従って、図17は図16のy軸の正方向を
逆にしたものであり、図17(a)〜(f)における点
Pc、Pdの各x座標xc 、xd は、上式(25-1)により
求められる。また、図17(a)、(b)、(e)、
(f)と図17(c)と図17(d)における点Pc、
Pdの各y座標yc 、yd は、上式(25-2)と上式(25-3)
と上式(25-4)の式内の「+」を「−」に代えた各式で求
めることができる。
Therefore, FIG. 17 is obtained by reversing the positive direction of the y-axis in FIG. 16, and the x-coordinates x c and x d of the points Pc and Pd in FIGS. It is obtained by equation (25-1). Also, FIGS. 17 (a), (b), (e),
(F), points Pc in FIGS. 17 (c) and 17 (d),
Each y-coordinate y c in pd, y d is the equation (25-2) and the equation (25-3)
And each equation in which "+" in the equation (25-4) is replaced with "-".

【0101】以上で、i番目の文字のサイズがPa、P
b、Pc、Pdで規定される矩形内に配置され、次文字
はこの矩形と収束点Peとによって次文字のために新た
に求められるPa、Pb、Pc、Pdにより同様にして
配置されるがこれらの点は後述する。さて、組版出力時
の配置位置に関しては基準点Pの位置によって決まるも
のであり、この基準点Pは指定のPS1、PS2、Peと組
み方向により求める(ステップS26)。
In the above, the size of the i-th character is Pa, P
The next character is arranged in a rectangle defined by b, Pc, and Pd, and the next character is similarly arranged by Pa, Pb, Pc, and Pd newly obtained for the next character by this rectangle and the convergence point Pe. These points will be described later. By the way, the arrangement position at the time of typesetting output is determined by the position of the reference point P, and this reference point P is obtained from the designated Ps1 , Ps2 , Pe and the assembling direction (step S26).

【0102】すなわち、yS1及びyS2<ye で縦組みの
図16(a)、(c)、(e)では、フォントデータの
基準点Pは点Paとなり、配置位置は点Paの座標とな
る。
That is, in FIGS. 16 (a), (c) and (e), where y S1 and y S2 <y e , the reference point P of the font data is the point Pa, and the arrangement position is the coordinate of the point Pa. Becomes

【0103】また、yS1及びyS2<ye で横組みの図1
6(b)、(c)、(f)では、フォントデータの基準
点Pは点Pbとなり、配置位置は点Pbの座標となる。
FIG. 1 shows a horizontal composition of y S1 and y S2 <y e .
In 6 (b), (c) and (f), the reference point P of the font data is the point Pb, and the arrangement position is the coordinates of the point Pb.

【0104】さらに、yS1及びyS2>ye で縦組みの図
17(a)、(c)、(e)では、フォントデータの基
準点Pは点Pcとなり、配置位置は点Pcの座標とな
る。
Further, in FIGS. 17A, 17C, and 17E, where y S1 and y S2 > y e , the reference point P of the font data is the point Pc, and the arrangement position is the coordinate of the point Pc. Becomes

【0105】また、yS1及びyS2>ye で横組みの図1
7(b)、(c)、(f)では、フォントデータの基準
点Pは点Paとなり、配置位置は点Paの座標となる。
FIG. 1 shows a horizontal composition of y S1 and y S2 > y e .
In 7 (b), (c), and (f), the reference point P of the font data is the point Pa, and the arrangement position is the coordinates of the point Pa.

【0106】文字配置処理部1は、前記で求められた基
準点Pの(x,y)座標を組版データテーブル7のi番
目の文字処理データ部FAiの<配置位置x>、<配置
位置y>のエリアに記憶する。
The character arrangement processing unit 1 compares the (x, y) coordinates of the reference point P obtained as described above with the <arrangement position x> and <arrangement position y of the i-th character processing data part FAi of the typesetting data table 7. Store in the area of>.

【0107】図4に戻って、次に、現在の処理対象文字
に対応するフォントデータの色濃度を求める(ステップ
S27)。文字配置処理部1は、処理変数iを色濃度特
定部6に与えることにより、色濃度特定部6が、与えら
れた文字の順番と、前処理で求めておいた色濃度の変化
率とに基づき、各文字の色濃度を求める。
Returning to FIG. 4, next, the color density of the font data corresponding to the current character to be processed is obtained (step S27). The character arrangement processing unit 1 gives the processing variable i to the color density specifying unit 6 so that the color density specifying unit 6 determines the order of the given characters and the rate of change of the color density obtained in the preprocessing. Based on this, the color density of each character is determined.

【0108】図19から明らかなようにi番目の文字の
色濃度をYNiとすると、予め求た色濃度の変化率α
Y と、開始色濃度YS から以下の式で求める。 YNi=YX +YS =αY ×(i−1)+YS
As can be seen from FIG. 19, when the color density of the i-th character is Y Ni , the change rate α of the color density obtained in advance is α
And Y, determined by the following equation from the start color density Y S. Y Ni = Y X + Y S = α Y × (i-1) + Y S

【0109】なお、図中のYX3は、3番目の文字(i=
3)”ー”の開始色濃度YS からの色濃度の変化量を示
し、YN3は、その文字の色濃度を示す。
Note that Y X3 in the figure is the third character (i =
3) shows a variation in color density from the start color density Y S for "over", Y N3 indicates the color density of the character.

【0110】また、i=1(最初の文字)またはi=テ
キストデータの文字数(最後の文字)であるときには、
各文字の色濃度はそれぞれ開始色濃度および終了色濃度
そのものであるから前記演算は不要である。
When i = 1 (the first character) or i = the number of characters of the text data (the last character),
Since the color density of each character is the start color density and the end color density respectively, the above calculation is unnecessary.

【0111】図中、( )内の数値はYS =40、YE
=60としたときの各文字の色濃度を示し、色濃度は、
開始色濃度から終了色濃度へ徐々に変化しているのがわ
かる。なお、このときの色濃度の変化率αY は(60−
40)/4=5である。
In the figure, the values in parentheses are Y S = 40, Y E
= 60 indicates the color density of each character.
It can be seen that the starting color density gradually changes to the end color density. The change rate α Y of the color density at this time is (60−
40) / 4 = 5.

【0112】なお、その他のM,C,Kの網%、R,
G,Bの色濃度についても上記Yの網%の場合と同様に
して、現在の処理対象文字の色濃度を求めることができ
る。
Note that the other M, C, and K dot%, R,
For the color densities of G and B, the color densities of the current character to be processed can be obtained in the same manner as in the case of the halftone percentage of Y.

【0113】色濃度特定部6は、求めた色濃度を文字配
置処理部1に返し、文字配置処理部1は、受け取った色
濃度を組版データテーブル7のi番目の文字処理データ
部FAiの<色濃度>のエリアに記憶する。
The color density specifying section 6 returns the obtained color density to the character arrangement processing section 1, and the character arrangement processing section 1 stores the received color density in the i-th character processing data section FAi of the typesetting data table 7. Color density> area.

【0114】図4に戻って、次に、配置開始点特定部5
が、点PS1と点Peとを結ぶ線分および点PS2と点Pe
とを結ぶ線分と、現在の処理対象文字の仮想配置状態に
おける仮想ボディとの交点を求める(ステップS2
8)。
Returning to FIG. 4, next, the arrangement start point specifying unit 5
Is a line segment connecting the point P S1 and the point Pe, and the point P S2 and the point Pe.
Between the line segment connecting to the virtual body in the virtual arrangement state of the current character to be processed (step S2)
8).

【0115】この交点が存在するパターンは、図20、
図21の各々に示す場合である。具体的には、 (1) 点PS1と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点 があるか否かを調べていく。
The pattern in which this intersection exists is shown in FIG.
This is the case shown in each of FIGS. Specifically, (1) an intersection of a line segment connecting the point P S1 and the point Pe, and a line segment connecting the point Pc and the point Pd; (2) a line segment connecting the point P S1 and the point Pe; Intersection of a line connecting point Pb and point Pd (3) Intersection of a line connecting point P S2 and point Pe and a line connecting point Pa and point Pc (4) Point P S2 and point It is checked whether there is an intersection between the line connecting Pe and the line connecting the points Pc and Pd.

【0116】点PS1(座標(xS1,yS1))と点Pe
(座標(xe ,ye ))とを結ぶ線分CL1を含む1次
関数を〔y=a1 ・x+b1 〕、点PS2(座標(xS2
S2))と点Peとを結ぶ線分CL2を含む1次関数を
〔y=a2 ・x+b2 〕とする。図22に示すように、
1 、a2 は各関数の傾斜、b1 、b2 は各関数のy軸
との交点位置を表す。各々の求め方は数学的に容易であ
るので省略する。
A point P S1 (coordinates (x S1 , y S1 )) and a point Pe
A linear function including a line segment CL1 connecting (coordinates (x e , y e )) is represented by [y = a 1 · x + b 1 ], and a point P S2 (coordinates (x S2 ,
y S2 )) and a linear function including a line segment CL2 connecting the point Pe is [y = a 2 · x + b 2 ]. As shown in FIG.
a 1 and a 2 represent the slope of each function, and b 1 and b 2 represent the position of the intersection of each function with the y-axis. The method of each calculation is mathematically easy and will not be described.

【0117】従って、上記点PS1と点Peとを結ぶ線分
CL1を含む1次関数と、点PS2と点Peとを結ぶ線分
CL2を含む1次関数と、点Pa、点Pb、点Pc、点
Pdの位置関係を用いて、上記(1) 〜(4) を調べること
ができる。ただし、点PS1と点Peとのx座標が同じ
(xS1=xe )である場合は、x=xS1となり、この場
合は、図20(f)、図21(f)に示すように、点P
S1と点Peとを結ぶ線分CL1が、点Paと点Pcとを
結ぶ線分に一致し、フォントデータの仮想ボディとの交
点は点Pcとなり、また、点PS2と点Peとのx座標が
同じ(xS2=xe )である場合は、x=xS2となり、こ
の場合は、図20(d)、図21(d)に示すように、
点PS2と点Peとを結ぶ線分CL2が、点Pbと点Pd
とを結ぶ線分に一致し、フォントデータの仮想ボディと
の交点は点Pdとなる。従って、点PS1と点Peとのx
座標が同じである場合には、交点を点Pcとして上記
(1) 、(2) を省略し、点PS2と点Peとのx座標が同じ
である場合には、交点を点Pdとして上記(3) 、(4) を
省略する。
Therefore, a linear function including a line segment CL1 connecting the point P S1 and the point Pe, a linear function including a line segment CL2 connecting the point P S2 and the point Pe, a point Pa, a point Pb, The above (1) to (4) can be examined using the positional relationship between the points Pc and Pd. However, if the x coordinate of the point P S1 and the point Pe is the same (x S1 = x e ), x = x S1 . In this case, as shown in FIG. 20 (f) and FIG. 21 (f). And point P
The line segment CL1 connecting S1 and the point Pe coincides with the line segment connecting the point Pa and the point Pc, the intersection of the font data with the virtual body becomes the point Pc, and the point xS2 between the point P S2 and the point Pe. When the coordinates are the same (x S2 = x e ), x = x S2 . In this case, as shown in FIGS. 20 (d) and 21 (d),
A line segment CL2 connecting the point P S2 and the point Pe is a point Pb and a point Pd.
And the intersection of the font data with the virtual body is a point Pd. Therefore, x between the point P S1 and the point Pe
If the coordinates are the same, the intersection is taken as the point Pc.
(1) and (2) are omitted, and when the x coordinate of the point PS2 and the point Pe is the same, the intersection (3) and (4) are omitted with the intersection as the point Pd.

【0118】まず、(1) では図23(a)、(b)に示
すように、点PS1と点Peとを結ぶ線分CL1を含む1
次関数〔y=a1 ・x+b1 〕に、点Pc、点Pdのy
座標(yc )を代入したときのx座標(x=(yc −b
1 )/a1 )が、点Pcのx座標(xa )と点Pdのx
座標(xb )の間の範囲内に収まっていれば、これらの
交点が存在することになる。
First, in (1), as shown in FIGS. 23 (a) and 23 (b), one line including a line segment CL1 connecting the point P S1 and the point Pe is included.
In the next function [y = a 1 · x + b 1 ], y of the points Pc and Pd
X coordinate (x = (y c −b) when the coordinate (y c ) is substituted
1 ) / a 1 ) is the x coordinate (x a ) of the point Pc and the x coordinate of the point Pd
If they fall within the range between the coordinates (x b ), these intersections will be present.

【0119】この(1) で交点CP1 が見つかるのは、図
20、図21の(b)〜(e)の場合である。また、こ
の(1) で交点CP1 が存在する場合の交点CP1 のx座
標は上記x(=(yc −b1 )/a1 )であり、交点C
1 のy座標は点Pc、点Pdのy座標(yc )であ
る。
[0119] The intersection CP 1 that found in the (1), FIG. 20, the case of FIG. 21 (b) ~ (e). Further, a the (1) at the intersection of the intersection CP 1 when CP 1 is present x-coordinate is the x (= (y c -b 1 ) / a 1), the intersection point C
The y coordinate of P 1 is the y coordinate (y c ) of point Pc and point Pd.

【0120】次に、(2) では図23(c)、(d)に示
すように、点PS1と点Peとを結ぶ線分CL1を含む1
次関数〔y=a1 ・x+b1 〕に、点Pb、点Pdのx
座標(xb )を代入したときのy座標(y=a1 ・xb
+b1 )が、点Pbのy座標(ya )と点Pdのy座標
(yc )の間の範囲内に収まっていれば、これらの交点
が存在することになる。
Next, in FIG. 23 (2), as shown in FIGS. 23 (c) and (d), one line including the line segment CL1 connecting the point P S1 and the point Pe is obtained.
In the following function [y = a 1 · x + b 1 ], x of the points Pb and Pd
Y coordinate (y = a 1 · x b ) when the coordinate (x b ) is substituted
+ B 1) is, if within the range between the y-coordinate (y a) and the y coordinate of the point Pd of the point Pb (y c), so that these intersections are present.

【0121】この(2) で交点が見つかるのは、図20、
図21の(a)、(b)の場合である。また、この(2)
で交点CP1 が存在する場合の交点CP1 のx座標は点
Pb、点Pdのx座標(xb )であり、交点CP1 のy
座標は上記y(=a1 ・xb+b1 )である。
In FIG. 20, the intersection is found in (2).
This is the case of (a) and (b) of FIG. Also, this (2)
In x-coordinate of the intersection point CP 1 when intersections CP 1 is present is a point Pb, x-coordinate of the point Pd (x b), the intersection CP 1 y
The coordinates are y (= a 1 · x b + b 1 ).

【0122】次に、(3) は図23(e)、(f)に示す
ように、上記(2) の場合と同じ方法で、点PS2と点Pe
とを結ぶ線分CL2を含む1次関数〔y=a2 ・x+b
2 〕に、点Pa、点Pcのx座標(xa )を代入したと
きのy座標(y=a2 ・xa+b2 )が、点Paのy座
標(ya )と点Pcのy座標(yc )の間の範囲内に収
まっているか否かで交点の有無を調べる。
Next, as shown in FIGS. 23 (e) and (f), (3) uses the same method as in the above (2) to obtain points P S2 and Pe.
Linear function [y = a 2 × x + b
2], the point Pa, y coordinates when substituting the x coordinate of the point Pc (x a) (y = a 2 · x a + b 2) is, y coordinates of the point Pa of (y a) and the point Pc y The presence or absence of an intersection is checked based on whether or not it falls within the range between the coordinates (y c ).

【0123】この(3) で交点が見つかるのは、図20、
図21の(h)、(i)の場合である。また、この(3)
で交点CP2 が存在する場合の交点CP2 のx座標は点
Pa、点Pcのx座標(xa )であり、交点CP2 のy
座標は上記y(=a2 ・xa+b2 )である。
In FIG. 20, the intersection is found in (3).
This is the case of (h) and (i) of FIG. Also, this (3)
In x-coordinate of the intersection point CP 2 in the case of intersection CP 2 there is a point Pa, the x-coordinate of the point Pc (x a), the intersection CP 2 y
The coordinates are the above y (= a 2 × x a + b 2 ).

【0124】次に、(4) は図23(g)、(h)に示す
ように、上記(1) の場合と同じ方法で、点PS2と点Pe
とを結ぶ線分CL2を含む1次関数〔y=a2 ・x+b
2 〕に、点Pc、点Pdのy座標(yc )を代入したと
きのx座標(x=(yc −b2 )/a2 )が、点Pcの
x座標(xa )と点Pdのx座標(xb )の間の範囲内
に収まっているか否かで交点の有無を調べる。
Next, as shown in FIGS. 23 (g) and (h), (4) shows the points P S2 and Pe by the same method as in the above (1).
Linear function [y = a 2 × x + b
2], the point Pc, x coordinate when substituting the y coordinate of the point Pd (y c) (x = (y c -b 2) / a 2) is, x-coordinate of the point Pc (x a) and a point The presence or absence of an intersection is checked based on whether or not it falls within the range between the x coordinates (x b ) of Pd.

【0125】この(4) で交点が見つかるのは、図20、
図21の(e)〜(h)の場合であり、この(4) で交点
CP2 が存在する場合の交点CP2 のx座標は上記x
(=(yc −b2 )/a2 )、交点CP2 のy座標は点
Pc、点Pdのy座標(yc )である。
In FIG. 20, the intersection is found in (4).
The case of FIG. 21 (e) ~ (h), x-coordinate of the intersection point CP 2 in the case where there are intersections CP 2 in the (4) of the x
(= (Y c −b 2 ) / a 2 ), and the y coordinate of the intersection CP 2 is the y coordinate (y c ) of the point Pc and the point Pd.

【0126】図4に戻って、次に、交点CP1 または/
およびCP2 があったか否かを判定する(ステップS2
9)。少なくとも交点CP1 、CP2 のいずれか一方が
あればステップS31に進む。一方、交点が全くなけれ
ば、配置開始点特定部5は、交点がなかったことを文字
配置処理部1に通知して処理を終了する。このとき、文
字配置処理部1はステップS30のエラー処理を実行す
る。
Returning to FIG. 4, next, the intersection CP 1 or /
And determines whether a CP 2 (step S2
9). If there is at least one of the intersection points CP 1 and CP 2 , the process proceeds to step S31. On the other hand, if there is no intersection, the arrangement start point specifying unit 5 notifies the character arrangement processing unit 1 that there is no intersection, and ends the processing. At this time, the character arrangement processing unit 1 executes the error processing of step S30.

【0127】ステップS30のエラー処理では、エラー
メッセージを表示装置14に表示する等してエラー終了
したことをユーザーに知らせる。なお、このような不都
合が起きる原因として、例えば、図24に示すような場
合でこのときは点PS1、PS2、Peを設定し直すように
施すメッセージを上記エラーメッセージに追加してもよ
い。また、ステップS28以降の処理は、現在の処理対
象の文字の次の文字に対応するフォントデータの配置開
始点Pa、Pbを求めるための処理である。従って、現
在の処理対象文字がテキストデータの最後の文字のとき
は、挿入処理が不可能であることを知らせるメッセージ
を表示するようにしてもよい。次に、iを組版データテ
ーブル7の<処理済文字数>のエリアに記憶する。これ
は、i番目の文字に対応するフォントデータの寸法、配
置位置、色濃度の全てが編集されているからである。さ
らに、組版補助データテーブル8の<エラー有無>のエ
リアに、交点無しでエラー終了したことを示すコード
(例えば、「2」)を記憶する。
In the error processing in step S30, the user is notified of the end of the error by displaying an error message on the display device 14, or the like. As a cause of such inconvenience, for example, in the case shown in FIG. 24, in this case, a message for re-setting the points P S1 , P S2 , and Pe may be added to the error message. . Further, the processes after step S28 are processes for obtaining the layout start points Pa and Pb of the font data corresponding to the character next to the current character to be processed. Therefore, when the current character to be processed is the last character of the text data, a message notifying that insertion processing is not possible may be displayed. Next, i is stored in the <number of processed characters> area of the typesetting data table 7. This is because the dimensions, arrangement position, and color density of the font data corresponding to the i-th character are all edited. Further, a code (for example, “2”) indicating that the error has ended without any intersection is stored in the <error presence / absence> area of the typesetting auxiliary data table 8.

【0128】図4に戻って、次に、上記ステップS28
で求めた交点に基づき、(i+1)番目の文字に対応す
るフォントデータの配置開始点Pa、Pbを求める(ス
テップS31)。この処理は、配置開始点特定部5が、
上記ステップS28、S29に引続き行なう。
Returning to FIG. 4, next, at step S28
Based on the intersection obtained in (1), the layout start points Pa and Pb of the font data corresponding to the (i + 1) th character are obtained (step S31). In this processing, the arrangement start point specifying unit 5
It is performed following steps S28 and S29.

【0129】具体的には、求めた交点CP1 または/お
よびCP2 を通過し、点PS1と点PS2とを結ぶ線分に平
行な線を求め、その線と、点PS1と点Peとを結ぶ線
分、および点PS2と点Peとを結ぶ線分との各交点を求
める。求めた交点が、現在の処理対象の文字の次の文字
((i+1)番目の文字)に対応するフォントデータの
配置開始点Pa、Pbである。
[0129] Specifically, determined through the intersection CP 1 or / and CP 2 was obtains a line parallel to the line connecting the point P S1 and the point P S2, and the line, the point P S1 and the point Each intersection between the line segment connecting Pe and the line segment connecting point P S2 and point Pe is determined. The obtained intersections are the layout start points Pa and Pb of the font data corresponding to the character ((i + 1) th character) next to the current character to be processed.

【0130】ここでは、点PS1と点PS2とを結ぶ線分は
x軸に平行(あるいはx軸上)であるので、求めた交点
CP1 または/およびCP2 を通過し、点PS1と点PS2
とを結ぶ線分に平行な線と、点PS1と点Peとを結ぶ線
分、および点PS2と点Peとを結ぶ線分との各交点は、
交点CP1 、CP2 のy座標と同じである。
Here, since the line segment connecting the point P S1 and the point P S2 is parallel to the x-axis (or on the x-axis), it passes through the determined intersection point CP 1 and / or CP 2 and the point P S1 And point P S2
The intersections of the line parallel to the line connecting the points P S1 and Pe and the line connecting the point P S2 and the point Pe are:
This is the same as the y-coordinate of the intersection points CP 1 and CP 2 .

【0131】図20に示した交点ができるパターンに応
じて、求められたPa、Pbの位置関係を図25に示
す。なお、図25では、2番目の文字に対応するフォン
トデータの配置開始点P、Pbを示している。また、
図21に示した交点ができるパターンについても、図2
0に示した交点ができるパターンの場合と同様である。
FIG. 25 shows the positional relationship between Pa and Pb obtained according to the pattern in which the intersections shown in FIG. 20 are formed. FIG. 25 shows the layout start points P a and Pb of the font data corresponding to the second character. Also,
The pattern in which the intersection shown in FIG.
This is the same as the case of the pattern in which the intersection indicated by 0 is formed.

【0132】配置開始点特定部5は求めた新たな配置開
始点Pa、Pbを、文字配置処理部1に返す。文字配置
処理部1は、受け取った新たな配置開始点Pa、Pbの
各(x,y)座標を、ワークエリア21に記憶し、配置
開始点Pa、Pbの座標を(i+1)番目の文字に対応
するフォントデータ用のものに更新する。
The arrangement start point specifying unit 5 returns the new arrangement start points Pa and Pb obtained to the character arrangement processing unit 1. The character arrangement processing unit 1 stores the (x, y) coordinates of the received new arrangement start points Pa and Pb in the work area 21, and converts the coordinates of the arrangement start points Pa and Pb into the (i + 1) th character. Update to the corresponding font data.

【0133】図4に戻って、次に、テキストデータを構
成する全文字について寸法、配置位置、色濃度を求めた
か否かを判定する(ステップS32)。全文字について
処理が終了していれば、ステップS34の終了処理に進
み、一方、全文字について処理が終了していなければ、
ステップS33の処理に進む。なお、ステップS34の
終了処理については後述する。
Returning to FIG. 4, it is next determined whether or not the dimensions, arrangement positions, and color densities have been obtained for all the characters constituting the text data (step S32). If the processing has been completed for all the characters, the process proceeds to the end processing of step S34. On the other hand, if the processing has not been completed for all the characters,
The process proceeds to step S33. Note that the end processing of step S34 will be described later.

【0134】ステップS33では、処理変数iをインク
リメント(i=i+1)し処理対象の文字を次の文字に
してステップS22に戻り、新たに得られた配置開始点
Pa、Pbに基づき、その文字に対応するフォントデー
タの寸法、配置位置、色濃度を前述と同様にして求め
る。
In step S33, the processing variable i is incremented (i = i + 1), the character to be processed is set as the next character, and the process returns to step S22. Based on the newly obtained layout start points Pa and Pb, the character The size, arrangement position, and color density of the corresponding font data are obtained in the same manner as described above.

【0135】例えば、2番目(i=2)の文字”バ”を
例に採ると、まず、ステップS22で、例えば図25に
示した2番目の文字に対応するフォントデータの配置開
始点Pa、Pbに基づき、2番目の文字に対応するフォ
ントデータの寸法を、図16(、図17)に示すように
組方向や長平体率等に応じて求める。
For example, taking the second (i = 2) character "B" as an example, first, in step S22, for example, the layout start points Pa and Pa of the font data corresponding to the second character shown in FIG. Based on Pb, the size of the font data corresponding to the second character is obtained according to the set direction, the long flat body ratio, and the like as shown in FIG. 16 (FIG. 17).

【0136】次に、ステップS25で2番目の文字に対
応するフォントデータの仮想ボディの残りの2点Pc、
Pdを求め、ステップS26で2番目の文字に対応する
フォントデータの配置位置をPa、Pb、Pc、Pdか
ら決め、ステップS27で2番目の文字に対応するフォ
ントデータの色濃度を求める。
Next, in step S25, the remaining two points Pc of the virtual body of the font data corresponding to the second character,
Pd is determined, the layout position of the font data corresponding to the second character is determined from Pa, Pb, Pc, and Pd in step S26, and the color density of the font data corresponding to the second character is determined in step S27.

【0137】そして、ステップS28〜S31で、例え
ば、図26(図26は、図20、図25に対応するもの
で、図21のように(点PS1、PS2のy座標)>(点P
eのy座標)の場合も同様である。)に示すように、次
の文字(3番目の文字)に対応するフォントデータの配
置開始点Pa、Pbを求め、同様に3番目の文字に対応
するフォントデータの寸法、配置位置、色濃度を求め
る。以後同様にして、全ての文字について処理が終わる
と、ステップS34の終了処理に進む。
Then, in steps S28 to S31, for example, as shown in FIG. 26 (FIG. 26 corresponds to FIGS. 20 and 25, as shown in FIG. 21, (y-coordinates of points P S1 and P S2 )> (point P
The same applies to the case of (y coordinate of e). ), The layout start points Pa and Pb of the font data corresponding to the next character (the third character) are obtained, and the size, layout position, and color density of the font data corresponding to the third character are similarly calculated. Ask. Thereafter, similarly, when the process is completed for all the characters, the process proceeds to the end process of step S34.

【0138】ステップS34では、テキストデータの全
文字に対応する各フォントデータの寸法、配置位置、色
濃度が求められているので、組版データテーブル7の<
処理済文字数>のエリアに、テキストデータの文字数
(最後の文字を指しているi)を記憶する。次に、組版
補助データテーブル8の<エラー有無>のエリアに、正
常終了したこと示すコード(例えば、「0」)を記憶
し、<挿入処理時のPaのx座標>、<挿入処理時のP
aのy座標>、<挿入処理時のPbのx座標>、<挿入
処理時のPbのy座標>のエリアに、最後に求めたテキ
ストデータの最後の文字の次の文字(現在のテキストデ
ータには存在しない)の配置開始点Pa、Pbの各x座
標、各y座標をそれぞれ記憶する。すなわち、正常終了
したときには、組版補助データテーブル8には、点
S1、点PS2、点Peの座標と、現在のテキストデータ
の最後の文字の次の文字の配置開始点Pa、Pbと、色
濃度の変化率αY 、αM 、αC 、αK 、αR 、αG 、α
B が記憶されることになり、これらデータを用いること
により、後で、現在のテキストデータに文字が挿入され
たときに、挿入された文字に対応するフォントデータの
寸法、配置位置、色濃度を求めることができる。
In step S34, since the dimensions, arrangement position, and color density of each font data corresponding to all the characters of the text data have been obtained, <
The number of characters of text data (i indicating the last character) is stored in the area of “number of processed characters>. Next, a code (for example, “0”) indicating normal termination is stored in the <error presence / absence> area of the typesetting auxiliary data table 8, <x coordinate of Pa during insertion processing>, <pax during insertion processing> P
In the area of “y coordinate of a”, “x coordinate of Pb at the time of insertion processing”, and “y coordinate of Pb at the time of insertion processing”, the character next to the last character of the text data obtained last (current text data Are not present), the respective x-coordinates and respective y-coordinates of the arrangement start points Pa and Pb are stored. That is, upon normal termination, the typesetting auxiliary data table 8 stores the coordinates of the points P S1 , P S2 , and Pe, and the layout start points Pa and Pb of the character next to the last character of the current text data. Color density change rate α Y , α M , α C , α K , α R , α G , α
B is stored, and by using these data, when a character is inserted into the current text data later, the size, arrangement position, and color density of the font data corresponding to the inserted character are changed. You can ask.

【0139】図2に戻って、テキストデータの各文字の
寸法、配置位置、色濃度を求める処理が終了すると、次
に、組版データテーブル7と組版補助データーテーブル
8に記憶されたデータを外部記憶装置18に記憶してお
く(ステップS5)。これは、今回編集したデータに基
づいて、以後いつでも出力等を行なえるようにするため
である。
Returning to FIG. 2, when the processing for obtaining the size, arrangement position, and color density of each character of the text data is completed, the data stored in the typesetting data table 7 and the typesetting auxiliary data table 8 are externally stored. It is stored in the device 18 (step S5). This is so that output or the like can be performed at any time thereafter based on the data edited this time.

【0140】次に、組版データテーブル7の内容に基づ
き、出力制御部12が、処理結果を表示装置14または
/およびプリンタ15に出力する(ステップ6)。な
お、表示装置14に表示するか、プリンタ15で印刷、
フィルムへの焼付けをするか、あるいは、その両方を行
なうかは、ユーザーにより任意に選択される。この出力
制御部12による出力処理の詳細を図5を参照して説明
する。
Next, based on the contents of the typesetting data table 7, the output control unit 12 outputs the processing result to the display device 14 and / or the printer 15 (step 6). It is displayed on the display device 14 or printed by the printer 15,
Whether to print on the film or both of them is arbitrarily selected by the user. Details of the output processing by the output control unit 12 will be described with reference to FIG.

【0141】まず、組版データテーブル7の<処理済文
字数>のエリアに記憶された処理済、すなわち、出力可
能な文字数が「0」である(出力可能なフォントデータ
が無い)か否かを判定し(ステップS41)、「0」で
なければ、出力可能なフォントデータがあるのでステッ
プS42に進み、一方、「0」であれば、出力可能なフ
ォントデータが無いので処理を終了する。なお、出力を
行なわずに処理を終了するとき、その旨をユーザーに知
らせるメッセージを表示装置14に表示してもよい。
First, it is determined whether or not the processed characters stored in the <number of processed characters> area of the typesetting data table 7, that is, whether the number of characters that can be output is “0” (there is no font data that can be output). If it is not "0", the process proceeds to step S42 because there is font data that can be output, and if it is "0", the process ends because there is no font data that can be output. When the process is terminated without outputting, a message notifying the user may be displayed on the display device 14.

【0142】ステップS42では、処理変数iに「1」
をセットする。iは、現在の処理対象が何文字目かを示
すためのものである。
In step S42, the processing variable i is set to "1".
Is set. i indicates the character of the current processing target.

【0143】次に、組版データテーブル7の現在の処理
対象の文字処理データ部FAiから、現在の処理対象の
文字コードを読み出し、フォント格納部13からそのフ
ォントデータを読み出す(ステップS43)。
Next, the current character code to be processed is read from the character processing data part FAi to be processed in the typesetting data table 7, and the font data is read from the font storage unit 13 (step S43).

【0144】次に、その文字処理データ部FAiから、
そのフォントデータの出力時の寸法を読み出し、ステッ
プS42で読み出したフォントデータを出力時の寸法に
縮小等して調整し、さらに、組版データテーブル7の<
長体率>、<平体率>のエリアから、設定された長体
率、平体率を読み出し、寸法が調整されたフォントデー
タを設定された長平体率に応じて文字幅または文字高さ
を圧縮する(ステップS44)。
Next, from the character processing data part FAi,
The output dimensions of the font data are read out, the font data read out in step S42 is adjusted by reducing it to the output dimensions, and the
Read the set long body ratio and flat body ratio from the area of <Long body ratio> and <Flat body ratio>, and change the font data whose dimensions have been adjusted to the character width or character height according to the set long flat body ratio. Is compressed (step S44).

【0145】次に、文字処理データ部FAiの<配置位
置x>、<配置位置y>、<色濃度>のエリアから、そ
のフォントデータの出力時の配置位置(フォントデータ
の基準点)の座標と色濃度を読み出すとともに、組版デ
ータテーブル7の<回転角度θ>から回転角度θを読み
出し、ステップS43で寸法等が調整されたフォントデ
ータを配置位置に配置した状態から、配置位置(基準
点)を中心にして回転角度θ分回転させた状態で、読み
出した色濃度で出力する(ステップS45)。
Next, from the area of <arrangement position x>, <arrangement position y>, and <color density> of the character processing data portion FAi, the coordinates of the arrangement position (reference point of the font data) at the time of outputting the font data. And the color density, read the rotation angle θ from the <rotation angle θ> of the typesetting data table 7, and arrange the font data whose dimensions and the like have been adjusted in step S 43 to the arrangement position (reference point). Are output at the read color density in a state where the image is rotated by the rotation angle θ around (step S45).

【0146】例えば、図9(c)のように組版するので
あれば、回転角度θは「0°」であるので、寸法等が調
整された各フォントデータが、図27に示すように配置
される。なお、図27(a)は長体率、平体率がともに
設定されていない場合を示し、また、図27(b)は平
体率が設定されている場合の各フォントデータの配置状
態を示し、図27(c)は長体率が設定されている場合
の各フォントデータの配置状態を示す。図27(b)、
(c)では、”大”に対応するフォントデータのみ字面
を示しているが、”バーゲン”の各文字に対応する各フ
ォトデータの字面も、”大”と同様に、平体率、長体率
に応じて字面が圧縮されている。
For example, if the composition is performed as shown in FIG. 9C, the rotation angle θ is “0 °”, and the font data whose dimensions and the like have been adjusted are arranged as shown in FIG. You. FIG. 27A shows a case where neither the long body ratio nor the flat body ratio is set, and FIG. 27B shows the arrangement state of each font data when the flat body ratio is set. FIG. 27C shows an arrangement state of each font data when the long body ratio is set. FIG. 27 (b),
In (c), only the font data corresponding to “Large” shows the character surface, but the character surface of each photo data corresponding to each character of “Bargain” also has the flatness ratio and the The face is compressed according to the ratio.

【0147】また、図9(a)に示すように組版するの
であれば、回転角度θは、「90°」であるので、最初
のフォントデータは、図28(a)の二点鎖線で示すよ
うに、フォントデータを配置位置P1 に配置した状態か
ら、配置位置P1 を中心として回転角度θ(「90
°」)分、所定方向(この場合、回転角度の符号が正で
あるので反時計回り)に回転した状態で配置されて出力
される。次に、2番目のフォントデータは、図28
(b)の二点鎖線で示すように、フォントデータを配置
位置P2 に配置した状態から、配置位置P2 を中心とし
て「90°」分、反時計回りに回転した状態で配置され
て出力される。なお、2番目のフォントデータの配置位
置は、最初のフォントデータの出力時の配置状態に応じ
て決めているので、図のような配置位置となっている。
残りのフォントデータも同様にして順次配置して出力さ
れる。全フォントデータの配置後の状態を図28(c)
に示す。なお、図28(a)〜(c)は長体率、平体率
がともに設定されていない場合である。また、平体率が
設定されている場合の最初のフォントデータの配置状態
と2番目のフォントデータの配置状態を図29(a)、
(b)に、長体率が設定されている場合の最初のフォン
トデータの配置状態と2番目のフォントデータの配置状
態を図29(c)、(d)に示す。
If the typesetting is performed as shown in FIG. 9A, the rotation angle θ is “90 °”, so the first font data is indicated by a two-dot chain line in FIG. as such, from a state of arranging the font data on the position P 1, the rotation around the position P 1 angle theta ( "90
°)), and are arranged and output in a state rotated in a predetermined direction (in this case, the sign of the rotation angle is positive and thus counterclockwise). Next, the second font data is shown in FIG.
As shown by the two-dot chain line in (b), the font data is arranged and output counterclockwise by “90 °” around the arrangement position P 2 from the state where the font data is arranged at the arrangement position P 2. Is done. Since the arrangement position of the second font data is determined according to the arrangement state at the time of outputting the first font data, the arrangement position is as shown in the figure.
The remaining font data is similarly sequentially arranged and output. FIG. 28C shows a state after all the font data is arranged.
Shown in FIGS. 28A to 28C show a case where neither the long body ratio nor the flat body ratio is set. FIG. 29A shows the arrangement state of the first font data and the arrangement state of the second font data when the flatness ratio is set.
FIGS. 29C and 29D show the arrangement state of the first font data and the arrangement state of the second font data when the long body ratio is set in FIG.

【0148】なお、図27、図28は、各点PS1
S2、Peの位置関係が、図20(e)の場合を示して
いるが、図20(a)〜(d)、(f)〜(i)、図2
1の各場合についても同様に、各フォントデータが点P
S1、PS2から点Peに収束するように配置される。
FIGS. 27 and 28 show each point P S1 ,
The positional relationship between P S2 and Pe is shown in FIG. 20 (e), and FIGS. 20 (a) to (d), (f) to (i), and FIG.
Similarly, in each case of 1, the font data corresponds to the point P
They are arranged so as to converge from S1 and PS2 to a point Pe.

【0149】図9(b)、(d)の場合も、図9(a)
の場合と同様に、各フォントデータは、それぞれの配置
位置に配置した状態から、配置位置を中心として回転角
度θ(図9(b)の場合「−90°」、図9(d)の場
合「0°」)分、所定方向(図9(b)の場合、回転角
度の符号が負であるので時計回り)に回転した状態で配
置されて出力される。
In the case of FIGS. 9B and 9D, FIG.
In the same manner as in the case of (a), each font data is changed from the state where the font data is arranged at the respective arrangement position to the rotation angle θ (“−90 °” in FIG. 9B, FIG. It is arranged and output while rotating in a predetermined direction (in the case of FIG. 9B, the sign of the rotation angle is negative because the sign of the rotation angle is negative in FIG. 9B).

【0150】図5に戻って、出力可能なフォントデータ
の全ての出力が終了したか否かを判定する(ステップS
46)。全ての出力が終了したのであれば本実施例装置
の処理を終了し、一方、出力可能なフォントデータが残
っていれば処理変数iをインクリメント(i=i+1)
して(ステップS47)、ステップS43に戻って、次
のフォントデータの出力を行なう。
Returning to FIG. 5, it is determined whether or not all outputable font data has been output (step S).
46). If all the outputs have been completed, the processing of the apparatus of this embodiment ends. On the other hand, if there remains remaining outputable font data, the processing variable i is incremented (i = i + 1).
Then, the process returns to step S43 to output the next font data.

【0151】本実施例装置の処理が終了したとき、テキ
ストデータを構成する各文字に対応する各フォントデー
タが、点PS1、PS2から点Peに収束するように遠近配
置された状態で表示装置14に表示され、または/およ
び、プリンタ15で印刷、フィルムへの焼付けが行なわ
れる。
When the processing of the apparatus of this embodiment is completed, the font data corresponding to each character constituting the text data is displayed in a state in which the font data is far and near so as to converge from the points P S1 and P S2 to the point Pe. It is displayed on the device 14 and / or printed by the printer 15 and printed on film.

【0152】このように、出力される各フォントデータ
の仮想ボディは矩形であるので、出力されるフォントデ
ータの字面が歪むことがなく、字面に基づいて自然な遠
近配置で組版される。また、本実施例では、各フォント
データを図形化するものではないので、図形化するため
の処理は不要となる。
As described above, since the virtual body of each font data to be output is rectangular, the font face of the output font data is not distorted , and is typeset in a natural perspective arrangement based on the font face. Further, in the present embodiment, since each font data is not converted into a graphic, the processing for forming the graphic is unnecessary.

【0153】次に、上述の組版結果に対して、例えば、
最初の文字”大”に対応するフォントデータを、”超”
の文字に対応するフォントデータに修正する場合につい
て説明する。このとき、修正する”超”に対応するフォ
ントデータの寸法、配置位置、色濃度は、”大”に対応
するフォントデータの寸法、配置位置、色濃度のままで
よいので、組版データテーブル7の最初のフォントデー
タの文字処理データ部FA1の<文字コード>のエリア
に記憶されている”大”の文字コードを”超”の文字コ
ードに替えてやるだけでよい。このように再編集した組
版データテーブル7に基づき、上記図5の処理手順に従
って再度出力すれば、上述の組版結果の”大”に対応す
るフォントデータが、”超”に対応するフォントデータ
に修正されて出力される。
Next, for the above-described typesetting result, for example,
Font data corresponding to the first character "Large" is changed to "Ultra"
A case in which the font data is corrected to the font data corresponding to the character is described. At this time, the size, arrangement position, and color density of the font data corresponding to “super” to be corrected may be the same as the size, arrangement position, and color density of the font data corresponding to “large”. It is only necessary to replace the "large" character code stored in the <character code> area of the character processing data portion FA1 of the first font data with the "ultra" character code. If the format data is output again according to the processing procedure shown in FIG. 5 based on the reformatted format data table 7, the font data corresponding to "large" in the format result is corrected to font data corresponding to "extra". Is output.

【0154】次に、”大バーゲン”に対する組版結果に
対して、例えば、3番目の文字”−”に対応するフォン
トデータを削除する場合について説明する。このとき、
現在の4番目と5番目の文字”ゲ”と”ン”に対応する
フォントデータを、3番目と4番目の文字”−”と”
ゲ”に対応するフォントデータの寸法、配置位置、色濃
度で配置、出力し、現在の5番目の文字”ン”に対応す
るフォントデータの配置位置に配置されるフォントデー
タを出力しないようにすればよい。
Next, a case will be described in which, for example, font data corresponding to the third character “-” is deleted from the typesetting result for “large bargain”. At this time,
The font data corresponding to the current fourth and fifth characters "ge" and "n" are stored in the third and fourth characters "-" and "
Arrange and output the font data at the size, arrangement position, and color density corresponding to the font "G", and do not output the font data arranged at the arrangement position of the font data corresponding to the current fifth character "". I just need.

【0155】従って、まず、組版データテーブル7の3
番目の文字に対応するフォントデータの文字処理データ
部FA3の<文字コード>のエリアに、4番目の文字に
対応するフォントデータの文字処理データ部FA4の<
文字コード>のエリアに記憶された文字コード(”ゲ”
の文字コード)をセットし、4番目の文字に対応するフ
ォントデータの文字処理データ部FA4の<文字コード
>のエリアに、5番目の文字に対応するフォントデータ
の文字処理データ部FA5の<文字コード>のエリアに
記憶された文字コード(”ン”の文字コード)をセット
する。
Therefore, first, 3-3 of the typesetting data table 7
The <character code> area of the character processing data section FA3 of the font data corresponding to the fourth character is set in the area of the character processing data section FA4 of the font data corresponding to the fourth character.
The character code ("ge") stored in the area
Is set in the <character code> area of the character processing data section FA4 of the font data corresponding to the fourth character, and the <character code> of the character processing data section FA5 of the font data corresponding to the fifth character is set. The character code ("n" character code) stored in the area of <code> is set.

【0156】次に、組版データテーブル7のヘッダ部H
Aの<文字数>のエリアに記憶された文字数から削除す
る文字数(この場合「1」)を減算する。そして、減算
した結果の文字数MMと、組版データテーブル7のヘッ
ダ部HAの<処理済文字数>のエリアに記憶された処理
済の文字数SMとを比較し、SM>MMであれば、<処
理済文字数>のエリアに記憶された処理済の文字数をM
Mに置き換える。これは、出力可能なフォントデータの
数が、削除後のテキストデータの文字数よりも多くなら
ないよう調整したものである。なお、MM=SMのと
き、削除後の文字列に対応する全フォントデータは遠近
配置されて出力され、また、MM>SMのときには、
(MM−SM)の文字数分、削除後の文字列の後方の文
字に対応するフォントデータは依然出力されない。この
ように再編集した組版データテーブル7に基づき、上記
図5の処理手順に従って再度出力すれば、所定の文字の
対応するフォントデータが削除された状態で出力され
る。
Next, the header portion H of the typesetting data table 7
The number of characters to be deleted (in this case, “1”) is subtracted from the number of characters stored in the <number of characters> area of A. Then, the number of characters MM obtained as a result of the subtraction is compared with the number of processed characters SM stored in the <number of processed characters> area of the header portion HA of the typesetting data table 7. The number of processed characters stored in the area
Replace with M. This is adjusted so that the number of font data that can be output is not greater than the number of characters of the text data after deletion. Note that when MM = SM, all font data corresponding to the character string after deletion is output in a perspective view, and when MM> SM,
The font data corresponding to the characters after the deleted character string by the number of characters of (MM-SM) is not yet output. If the data is output again according to the processing procedure of FIG. 5 based on the re-edited typesetting data table 7, the font data corresponding to the predetermined character is output in a deleted state.

【0157】なお、上述の方法で出力したとき、出力さ
れる色濃度は、例えば、Yの網%を例に採ると、図30
(a)に示すように、各フォントデータの色濃度は、開
始色濃度から、削除後の最後の文字に対応するフォント
データの色濃度まで、上記処理で求めた色濃度の変化率
αY で徐々に変化するものである。これを、図30
(b)に示すように、削除後の文字列の最後の文字の色
濃度を、設定された終了色濃度にして、削除後の文字列
に対応する各フォントデータに対して、開始色濃度から
終了色濃度まで徐々に変化するように、各フォントデー
タの色濃度の変化率αY ’を、図2のステップS3の処
理で説明した方法で新たに求めた後、各フォントデータ
の色濃度を求め直すようにしてもよい。なお、このと
き、開始色濃度と終了色濃度とは、例えば、組版補助デ
ータテーブル8に記憶しておけばよい。
When the output is performed by the above-described method, the output color density is, for example, as shown in FIG.
As shown in (a), the color density of each font data is from the start color density to the color density of the font data corresponding to the last character after deletion by the color density change rate α Y obtained in the above processing. It changes gradually. This is shown in FIG.
As shown in (b), the color density of the last character of the character string after deletion is set to the set end color density, and for each font data corresponding to the character string after deletion, After the color density change rate α Y ′ of each font data is newly obtained by the method described in the process of step S3 in FIG. 2 so as to gradually change to the end color density, the color density of each font data is calculated. You may ask again. At this time, the start color density and the end color density may be stored in, for example, the typesetting auxiliary data table 8.

【0158】次に、”大バーゲン”に対する組版結果に
対して、例えば、最初の文字”大”に対応するフォント
データと2番目の文字”バ”に対応するフォントデータ
との間に、”!”に対応するフォントデータを挿入する
場合について説明する。このとき、現在の最後のフォン
トデータの後に、挿入する文字数(この場合「1」)分
のフォントデータを出力するための、寸法、配置位置、
色濃度を新たに求め、現在の2番目の文字”バ”に対応
するフォントデータの寸法、配置位置、色濃度で、挿入
する”!”に対応するフォントデータを出力し、現在の
2番目〜5番目の文字”バ”、”ー”、”ゲ”、”ン”
に対応するフォントデータを、現在の3番目〜5番目の
文字”−”、”ゲ”、”ン”に対応するフォントデータ
の寸法、配置位置、色濃度、および新たに求めた寸法、
配置位置、色濃度で配置、出力し、新たに求められた寸
法、配置位置、色濃度で出力するフォントデータまで出
力できるようにすればよい。
Next, with respect to the typesetting result for “large bargain”, for example, “!” Is inserted between the font data corresponding to the first character “large” and the font data corresponding to the second character “ba”. The case of inserting font data corresponding to "" will be described. At this time, after the current last font data, dimensions, arrangement positions, and the like for outputting font data of the number of characters to be inserted (in this case, “1”) are output.
The color density is newly obtained, and the font data corresponding to the "!" To be inserted is output based on the size, arrangement position, and color density of the font data corresponding to the current second character "B". Fifth characters "ba", "-", "ge", "n"
The font data corresponding to the current third to fifth characters “−”, “G”, “G”, the font data dimensions, arrangement position, color density, and newly obtained dimensions,
What is necessary is to be able to arrange and output at the arrangement position and color density, and to output font data to be output at the newly determined dimensions, arrangement position and color density.

【0159】まず、組版補助データテーブル8(図13
参照)の<エラー有無>に記憶されているコードを調
べ、先の組版処理時にエラー終了していれば(コードが
「0」以外であれば)、挿入する文字数分のフォントデ
ータを出力するための、寸法、配置位置、色濃度を新た
に求めることができないので、その旨をユーザーに知ら
せるメッセージを表示装置14に表示し、文字コードの
シフトを行なう。すなわち、新たにフォントデータを挿
入する位置に現在出力されているフォントデータ(この
場合2番目)に対する組版データテーブル7のフォント
データの文字処理データ部FAi(FA2)〜処理済の
文字数(<処理済文字数>のエリアに記憶されている)
番目の文字に対応するフォントデータの文字処理データ
部FAjの各<文字コード>のエリアに記憶されている
文字コードを、挿入する文字数分後ろにシフトしてい
く。そして、新たにフォントデータを挿入する位置に現
在出力されているフォントデータに対する組版データテ
ーブル7のフォントデータの文字処理データ部FAiの
<文字コード>のエリアに、挿入するフォントデータに
対応する文字コードをセットする。このように再編集し
た組版データテーブル7に基づき、上記図5の処理手順
に従って再度出力すれば、フォントデータが挿入された
状態で、出力可能なフォントデータの組版結果が出力さ
れる。なお、挿入するフォントデータの位置が、出力可
能なフォントデータよりも後ろであれば、挿入された結
果は反映されないので、上述のような文字のシフトは特
に行なわなくともよい。
First, the typesetting auxiliary data table 8 (FIG. 13)
Check the code stored in <error presence / absence> of (see), and if an error has occurred during the previous typesetting process (if the code is other than “0”), font data for the number of characters to be inserted is output. Since a new size, arrangement position and color density cannot be obtained, a message notifying the user is displayed on the display device 14 and the character code is shifted. That is, the character data processing unit FAi (FA2) of the font data of the typesetting data table 7 corresponding to the font data currently output at the position where the new font data is inserted (in this case, the second) to the number of processed characters (<processed (Stored in the area of Number of characters>)
The character code stored in each <character code> area of the character processing data portion FAj of the font data corresponding to the th character is shifted backward by the number of characters to be inserted. Then, the character code corresponding to the font data to be inserted is stored in the <character code> area of the character processing data portion FAi of the font data in the typesetting data table 7 for the font data currently output at the position where the new font data is to be inserted. Is set. By outputting again according to the processing procedure of FIG. 5 based on the re-edited typesetting data table 7, a typesetting result of font data that can be output is output with the font data inserted. Note that if the position of the font data to be inserted is after the font data that can be output, the inserted result is not reflected, so that the character shift described above does not need to be particularly performed.

【0160】また、組版補助データテーブル8の<エラ
ー有無>に記憶されているコードが「0」であれば、現
在の最後の文字のフォントデータの後に、フォントデー
タを出力するための、寸法、配置位置、色濃度を新たに
求める。すなわち、組版補助データテーブル8に記憶さ
れている点PS1、点PS2、点Peの座標と、現在の最後
の文字のフォントデータの次のフォントデータの配置開
始点Pa、Pbの座標と、各フォントデータの色濃度の
変化率とを用い、図4と同様の手順に従って、現在の最
後の文字のフォントデータの後に、挿入する文字数分の
フォントデータを出力するための、寸法、配置位置、色
濃度を求める。なお、挿入するフォントデータの数が多
く、挿入する文字数分のフォントデータの寸法等が求め
られなかったときには、出力可能なフォントデータまで
について以下の処理を行なう。
Further, if the code stored in <error presence / absence> of the typesetting auxiliary data table 8 is “0”, the size and the size for outputting the font data after the font data of the current last character are obtained. The arrangement position and color density are newly obtained. That is, the coordinates of the points P S1 , P S2 , and Pe stored in the typesetting auxiliary data table 8, the coordinates of the layout start points Pa and Pb of the font data next to the font data of the current last character, and Using the change rate of the color density of each font data and following the same procedure as in FIG. 4, dimensions, arrangement positions, and the like for outputting font data of the number of characters to be inserted after the font data of the current last character. Find the color density. When the number of font data to be inserted is large and the size of the font data for the number of characters to be inserted cannot be obtained, the following processing is performed up to the font data that can be output.

【0161】次に、組版データテーブル7の<文字数>
のエリアに記憶されている挿入前のテキストデータの文
字数に、挿入する文字数を加算した結果を、組版データ
テーブル7の<文字数>のエリアに記憶するとともに、
組版データテーブル7の<処理済文字数>のエリアに記
憶されている挿入前のテキストデータの処理済の文字数
に、新たに出力可能となったフォントデータの数を加算
した結果を、組版データテーブル7の<処理済文字数>
のエリアに記憶する。そして、組版データテーブル7の
各フォントデータの文字処理データ部FAnの<文字コ
ード>に記憶されている文字コードに対して、上述と同
様の文字コードのシフトを行なうとともに、挿入する文
字の文字コードを所定のフォントデータの文字処理デー
タ部FAnの<文字コード>にセットする。このように
再編集した組版データテーブル7に基づき、上記図5の
処理手順に従って再度出力すれば、所定の文字が挿入さ
れた文字列に対応する各フォントデータが、点PS1、点
S2から点Peに収束するように遠近配置されて出力さ
れる。
Next, <number of characters> in the typesetting data table 7
The result obtained by adding the number of characters to be inserted to the number of characters of the text data before insertion stored in the area of No. is stored in the area of <Number of characters> of the typesetting data table 7, and
The result of adding the number of newly output font data to the number of processed characters of the text data before insertion stored in the <number of processed characters> area of the typesetting data table 7 <Number of processed characters>
In the area. Then, the character code stored in the <character code> of the character processing data portion FAn of each font data in the typesetting data table 7 is shifted in the same manner as described above, and the character code of the character to be inserted is inserted. Is set in the <character code> of the character processing data portion FAn of the predetermined font data. By outputting again according to the processing procedure of FIG. 5 based on the reformatted typesetting data table 7 in this manner, the font data corresponding to the character string in which the predetermined character is inserted can be obtained from the points P S1 and P S2. It is arranged and output so that it converges to the point Pe and is output.

【0162】なお、このフォントデータの挿入の処理に
おいても、上述のフォントデータの削除の処理と同様
に、挿入後の文字列に対応する各フォントデータに対し
て、開始色濃度から終了色濃度まで徐々に変化するよう
に構成してもよい。このとき、組版補助データテーブル
8に記憶されている各フォントデータの色濃度の変化率
に替えて開始色濃度と終了色濃度とを記憶するようにす
ればよい。
In this font data insertion process, similarly to the above-described font data deletion process, each of the font data corresponding to the character string after the insertion is processed from the start color density to the end color density. You may comprise so that it may change gradually. At this time, the start color density and the end color density may be stored in place of the change rate of the color density of each font data stored in the typesetting auxiliary data table 8.

【0163】このように、組版結果に対してフォントデ
ータの修正や削除、挿入の処理は、主に文字コードの変
更やシフト等で対応することができるので、従来例に比
べて、これら修正や削除、挿入に柔軟に対応することが
できる。
As described above, the process of correcting, deleting, and inserting font data with respect to the formatted result can be mainly performed by changing or shifting the character code. It can respond flexibly to deletion and insertion.

【0164】なお、この組版結果に対するフォントデー
タの修正、削除、挿入の処理は、後述する処理(処理パ
ターン2、3)や以下の実施例に対しても同様に行なう
ことができるので、後述する処理や以下の実施例では、
この説明は省略する。
The correction, deletion, and insertion of the font data with respect to the typesetting result can be performed in the same manner as the processing described later (processing patterns 2 and 3) and the following embodiments, and will be described later. In the processing and the following examples,
This description is omitted.

【0165】次に、上述した第一実施例装置において、
例えば、図31に示すように、最初の文字に対応するフ
ォントデータの配置開始点PS1とPS2とを結ぶ線分SL
が、出力領域のy軸に平行(あるいはy軸上に)設定さ
れた場合の、各フォントデータの寸法、配置位置等の求
め方等について説明する。なお、この処理を『処理パタ
ーン2』という。
Next, in the above-mentioned first embodiment,
For example, as shown in FIG. 31, a line segment SL connecting the arrangement start points P S1 and P S2 of the font data corresponding to the first character.
Is set in parallel to (or on the y-axis) of the output area, how to determine the size, arrangement position, and the like of each font data will be described. This processing is referred to as “processing pattern 2”.

【0166】まず、図2のステップS1でテキストデー
タ(”大バーゲン”が入力されたとする)と、ステップ
S2(図3のフローチャート)で最初の文字に対応する
フォントデータの配置開始点PS1とPS2、収束点Pe、
組方向指示、長平体率、開始色濃度、終了色濃度が設定
される。設定された点PS1、点PS2、点Peの各座標を
(xS1,yS1)、(xS2,yS2)、(xe ,ye )(図
31参照)とする。ただし、xS1=xS2である。この場
合の点PS1、点PS2、点Peの設定の仕方と組方向指示
に応じた出力時の各フォントデータの配列のパターンを
図32に示す。図32(a)、(c)は、(点PS1、点
S2のx座標)<(点Peのx座標)の場合の横組み、
縦組みのフォントデータの配列状態を示し、図32
(b)、(d)は、(点PS1、点PS2のx座標)>(点
Peのx座標)の場合の横組み、縦組みのフォントデー
タの配列状態を示す。また、図中の符号P1 〜P5 は、
各フォントデータの出力時の配置位置(フォントデータ
の仮想ボディの左下の基準点)を示す。
First, in step S1 of FIG. 2, it is assumed that the text data ("large bargain" has been input) and in step S2 (the flowchart of FIG. 3) the font data arrangement start point P S1 corresponding to the first character. P S2 , convergence point Pe,
A set direction instruction, a long flat body ratio, a start color density, and an end color density are set. Let the coordinates of the set points P S1 , P S2 , and Pe be (x S1 , y S1 ), (x S2 , y S2 ), and (x e , y e ) (see FIG. 31). Here, x S1 = x S2 . FIG. 32 shows how to set the points P S1 , P S2 , and Pe in this case and the arrangement pattern of each font data at the time of output in accordance with the set direction instruction. FIGS. 32A and 32C show horizontal composition when (x coordinate of point P S1 and point P S2 ) <(x coordinate of point Pe).
FIG. 32 shows an arrangement state of vertical font data.
(B) and (d) show the arrangement state of horizontal and vertical font data when (x coordinate of point P S1 and point P S2 )> (x coordinate of point Pe). The symbols P 1 to P 5 in the figure are:
The layout position of each font data at the time of output (the lower left reference point of the virtual body of the font data) is shown.

【0167】次に、図2のステップS3の前処理を行な
う。この前処理で、上記処理パターン1と異なるのは、
出力時のフォントデータの回転角度θである。図32か
らも明らかなように、この処理パターン2の場合、(点
S1、点PS2のx座標)<(点Peのx座標)で横組み
のとき(図32(a)のとき)、出力時のフォントデー
タの回転角度θが「0°」となり、(点PS1、点PS2
x座標)>(点Peのx座標)で横組みの場とき(図3
2(b)のとき)、出力時のフォントデータの回転角度
θが「180°」(または「−180°」)となり、
(点PS1、点PS2のx座標)<(点Peのx座標)また
は(点PS1、点PS2のx座標)>(点Peのx座標)で
縦組みのとき(図32(c)、(d)のとき)、出力時
のフォントデータの回転角度θが「−90°」(または
「270°」)となる。
Next, the preprocessing of step S3 in FIG. 2 is performed. The difference between the preprocessing and the processing pattern 1 is that
The rotation angle θ of the font data at the time of output. As is apparent from FIG. 32, in the case of the processing pattern 2, when (x coordinate of the points P S1 and P S2 ) <(x coordinate of the point Pe) is set horizontally (in the case of FIG. 32A). When the rotation angle θ of the font data at the time of output is “0 °” and the horizontal composition is such that (the x coordinate of the point P S1 and the point P S2 )> (the x coordinate of the point Pe) (FIG. 3)
2 (b)), the rotation angle θ of the font data at the time of output is “180 °” (or “−180 °”),
When (x coordinate of point P S1 , point P S2 ) <(x coordinate of point Pe) or (x coordinate of point P S1 , point P S2 )> (x coordinate of point Pe), a vertical composition (FIG. 32 ( c) and (d)), the rotation angle θ of the font data at the time of output is “−90 °” (or “270 °”).

【0168】次に、図2のステップS4の各フォントデ
ータの寸法、配置位置、色濃度を求める処理を実行す
る。ここで、上述の処理パターン1と異なるのは、ステ
ップS22、S25、S26、S28、S31(図4参
照)である。以下に、これらの処理について説明する。
Next, the processing for obtaining the size, arrangement position, and color density of each font data in step S4 in FIG. 2 is executed. Here, steps different from the above-described processing pattern 1 are steps S22, S25, S26, S28, and S31 (see FIG. 4). Hereinafter, these processes will be described.

【0169】まず、ステップS22のフォントデータの
寸法の算出は、寸法特定部4が、文字配置処理部1から
受け取った、現在の処理対象の文字に対応するフォント
データの配置開始点Pa、Pbに基づき、以下のように
そのフォントデータの寸法を求める。なお、この処理パ
ターン2のように点PS1と点PS2とを結ぶ線分が、出力
領域のy軸に平行(あるいはy軸上に)設定された場合
には、与えられる配置開始点Pa、Pbのx座標は同じ
になる。従って、ここでは、与えられる配置開始点P
a、Pbの座標を(xa ,ya )、(xa ,yb )とし
て、図33、図34を参照して、寸法の求め方を説明す
る。
First, the size of the font data in step S22 is calculated by the size specifying unit 4 using the font data arrangement start points Pa and Pb received from the character arrangement processing unit 1 and corresponding to the current character to be processed. Then, the size of the font data is obtained as follows. When a line segment connecting the point P S1 and the point P S2 is set parallel to (or on the y-axis) of the output area as in the processing pattern 2, the given arrangement start point Pa , Pb have the same x coordinate. Therefore, here, the given arrangement start point P
a, coordinates of Pb as (x a, y a), (x a, y b), FIG. 33, with reference to FIG. 34, illustrating how to obtain dimensions.

【0170】図33(a)、(c)、(e)は、図32
(a)に対応する場合であって、長平体率が設定されて
いない場合、平体率が設定されている場合、長体率が設
定されている場合を示し、図33(b)、(d)、
(f)は、図32(c)に対応する場合であって、長平
体率が設定されていない場合、長体率が設定されている
場合、平体率が設定されている場合を示す。また、図3
4(a)、(c)、(e)は、図32(b)に対応する
場合であって、長平体率が設定されていない場合、平体
率が設定されている場合、長体率が設定されている場合
を示し、図34(b)、(d)、(f)は、図32
(d)に対応する場合であって、長平体率が設定されて
いない場合、長体率が設定されている場合、平体率が設
定されている場合を示す。
FIGS. 33 (a), (c) and (e) show the state shown in FIG.
FIG. 33B shows a case corresponding to (a) in which the long flat body ratio is not set, the flat body ratio is set, and the long body ratio is set. d),
(F) corresponds to FIG. 32 (c) and shows a case where the long flat body ratio is not set, a case where the long body ratio is set, and a case where the flat body ratio is set. FIG.
4 (a), (c) and (e) correspond to FIG. 32 (b), where the long flat ratio is not set, the flat ratio is set, and the long ratio is set. Are set, and FIGS. 34 (b), (d) and (f) show FIG.
The case corresponding to (d) shows a case where the long flat ratio is not set, a case where the long flat ratio is set, and a case where the flat ratio is set.

【0171】図33、図34中の文字高さYと文字幅X
とは同じである。従って、図33、図34の(a)、
(b)、(e)、(f)の場合のフォントデータの寸法
は、図からも明らかなように、与えられたPa、Pb間
の長さとなる。このPa、Pb間の長さLは以下の式で
算出することができる。 L=|yb −ya | ……… (22-11)
Character height Y and character width X in FIGS. 33 and 34
Is the same as Therefore, FIGS. 33 and 34 (a),
In the cases (b), (e) and (f), the size of the font data is the length between the given Pa and Pb, as is clear from the figure. The length L between Pa and Pb can be calculated by the following equation. L = | y b -y a | ......... (22-11)

【0172】従って、寸法特定部4は、図33、図34
の(a)、(b)、(e)、(f)の場合には、式 (22
-11)で求めたLをフォントデータの寸法として文字配置
処理部1に返す。
Therefore, the dimension specifying section 4 is configured as shown in FIGS.
(A), (b), (e), and (f), the expression (22)
-11) is returned to the character arrangement processing unit 1 as font data dimensions.

【0173】図33、図34の(c)は、平体率(hp
%)で文字高さYが圧縮された長さY’が、Pa、Pb
間の長さである。従って、文字高さが圧縮される前の文
字高さYは以下の式で求めることができる。 100:(100−hp)=Y:Y’ Y=(100・Y’)/(100−hp) =(100・L)/(100−hp) ……… (22-12) ここで、Lは、上記式 (22-11)で求められるPa、Pb
間の長さである。
FIGS. 33 and 34C show the flatness ratio (hp).
%), The length Y ′ of the compressed character height Y is Pa, Pb
Is the length between them. Therefore, the character height Y before the character height is compressed can be obtained by the following equation. 100: (100−hp) = Y: Y ′ Y = (100 · Y ′) / (100−hp) = (100 · L) / (100−hp) (22-12) where L Are Pa, Pb determined by the above equation (22-11).
Is the length between them.

【0174】この場合のフォントデータの寸法は、文字
高さY×文字幅X(=Y)のフォントデータの寸法であ
るので、寸法特定部4は、図33、図34の(c)の場
合には、式 (22-12)で求めたYをフォントデータの寸法
として文字配置処理部1に返す。
Since the size of the font data in this case is the size of the font data of character height Y × character width X (= Y), the dimension specifying unit 4 performs the processing in the case of (c) of FIGS. 33 and 34. Is returned to the character arrangement processing unit 1 as the size of the font data obtained by the equation (22-12).

【0175】図33、図34の(d)は、長体率(lp
%)で文字幅Xが圧縮された長さX’が、Pa、Pb間
の長さである。従って、文字幅が圧縮される前の文字幅
Xは以下の式で求めることができる。 X=(100・X’)/(100−lp) =(100・L)/(100−lp) ……… (22-13) ここで、Lは、上記式 (22-11)で求められるPa、Pb
間の長さである。
FIGS. 33 and 34D show the long body ratio (lp
%), The length X ′ obtained by compressing the character width X is the length between Pa and Pb. Therefore, the character width X before the character width is compressed can be obtained by the following equation. X = (100 · X ′) / (100−lp) = (100 · L) / (100−lp) (22-13) where L is obtained by the above equation (22-11). Pa, Pb
Is the length between them.

【0176】この場合のフォントデータの寸法は、文字
幅X×文字高さY(=X)のフォントデータの寸法であ
るので、寸法特定部4は、図33、図34の(d)の場
合には、式 (22-13)で求めたXをフォントデータの寸法
として文字配置処理部1に返す。
The dimensions of the font data in this case are the dimensions of the font data of character width X × character height Y (= X). Is returned to the character arrangement processing unit 1 as the size of the font data obtained by the equation (22-13).

【0177】次に、ステップS25の処理では、文字配
置処理部1が、フォントデータの仮想ボディIBの四隅
の点の、点Pa、Pb以外の2点Pc、Pdの座標を求
める。この求め方を図33、図34を参照して以下に説
明する。
Next, in the processing of step S25, the character arrangement processing section 1 obtains the coordinates of two points Pc and Pd other than the points Pa and Pb of the four corner points of the virtual body IB of the font data. The method of obtaining this will be described below with reference to FIGS.

【0178】図33、図34から明らかなように、図3
3、図34の各場合における点Pc、Pdの各y座標は
それぞれ配置開始点Pa、Pbのy座標と同じである。
すなわち、点Pc、Pdの各y座標yc 、yd は以下の
式で求められる。 yc =yad =yb ……… (25-11) ただし、ya 、yb は、上記したように点Pa、Pbの
各y座標である。
As is apparent from FIGS. 33 and 34, FIG.
3. The y-coordinates of the points Pc and Pd in each case of FIG. 34 are the same as the y-coordinates of the arrangement start points Pa and Pb, respectively.
That is, the point Pc, the y-coordinate y c of Pd, y d is calculated by the following equation. y c = y a y d = y b ......... (25-11) However, y a, y b is a point Pa, the y-coordinate of Pb as described above.

【0179】次に、点Pc、Pdの各x座標xc 、xd
の求め方について、図33、図34の各場合に分けて説
明する。
Next, the x-coordinates x c , x d of the points Pc, Pd
33 will be described separately for each of the cases of FIG. 33 and FIG.

【0180】まず、図33(a)、(b)、(c)、
(d)では、点Pc、Pdのx座標は、それぞれ配置開
始点Pa、Pbのx座標に文字幅Xまたは文字高さY
(X=Y)を加算したものである。従って、この場合の
点Pc、Pdの各x座標xc 、xd は、以下の式で求め
られる。 xc =xd =xa +L ……… (25-12) ただし、xa は、上記したように点PaとPbのx座標
であり、Lは、ステップS22で求めたフォントデータ
の寸法である。
First, FIGS. 33 (a), (b), (c),
In (d), the x-coordinates of the points Pc and Pd are represented by the character width X or the character height Y at the x-coordinates of the arrangement start points Pa and Pb, respectively.
(X = Y). Therefore, the x-coordinates x c , x d of the points Pc, Pd in this case are obtained by the following equations. x c = x d = x a + L (25-12) where x a is the x coordinate of the points Pa and Pb, and L is the size of the font data obtained in step S22. is there.

【0181】また、図34(a)、(b)、(c)、
(d)では、点Pc、Pdのx座標は、それぞれ配置開
始点Pa、Pbのx座標から文字幅Xまたは文字高さY
(X=Y)を減算したものである。従って、この場合の
点Pc、Pdの各x座標xc 、xd は、上式(25-12) の
式内の「+」を「−」に代えた式で求めることができ
る。
FIGS. 34 (a), (b), (c),
In (d), the x-coordinates of the points Pc and Pd are obtained by calculating the character width X or the character height Y from the x-coordinates of the arrangement start points Pa and Pb, respectively.
(X = Y) is subtracted. Accordingly, the x-coordinates x c and x d of the points Pc and Pd in this case can be obtained by the equations of the above equation (25-12) in which “+” is replaced with “−”.

【0182】次に、図33(e)の場合、点Pc、Pd
のx座標は、それぞれ配置開始点Pa、Pbのx座標
に、長体率lp分圧縮した文字幅X’を加算したもので
ある。従って、この場合、点Pc、Pdの各x座標
c 、xd は、以下の式で求められる。 xc =xd =xa +(L×(100−lp)/100)) ……… (25-13)
Next, in the case of FIG. 33 (e), the points Pc, Pd
Are obtained by adding the character width X ′ compressed by the long body ratio lp to the x coordinates of the arrangement start points Pa and Pb, respectively. Therefore, in this case, the x-coordinates x c and x d of the points Pc and Pd are obtained by the following equations. x c = x d = x a + (L × (100−lp) / 100)) (25-13)

【0183】また、図34(e)では、点Pc、Pdの
x座標は、それぞれ配置開始点Pa、Pbのx座標か
ら、長体率lp分圧縮した文字幅X’を減算したもので
ある。従って、この場合の点Pc、Pdの各x座標
c 、xd は、上式(25-13) の式内の「+」を「−」に
代えた式で求めることができる。
In FIG. 34 (e), the x-coordinates of the points Pc and Pd are obtained by subtracting the character width X ′ compressed by the long body ratio lp from the x-coordinates of the arrangement start points Pa and Pb, respectively. . Accordingly, the x-coordinates x c and x d of the points Pc and Pd in this case can be obtained by the equations of the above equation (25-13) in which “+” is replaced with “−”.

【0184】次に、図33(f)の場合、点Pc、Pd
のx座標は、それぞれ配置開始点Pa、Pbのx座標
に、平体率hp分圧縮した文字高さY’を加算したもの
である。従って、この場合、点Pc、Pdの各x座標x
c 、xd は、以下の式で求められる。 xc =xd =xa +(L×(100−hp)/100)) ……… (25-14)
Next, in the case of FIG. 33 (f), the points Pc, Pd
Are obtained by adding the character height Y ′ compressed by the flatness ratio hp to the x-coordinates of the arrangement start points Pa and Pb, respectively. Therefore, in this case, each x coordinate x of the points Pc and Pd
c and xd are obtained by the following equations. x c = x d = x a + (L × (100−hp) / 100)) (25-14)

【0185】また、図34(f)では、点Pc、Pdの
x座標は、それぞれ配置開始点Pa、Pbのx座標か
ら、平体率hp分圧縮した文字高さY’を減算したもの
である。従って、この場合の点Pc、Pdの各x座標x
c 、xd は、上式(25-14) の式内の「+」を「−」に代
えた式で求めることができる。
In FIG. 34 (f), the x-coordinates of the points Pc and Pd are obtained by subtracting the character height Y 'compressed by the flatness ratio hp from the x-coordinates of the arrangement start points Pa and Pb, respectively. is there. Therefore, each x coordinate x of the points Pc and Pd in this case
c and x d can be obtained by the equation of the above equation (25-14) in which “+” is replaced with “−”.

【0186】次に、ステップS26では、文字配置処理
部1が、点PS1、PS2、Peの位置関係や組方向に基づ
き、点Pa、Pb、Pc、Pdの中から、フォントデー
タの配置位置(仮想ボディの基準点)を決める。
Next, in step S26, the character arrangement processing unit 1 arranges the font data from among the points Pa, Pb, Pc, and Pd based on the positional relationship between the points P S1 , P S2 , and Pe and the set direction. Determine the position (reference point of the virtual body).

【0187】これは、図33、34から明らかなよう
に、図33(a)、(c)、(e)では、点Pbが仮想
ボディIBの左下となり、図33(b)、(d)、
(f)、図34(a)、(c)、(e)では、点Paが
仮想ボディIBの左下となり、図34(b)、(d)、
(f)では、点Pcが仮想ボディIBの左下となる。
As is clear from FIGS. 33 and 34, in FIGS. 33 (a), (c) and (e), the point Pb is located at the lower left of the virtual body IB, and FIGS. 33 (b) and (d) ,
In FIG. 34 (f), FIGS. 34 (a), (c), and (e), the point Pa is located at the lower left of the virtual body IB, and FIGS.
In (f), the point Pc is at the lower left of the virtual body IB.

【0188】従って、(PS1、PS2のx座標)<(Pe
のx座標)で横組みのときには、配置位置は点Pbの座
標となり、また、(PS1、PS2のx座標)<(Peのx
座標)で縦組みのときと(PS1、PS2のx座標)>(P
eのx座標)で横組みのときには、配置位置は点Paの
座標となり、さらに、(PS1、PS2のx座標)>(Pe
のx座標)で縦組みのときには、配置位置は点Pcの座
標となる。
Therefore, (x coordinate of P S1 and P S2 ) <(Pe
In the case of horizontal composition with (x coordinate of), the arrangement position is the coordinate of point Pb, and (x coordinate of P S1 , P S2 ) <(x of Pe)
Coordinate) and (x coordinate of P S1 , P S2 )> (P
In the case of horizontal composition with (x coordinate of e), the arrangement position is the coordinate of the point Pa, and (x coordinate of P S1 , P S2 )> (Pe
(X coordinate), the arrangement position is the coordinate of the point Pc.

【0189】次に、ステップS28では、配置開始点特
定部5が、点PS1、点PS2、点Pe、点Pa、点Pb、
点Pc、点Pdに基づき、現在の処理対象の文字に対応
するフォントデータを出力時の状態に仮想的に配置した
ときの、点PS1と点Peとを結ぶ線分および点PS2と点
Peとを結ぶ線分と、現在の処理対象文字に対応するフ
ォントデータの仮想ボディとの交点を求めるが、この処
理パターン2の場合の交点の求め方を以下に説明する。
[0189] Next, in step S28, the arrangement start point specifying unit 5 determines whether the points P S1 , P S2 , Point Pe, Point Pa, Point Pb,
Based on the points Pc and Pd, when the font data corresponding to the current character to be processed is virtually arranged in a state at the time of output, a line segment connecting the points P S1 and Pe and a point P S2 and a point The intersection between the line connecting Pe and the virtual body of the font data corresponding to the current character to be processed is determined. A method of determining the intersection in the case of the processing pattern 2 will be described below.

【0190】この場合も、点PS1と点Peとを結ぶ線分
および点PS2と点Peとを結ぶ線分と、現在の処理対象
文字に対応するフォントデータの仮想ボディIBとの交
点が存在するのは、上記処理パターン1と同様に、以下
の(1) 〜(4) の場合のみである。
Also in this case, the intersection between the line segment connecting point P S1 and point Pe and the line segment connecting point P S2 and point Pe and the virtual body IB of the font data corresponding to the current character to be processed is As in the case of the processing pattern 1, there exists only the following cases (1) to (4).

【0191】(1) 点PS1と点Peとを結ぶ線分と、点P
cと点Pdとを結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点
(1) A line segment connecting the point P S1 and the point Pe and the point P
(2) Intersection of line segment connecting point P S1 and point Pe, and intersection of line segment connecting point Pb and point Pd (3) Point P S2 and point Pe (4) The intersection of the line connecting point P S2 and point Pe, and the line connecting point Pc and point Pd

【0192】また、点PS1と点Peとを結ぶ線分を含む
1次関数を〔y=a11・x+b11〕とすると、a11、b
11は、点PS1と点Peの座標(xS1,yS1)、(xe
e)より特定され、点PS2と点Peとを結ぶ線分を含
む1次関数を〔y=a12・x+b12〕とすると、a12
12は、点PS2と点Peの座標(xS2,yS2)、
(x e ,ye )より特定される。
Further, the point PS1And a line segment connecting the point Pe
Let the linear function be [y = a11・ X + b11], A11, B
11Is the point PS1And the coordinates of the point Pe (xS1, YS1), (Xe,
ye) From the point PS2Including the line segment connecting
The linear function is represented by [y = a12・ X + b12], A12,
b12Is the point PS2And the coordinates of the point Pe (xS2, YS2),
(X e, Ye).

【0193】また、点Pa(xa ,ya )、点Pb(x
a ,yb )、点Pc(xc ,ya )、点Pd(xc ,y
b )については、この処理パターン2の場合、点Paと
点Pcのy座標、点Pbと点Pdのy座標はそれぞれ同
じであり、点Paと点Pbのx座標、点Pcと点Pdの
x座標はそれぞれ同じである。
[0193] In addition, the point Pa (x a, y a) , point Pb (x
a, y b), the point Pc (x c, y a) , the point Pd (x c, y
Regarding b ), in the case of the processing pattern 2, the y-coordinate of the point Pa and the point Pc, the y-coordinate of the point Pb and the point Pd are the same, and the x-coordinate of the point Pa and the point Pb, and the The x coordinates are the same.

【0194】従って、上記点PS1と点Peとを結ぶ線分
を含む1次関数と、点PS2と点Peとを結ぶ線分を含む
1次関数と、点Pa、点Pb、点Pc、点Pdの関係を
用いて、上記(1) 〜(4) を調べることができる。ただ
し、点PS1と点Peとのy座標が同じ(yS1=ye )で
ある場合は、y=yS1となり、この場合は、点PS1と点
Peとを結ぶ線分が、点Paと点Pcとを結ぶ線分に一
致し、フォントデータの仮想ボディとの交点は点Pcと
なり、また、点PS2と点Peとのy座標が同じ(yS2
e )である場合は、y=yS2となり、この場合は、点
S2と点Peとを結ぶ線分が、点Pbと点Pdとを結ぶ
線分に一致し、フォントデータの仮想ボディとの交点は
点Pdとなる。従って、点PS1と点Peとのy座標が同
じである場合には、交点を点Pcとして上記(1) 、(2)
を省略し、点PS2と点Peとのy座標が同じである場合
には、交点を点Pdとして上記(3) 、(4) を省略する。
Therefore, a linear function including a line segment connecting the point P S1 and the point Pe, a linear function including a line segment connecting the point P S2 and the point Pe, a point Pa, a point Pb, and a point Pc The above (1) to (4) can be examined using the relationship between the points Pd. However, if the y coordinate of the point P S1 and the point Pe is the same (y S1 = y e ), y = y S1 . In this case, the line segment connecting the point P S1 and the point Pe is the point It coincides with the line segment connecting Pa and point Pc, the intersection of the font data with the virtual body is point Pc, and the y coordinate of point P S2 and point Pe is the same (y S2 =
y e ), y = y S2 . In this case, the line segment connecting the point P S2 and the point Pe matches the line segment connecting the point Pb and the point Pd, and the virtual body of the font data. Is the point Pd. Therefore, if the y coordinate of the point P S1 is the same as the y coordinate of the point Pe, the intersection is defined as the point Pc as described in (1) and (2) above.
Is omitted, and when the y coordinate of the point PS2 and the point Pe is the same, the intersection (3) and (4) are omitted with the intersection as the point Pd.

【0195】まず、(1) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a11・x+b11〕に、
点Pc、点Pdのx座標(xc )を代入したときのy座
標(y=a11・xc +b11)が、図35(a)、(b)
に示すように、点Pcのy座標(ya )と点Pdのy座
標(yb )の間の範囲内に収まっていれば、すなわち、
b ≦y(=a11・xc +b11)<ya のとき、点PS1
と点Peとを結ぶ線分CL1と、点Pcと点Pdを結ぶ
線分との交点CP1 が存在することになる。なお、y
(=a11・xc +b11)=ya は、点PS1と点Peとの
x座標が同じである場合であり、このときはこの(1) は
省略しているので判定条件から外している。また、この
(1) で交点CP1 が存在する場合の交点CP1 の座標は
(xc ,y(=a11・xc +b11))である。
First, in (1), a linear function [y = a 11 · x + b 11 ] including a line segment CL1 connecting the point P S1 and the point Pe is given by
Point Pc, the y-coordinate of when substituting the x coordinate of the point Pd (x c) (y = a 11 · x c + b 11), FIG. 35 (a), (b)
As shown in, if within the range between the y-coordinate (y a) and the y coordinate of the point Pd of the point Pc (y b), i.e.,
When y b ≦ y (= a 11 · x c + b 11) <y a, the point P S1
A line segment CL1 connecting the preparative point Pe, so that the intersection point CP 1 of a line segment connecting the point Pc and the point Pd are present. Note that y
(= A 11 · x c + b 11) = y a is the case the x coordinate of a point P S1 and the point Pe is the same, this is the case (1) is removed from the determination condition so is omitted ing. Also this
(1) the coordinates of the intersection point CP 1 when intersections CP 1 is present in an (x c, y (= a 11 · x c + b 11)).

【0196】次に、(2) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a11・x+b11〕に、
点Pb、点Pdのy座標(yb )を代入したときのx座
標(x=(yb −b11)/a11)が、点Pbのx座標
(xa )と点Pdのx座標(xc )の間の範囲内に収ま
っていれば、すなわち、(点PS1、点PS2のx座標)<
(点Peのx座標)の場合、図35(a)に示すよう
に、xa <x(=(yb −b11)/a11)≦xc のと
き、また、(点PS1、点PS2のx座標)>(点Peのx
座標)の場合、図35(b)に示すように、xc ≦x
(=(yb −b11)/a11)<ya のとき、点PS1と点
Peとを結ぶ線分CL1と、点Pbと点Pdを結ぶ線分
との交点CP1 が存在することになる。なお、点PS1
点PS2、Peのx座標が同じ場合はない(図3のステッ
プS11参照)ので、x(=(yb −b11)/a11)=
a の場合はない。また、この(2) で交点CP1 が存在
する場合の交点CP1 の座標は(x(=(yb −b11
/a11),yb )である。
Next, in (2), a linear function [y = a 11 · x + b 11 ] including a line segment CL1 connecting the point P S1 and the point Pe is given by
X coordinate (x = (y b -b 11 ) / a 11) is, x-coordinate of the point Pb (x a) and x-coordinate of the point Pd when substituting the point Pb, y coordinate of the point Pd (y b) If it falls within the range between (x c ), that is, (x coordinate of point P S1 , point P S2 ) <
In the case of (x coordinate of the point Pe), as shown in FIG. 35A, when x a <x (= (y b −b 11 ) / a 11 ) ≦ x c , and (point P S1 , X coordinate of point PS2 )> (x of point Pe
If the coordinates), as shown in FIG. 35 (b), x c ≦ x
(= (Y b -b 11) / a 11) when <y a, the line segment CL1 linking the point P S1 and the point Pe, there are intersections CP 1 and a line segment connecting the point Pb and a point Pd Will be. Note that the point P S1 ,
Since there is no case where the x coordinates of the points P S2 and Pe are the same (see step S11 in FIG. 3), x (= (y b −b 11 ) / a 11 ) =
not in the case of x a. Moreover, this coordinate intersections CP 1 when intersections CP 1 (2) is present (x (= (y b -b 11)
/ A 11 ), y b ).

【0197】次に、(3) は、点PS2と点Peとを結ぶ線
分CL2を含む1次関数〔y=a12・x+b12〕に、点
Pa、点Pcのy座標(ya )を代入したときのx座標
(x=(ya −b12)/a12)が、点Paのx座標(x
a )と点Pcのx座標(xc)の間の範囲内に収まって
いれば、すなわち、(点PS1、点PS2のy座標)<(点
Peのy座標)の場合、図35(c)に示すように、x
a <x(=(ya −b12)/a12)≦yc のとき、ま
た、(点PS1、点PS2のy座標)>(点Peのy座標)
の場合、図35(d)に示すように、xc ≦x(=(y
a −b12)/a12)<xa のとき、点PS2と点Peとを
結ぶ線分CL2と、点Pbと点Pdを結ぶ線分との交点
CP2 が存在することになる。なお、この(3) で交点C
2 が存在する場合の交点CP2 の座標は(x(=(y
a −b12)/a12),ya )である。
Next, (3) shows a linear function [y = a 12 · x + b 12 ] including a line segment CL 2 connecting the point P S2 and the point Pe to the y coordinate (y a ) of the point Pa and the point Pc. ) x coordinate when substituting (x = (y a -b 12 ) / a 12) is, x-coordinate of the point Pa (x
a ) and the x coordinate (x c ) of the point Pc, that is, if (y coordinate of the point P S1 , y of the point P S2 ) <(y coordinate of the point Pe), FIG. As shown in (c), x
a <x (= (y a -b 12) / a 12) When ≦ y c, also (point P S1, y coordinates of the point P S2)> (y-coordinate of the point Pe)
In the case of, as shown in FIG. 35D, x c ≦ x (= (y
When a− b 12 ) / a 12 ) <x a , there exists an intersection CP 2 between the line segment CL 2 connecting the point P S2 and the point Pe and the line segment connecting the point Pb and the point Pd. In this (3), the intersection C
When P 2 exists, the coordinates of the intersection CP 2 are (x (= (y
a -b 12) / a 12) , a y a).

【0198】次に、(4) は、点PS2と点Peとを結ぶ線
分を含む1次関数〔y=a12・x+b12〕に、点Pc、
点Pdのx座標(xc )を代入したときのy座標(y=
12・xc +b12)が、点Pcのy座標(ya )と点P
dのx座標(yb )の間の範囲内に収まっていれば、す
なわち、図35(c)、(d)に示すように、yb <y
(=a12・xc +b12)≦ya のとき、点PS2と点Pe
とを結ぶ線分CL2と、点Pcと点Pdを結ぶ線分との
交点CP2 が存在することになる。なお、この(4) で交
点CP2 が存在する場合の交点CP2 の座標は(xc
y(=a12・xc +b12))である。
Next, (4) represents a linear function [y = a 12 · x + b 12 ] including a line segment connecting the point P S2 and the point Pe to the points Pc,
The y-coordinate (y = y = y) when the x-coordinate ( xc ) of the point Pd is substituted
a 12 · x c + b 12 ) is, y coordinates of the point Pc (y a) and the point P
If d is within the range between the x coordinates (y b ), that is, as shown in FIGS. 35 (c) and (d), y b <y
When (= a 12 · x c + b 12) ≦ y a, the point P S2 and the point Pe
A line segment CL2 connecting bets, there will be an intersection CP 2 and a line segment connecting the point Pc and the point Pd. Note that the coordinates of the intersection point CP 2 in the case where there are intersections CP 2 in the (4) (x c,
is y (= a 12 · x c + b 12)).

【0199】次に、ステップS31では、配置開始点特
定部5が、上記ステップS28で求めた交点に基づき、
現在の処理対象の次の文字に対応するフォントデータの
配置開始点Pa、Pbを求めるが、この処理パターン2
では、点PS1と点PS1とを結ぶ線分がy軸に平行(ある
いはy軸上)であるので、求めた交点CP1 または/お
よびCP2 を通過し、点PS1と点PS2とを結ぶ線分に平
行な線と、点PS1と点Peとを結ぶ線分、および点PS2
と点Peとを結ぶ線分との各交点は、交点CP1 、CP
2 のx座標と同じである。
Next, in step S31, the arrangement start point specifying unit 5 calculates the starting point based on the intersection obtained in step S28.
The layout start points Pa and Pb of the font data corresponding to the next character of the current processing target are obtained.
Since the line segment connecting the point P S1 and the point P S1 is parallel to the y-axis (or on the y-axis), it passes through the determined intersection point CP 1 and / or CP 2 , and the point P S1 and the point P S2 , A line connecting the point P S1 and the point Pe, and a point P S2.
Intersections of the line segment connecting the point Pe with the intersections CP 1 , CP
Same as the x coordinate of 2 .

【0200】従って、例えば、交点CP1 を得ている場
合には、交点CP1 を通過する点PS1と点PS2とを結ぶ
線分に平行な線と、点PS2と点Peとを結ぶ線分との交
点のy座標は、交点CP1 のx座標(xcp1 とする)
を、点PS2と点Peとを結ぶ線分を含む1次関数〔y=
12・x+b12〕に代入してy座標(y=a12・xcp1
+b12)を算出すれば求められる。従って、この場合、
Paの座標はCP1 の座標であり、Pbの座標は、(x
cp1 ,a12・xcp1 +b12)である。また、交点CP2
を得ている場合には、Pbの座標がCP2 の座標であ
り、また、Paのx座標はCP2 のx座標と同じであ
り、さらに、Paのy座標は、交点CP2 のx座標を、
点PS1と点Peとを結ぶ線分を含む1次関数に代入して
求めることができる。さらに、交点CP1 とCP2 とが
得られている場合には、交点CP1 とCP2 の各座標が
そのままPa、Pbの各座標となる。
Therefore, for example, when the intersection CP 1 is obtained, a line parallel to the line connecting the points P S1 and P S2 passing through the intersection CP 1 and the point P S2 and the point Pe are determined. connecting the y coordinate of the intersection point of the line segment, (the x cp1) x-coordinate of the intersection point CP 1
Is a linear function [y = including a line segment connecting the point P S2 and the point Pe.
a 12 · x + b 12 ] and y coordinate (y = a 12 · x cp1
+ B 12 ). Therefore, in this case,
Pa's coordinates are the coordinates of CP 1, the coordinates of Pb is, (x
cp1, it is a 12 · x cp1 + b 12 ). Also, the intersection CP 2
, The coordinate of Pb is the coordinate of CP 2 , the x coordinate of Pa is the same as the x coordinate of CP 2 , and the y coordinate of Pa is the x coordinate of intersection CP 2 To
It can be obtained by substituting into a linear function including a line segment connecting the point P S1 and the point Pe. Furthermore, in the case where the intersection CP 1 and CP 2 are obtained, each coordinate of the intersection point CP 1 and CP 2 becomes as Pa, and the coordinates of Pb.

【0201】上述のようにして、この処理パターン2の
場合の各フォントデータの寸法、配置位置、色濃度(処
理パターン1の求め方と同じ)と、回転角度θ、長平体
率等に基づき、出力制御部12が各フォントデータを出
力することにより、各フォントデータは、図32に示す
ように、点PS1、PS2から点Peに収束するように遠近
配置される。
As described above, based on the size, arrangement position, color density (same as the method of obtaining the processing pattern 1) of each font data in the case of the processing pattern 2, the rotation angle θ, the long flat body ratio, and the like, As the output control unit 12 outputs each font data, each font data is arranged in a distance from the points P S1 and P S2 to the point Pe as shown in FIG.

【0202】次に、上述した第一実施例装置において、
例えば、図36に示すように、最初の文字に対応するフ
ォントデータの配置開始点PS1とPS2とを結ぶ線分が、
出力領域のx軸(y軸)に対して傾けて設定された場合
の、各フォントデータの寸法、配置位置等の求め方等に
ついて説明する。なお、この処理を『処理パターン3』
という。
Next, in the above-described first embodiment,
For example, as shown in FIG. 36, a line segment connecting the arrangement start points P S1 and P S2 of the font data corresponding to the first character is
A description will be given of a method of obtaining the size, arrangement position, and the like of each font data when the output area is set to be inclined with respect to the x-axis (y-axis). This processing is referred to as “processing pattern 3”.
That.

【0203】まず、図2のステップS1でテキストデー
タ(”大バーゲン”)と、ステップS2(図3のフロー
チャート)で各組版指示が設定される。設定された点P
S1、点PS2、点Peの各座標を(xS1,yS1)、
(xS2,yS2)、(xe ,ye )(図36参照)とす
る。この場合の点PS1、点PS2、点Peの設定の仕方と
組方向指示に応じた出力時の各フォントデータの配列の
パターンを図37、図38に示す。図37は、縦組み時
のフォントデータの配列状態を示し、図38は、横組み
時のフォントデータの配列状態を示す。図中の符号P1
〜P5 は、各フォントデータの出力時の配置位置(フォ
ントデータの仮想ボディの左下の基準点)を示す。
First, text data ("large bargain") is set in step S1 of FIG. 2, and each typesetting instruction is set in step S2 (flow chart of FIG. 3). Set point P
The coordinates of S1 , point Ps2 , and point Pe are ( xS1 , yS1 ),
(X S2, y S2), and (x e, y e) (see FIG. 36). FIGS. 37 and 38 show how to set the points P S1 , P S2 , and Pe in this case and the arrangement pattern of each font data at the time of output according to the set direction instruction. FIG. 37 shows an arrangement state of font data in a vertical composition, and FIG. 38 shows an arrangement state of font data in a horizontal composition. Symbol P 1 in the figure
To P 5 shows the arrangement position at the output of each font data (bottom left of the reference point of the virtual body of the font data).

【0204】また、図37、図38の(a)〜(d)の
各配列パターンは、点PS1、点PS2、点Peの設定の仕
方によるフォントデータの配列状態の違いを示してい
る。
Each of the arrangement patterns (a) to (d) in FIGS. 37 and 38 shows a difference in the arrangement state of the font data depending on how the points P S1 , P S2 , and Pe are set. .

【0205】図37(a)は、点PS1、点PS2を通る直
線を挟んで、点Peが図の左上方向にある場合である。
例えば、点PaS1、点PS2を通る直線(1次関数)の傾
きが正で、その1次関数に、点Peのy座標を代入した
場合のx座標が、点Peのx座標よりも大きい場合であ
る。なお、点PS1、点PS2を通る1次関数は、点PS1
点PS2の座標より特定することができる。この図37
(a)のような配列パターンを以下では、『配列パター
ンTa』という。
FIG. 37A shows a case where the point Pe is located in the upper left direction of the figure with a straight line passing through the points P S1 and P S2 interposed therebetween.
For example, the slope of a straight line (linear function) passing through the points Pa S1 and P S2 is positive, and the x coordinate when the y coordinate of the point Pe is substituted into the linear function is larger than the x coordinate of the point Pe. This is the case. Note that a linear function passing through the points P S1 and P S2 is represented by points P S1 ,
It can be specified from the coordinates of the point PS2 . FIG. 37
The array pattern as shown in (a) is hereinafter referred to as “array pattern Ta”.

【0206】図37(b)は、点PS1、点PS2を通る直
線を挟んで、点Peが図の右上方向にある場合、例え
ば、点PS1、点PS2を通る1次関数の傾きが負で、その
1次関数に、点Peのy座標を代入した場合のx座標
が、点Peのx座標よりも小さい場合である。なお、図
37(a)における点PS1、点PS2を通る1次関数と、
この図37(b)における点PS1、点PS2を通る1次関
数とは、傾きの符号が逆になる。この図37(b)のよ
うな配列パターンを以下では、『配列パターンTb』と
いう。
FIG. 37 (b) shows a case where the point Pe is located in the upper right direction of the figure with a straight line passing through the points P S1 and P S2 interposed therebetween, for example, a linear function of the linear function passing through the points P S1 and P S2 . This is a case where the slope is negative and the x-coordinate when the y-coordinate of the point Pe is substituted into the linear function is smaller than the x-coordinate of the point Pe. Note that a linear function passing through the points P S1 and P S2 in FIG.
The sign of the slope is opposite to that of the linear function passing through the points P S1 and P S2 in FIG. The array pattern as shown in FIG. 37B is hereinafter referred to as “array pattern Tb”.

【0207】図37(c)は、図37(b)において求
まる点PS1、点PS2を通る1次関数(傾きが負)に、点
Peのy座標を代入した場合のx座標が、点Peのx座
標よりも大きい場合である。この図37(c)のような
配列パターンを以下では、『配列パターンTc』とい
う。
FIG. 37 (c) shows the x coordinate obtained by substituting the y coordinate of the point Pe into a linear function (having a negative slope) passing through the points P S1 and P S2 obtained in FIG. 37 (b). This is a case where the point Pe is larger than the x coordinate. The array pattern shown in FIG. 37C is hereinafter referred to as “array pattern Tc”.

【0208】図37(d)は、図37(a)において求
まる点PS1、点PS2を通る1次関数(傾きが正)に、点
Peのy座標を代入した場合のx座標が、点Peのx座
標よりも小さい場合である。この図37(d)のような
配列パターンを以下では、『配列パターンTd』とい
う。
FIG. 37D shows that the x coordinate obtained by substituting the y coordinate of the point Pe into a linear function (positive slope) passing through the points P S1 and P S2 obtained in FIG. This is a case where the point Pe is smaller than the x coordinate. The array pattern as shown in FIG. 37D is hereinafter referred to as “array pattern Td”.

【0209】図38(a)〜(d)は、図37(a)〜
(d)にそれぞれ対応するもので、ある。図37(a)
〜(d)のような配列パターンを以下では、それぞれ
『配列パターンYa』、『配列パターンYb』、『配列
パターンYc』、『配列パターンYd』という。
FIGS. 38 (a) to 38 (d) show FIGS.
(D) respectively. FIG. 37 (a)
Hereinafter, the arrangement patterns such as (d) are referred to as “array pattern Ya”, “array pattern Yb”, “array pattern Yc”, and “array pattern Yd”, respectively.

【0210】次に、図2のステップS3の前処理で、上
記処理パターン1と異なるのは、出力時のフォントデー
タの回転角度θである。この回転角度θを上記各配列パ
ターンに従って以下に説明する。
Next, in the pre-processing of step S3 in FIG. 2, what differs from the above processing pattern 1 is the rotation angle θ of the font data at the time of output. The rotation angle θ will be described below according to each of the arrangement patterns.

【0211】配列パターンTa(図37(a))の場合
の回転角度θは、図39(a)に示すように、点PS1
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。この角度θ1 は、図
39(a)の点PS1、点PS2、点Pipを頂点とする直角
三角形に基づき、tanθ1 =(|yS2−yS1|)/
(|xS2−xS1|)から得られる。なお、この場合の回
転方向は、反時計回りであるので、回転角度θは上記求
めたθ1 に「+」を付けたものとなる。
The rotation angle θ in the case of the array pattern Ta (FIG. 37 (a)) is, as shown in FIG. 39 (a), a straight line passing through the point P S1 and parallel to the x-axis and a point P S1. , And an angle θ 1 formed with a straight line passing through the point P S2 . The angle theta 1, based on the right-angled triangle having a point P S1 of FIG. 39 (a), the point P S2, the point P ip vertices, tanθ 1 = (| y S2 -y S1 |) /
(| X S2 −x S1 |). In this case, since the rotation direction is counterclockwise, the rotation angle θ is obtained by adding “+” to θ 1 obtained above.

【0212】配列パターンTb(図37(b))の場合
の回転角度θは、図39(b)に示すように、点PS1
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。この角度θ1 、及び
以下の各場合のθ1 は上記配列パターンTaと同様の方
法で求められる。なお、この場合の回転方向は、時計回
りであるので、回転角度θは上記求めたθ1 に「−」を
付けたものとなる。
The rotation angle θ in the case of the array pattern Tb (FIG. 37B) is, as shown in FIG. 39B, a straight line passing through the point P S1 and parallel to the x-axis, and a point P S1. , And an angle θ 1 formed with a straight line passing through the point P S2 . The angle theta 1, and theta 1 of the following cases is determined by the arrangement pattern Ta the same way. In this case, since the rotation direction is clockwise, the rotation angle θ is obtained by adding “−” to θ 1 obtained above.

【0213】配列パターンTc(図37(c))の場合
の回転角度θは、図39(c)に示すように、点PS1
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。なお、この場合の回
転方向は、時計回りであるので、回転角度θは上記求め
たθ1 に「−」を付けたものとなる。
In the case of the arrangement pattern Tc (FIG. 37 (c)), the rotation angle θ is, as shown in FIG. 39 (c), a straight line passing through the point P S1 and parallel to the x-axis and a point P S1. , And an angle θ 1 formed with a straight line passing through the point P S2 . In this case, since the rotation direction is clockwise, the rotation angle θ is obtained by adding “−” to θ 1 obtained above.

【0214】配列パターンTd(図37(d))の場合
の回転角度θは、図39(d)に示すように、点PS2
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に相当する。なお、この場合の回
転方向は、反時計回りであるので、回転角度θは上記求
めたθ1 に「+」を付けたものとなる。
In the case of the arrangement pattern Td (FIG. 37D), the rotation angle θ is, as shown in FIG. 39D, a straight line passing through the point P S2 and parallel to the x-axis, and a point P S1. , And an angle θ 1 formed with a straight line passing through the point P S2 . In this case, since the rotation direction is counterclockwise, the rotation angle θ is obtained by adding “+” to θ 1 obtained above.

【0215】配列パターンYa(図38(a))の場合
の回転角度θは、図39(e)に示すように、点PS2
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に90°を加算したものである。
なお、この場合の回転方向は、反時計回りであるので、
回転角度θは上記求めた(90+θ1 )に「+」を付け
たものとなる。
In the case of the arrangement pattern Ya (FIG. 38A), the rotation angle θ is, as shown in FIG. 39E, a straight line passing through the point P S2 and parallel to the x-axis and a point P S1. it is obtained by adding 90 ° to the angle theta 1 between a straight line passing through the point P S2.
In this case, since the rotation direction is counterclockwise,
The rotation angle θ is obtained by adding “+” to (90 + θ 1 ) obtained above.

【0216】配列パターンYb(図38(b))の場合
の回転角度θは、図39(f)に示すように、点PS2
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 を90°から減算したものであ
る。なお、この場合の回転方向は、反時計回りであるの
で、回転角度θは上記求めた(90−θ1 )に「+」を
付けたものとなる。
In the case of the arrangement pattern Yb (FIG. 38B), the rotation angle θ is, as shown in FIG. 39F, a straight line passing through the point P S2 and parallel to the x-axis and a point P S1. it is obtained by subtracting the angle theta 1 between a straight line passing through the point P S2 from 90 °. In this case, since the rotation direction is counterclockwise, the rotation angle θ is obtained by adding “+” to (90−θ 1 ) obtained above.

【0217】配列パターンYc(図38(c))の場合
の回転角度θは、図39(g)に示すように、点PS1
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 に90°を加算したものである。
なお、この場合の回転方向は、時計回りであるので、回
転角度θは上記求めた(90+θ1 )に「−」を付けた
ものとなる。
In the case of the arrangement pattern Yc (FIG. 38 (c)), the rotation angle θ is, as shown in FIG. 39 (g), a straight line passing through the point P S1 and parallel to the x-axis and a point P S1. it is obtained by adding 90 ° to the angle theta 1 between a straight line passing through the point P S2.
In this case, since the rotation direction is clockwise, the rotation angle θ is obtained by adding “−” to (90 + θ 1 ) obtained above.

【0218】配列パターンYd(図38(d))の場合
の回転角度θは、図39(h)に示すように、点PS1
通り、かつ、x軸に平行な直線と、点PS1、点PS2を通
る直線とのなす角θ1 を90°から減算したものであ
る。なお、この場合の回転方向は、時計回りであるの
で、回転角度θは上記求めた(90−θ1 )に「−」を
付けたものとなる。
In the case of the arrangement pattern Yd (FIG. 38 (d)), the rotation angle θ is, as shown in FIG. 39 (h), a straight line passing through the point P S1 and parallel to the x-axis and a point P S1. it is obtained by subtracting the angle theta 1 between a straight line passing through the point P S2 from 90 °. In this case, since the rotation direction is clockwise, the rotation angle θ is obtained by adding “−” to (90−θ 1 ) obtained above.

【0219】次に、図2のステップS4の各フォントデ
ータの寸法、配置位置、色濃度を求める処理を実行す
る。ここで、上述の処理パターン1と異なるのは、ステ
ップS22、S25、S26、S28、S31(図4参
照)である。以下に、これらの処理について説明する。
Next, the processing for obtaining the size, arrangement position, and color density of each font data in step S4 in FIG. 2 is executed. Here, steps different from the above-described processing pattern 1 are steps S22, S25, S26, S28, and S31 (see FIG. 4). Hereinafter, these processes will be described.

【0220】まず、ステップS22のフォントデータの
寸法の求め方について説明する。なお、この処理パター
ン3では、与えられる配置開始点Pa、Pbのx座標、
y座標はともに異なるので、ここでは、与えられる配置
開始点Pa、Pbの座標を(xa ,ya )、(xb ,y
b )として寸法の求め方を説明する。
First, the method of determining the size of the font data in step S22 will be described. In this processing pattern 3, the x coordinates of the given arrangement start points Pa and Pb,
Since y coordinates are both different, here, the arrangement start point given Pa, the coordinates of Pb (x a, y a) , (x b, y
b ) How to determine the dimensions will be explained.

【0221】ここで、各配列パターンTa、Tb、T
c、Td、Ya、Yb、Yc、Ydについて、長平体率
が設定されていない場合、平体率が設定されている場
合、長体率が設定されている場合の点Pa、点Pb等の
位置を図40ないし図47に示す。図40は配列パター
ンTaの、図41は配列パターンTbの、図42は配列
パターンTcの、図43は配列パターンTdの長平体率
の設定状態に応じた点Pa、点Pb等の位置をそれぞれ
示す。また、図44は配列パターンYaの、図45は配
列パターンYb、図46は配列パターンYcの、図47
は配列パターンYbの長平体率の設定状態に応じた点P
a、点Pb等の位置をそれぞれ示す。
Here, each array pattern Ta, Tb, T
For c, Td, Ya, Yb, Yc, and Yd, when the long flat body ratio is not set, when the flat body ratio is set, when the long body ratio is set, the points Pa and Pb are set. The positions are shown in FIGS. 40 shows the arrangement pattern Ta, FIG. 41 shows the arrangement pattern Tb, FIG. 42 shows the arrangement pattern Tc, and FIG. 43 shows the positions of the points Pa, Pb, etc. according to the setting state of the oblong ratio of the arrangement pattern Td. Show. FIG. 44 shows the arrangement pattern Ya, FIG. 45 shows the arrangement pattern Yb, and FIG. 46 shows the arrangement pattern Yc.
Is a point P according to the setting state of the oblate ratio of the array pattern Yb.
a, the position of the point Pb, etc. are shown.

【0222】図40〜図43の(a)、(b)の場合
(縦組み時の長体率、平体率がともに設定されていない
場合と平体率が設定されている場合)、および図44〜
図47の(a)、(c)の場合(横組み時の長体率、平
体率がともに設定されていない場合と長体率が設定され
ている場合)では、図からも明らかなように、フォント
データの寸法は、Pa、Pb間の長さに相当する。この
Pa、Pb間の長さLは以下の式で求めることができ
る。 L=√((xb −xa 2 +(yb −ya 2 ) ……… (22-21)
(A) and (b) of FIGS. 40 to 43 (when both the long body ratio and the flat body ratio are not set in the vertical composition and when the flat body ratio is set), and FIG.
In the cases (a) and (c) of FIG. 47 (the case where both the long body ratio and the flat body ratio are not set and the case where the long body ratio is set at the time of horizontal composition), it is clear from the figure. In addition, the size of the font data corresponds to the length between Pa and Pb. The length L between Pa and Pb can be obtained by the following equation. L = √ ((x b −x a ) 2 + (y b −y a ) 2 ) (22-21)

【0223】従って、寸法特定部4は、上述の場合に
は、式 (22-21)で求めたLをフォントデータの寸法とし
て文字配置処理部1に返す。
Therefore, in the above case, the dimension specifying unit 4 returns the L obtained by the equation (22-21) to the character arrangement processing unit 1 as the font data dimension.

【0224】また、図40〜図43の(c)の場合(縦
組み時の長体率が設定されている場合)では、長体率
(lp%)で文字幅Xが圧縮された長さX’が、Pa、
Pb間の長さである。従って、文字幅が圧縮される前の
文字幅Xは以下の式で求めることができる。 X=(100・X’)/(100−lp) =(100・L)/(100−lp) ……… (22-22) ここで、Lは、上記式 (22-21)で求められるPa、Pb
間の長さである。
In the case of (c) of FIG. 40 to FIG. 43 (when the long body ratio in vertical composition is set), the compressed length of the character width X at the long body ratio (lp%) is used. X 'is Pa,
This is the length between Pb. Therefore, the character width X before the character width is compressed can be obtained by the following equation. X = (100 · X ′) / (100−lp) = (100 · L) / (100−lp) (22-22) where L is obtained by the above equation (22-21). Pa, Pb
Is the length between them.

【0225】この場合のフォントデータの寸法は、文字
幅X×文字高さY(X=Y)のフォントデータの寸法で
あるので、寸法特定部4は、上述の場合には、式 (22-2
2)で求めたXをフォントデータの寸法として文字配置処
理部1に返す。
Since the size of the font data in this case is the size of the font data of character width X × character height Y (X = Y), the size specifying unit 4 calculates the expression (22- Two
The X obtained in 2) is returned to the character arrangement processing unit 1 as the size of the font data.

【0226】また、図44〜図47の(b)の場合(横
組み時の平体率が設定されている場合)では、平体率
(hp%)で文字高さYが圧縮された長さY’が、P
a、Pb間の長さである。従って、文字高さが圧縮され
る前の文字高さYは以下の式で求めることができる。 Y=(100・Y’)/(100−hp) =(100・L)/(100−hp) ……… (22-23) ここで、Lは、上記式 (22-21)で求められるPa、Pb
間の長さである。
In the case of (b) of FIG. 44 to FIG. 47 (when the horizontal ratio in horizontal composition is set), the length obtained by compressing the character height Y at the horizontal ratio (hp%) is used. Y 'is P
It is the length between a and Pb. Therefore, the character height Y before the character height is compressed can be obtained by the following equation. Y = (100 · Y ′) / (100−hp) = (100 · L) / (100−hp) (22-23) where L is obtained by the above equation (22-21). Pa, Pb
Is the length between them.

【0227】この場合のフォントデータの寸法は、文字
高さY×文字幅X((X=Y)のフォントデータの寸法
であるので、寸法特定部4は、上述の場合には、式 (22
-23)で求めたYをフォントデータの寸法として文字配置
処理部1に返す。
In this case, the size of the font data is the size of the font data of character height Y × character width X ((X = Y)).
-23) is returned to the character arrangement processing unit 1 as the size of the font data.

【0228】次に、ステップS25の処理では、文字配
置処理部1が、フォントデータの仮想ボディIBの四隅
の点の、点Pa、Pb以外の2点Pc、Pdの座標を求
める。この求め方を図40ないし図47を参照して以下
に説明する。
Next, in the processing of step S25, the character arrangement processing section 1 obtains the coordinates of two points Pc and Pd other than the points Pa and Pb of the four corner points of the virtual body IB of the font data. The method of obtaining this will be described below with reference to FIGS.

【0229】例えば、図40(a)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd,yd )は、以下の
式で求めることができる。 xc =xa −xR1c =ya +yR1d =xb −xR1d =yb +yR1 ここで、xR1、yR1は、図中のh、tに相当し、hは|
b −ya |、tは|xb −xa |である。なお、以下
の説明におけるxR1、yR1は各図におけるh、tに相当
し、各図においてもh、tは上記と同様に求められる。
For example, in the case of FIG. 40A, the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following equations. Here x c = x a -x R1 y c = y a + y R1 x d = x b -x R1 y d = y b + y R1, x R1, y R1 corresponds to the h, t in the drawing, h is |
y b −y a |, and t is | x b −x a |. Note that x R1 and y R1 in the following description correspond to h and t in each drawing, and h and t are obtained in the same manner as above.

【0230】また、図40(b)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd ,yd )は、以下の
式で求めることができる。 xc =xa −xR2c =ya +yR2d =xb −xR2d =yb +yR2
In the case of FIG. 40 (b), the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following equations. x c = x a -x R2 y c = y a + y R2 x d = x b -x R2 y d = y b + y R2

【0231】ここで、xR2、yR2は、以下の式で求めら
れる。 xR2=(xR1×(100−hp)/100)) yR2=(yR1×(100−hp)/100))
Here, x R2 and y R2 are obtained by the following equations. xR2 = ( xR1 * (100-hp) / 100)) yR2 = ( yR1 * (100-hp) / 100))

【0232】さらに、図40(c)の場合、Pcの座標
(xc ,yc )、Pdの座標(xd,yd )は、以下の
式で求めることができる。 xc =xa −xR3c =ya +yR3d =xb −xR3d =yb +yR3
Furthermore, in the case of FIG. 40 (c), the coordinates (x c , y c ) of Pc and the coordinates (x d , y d ) of Pd can be obtained by the following equations. x c = x a -x R3 y c = y a + y R3 x d = x b -x R3 y d = y b + y R3

【0233】ここで、xR3、yR3は、図中のh’、t’
に相当し、h’、t’は、以下の式で求められる。 h’=(h×(100−hp)/100)) t’=(t×(100−hp)/100))
Here, x R3 and y R3 are h ′ and t ′ in the figure.
And h ′ and t ′ are obtained by the following equations. h ′ = (h × (100−hp) / 100)) t ′ = (t × (100−hp) / 100))

【0234】図41〜図47の各図においては、出力領
域内における、Pa、Pb、Pc、Pdの位置関係が異
なることから、xa 、xb にxR1、xR2、xR3を加算す
るか減算するか、および、ya 、yb にyR1、yR2、y
R3を加算するか減算するかが異なってくるが、基本的に
は、Pc、Pdの座標は、上記図40の各場合と同様の
方法で求めることができる。各図にPc、Pdの座標を
示す。
[0234] In each drawing of FIGS. 41 47, in the output area, Pa, Pb, Pc, since the positional relationship of Pd are different, x a, adds x R1, x R2, x R3 in x b Or subtraction, and y a1 , y b , y R1 , y R2 , y
Whether R3 is added or subtracted differs, but basically, the coordinates of Pc and Pd can be obtained by the same method as in each case of FIG. Each figure shows the coordinates of Pc and Pd.

【0235】次に、ステップS26では、文字配置処理
部1が、点PS1、PS2、Peの位置関係や組方向に基づ
き、点Pa、Pb、Pc、Pdの中から、フォントデー
タの配置位置(仮想ボディの基準点)を決める。
Next, in step S26, the character arrangement processing section 1 arranges the font data from among the points Pa, Pb, Pc, and Pd based on the positional relationship between the points P S1 , P S2 , and Pe and the set direction. Determine the position (reference point of the virtual body).

【0236】これは、図40ないし図47から明らかな
ように、図40、図41、図46、図47の各場合、す
なわち、配列パターンTa、Tb、Yc、Ydの場合で
は、点Paが仮想ボディIBの左下となり、図44、図
45の各場合、なわち、配列パターンYa、Ybの場
合では、点Pbが仮想ボディIBの左下となり、図4
2、図43の各場合、すなわち、配列パターンTc、T
dの場合では、点Pcが仮想ボディIBの左下となる。
As is apparent from FIGS. 40 to 47, this is the case in each of FIGS. 40, 41, 46 and 47, that is, in the case of the array patterns Ta, Tb, Yc and Yd, the point Pa is becomes lower left virtual body IB, FIG. 44, in each case of FIG. 45, ie, the arrangement pattern Ya, in the case of Yb, the point Pb becomes lower left virtual body IB, FIG. 4
2. In each case of FIG. 43, that is, the arrangement patterns Tc, T
In the case of d, the point Pc is at the lower left of the virtual body IB.

【0237】従って、配列パターンTa、Tb、Yc、
Ydの場合では、配置位置は点Paの座標となり、配列
パターンYa、Ybの場合では、配置位置は点Pbの座
標となり、配列パターンTc、Tdの場合では、配置位
置は点Pcの座標となる。
Therefore, the arrangement patterns Ta, Tb, Yc,
In the case of Yd, the arrangement position is the coordinates of the point Pa, in the case of the arrangement patterns Ya and Yb, the arrangement position is the coordinates of the point Pb, and in the case of the arrangement patterns Tc and Td, the arrangement position is the coordinates of the point Pc. .

【0238】次に、ステップS28では、配置開始点特
定部5が、点PS1、点PS2、点Pe、点Pa、点Pb、
点Pc、点Pdに基づき、現在の処理対象の文字に対応
するフォントデータを出力時の状態に仮想的に配置した
ときの、点PS1と点Peとを結ぶ線分および点PS2と点
Peとを結ぶ線分と、現在の処理対象文字に対応するフ
ォントデータの仮想ボディとの交点を求めるが、この処
理パターン3の場合の交点の求め方を以下に説明する。
Next, in step S28, the arrangement start point specifying unit 5 determines whether the point P S1 , the point P S2 , the point Pe, the point Pa, the point Pb,
Based on the points Pc and Pd, when the font data corresponding to the current character to be processed is virtually arranged in a state at the time of output, a line segment connecting the points P S1 and Pe and a point P S2 and a point The intersection between the line segment connecting Pe and the virtual body of the font data corresponding to the current character to be processed is determined. A method of determining the intersection in the case of the processing pattern 3 will be described below.

【0239】この場合も、点PS1と点Peとを結ぶ線分
および点PS2と点Peとを結ぶ線分と、現在の処理対象
文字に対応するフォントデータの仮想ボディIBとの交
点が存在するのは、上記処理パターン1と同様に、以下
の(1) 〜(4) の場合のみである。
Also in this case, the intersection of the line segment connecting point P S1 and point Pe and the line segment connecting point P S2 and point Pe with the virtual body IB of the font data corresponding to the current character to be processed is As in the case of the processing pattern 1, there exists only the following cases (1) to (4).

【0240】(1) 点PS1と点Peとを結ぶ線分と、点P
cと点Pdとを結ぶ線分との交点 (2) 点PS1と点Peとを結ぶ線分と、点Pbと点Pdと
を結ぶ線分との交点 (3) 点PS2と点Peとを結ぶ線分と、点Paと点Pcと
を結ぶ線分との交点 (4) 点PS2と点Peとを結ぶ線分と、点Pcと点Pdと
を結ぶ線分との交点
(1) A line segment connecting the point P S1 and the point Pe and the point P
(2) Intersection of line segment connecting point P S1 and point Pe, and intersection of line segment connecting point Pb and point Pd (3) Point P S2 and point Pe (4) The intersection of the line connecting point P S2 and point Pe, and the line connecting point Pc and point Pd

【0241】また、点PS1と点Peとを結ぶ線分を含む
1次関数を〔y=a21・x+b21〕とすると、a21、b
21は、点PS1と点Peの座標(xS1,yS1)、(xe
e)より特定される。ただし、点PS1と点Peとのy
座標が同じ(yS1=ye )である場合は、点PS1と点P
eとを結ぶ線分を含む1次関数は、〔y=yS1〕とな
り、点PS1と点Peとのx座標が同じ(xS1=xe )で
ある場合は、点PS1と点Peとを結ぶ線分を含む1次関
数は、〔x=xS1〕となる。
If a linear function including a line segment connecting the point P S1 and the point Pe is [y = a 21 · x + b 21 ], a 21 , b 21
21 is the coordinates (x S1 , y S1 ) of point P S1 and point Pe, (x e ,
y e ). However, y between point P S1 and point Pe
If the coordinates are the same (y S1 = y e ), the points P S1 and P
The linear function including the line segment connecting to e is [y = y S1 ]. If the x coordinate of the point P S1 and the point Pe is the same (x S1 = x e ), the point P S1 and the point P A linear function including a line segment connecting with Pe is [x = x S1 ].

【0242】また、点PS2と点Peとを結ぶ線分を含む
1次関数を〔y=a22・x+b22〕とすると、a22、b
22は、点PS2と点Peの座標(xS2,yS2)、(xe
e)より特定される。ただし、点PS2と点Peとのy
座標が同じ(yS2=ye )である場合は、点PS2と点P
eとを結ぶ線分を含む1次関数は、〔y=yS2〕とな
り、点PS2と点Peとのx座標が同じ(xS2=xe )で
ある場合は、点PS2と点Peとを結ぶ線分を含む1次関
数は、〔x=xS2〕となる。
If a linear function including a line segment connecting the point P S2 and the point Pe is [y = a 22 × x + b 22 ], then a 22 , b
22 is the coordinates (x S2 , y S2 ) of point P S2 and point Pe, (x e ,
y e ). However, y between the point P S2 and the point Pe
If the coordinates are the same (y S2 = y e ), the points P S2 and P
A linear function including a line segment connecting e and [e] is [y = y S2 ]. If the x coordinate of the point P S2 and the point Pe is the same (x S2 = x e ), the point P S2 and the point P A linear function including a line segment connecting with Pe is [x = x S2 ].

【0243】また、点Pcと点Pdとを結ぶ線分を含む
1次関数を〔y=acd・x+bcd〕とすると、acd、b
cdは、点Pcと点Pdの座標(xc ,yc )、(xd
d)より特定され、また、点Pbと点Pdとを結ぶ線
分を含む1次関数を〔y=abd・x+bbd〕とすると、
bd、bbdは、点Pbと点Pdの座標(xb ,yb )、
(xd ,yd )より特定され、さらに、点Paと点Pc
とを結ぶ線分を含む1次関数を〔y=aac・x+bac
とすると、aac、bacは、点Paと点Pcの座標
(xa ,ya )、(xc ,yc )より特定される。
If a linear function including a line segment connecting the point Pc and the point Pd is [y = a cd · x + b cd ], then a cd , b cd
cd is the coordinates (x c , y c ) of point Pc and point Pd, (x d ,
y d ), and a linear function including a line segment connecting the point Pb and the point Pd is represented by [y = abd · x + bbd ].
a bd and b bd are the coordinates (x b , y b ) of point Pb and point Pd,
(X d , y d ), and further, the points Pa and Pc
[Y = a ac × x + b ac ]
When, a ac, b ac is the coordinates of the point Pa and the point Pc (x a, y a) , is specified from (x c, y c).

【0244】まず、(1) では、点PS1と点Peとを結ぶ
線分CL1を含む1次関数〔y=a21・x+b21〕と、
点Pcと点Pdとを結ぶ線分CLcdを含む1次関数
〔y=acd・x+bcd〕の交点のx座標を以下の式によ
り求める。 a21・x+b21=acd・x+bcd そして、上式により求めた各1次関数の交点のx座標
(xCP1 とする)が、図48(a)〜(d)に示すよう
に、点Pcのx座標(xc )と点Pdのx座標(xd
の間の範囲内に収まっていれば、すなわち、xc ≦x
cp1 ≦xd のとき、点PS1と点Peとを結ぶ線分CL1
と、点Pcと点Pdを結ぶ線分との交点CP1 が存在す
ることになる。この(1) で交点CP1 が存在する場合の
交点CP1 のx座標は上記xCP1 であり、交点CP1
y座標は、そのx座標(xCP1 )を点Pcと点Pdとを
結ぶ線分CLcdを含む1次関数〔y=acd・x+
cd〕に代入すれば得られる。
First, in (1), a linear function [y = a 21 · x + b 21 ] including a line segment CL1 connecting the point P S1 and the point Pe is given by:
The x coordinate of the intersection of the linear function [y = a cd · x + b cd ] including the line segment CLcd connecting the point Pc and the point Pd is obtained by the following equation. a 21 · x + b 21 = a cd · x + b cd The x coordinate of the intersection of each linear function (x CP1 ) obtained by the above equation is calculated as shown in FIGS. 48 (a) to (d). Pc of x-coordinate (x c) and a point Pd of the x coordinate (x d)
, Ie, x c ≦ x
When cp1xd, a line segment CL1 connecting the point P S1 and the point Pe
If, so that the intersection point CP 1 of a line segment connecting the point Pc and the point Pd are present. X-coordinate of the intersection point CP 1 when there is an intersection CP 1 in this (1) is the x CP1, y coordinates of the intersection point CP 1 is connecting the point Pc and the point Pd that x-coordinate (x CP1) A linear function including the line segment CLcd [y = a cd · x +
b cd ].

【0245】なお、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔y=yS1〕のときには、各1次関数
の交点のx座標は以下の式で求め、後は上記と同様の方
法で交点CP1 があるか否かを調べ、また、交点CP1
のy座標を得ることができる。 yS1=acd・x+bcd
A line segment CL1 connecting the point P S1 and the point Pe.
Is [y = y S1 ], the x-coordinate of the intersection of each linear function is determined by the following equation. Thereafter, it is checked whether or not there is an intersection CP 1 by the same method as above. Also, the intersection CP 1
Can be obtained. y S1 = a cd x + b cd

【0246】また、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔x=xS1〕のときには、点Pcと点
Pdとを結ぶ線分CLcdを含む1次関数〔y=acd
x+bcd〕にx=xS1を代入して、各1次関数の交点の
y座標(ycp1 )を求め、それが、図48に示すよう
に、点Pcのy座標(yc )と点Pdのy座標(yd
の間の範囲内に収まっていれば、すなわち、yc ≦y
cp1 ≦yd (図48(a)、(c)の場合)、または、
d ≦ycp1 ≦yc (図48(b)、(d)の場合)の
とき、点PS1と点Peとを結ぶ線分CL1と、点Pcと
点Pdを結ぶ線分との交点CP1 が存在することにな
る。この場合の交点CP1 の座標は(xS1,yCP1 )で
ある。
A line CL1 connecting the point P S1 and the point Pe.
Is a linear function [x = x S1 ], a linear function [y = a cd .multidot.C] including a line segment CLcd connecting the point Pc and the point Pd.
x + b cd ] is substituted for x = x S1 to obtain the y-coordinate (y cp1 ) of the intersection of each linear function, which is, as shown in FIG. 48, the y-coordinate (y c ) of the point Pc and the point Pd of the y-coordinate (y d)
, That is, y c ≦ y
cp1 ≦ y d (in the case of FIGS. 48A and 48C ), or
When y d ≦ y cp1 ≦ y c (FIGS. 48B and 48D ), the intersection of the line segment CL1 connecting the point P S1 and the point Pe and the line segment connecting the point Pc and the point Pd so that the CP 1 is present. Coordinate intersections CP 1 in this case is (x S1, y CP1).

【0247】次に、(2) でも、(1) と同様に、点PS1
点Peとを結ぶ線分CL1を含む1次関数〔y=a21
x+b21〕(または〔y=yS1〕)と、点Pbと点Pd
とを結ぶ線分CLbdを含む1次関数〔y=abd・x+
bd〕の交点のx座標(xcp 1 )を以下の式により求め
る。 a21・x+b21=abd・x+bbd (または、yS1=abd・x+bbd) そして、そのx座標(xcp1 )が、図49に示すよう
に、点Pbのx座標(xb )と点Pdのx座標(xd
の間の範囲内に収まっていれば、すなわち、xb<x
cp1 ≦xd (図49(b)、(d)の場合)、または、
d ≦xcp1 <xb(図49(a)、(c)の場合)の
とき、点PS1と点Peとを結ぶ線分CL1と、点Pbと
点Pdを結ぶ線分との交点CP1 が存在することにな
る。なお、点PS1、点PS2、点Peが一直線上に位置す
ることがないので、xb =xcp1 を判定条件から外して
いる。この(2) で交点CP1 が存在する場合の交点CP
1 のx座標は上記xCP1 であり、交点CP1 のy座標
は、そのx座標(xCP1 )を点Pbと点Pdとを結ぶ線
分CLcdを含む1次関数〔y=abd・x+bbd〕に代
入すれば得られる。
Next, also in (2), as in (1), a linear function [y = a 21 .multidot.1] including a line segment CL1 connecting the point P S1 and the point Pe.
x + b 21 ] (or [y = y S1 ]), point Pb and point Pd
Linear function including segment CLbd connecting preparative [y = a bd · x +
b bd] intersection of x-coordinate of the (x cp 1) obtained by the following equation. a 21 · x + b 21 = a bd · x + b bd ( or, y S1 = a bd · x + b bd) Then, the x-coordinate (x cp1) is, as shown in FIG. 49, x-coordinate of the point Pb (x b) And the x coordinate of the point Pd (x d )
, Ie, x b <x
cp1 ≦ x d (FIGS. 49 (b) and (d)), or
When x d ≦ x cp1 <x b (FIGS. 49A and 49C), the intersection of the line segment CL1 connecting the point P S1 and the point Pe and the line segment connecting the point Pb and the point Pd so that the CP 1 is present. Since the points P S1 , P S2 , and Pe are not located on a straight line, x b = x cp1 is excluded from the determination conditions. The intersection CP when the intersection CP 1 exists in this (2)
1 x-coordinate is the x CP1, intersection y coordinates of CP 1 is a linear function [y = a bd · x + b, including a line segment CLcd connecting its x-coordinate (x CP1) the point Pb and a point Pd bd ].

【0248】また、点PS1と点Peとを結ぶ線分CL1
を含む1次関数が〔x=xS1〕のときにも、上記(1) と
同様に、各1次関数の交点のy座標(ycp1 )を求め、
それが、図49に示すように、点Pbのy座標(yb
と点Pdのy座標(yd )の間の範囲内に収まっていれ
ば、すなわち、yb <ycp1 ≦yd (図49(a)、
(b)の場合)、または、yd ≦ycp1 <yb (図49
(c)、(d)の場合)のとき、点PS1と点Peとを結
ぶ線分CL1と、点Pbと点Pdを結ぶ線分との交点C
1 が存在することになる。なお、点PS1、点PS2、点
Peが一直線上に位置することがないので、yb =y
cp1 を判定条件から外している。なお、この場合の交点
CP1 の座標は、(xS1,yCP1 )である。
Also, a line segment CL1 connecting the point P S1 and the point Pe.
Similarly, when the primary function including [x = x S1 ] is obtained, the y coordinate (y cp1 ) of the intersection of each linear function is obtained in the same manner as in the above (1).
That is, as shown in FIG. 49, the y coordinate (y b ) of the point Pb.
And y b (y d ) of the point Pd, that is, y b <y cp1 ≦ y d (FIG. 49A ,
(B)) or y d ≦ y cp1 <y b (FIG. 49)
In the case of (c) and (d)), the intersection C of the line segment CL1 connecting the point P S1 and the point Pe and the line segment connecting the point Pb and the point Pd.
P 1 will be present. Since the points P S1 , P S2 , and Pe are not located on a straight line, y b = y
cp1 is excluded from the judgment conditions. Note that the coordinates of the intersection point CP 1 in this case is (x S1, y CP1).

【0249】次に、(3) では、上記(1) と同様に、点P
S2と点Peとを結ぶ線分CL2を含む1次関数と、点P
aと点Pcとを結ぶ線分CLacを含む1次関数との交
点のx座標(またはy座標)を求め、そのx座標(また
はy座標)が、図50に示すように、点Paのx座標
(またはy座標)と点Pcのx座標(またはy座標)の
間の範囲内に収まっていれば、交点CP2 が存在するこ
とになる。なお、交点CP2 が存在する場合の交点CP
2 の座標は、上記(1) と同様の方法で得られる。
Next, in (3), as in (1) above, the point P
A linear function including a line segment CL2 connecting S2 and the point Pe;
The x-coordinate (or y-coordinate) of the intersection of the linear function including the line segment CLac connecting the point a and the point Pc is obtained, and the x-coordinate (or y-coordinate) of the intersection of the point Pa as shown in FIG. if within the range of between coordinate (or y-coordinate) and the x coordinate (or y-coordinate) of the point Pc, so that the intersection point CP 2 is present. The intersection CP when the intersection CP 2 exists
The coordinates of 2 are obtained in the same manner as in the above (1).

【0250】次に、(4) では、上記(1) と同様に、点P
S2と点Peとを結ぶ線分CL2を含む1次関数と、点P
cと点Pdとを結ぶ線分CLcdを含む1次関数との交
点のx座標(またはy座標)を求め、そのx座標(また
はy座標)が、図51に示すように、点Pcのx座標
(またはy座標)と点Pdのx座標(またはy座標)の
間の範囲内に収まっていれば、交点CP2 が存在するこ
とになる。なお、交点CP2 が存在する場合の交点CP
2 の座標は、上記(1) と同様の方法で得られる。
Next, in (4), as in the above (1), the point P
A linear function including a line segment CL2 connecting S2 and the point Pe;
An x-coordinate (or y-coordinate) of an intersection of a linear function including a line segment CLcd connecting the point c and the point Pd is obtained, and the x-coordinate (or y-coordinate) is calculated as shown in FIG. if within the range of between coordinate (or y-coordinate) and the x coordinate (or y-coordinate) of the point Pd, so that the intersection point CP 2 is present. The intersection CP when the intersection CP 2 exists
The coordinates of 2 are obtained in the same manner as in the above (1).

【0251】次に、ステップS31では、配置開始点特
定部5が、上記ステップS28で求めた交点に基づき、
現在の処理対象の次の文字に対応するフォントデータの
配置開始点Pa、Pbを求める。
Next, in step S31, the arrangement start point specifying unit 5 calculates the starting point based on the intersection obtained in step S28.
The layout start points Pa and Pb of the font data corresponding to the next character to be currently processed are obtained.

【0252】例えば、図52(d)〜(f)のように、
交点CP1 とCP2 とが求まっている場合、これら交点
CP1 、CP2 が、現在の処理対象の文字の次の文字に
対応するフォントデータの配置開始点Pa、Pbとな
る。
For example, as shown in FIGS.
If the intersection CP 1 and CP 2 are been obtained, these intersections CP 1, CP 2 are arranged starting point Pa of the font data corresponding to the next character in the current processing target character becomes Pb.

【0253】また、図52(a)〜(c)、(g)〜
(i)のように、交点CP1 またはCP2 のいずれか一
方が求まっている場合、まず、交点CP1 またはCP2
を通過し、点PS1と点PS2とを結ぶ線分に平行な線(1
次関数)ILを求める。これを、〔y=aab・x+
cp〕とすると、この傾きaabは、点PS1と点PS2とを
結ぶ線分に平行であるので、点PS1と点PS2とを結ぶ線
分を含む1次関数の傾きと同じになる。また、点PS1
点PS2とを結ぶ線分を含む1次関数の傾きは、点PS1
点PS2の座標(xS1,yS1)、(xS2,yS2)から求め
ることができる。従って、上記aabは特定することがで
きる。また、上記1次関数〔y=aab・x+bcp〕に、
求まっている交点CP1 またはCP2 のx座標、y座標
を代入することによりbcpが特定される。従って、交点
CP1 またはCP2 を通過し、点PS1と点PS2とを結ぶ
線分に平行な線ILを表す1次関数式が特定できる。
FIGS. 52 (a)-(c), (g)-
As shown in (i), when either one of the intersection points CP 1 or CP 2 is determined, first, the intersection point CP 1 or CP 2
And a line (1) parallel to the line segment connecting the points P S1 and P S2
Next function) IL is obtained. This is expressed as [y = a ab · x +
b cp ], since the slope a ab is parallel to the line segment connecting the points P S1 and P S2 , the slope a ab is equal to the slope of the linear function including the line segment connecting the points P S1 and P S2. Will be the same. The slope of the linear function including a line segment connecting the point P S1 and the point P S2 are the coordinates (x S1, y S1) of the point P S1 and the point P S2, be determined from (x S2, y S2) Can be. Therefore, the above a ab can be specified. Also, the above linear function [y = a ab · x + b cp ]
Motoma' and have intersections CP 1 or x-coordinate of the CP 2, b cp is specified by substituting the y-coordinate. Thus, through the intersection CP 1 or CP 2, 1 linear function can be identified to represent a line parallel IL to the line segment connecting the point P S1 and the point P S2.

【0254】次に、その1次関数〔y=aab・x+
cp〕と、点PS1と点Peとを結ぶ線分(交点CP2
求まっている場合)、または、点PS2と点Peとを結ぶ
線分(交点CP1 が求まっている場合)との交点を求め
る。
Next, the linear function [y = a ab · x +
b cp ] and a line segment connecting the point P S1 and the point Pe (when the intersection CP 2 is determined) or a line segment connecting the point P S2 and the point Pe (when the intersection CP 1 is determined) Find the intersection with

【0255】また、点PS1と点Peとを結ぶ線分を含む
1次関数、点PS2と点Peとを結ぶ線分を含む1次関数
は、上述ステップS28で説明したように、それぞれ
〔y=a21・x+b21〕、〔y=a22・x+b22〕であ
る。
A linear function including a line segment connecting the point P S1 and the point Pe, and a linear function including a line segment connecting the point P S2 and the point Pe are respectively described as described in step S28. [Y = a 21 · x + b 21 ] and [y = a 22 · x + b 22 ].

【0256】従って、例えば、交点CP1 が求まってい
る場合(図52(a)〜(c)の場合)には、その交点
CP1 がPaとなり、Pbのx座標は以下の式で求める
ことができる。 a22・x+b22=aab・x+bcp そして、求めたPbのx座標を、〔y=aab・x+
cp〕または〔y=a22・x+b22〕に代入すれば、P
bのy座標が得られる。
[0256] Thus, for example, in the case (the case of FIG. 52 (a) ~ (c) ) of the intersection point CP 1 is been determined, the intersection CP 1 is Pa becomes, x-coordinate of Pb be calculated by the following formula Can be. a 22 · x + b 22 = a ab · x + b cp and the obtained x coordinate of Pb is represented by [y = a ab · x +
b cp ] or [y = a 22 · x + b 22 ], P
The y coordinate of b is obtained.

【0257】また、交点CP2 が求まっている場合(図
52(g)〜(i)の場合)には、その交点CP2 がP
bとなり、Paのx座標は以下の式で求めることができ
る。 a21・x+b21=aab・x+bcp そして、求めたPaのx座標を、〔y=aab・x+
cp〕または〔y=a21・x+b21〕に代入すれば、P
aのy座標が得られる。
When the intersection CP 2 has been found (FIGS. 52 (g)-(i)), the intersection CP 2 is
b, and the x coordinate of Pa can be obtained by the following equation. a 21 · x + b 21 = a ab · x + b cp Then, the obtained x coordinate of Pa is represented by [y = a ab · x +
b cp ] or [y = a 21 · x + b 21 ], P
The y coordinate of a is obtained.

【0258】上述のようにして、この処理パターン3の
場合の各フォントデータの寸法、配置位置、色濃度(処
理パターン1の求め方と同じ)と、回転角度θ、長平体
率等に基づき、出力制御部12が各フォントデータを出
力することにより、各フォントデータは、図37、図3
8に示すように、点PS1、PS2から点Peに収束するよ
うに遠近配置される。
As described above, based on the size, arrangement position, color density (same as the method of obtaining the processing pattern 1) of each font data in the case of the processing pattern 3, the rotation angle θ, the long flat body ratio, etc. When the output control unit 12 outputs each font data, each font data is output as shown in FIGS.
As shown in FIG. 8, they are arranged far and near so as to converge from the points P S1 and P S2 to the point Pe.

【0259】なお、上述の実施例では、図2のステップ
S3の前処理で、各フォントデータの色濃度の変化率を
予め求めておき、図4のステップS27で、その変化率
と、現在の処理対象の文字の順番(i)とに基づき、各
フォントデータの色濃度を求めるように構成したが、図
4のステップS27で、文字配置処理部1から開始色濃
度、終了色濃度、全文字数、現在の処理対象の文字の順
番が与えられ、これらデータに基づき、以下の式により
フォントデータの色濃度を求めるように構成してもよ
い。 現在の処理対象のフォントデータの色濃度={((終了
色濃度−開始色濃度)×(i−1))/(全文字数−
1)}+開始色濃度 なお、この変形例および以下の変形例は、後述する実施
例においても同様に適用することができる。
In the above embodiment, the rate of change of the color density of each font data is obtained in advance in the pre-processing of step S3 in FIG. 2, and the rate of change and the current rate are determined in step S27 in FIG. The color density of each font data is determined based on the order (i) of the characters to be processed. However, in step S27 in FIG. The current order of characters to be processed may be given, and based on these data, the color density of the font data may be obtained by the following equation. Color density of font data of current processing target = {((end color density−start color density) × (i−1)) / (total number of characters−
1) Δ + Starting Color Density This modified example and the following modified examples can be similarly applied to the embodiments described later.

【0260】また、上述の実施例では、設定された開始
色濃度と終了色濃度に基づき、出力される各フォントデ
ータの色濃度を開始色濃度から終了色濃度へと徐々に変
化するように構成したが、各フォントデータを同じ色濃
度で出力するように構成してもよい。このとき、出力時
の色濃度を特に指定して、各フォントデータを全てその
色濃度で出力するのであれば、組版データテーブル7
(図11参照)の色濃度を記憶するためのエリアは、各
フォントデータの文字処理データ部FAiごとに持って
いてもよいが、例えば、ヘッダ部HAに<色濃度>のエ
リアを設け、出力処理では、出力制御部12は、そのヘ
ッダ部HAの<色濃度>のエリアに記憶された色濃度
で、各フォントデータを出力するように構成してもよ
い。また、出力時の色濃度を指定せず、各フォントデー
タを全て、例えば、出力装置が予め持っているデフォル
トの色濃度で出力するのであれば、組版データテーブル
7に色濃度を記憶するためのエリアを特に設ける必要は
ない。
In the above embodiment, the color density of each font data to be output is gradually changed from the start color density to the end color density based on the set start color density and end color density. However, each font data may be output with the same color density. At this time, if the color density at the time of output is specifically designated and all the font data are output at the color density, the typesetting data table 7
Although an area for storing the color density (see FIG. 11) may be provided for each character processing data section FAi of each font data, for example, an area of <color density> is provided in the header section HA and output. In the processing, the output control unit 12 may be configured to output each font data with the color density stored in the <color density> area of the header section HA. If all the font data are to be output without specifying the color density at the time of output, for example, with the default color density that the output device has in advance, the format data table 7 stores the color density. There is no particular need to provide an area.

【0261】また、上述の実施例では、組方向を指定す
るように構成したが、組方向の指定を行なわず、予め決
められた組方向のみで組版するように装置を構成しても
よい。
Further, in the above-described embodiment, the composition direction is designated, but the apparatus may be configured so that the composition is performed only in a predetermined composition direction without designating the composition direction.

【0262】さらに、上述の実施例では、長平体率を指
定するように構成したが、長平体率の指定を行なわず、
正方形の仮想ボディのフォントデータのみで組版するよ
うに装置を構成してもよい。
Furthermore, in the above-described embodiment, the configuration is such that the long flat body ratio is specified, but the long flat body ratio is not specified.
The apparatus may be configured to format only the font data of the square virtual body.

【0263】次に、本発明の第二実施例装置の構成を図
53を参照して説明する。図53は、第二実施例装置の
構成を示すブロック図である。なお、図1と同一符号で
示す部分は、図1の構成と同じであるので、ここでの詳
述は省略する。この第二実施例装置は、主に、請求項2
と、請求項2に従属する請求項3とに記載された発明に
対応した実施例である。
Next, the structure of the second embodiment of the present invention will be described with reference to FIG. FIG. 53 is a block diagram showing the configuration of the second embodiment. Note that the parts denoted by the same reference numerals as in FIG. 1 have the same configuration as in FIG. This second embodiment is mainly characterized by claim 2
And an embodiment corresponding to the invention described in claim 3 which depends on claim 2.

【0264】この第二実施例装置の特徴は、回転処理部
31を設け、設定された最初の文字に対応するフォント
データの配置開始点PS1とPS2とを結ぶ線分を出力領域
のx軸またはy軸に平行(あるいは一致)させるよう
に、点PS1(または点PS2)を中心として、点PS2(ま
たは点PS1)と設定された収束点Peとを所定角度回転
させた点PS2’(または点PS1’)、点Pe’を求め、
文字配置処理部1、寸法特定部4、配置開始点特定部5
では、点PS1(または点PS2)、点PS2’(または点P
S1’)、点Pe’に対する、各フォントデータの寸法と
配置位置とを特定し、文字配置処理部1は、得られた点
S1(または点PS2)、点PS2’(または点PS1’)、
点Pe’に対する、各フォントデータの配置位置を前記
所定角度分、点PS1(または点PS2)を中心として逆方
向に回転させて、点PS1、点PS2、点Peに対する各フ
ォントデータの配置位置を求めるように構成したことに
ある。このように構成することにより、最初の文字に対
応するフォントデータの配置開始点PS1とPS2とを結ぶ
線分が、出力領域のx軸(y軸)に対して傾けて設定さ
れた場合に、各フォントデータの寸法、配置位置を求め
る計算が容易になる。
A feature of the second embodiment is that a rotation processing unit 31 is provided, and a line segment connecting the font data arrangement start points P S1 and P S2 corresponding to the first character set is represented by x in the output area. The point P S2 (or the point P S1 ) and the set convergence point Pe are rotated by a predetermined angle around the point P S1 (or the point P S2 ) so as to be parallel (or coincident) with the axis or the y-axis. Find a point P S2 ′ (or a point P S1 ′) and a point Pe ′,
Character arrangement processing unit 1, dimension identification unit 4, arrangement start point identification unit 5
Then, the points P S1 (or P S2 ), P S2 ′ (or P
S1 ′) and the size and arrangement position of each font data with respect to the point Pe ′, and the character arrangement processing unit 1 obtains the obtained points P S1 (or Ps2 ) and P S2 ′ (or P S2 ). S1 '),
By rotating the arrangement position of each font data with respect to the point Pe 'by the predetermined angle in the opposite direction about the point P S1 (or the point P S2 ), each font data corresponding to the point P S1 , the point P S2 , and the point Pe The arrangement position is determined. With this configuration, the line connecting the font data arrangement start points P S1 and P S2 corresponding to the first character is set to be inclined with respect to the x-axis (y-axis) of the output area. Furthermore, the calculation for obtaining the size and arrangement position of each font data becomes easy.

【0265】なお、この回転処理部31は、本発明にお
ける回転処理手段に相当し、この実施例の場合の文字配
置処理部1は、本発明における逆回転処理手段に相当す
る。
Incidentally, the rotation processing section 31 corresponds to the rotation processing means in the present invention, and the character arrangement processing section 1 in this embodiment corresponds to the reverse rotation processing means in the present invention.

【0266】具体的な処理手順を図54のフローチャー
トを参照して説明する。図54のフローチャートは、図
2のフローチャートにステップS2−1とS4−1を加
えたものである。
A specific processing procedure will be described with reference to the flowchart in FIG. The flowchart of FIG. 54 is obtained by adding steps S2-1 and S4-1 to the flowchart of FIG.

【0267】ステップS1、ステップS2は、第一実施
例装置と同じ処理であり、テキストデータ、最初の文字
に対応するフォントデータの配置開始点PS1、PS2、収
束点Pe、組方向指示、長平体率、開始色濃度、終了色
濃度が取り込まれる。取り込まれた点PS1、点PS2、点
Peの座標を(xS1,yS1)、(xS2,yS2)、
(xe ,ye )とする。
Steps S1 and S2 are the same as those in the first embodiment, and are the same as those in the first embodiment. The arrangement start points P S1 and P S2 of the text data and the font data corresponding to the first character, the convergence point Pe, the set direction instruction, The long flat body ratio, the start color density, and the end color density are captured. The coordinates of the captured points P S1 , P S2 , and Pe are (x S1 , y S1 ), (x S2 , y S2 ),
(X e , y e ).

【0268】次に、回転処理部31は、文字配置処理部
1から与えられた点PS1、点PS2、点Peの回転処理を
行なう(ステップS2−1)。ここでは、点PS1と点P
S2とを結ぶ線分を出力領域のx軸に平行(あるいは一
致)させるように、点PS1を中心として、点PS2と点P
eとを所定角度回転させた点PS2’、点Pe’を求める
ものとする。なお、点PS1と点PS2とを結ぶ線分をx軸
に一致する場合とは、点PS1のy座標が「0」の場合で
ある。
Next, the rotation processing section 31 performs rotation processing of the points P S1 , P S2 , and Pe given from the character arrangement processing section 1 (step S2-1). Here, the points P S1 and P
The point P S2 and the point P S2 are centered on the point P S1 so that the line segment connecting S2 is parallel (or coincident) with the x-axis of the output area.
It is assumed that a point P S2 ′ and a point Pe ′ obtained by rotating e and e by a predetermined angle are obtained. Note that the case where the line segment connecting the point P S1 and the point P S2 coincides with the x-axis is the case where the y coordinate of the point P S1 is “0”.

【0269】これを図55を参照して説明する。例え
ば、図55(a)のように、点PS1、点PS2、点Peが
設定された場合、点PS1と点PS2とを結ぶ線分を出力領
域のx軸に平行(あるいは一致)させるように、点PS1
を中心として、点PS2と点Peとを回転させるときの回
転角度δは、図55(b)からも明らかなように、ta
nδ=|ys2−ys1|/|xs2−xs1|より求めること
ができる。なお、この回転方向は、反時計回りを正方
向、時計回りを負とする。従って、図56(a)〜
(d)に示すように、(点PS1のy座標(yS1))>
(点PS2のy座標(yS2))のときδは正となり、(y
S1)<(yS2)のときδは負となる。なお、(yS1)=
(yS2)のとき回転角度δは「0°」となる。また、図
57(a)、(b)に示すように、点PS1と点PS2とを
結ぶ線分が出力領域のy軸に平行(あるいは一致)する
とき(点PS1のx座標(xS1)=点PS2のx座標
(xS2)のとき)には、回転角度δは「90°」とな
る。
This will be described with reference to FIG. For example, as shown in FIG. 55 (a), when points P S1 , P S2 , and Pe are set, a line connecting the points P S1 and P S2 is parallel (or coincides) with the x-axis of the output area. ) To make the point P S1
As shown in FIG. 55 (b), the rotation angle δ when rotating the point P S2 and the point Pe about the
nδ = | y s2 −y s1 | / | x s2 −x s1 | The direction of rotation is positive in a counterclockwise direction and negative in a clockwise direction. Therefore, FIG.
As shown in (d), (y coordinate of point P S1 (y S1 ))>
When (y coordinate of the point P S2 (y S2 )), δ is positive and (y
When S1 ) <( yS2 ), δ is negative. (Y S1 ) =
At (y S2 ), the rotation angle δ is “0 °”. Further, as shown in FIGS. 57A and 57B , when a line segment connecting the point P S1 and the point P S2 is parallel (or coincides) with the y-axis of the output area (the x coordinate of the point P S1 ( x S1 ) = x coordinate (x S2 ) of the point P S2 ), the rotation angle δ is “90 °”.

【0270】次に、点PS1を中心として、点PS2をδ回
転させた点PS2’のy座標y4 は、点PS1のy座標(y
S1)と同じとなり、また、点PS2’のx座標x4 は、点
S1のx座標(xS1)に、点PS1、点PS2間の長さ(√
((yS2−yS12 +(xS2−xS12 ))を加算する
ことにより得られる。
[0270] Next, about the point P S1, y coordinate y 4 of the point P S2 [delta] point is rotated P S2 'is, y coordinates of the point P S1 (y
Becomes the same as S1), also, the x-coordinate x 4 of the point P S2 'is the x-coordinate of the point P S1 (x S1), the point P S1, the length between the points P S2 (√
((Y S2 −y S1 ) 2 + (x S2 −x S1 ) 2 )).

【0271】また、点PS1を中心として、点PS2をδ回
転させた点Pe’の座標(x5 ,y5 )は、以下のアフ
ィン変換式により求めることができる。 x5 =(xe −xS1)・cosδ−(ye −ys1)・s
inδ y5 =(xe −xS1)・sinδ+(ye −yS1)・c
osδ
The coordinates (x 5 , y 5 ) of the point Pe ′ obtained by rotating the point P S2 by δ around the point P S1 can be obtained by the following affine transformation equation. x 5 = (x e -x S1 ) · cosδ- (y e -y s1) · s
inδ y 5 = (x e -x S1) · sinδ + (y e -y S1) · c
osδ

【0272】回転処理部31は、上記処理で得られた回
転角度δと、点PS2’、Pe’の座標(x4 ,y4 )、
(x5 ,y5 )を文字配置処理部1に与える。
The rotation processing unit 31 calculates the rotation angle δ obtained in the above processing, the coordinates (x 4 , y 4 ) of the points P S2 ′ and Pe ′,
(X 5 , y 5 ) is given to the character arrangement processing unit 1.

【0273】図54に戻って、次に、ステップ3の前処
理では、組版データテーブル7、組版補助データテーブ
ル8、ワークエリア21の所定エリアに、設定データ等
を設定していくが、ここで、この第二実施例装置では、
ワークエリア21の<PS2のx座標>、<PS2のy座標
>、<Peのx座標>、<Peのy座標>に、上記ステ
ップS2−1の回転処理で得られた点PS2’、Pe’の
各座標をセットし、また、<Pbのx座標>、<Pbの
y座標>に点PS2’の座標をセットする。これにより、
以下のステップS4の処理では、点PS1、点PS2’(最
初の文字に対応するフォントデータの配置開始点を点P
S1、点PS2’)、収束点をPe’として各フォントデー
タの寸法や配置位置を求めることになる。
Returning to FIG. 54, next, in the preprocessing of step 3, setting data and the like are set in predetermined areas of the typesetting data table 7, the typesetting auxiliary data table 8, and the work area 21. In the second embodiment,
The < PS2 x coordinate>, < PS2 y coordinate>, <Pe x coordinate>, and <Pe y coordinate> in the work area 21 correspond to the point PS2 obtained by the rotation processing in step S2-1. The coordinates of 'Pe' are set, and the coordinates of the point P S2 'are set in <x coordinate of Pb> and <y coordinate of Pb>. This allows
In the processing of the following step S4, the points P S1 and P S2 ′ (the start point of the font data corresponding to the first character is set to the point P S1) .
S1 , the point PS2 '), and the convergence point as Pe', the size and arrangement position of each font data are obtained.

【0274】組版データテーブル7の<回転角度θ>の
エリアに記憶する回転角度θは、設定された点PS1、点
S2、点Peと組方向に基づき、上記第一実施例の処理
パターン1〜3で説明した方法により求めることができ
る。
The rotation angle θ stored in the <rotation angle θ> area of the typesetting data table 7 is based on the set points P S1 , P S2 , and Pe and the set direction, and is based on the processing pattern of the first embodiment. It can be obtained by the method described in 1-3.

【0275】なお、回転角度θは、設定された点PS1
点PS2、点Peと組方向と、上記ステップS2−1の回
転処理で得られた回転角度δとに基づき求めることもで
きる。例えば、図37(a)に対して、回転処理した結
果は、図9(c)のようになる。図9(c)の回転角度
θは「0°」である。従って、図37(a)の場合の回
転角度θは、図9(c)の回転角度θ(「0°」)から
上記回転処理時の回転角度(−|δ|)分逆回転すれば
よいので、(0°−(−|δ|))=(|δ|)とな
り、図37(b)の場合の回転角度θは、同様に(−|
δ|)となる。
It should be noted that the rotation angle θ is set at the set point P S1 ,
It can also be obtained based on the points P S2 and Pe and the set direction, and the rotation angle δ obtained in the rotation processing in step S2-1. For example, the result of performing the rotation processing on FIG. 37A is as shown in FIG. 9C. The rotation angle θ in FIG. 9C is “0 °”. Therefore, the rotation angle θ in the case of FIG. 37A may be reversely rotated from the rotation angle θ (“0 °”) of FIG. 9C by the rotation angle (− | δ |) at the time of the rotation processing. Therefore, (0 ° − (− | δ |)) = (| δ |), and the rotation angle θ in the case of FIG.
δ |).

【0276】また、図37(c)に対して、回転処理し
た結果は、図9(d)のようになる。図9(d)の回転
角度θも「0°」であるので、図37(c)の場合の回
転角度θは(0°−|δ|)=(−|δ|)となり、図
37(d)の場合には、同様に(|δ|)となる。
FIG. 9D shows the result of the rotation processing performed on FIG. 37C. Since the rotation angle θ in FIG. 9D is also “0 °”, the rotation angle θ in the case of FIG. 37C is (0 ° − | δ |) = (− | δ |), and FIG. In the case of d), (| δ |) is similarly obtained.

【0277】また、図38(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」である。但し、このときのフォント
データの回転の中心はPS2であることを考慮すると、
(90°+|δ|)となり、図38(b)の場合には、
同様に(90°−|δ|)となる。
FIG. 9A shows the result of the rotation processing performed on FIG. 38A. The rotation angle θ in FIG. 9A is “90 °”. However, considering that the center of rotation of the font data at this time is P S2 ,
(90 ° + | δ |), and in the case of FIG.
Similarly, it becomes (90 ° − | δ |).

【0278】また、図38(c)に対して、回転処理し
た結果は、図9(b)のようになる。図9(b)の回転
角度θは「−90°」であるので、図38(c)の場合
の回転角度θは(−90°−|δ|)となり、図38
(d)の場合の回転角度θは、同様に(−90°−(−
|δ|))=(−90°+|δ|)となる。
FIG. 9B shows the result of the rotation processing performed on FIG. 38C. Since the rotation angle θ in FIG. 9B is “−90 °”, the rotation angle θ in the case of FIG. 38C is (−90 ° − | δ |), and FIG.
Similarly, the rotation angle θ in the case of (d) is (−90 ° − (−
| Δ |)) = (− 90 ° + | δ |).

【0279】また、図32(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」であり、この場合の回転角度δは
「90°」であるので、図32(a)の場合の回転角度
θは(90°−90°)=「0°」となり、図32
(b)の場合の回転角度θは、同様に(−90°−(−
90°))=「−180°」(または、「180°」)
となる。
FIG. 9A shows the result of the rotation processing performed on FIG. 32A. Since the rotation angle θ in FIG. 9A is “90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in FIG. 32A is (90 ° −90 °). ) = “0 °”, and FIG.
Similarly, the rotation angle θ in the case of (b) is (−90 ° − (−
90 °)) = “− 180 °” (or “180 °”)
Becomes

【0280】また、図32(a)に対して、回転処理し
た結果は、図9(a)のようになる。図9(a)の回転
角度θは「90°」であり、この場合の回転角度δは
「90°」であるので、図32(a)の場合の回転角度
θは(90°−90°)=「0°」となる。
FIG. 9A shows the result of the rotation processing performed on FIG. 32A. Since the rotation angle θ in FIG. 9A is “90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in FIG. 32A is (90 ° −90 °). ) = “0 °”.

【0281】また、図32(b)に対して、回転処理し
た結果は、図9(b)のようになる。図9(b)の回転
角度θは「−90°」であり、この場合の回転角度δは
「90°」であるので、図32(b)の場合の回転角度
θは(−90°−90°)=「−180°」(または、
「180°」)となる。
FIG. 9B shows the result of the rotation processing performed on FIG. 32B. Since the rotation angle θ in FIG. 9B is “−90 °” and the rotation angle δ in this case is “90 °”, the rotation angle θ in FIG. 32B is (−90 ° − 90 °) = “− 180 °” (or
“180 °”).

【0282】また、図32(c)に対して、回転処理し
た結果は、図9(c)のようになる。図9(c)の回転
角度θは「0°」であり、この場合の回転角度δは「9
0°」であるので、図32(c)の場合の回転角度θは
(0°−90°)=「−90°」となる。
FIG. 9C shows the result of the rotation processing performed on FIG. 32C. The rotation angle θ in FIG. 9C is “0 °”, and the rotation angle δ in this case is “9 °”.
0 ° ”, the rotation angle θ in the case of FIG. 32C is (0 ° −90 °) =“ − 90 ° ”.

【0283】また、図32(d)に対して、回転処理し
た結果は、図9(d)のようになる。図9(d)の回転
角度θは「0°」であり、この場合の回転角度δは「9
0°」であるので、図32(d)の場合の回転角度θは
(0°−90°)=「−90°」となる。
FIG. 9D shows the result of the rotation process performed on FIG. 32D. The rotation angle θ in FIG. 9D is “0 °”, and the rotation angle δ in this case is “9 °”.
0 ° ”, the rotation angle θ in the case of FIG. 32D is (0 ° −90 °) =“ − 90 ° ”.

【0284】なお、図9(a)〜(d)に対しては、回
転処理の回転角度δは「0°」であるので、それぞれの
回転角度θは、「90°−0°」(=「90°」)、
「−90°−0°」(=「−90°」)、「0°−0
°」(=「0°」)、「0°−0°」(=「0°」)で
ある。
In FIGS. 9A to 9D, since the rotation angle δ of the rotation process is “0 °”, each rotation angle θ is “90 ° −0 °” (= “90 °”),
“-90 ° -0 °” (= “− 90 °”), “0 ° -0
° (= “0 °”) and “0 ° −0 °” (= “0 °”).

【0285】図54に戻って、次に、ステップS4(図
4参照)により、テキストデータを構成する各文字に対
応する各フォントデータの寸法、配置位置、色濃度をそ
れぞれ求める。但し、ここでは、上記したように、点P
S1、点PS2’、点Pe’に基づき、寸法や配置位置を求
めるので、文字配置処理部1、寸法特定部4、配置開始
点特定部5は、処理パターン1に係る処理手順で寸法や
配置位置を求めることになる。
Returning to FIG. 54, next, in step S4 (see FIG. 4), the size, arrangement position, and color density of each font data corresponding to each character constituting the text data are obtained. However, here, as described above, the point P
Since the size and arrangement position are obtained based on S1 , the point P S2 ′, and the point Pe ′, the character arrangement processing unit 1, the dimension identification unit 4, and the arrangement start point identification unit 5 execute the dimension The placement position will be determined.

【0286】例えば、点PS1、点PS2、点Peが図55
(a)のように設定され、縦組みで組版する場合(図3
7(a)の場合)、ステップS4で得られた寸法、配置
位置P1 ’〜P5 ’は図58(a)のようになる。な
お、図58では、得られた寸法に応じた仮想ボディIB
で示している。しかし、実際に設定された最初の文字に
対応するフォントデータの配置開始点と収束点は、点P
S1、点PS2’、点Pe’ではなく、点PS1、点PS2、点
Peである。従って、出力結果は図58(b)に示すよ
うにならなければならない。ここで、図58(a)と図
58(b)とを見比べてわかるように、点PS1、点
S2’、点Pe’の位置関係と、点PS1、点PS2、点P
eの位置関係とは相対的に同じ(点PS1、点PS2’、点
Pe’を頂点とする三角形と、点PS1、点PS2、点Pe
を頂点とする三角形とは合同)であるので、得られる寸
法は、回転処理の影響を受けない。また、色濃度は、開
始色濃度と終了色濃度と文字数と文字の順番で決まるの
で回転処理の影響は受けない。しかし、配置位置は、点
S1、点PS2’、点Pe’に基づいて求めているので、
点PS1、点PS2、点Peに対する本来の配置位置と異な
る。従って、得られた配置位置P1 ’〜P5 ’を点
S1、点PS2、点Peに対する本来の配置位置P1 〜P
5 に修正する必要がある。これを行なうのが図54のス
テップS4−1の処理である。
For example, the points P S1 , P S2 , and Pe are shown in FIG.
(A) When the composition is set vertically, as shown in FIG.
7 (a)), the dimensions and arrangement positions P 1 ′ to P 5 ′ obtained in step S4 are as shown in FIG. 58 (a). In FIG. 58, the virtual body IB corresponding to the obtained dimensions is shown.
Indicated by. However, the arrangement start point and the convergence point of the font data corresponding to the actually set first character are points P
Instead of S1 , point PS2 ', and point Pe', they are point PS1 , point PS2 , and point Pe. Therefore, the output result must be as shown in FIG. Here, as can be seen by comparing the Figure 58 (b) Fig. 58 and (a), the point P S1, the point P S2 ', the point Pe' and the positional relationship, the point P S1, the point P S2, the point P
a triangle relative to the positional relationship of e same (point P S1, the point P S2 ', the point Pe' of the vertex, the point P S1, the point P S2, the point Pe
Is congruent with a triangle having a vertex as a vertex), and thus the obtained size is not affected by the rotation processing. Further, since the color density is determined by the start color density, the end color density, the number of characters, and the order of the characters, it is not affected by the rotation process. However, since the arrangement position is obtained based on the points P S1 , P S2 ′, and Pe ′,
It differs from the original arrangement position with respect to the points P S1 , P S2 , and Pe. Therefore, the obtained arrangement positions P 1 ′ to P 5 ′ are changed to the original arrangement positions P 1 to P with respect to the points P S1 , P S2 , and Pe.
Need to be modified to 5 . This is the process of step S4-1 in FIG.

【0287】具体的には、図58(c)に示すように、
得られた配置位置P1 ’〜P5 ’を、点PS1を中心とし
て、回転角度δ分、ステップS2−1の回転処理時と逆
方向に回転させてやる。この逆方向への回転後の配置位
置P1 〜P5 は、以下に示すアフィン変換式により得る
ことができる。 xPi=(xPi’−xS1)・cos(−δ)−(yPi’−
S1)・sin(−δ) yPi=(xPi’−xS1)・sin(−δ)+(yPi’−
S1)・cos(−δ) ここで、(xPi’,yPi’)は、得られた配置位置
1 ’〜P5 ’の座標であり、(xPi,yPi)は、求め
るべき本来の配置位置P1 〜P5 の座標である。この場
合、i=1、2、3、4、5である。しかし、回転処理
の中心(この場合点PS1)と、最初の文字に対応するフ
ォントデータの配置位置P1 とが同じである場合(図3
7(a)、(b)、図38(c)、(d)等)、配置位
置P1 ’の座標と、P1 の座標は同じになるので、上記
iは2〜5、すなわち、最初の文字に対応するフォント
データの配置位置の逆回転処理は不要である。
More specifically, as shown in FIG.
The obtained arrangement positions P 1 ′ to P 5 ′ are rotated about the point P S1 by a rotation angle δ in the direction opposite to the rotation process in step S2-1. Positions P 1 to P 5 after rotation of the reverse direction can be obtained by the affine transformation formula shown below. x Pi = (x Pi '-x S1) · cos (-δ) - (y Pi' -
y S1 ) · sin (−δ) y Pi = (x Pi′− x S1 ) · sin (−δ) + (y Pi ′ −
y S1 ) · cos (−δ) Here, (x Pi ′, y Pi ) is the coordinates of the obtained arrangement positions P 1 ′ to P 5 ′, and (x Pi , y Pi ) is obtained. is the original coordinates of the position P 1 to P 5 to. In this case, i = 1, 2, 3, 4, 5. However, when the center of the rotation processing (in this case, the point P S1 ) is the same as the arrangement position P 1 of the font data corresponding to the first character (FIG. 3).
7 (a), (b), FIGS. 38 (c), (d), etc.), since the coordinates of the arrangement position P 1 ′ and the coordinates of P 1 are the same, i is 2 to 5, ie, The reverse rotation processing of the arrangement position of the font data corresponding to the character is unnecessary.

【0288】このようにして得られた配置位置P1 〜P
5 に、ステップS4で得られた寸法のフォントデータを
出力することにより、設定された組版指示に応じた組版
結果が出力されることになる。
The arrangement positions P 1 to P thus obtained
By outputting the font data having the dimensions obtained in step S4 to step 5 , the composition result according to the set composition instruction is output.

【0289】上述したように、この実施例では、文字配
置処理部1、寸法特定部4、配置開始点特定部5は、設
定された点PS1と点PS2の位置関係にかかわらず、常
に、処理パターン1の算出手順に従って各寸法、配置位
置などを求めることができるので計算が簡単になる。ま
た、上述した第一実施例では、処理パターン1〜3に係
るプログラムを用意しておき、設定された点PS1と点P
S2の位置関係の応じて、処理パターン1〜3のプログラ
ムを適宜選択して、寸法や配置位置などを求める必要が
あるが、この第二実施例では、処理パターン1に係るプ
ログラムのみを容易しておけばよいので、装置の構成
(プログラムを記憶するメモリ容量や処理手順の制御
等)が簡単になる。
As described above, in this embodiment, the character arrangement processing unit 1, the dimension identification unit 4, and the arrangement start point identification unit 5 always operate regardless of the positional relationship between the set points P S1 and P S2. Since the dimensions, arrangement positions, and the like can be obtained according to the calculation procedure of the processing pattern 1, the calculation is simplified. In the above-described first embodiment, the programs related to the processing patterns 1 to 3 are prepared, and the set points P S1 and P
In accordance with the positional relationship of S2 , it is necessary to appropriately select the programs of the processing patterns 1 to 3 to determine the dimensions and arrangement positions, but in the second embodiment, only the program relating to the processing pattern 1 is simplified. The configuration of the apparatus (control of the memory capacity for storing the program, control of the processing procedure, and the like) can be simplified.

【0290】なお、上述では、点PS1と点PS2とを結ぶ
線分を出力領域のx軸に平行(あるいは一致)させるよ
うに、点PS1を中心として、点PS2と点Peとを所定角
度回転させて点PS2’、点Pe’を求めたが、点PS2
中心として、点PS1と点Peとを所定角度回転させて点
S1’、点Pe’を求めるように構成してもよい。但
し、このときの回転処理時の回転方向は、点PS1を中心
とする場合と逆、すなわち、(点PS1のy座標
(yS1))>(点PS2のy座標(yS2))のときδは負
となり、(yS1)<(yS2)のときδは正となる。
In the above description, the point P S2 and the point Pe are centered on the point P S1 so that the line segment connecting the point P S1 and the point P S2 is parallel (or coincides) with the x-axis of the output area. Is rotated by a predetermined angle to obtain the points P S2 ′ and Pe ′. However, the points P S1 and Pe are rotated by a predetermined angle around the point P S2 to obtain the points P S1 ′ and Pe ′. May be configured. However, the rotation direction at the time of the rotation processing at this time is the reverse of the rotation direction about the point P S1 , that is, (y coordinate of the point P S1 (y S1 ))> (y coordinate of the point P S2 (y S2 )). ) Is negative, and (y S1 ) <(y S2 ), δ is positive.

【0291】また、点PS1と点PS2とを結ぶ線分を出力
領域のy軸に平行(あるいは一致)させるように、点P
S1(または点PS2)を中心として、点PS2(または点P
S1)と点Peとを所定角度回転させた点PS2’(または
点PS1’)、点Pe’を求め、この点PS1、点PS2’、
点Pe’(または点PS1’、点PS2、点Pe’)に基づ
き、各フォントデータの寸法、配置位置を求め、求めた
配置位置を点PS1(または点PS2)を中心として、上記
所定角度分、逆方向に回転させて本来の配置位置を求め
るように構成してもよい。但し、このときには、文字配
置処理部1等は、点PS1、点PS2’、点Pe’(または
点PS1’、点PS2、点Pe’)に対する寸法や配置位置
を 処理パターン2に係る処理手順で求める構成とな
る。
Also, the point P S1 is set so that the line segment connecting the point P S1 and the point P S2 is parallel (or coincides) with the y-axis of the output area.
With S1 (or point P S2 ) as the center, point P S2 (or point P S2 )
S1 ) and the point Pe are obtained by rotating the point Pe by a predetermined angle to obtain a point P S2 ′ (or a point P S1 ′) and a point Pe ′, and the points P S1 , P S2 ′,
Based on the point Pe ′ (or the point P S1 ′, the point P S2 , the point Pe ′), the size and the arrangement position of each font data are obtained, and the obtained arrangement position is centered on the point P S1 (or the point P S2 ). The original arrangement position may be obtained by rotating in the opposite direction by the predetermined angle. However, at this time, the character arrangement processing unit 1 and the like assign the dimensions and arrangement positions for the points P S1 , P S2 ', and Pe' (or the points P S1 ', P S2 , and Pe') to the processing pattern 2. The configuration is obtained by such a processing procedure.

【0292】[0292]

【発明の効果】以上の説明から明らかなように、請求項
1に記載の発明によれば、設定された最初の文字に対応
するフォントデータの配置開始点PS1、PS2から、設定
された収束点Peに収束するように、設定されたテキス
トデータを構成する各文字に対応する矩形のフォントデ
ータの寸法、配置位置を求め、各フォントデータを遠近
配置するように構成したので、出力されたフォントデー
タの字面が歪むことがなく、字面に基づいた視覚的に自
然な遠近配置で各文字が配列された組版結果を得ること
ができる。
As is apparent from the above description, according to the first aspect of the present invention, the font data arrangement starting points P S1 and P S2 corresponding to the first character set are set. Since the dimensions and arrangement position of the rectangular font data corresponding to each character constituting the set text data are determined so as to converge to the convergence point Pe, and the respective font data are arranged in a distance, the output is performed. The character face of the font data is not distorted, and a typesetting result in which each character is arranged in a visually natural perspective arrangement based on the character face can be obtained.

【0293】また、求めた寸法、配置位置に基づき出力
されるフォントデータに対応する文字は、フォントから
文字コードで読み出すように構成しているので、組版結
果に対する文字(に対応するフォントデータ)の修正や
挿入、削除等は、主に文字コードの変更やシフト等で対
応できるので、従来装置に比べて、組版結果に対する文
字(に対応するフォントデータ)の修正や挿入、削除等
に柔軟に対応することができる。
Also, since the characters corresponding to the font data output based on the obtained dimensions and arrangement positions are read out from the font by character codes, the characters (corresponding to the font data) corresponding to the typesetting result are read. Correction, insertion, deletion, etc. can be handled mainly by changing or shifting the character code, so it is more flexible to correct, insert, delete, etc. characters (corresponding font data) to the formatted result compared to the conventional device can do.

【0294】また、請求項2に記載の発明によれば、文
字配置処理制御手段や寸法特定手段、配置開始点特定手
段による、各フォントデータの寸法や配置位置の算出
を、設定された点PS1と点PS2とを結ぶ線分が出力領域
の座標軸に平行(あるいは一致)するように、点P
S1(または点PS2)を中心として、点PS2(または点P
S1)、点Peを所定角度回転し、得られた点PS2’、点
Pe’と点PS1(または、点PS1’、点Pe’と点
S2)に基づき、行なうように構成したので、この算出
処理が簡単になる。
According to the second aspect of the present invention, the calculation of the size and the arrangement position of each font data by the character arrangement processing control means, the dimension identification means, and the arrangement start point identification means is performed at the set point P. The point P is set so that the line segment connecting S1 and the point P S2 is parallel (or coincides) with the coordinate axis of the output area.
With S1 (or point P S2 ) as the center, point P S2 (or point P S2 )
S1 ), the point Pe is rotated by a predetermined angle, and the processing is performed based on the obtained points P S2 ′, Pe ′ and P S1 (or points P S1 ′, Pe ′ and P S2 ). This simplifies the calculation process.

【0295】さらに、請求項3に記載の発明によれば、
設定された配置色濃度から終了色濃度へ徐々に変化する
ように各フォントデータに色を付けて出力するので、見
栄えがよく、見る者の注意を引くようなチラシ等を作成
することができる。
Further, according to the third aspect of the present invention,
Since each font data is colored and output so as to gradually change from the set arrangement color density to the end color density, it is possible to create a flyer or the like that looks good and attracts the viewer's attention.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第一実施例に係る組版処理装置の内部
構成を示すブロック図である。
FIG. 1 is a block diagram showing an internal configuration of a typesetting processing apparatus according to a first embodiment of the present invention.

【図2】第一実施例の文字列の遠近配置組版の処理手順
を示すメインフローチャートである。
FIG. 2 is a main flowchart showing a processing procedure of a character string perspective layout arrangement according to the first embodiment;

【図3】組版指示の取込みの処理手順を示すフローチャ
ートである。
FIG. 3 is a flowchart showing a processing procedure for capturing a typesetting instruction;

【図4】各フォントデータの寸法、配置位置、色濃度を
求める処理手順を示すフローチャートである。
FIG. 4 is a flowchart illustrating a processing procedure for obtaining the size, arrangement position, and color density of each font data.

【図5】組版結果の出力の処理手順を示すフローチャー
トである。
FIG. 5 is a flowchart illustrating a processing procedure for outputting a typesetting result.

【図6】テキストデータバッファの構成を示す図であ
る。
FIG. 6 is a diagram showing a configuration of a text data buffer.

【図7】配置開始点PS1、PS2と収束点Peの設定を説
明するための図である。
FIG. 7 is a diagram for explaining setting of arrangement start points P S1 and P S2 and a convergence point Pe.

【図8】組版指示バッファの構成を示す図である。FIG. 8 is a diagram showing a configuration of a typesetting instruction buffer.

【図9】処理パターン1の場合の組方向に応じたフォン
トデータの配列状態を示す図である。
FIG. 9 is a diagram showing an arrangement state of font data according to a set direction in the case of processing pattern 1;

【図10】組版指示バッファの開始色濃度等の記憶エリ
アの構成を示す図である。
FIG. 10 is a diagram showing a configuration of a storage area of a typesetting instruction buffer, such as a start color density.

【図11】組版データテーブルの構成を示す図である。FIG. 11 is a diagram showing a configuration of a typesetting data table.

【図12】回転角度θを説明するための図である。FIG. 12 is a diagram for explaining a rotation angle θ.

【図13】組版補助データテーブルの構成を示す図であ
る。
FIG. 13 is a diagram showing a configuration of a typesetting auxiliary data table.

【図14】作業用に設けたワークエリアの構成を示す図
である。
FIG. 14 is a diagram showing a configuration of a work area provided for work.

【図15】各フォントデータの色濃度の変化率の算出を
説明するための図である。
FIG. 15 is a diagram for explaining calculation of a rate of change in color density of each font data.

【図16】図9(c)、(a)の組版に対して寸法の算
出、配置位置の特定等を説明するための図である。
FIG. 16 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like for the composition of FIGS. 9C and 9A;

【図17】図9(d)、(b)の組版に対して寸法の算
出、配置位置の特定等を説明するための図である。
FIG. 17 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like for the composition of FIGS. 9D and 9B;

【図18】エラーの発生原因の一例を示す図である。FIG. 18 is a diagram illustrating an example of an error occurrence cause.

【図19】各フォントデータの色濃度の算出の手順を説
明するための図である。
FIG. 19 is a diagram illustrating a procedure for calculating the color density of each font data.

【図20】図16の場合の、点PS1と点Peとを結ぶ線
分および点PS2と点Peとを結ぶ線分と、フォントデー
タの仮想ボディとの交点ができるパターンを示す図であ
る。
FIG. 20 is a diagram showing a pattern in which a line segment connecting the point P S1 and the point Pe and a line segment connecting the point P S2 and the point Pe and an intersection with the virtual body of the font data in the case of FIG. 16; is there.

【図21】図17の場合の、点PS1と点Peとを結ぶ線
分および点PS2と点Peとを結ぶ線分と、フォントデー
タの仮想ボディとの交点ができるパターンを示す図であ
る。
21 is a diagram showing a pattern in which a line segment connecting the point P S1 and the point Pe and a line segment connecting the point P S2 and the point Pe and an intersection with the virtual body of the font data in the case of FIG. 17; is there.

【図22】点PS1と点Peとを結ぶ線分、点PS2と点P
eとを結ぶ線分の1次関数式の特定方法を説明するため
の図である。
FIG. 22 is a line segment connecting point P S1 and point Pe, point P S2 and point P;
FIG. 9 is a diagram for explaining a method of specifying a linear function equation of a line segment connecting e.

【図23】交点を調べる方法を説明するための図であ
る。
FIG. 23 is a diagram for explaining a method of examining an intersection.

【図24】エラーの発生原因の一例を示す図である。FIG. 24 is a diagram illustrating an example of an error occurrence cause;

【図25】2番目の文字に対応するフォントデータの配
置開始点を示す図である。
FIG. 25 is a diagram showing an arrangement start point of font data corresponding to a second character.

【図26】3番目の文字に対応するフォントデータの配
置開始点を示す図である。
FIG. 26 is a diagram illustrating an arrangement start point of font data corresponding to a third character.

【図27】組版結果の出力処理を説明するための図であ
る。
FIG. 27 is a diagram for explaining a process of outputting a formalization result.

【図28】組版結果の出力処理を説明するための図であ
る。
FIG. 28 is a diagram for explaining output processing of a typesetting result.

【図29】組版結果の出力処理を説明するための図であ
る。
FIG. 29 is a diagram for describing output processing of a typesetting result.

【図30】フォントデータの削除、挿入処理の色濃度の
調整を説明するための図である。
FIG. 30 is a diagram for explaining adjustment of the color density in font data deletion and insertion processing.

【図31】処理パターン2に対する指示点PS1、PS2
Peの設定を示す図である。
FIG. 31 shows designated points P S1 , P S2 ,
It is a figure showing the setting of Pe.

【図32】処理パターン2の場合の組方向に応じたフォ
ントデータの配列状態を示す図である。
FIG. 32 is a diagram showing an arrangement state of font data according to a set direction in the case of processing pattern 2;

【図33】寸法の算出、配置位置の特定等を説明するた
めの図である。
FIG. 33 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like.

【図34】寸法の算出、配置位置の特定等を説明するた
めの図である。
FIG. 34 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like.

【図35】交点を調べる方法を説明するための図であ
る。
FIG. 35 is a diagram for explaining a method of examining an intersection.

【図36】処理パターン3に対する指示点PS1、PS2
Peの設定を示す図である。
FIG. 36 shows designated points P S1 , P S2 ,
It is a figure showing the setting of Pe.

【図37】処理パターン3の場合の縦組みのフォントデ
ータの配列状態を示す図である。
FIG. 37 is a diagram showing an arrangement state of vertical font data in the case of processing pattern 3;

【図38】処理パターン3の場合の横組みのフォントデ
ータの配列状態を示す図である。
FIG. 38 is a diagram showing an arrangement state of horizontal font data in the case of processing pattern 3;

【図39】処理パターン3の場合の回転角度θを説明す
るための図である。
FIG. 39 is a diagram for explaining a rotation angle θ in the case of a processing pattern 3;

【図40】図37(a)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 40 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 37 (a);

【図41】図37(b)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 41 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 37 (b);

【図42】図37(c)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 42 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 37 (c);

【図43】図37(d)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 43 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 37 (d);

【図44】図38(a)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 44 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG.

【図45】図38(b)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 45 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 38B;

【図46】図38(c)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 46 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 38C;

【図47】図38(d)の寸法の算出、配置位置の特定
等を説明するための図である。
FIG. 47 is a diagram for explaining calculation of dimensions, specification of an arrangement position, and the like in FIG. 38D.

【図48】点PS1と点Peとを結ぶ線分と点Pcと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。
FIG. 48 shows a line segment connecting point P S1 and point Pe, point Pc and point P;
It is a figure for explaining the method of examining the intersection with the line segment which connects d.

【図49】点PS1と点Peとを結ぶ線分と点Pbと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。
FIG. 49 is a line segment connecting point P S1 and point Pe, point Pb and point P;
It is a figure for explaining the method of examining the intersection with the line segment which connects d.

【図50】点PS2と点Peとを結ぶ線分と点Paと点P
cとを結ぶ線分との交点を調べる方法を説明するための
図である。
50 is a line segment connecting point P S2 and point Pe, point Pa and point P. FIG.
FIG. 9 is a diagram for explaining a method of checking an intersection with a line segment connecting c.

【図51】点PS2と点Peとを結ぶ線分と点Pcと点P
dとを結ぶ線分との交点を調べる方法を説明するための
図である。
FIG. 51 is a line segment connecting point P S2 and point Pe, point Pc and point P;
It is a figure for explaining the method of examining the intersection with the line segment which connects d.

【図52】点PS1と点Peとを結ぶ線分および点PS2
点Peとを結ぶ線分と、フォントデータの仮想ボディと
の交点ができるパターンを示す図である。
FIG. 52 is a diagram showing a pattern in which a line segment connecting the point P S1 and the point Pe and a line segment connecting the point P S2 and the point Pe and an intersection of the virtual body of the font data are formed.

【図53】第二実施例装置の内部構成を示すブロック図
である。
FIG. 53 is a block diagram showing the internal configuration of the device of the second embodiment.

【図54】第二実施例の文字配置処理時の処理手順を示
すフローチャートである。
FIG. 54 is a flowchart illustrating a processing procedure during character arrangement processing according to the second embodiment.

【図55】回転処理を説明するための図である。FIG. 55 is a diagram illustrating a rotation process.

【図56】回転処理を説明するための図である。FIG. 56 is a diagram for explaining a rotation process;

【図57】回転処理を説明するための図である。FIG. 57 is a diagram illustrating a rotation process.

【図58】設定された指示点PS1、PS2、Peに対する
配置位置の特定方法を説明するための図である。
FIG. 58 is a diagram for describing a method of specifying an arrangement position with respect to set designated points P S1 , P S2 , and Pe.

【図59】フォントを構成する1文字のフォントデータ
の構成を示す模式図である。
FIG. 59 is a schematic diagram showing a structure of font data of one character constituting a font.

【図60】従来装置で出力された組版結果を示す図であ
る。
FIG. 60 is a diagram showing a typesetting result output by a conventional device.

【図61】従来装置の問題点を説明するための図であ
る。
FIG. 61 is a diagram for explaining a problem of the conventional device.

【図62】従来装置の問題点を説明するための図であ
る。
FIG. 62 is a view for explaining a problem of the conventional device.

【図63】従来装置の問題点を説明するための図であ
る。
FIG. 63 is a view for explaining a problem of the conventional device.

【符号の説明】[Explanation of symbols]

1 … 文字配置処理部 4 … 寸法特定部 5 … 配置開始点特定部 6 … 色濃度特定部 9 … 入力部 11 … 入力制御部 12 … 出力制御部 13 … フォント格納部 14 … 表示装置 15 … プリンタ DESCRIPTION OF SYMBOLS 1 ... Character arrangement | positioning processing part 4 ... Dimension identification part 5 ... Arrangement start point identification part 6 ... Color density identification part 9 ... Input part 11 ... Input control part 12 ... Output control part 13 ... Font storage part 14 ... Display device 15 ... Printer

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−274650(JP,A) 特開 平6−274649(JP,A) 特開 平6−202605(JP,A) 特開 昭59−229560(JP,A) 特開 昭56−53074(JP,A) (58)調査した分野(Int.Cl.7,DB名) G03F 1/00 - 1/16 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-6-274650 (JP, A) JP-A-6-274649 (JP, A) JP-A-6-202605 (JP, A) 229560 (JP, A) JP-A-56-53074 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G03F 1/00-1/16

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 与えられたテキストデータを構成する各
文字に対応する各フォントデータを遠近配置する文字配
置処理を含む組版処理を行ない、組版処理後の各文字に
対応するフォントデータを、予め登録されているフォン
トから、各文字の文字コードを用いて読み出し、組版処
理後の結果を出力する組版処理装置において、 テキストデータと、前記テキストデータ内の最初の文字
に対応するフォントデータの、出力領域における配置開
始点PS1、PS2と、前記テキストデータを構成する各文
字に対応する各フォントデータを、前記出力領域内に遠
近配置するときの前記出力領域における収束点Peとを
設定する設定手段と、 前記テキストデータ内の所定の文字に対応するフォント
データの配置開始点PaとPbとを結ぶ線分を仮想ボデ
ィの一辺とした矩形のフォントデータの寸法を求める寸
法特定手段と、 前記寸法特定手段で特定された寸法のフォントデータの
仮想ボディの一辺を、そのフォントデータの寸法を特定
した際の配置開始点PaとPbとを結ぶ線分に一致さ
せ、かつ、前記配置開始点PaとPbとを結ぶ線分を挟
んで前記収束点Pe側に、前記フォントデータを仮想的
に配置したときの、前記点PS1と前記点Peとを結ぶ線
分、および前記点PS2と前記点Peとを結ぶ線分と、前
記フォントデータの仮想ボディとの交点をそれぞれ求
め、求めた交点を通過する、前記点PS1と前記点PS2
を結ぶ線分に平行な線と、前記点PS1と点Peとを結ぶ
線分、および前記点PS2と点Peとを結ぶ線分との各交
点(前記仮想的に配置したフォントデータに対応する所
定の文字の次の文字に対応するフォントデータの配置開
始点Pa、Pb)を求める配置開始点特定手段と、 前記設定手段で設定された配置開始点PS1、PS2を最初
の文字に対応するフォントデータの配置開始点Pa、P
bとして前記寸法特定手段に与えて、前記テキストデー
タ内の最初の文字に対応するフォントデータの寸法を求
め、求めた最初の文字の寸法と前記配置開始点PS1、P
S2とに基づき、前記最初の文字に対応するフォントデー
タの配置位置を求め、前記配置開始点PS1、PS2と前記
最初の文字の寸法に関するデータを前記配置開始点特定
手段に与えて、前記テキストデータ内の2番目の文字の
配置開始点Pa、Pbを求め、次に、前記求めた2番目
の文字の配置開始点Pa、Pbを前記寸法特定手段に与
えて、前記2番目の文字に対応するフォントデータの寸
法を求め、求めた2番目の文字の寸法と、前記2番目の
文字の寸法を求めた際の配置開始点Pa、Pbとに基づ
き、前記2番目の文字に対応するフォントデータの配置
位置を求め、前記2番目の文字の寸法を求めた際の配置
開始点Pa、Pbと前記2番目の文字の寸法に関するデ
ータを前記配置開始点特定手段に与えて、前記テキスト
データ内の3番目の文字の配置開始点Pa、Pbを求め
る処理を繰り返し、前記テキストデータ内の各文字に対
応する各フォントデータの寸法と、その配置位置を求め
るよう制御する文字配置処理制御手段と、 前記テキストデータ内の各文字に対応する各フォントデ
ータを、各文字の文字コードを用いて前記フォントから
読み出し、読み出した各フォントデータを、前記文字配
置処理制御手段で得られた各フォントデータの寸法と配
置位置とに基づき出力する出力手段と、 を備えたことを特徴とする組版処理装置。
1. A typesetting process including a character arrangement process for arranging font data corresponding to each character constituting a given text data in perspective is performed, and font data corresponding to each character after the typesetting process is registered in advance. A typesetting processing apparatus that reads out from a font that has been set using a character code of each character and outputs a result after typesetting processing, the output area of text data and font data corresponding to the first character in the text data. Setting means for setting the arrangement start points P S1 and P S2 of the above and a convergence point Pe in the output area when the font data corresponding to each character constituting the text data is arranged in the output area in a distance. And a line segment connecting the layout start points Pa and Pb of the font data corresponding to the predetermined characters in the text data to the virtual body. Dimension specifying means for determining the size of the font data of the rectangle as one side; and an arrangement start point Pa for specifying one side of the virtual body of the font data of the size specified by the size specifying means, when specifying the size of the font data. The point P S1 when the font data is virtually arranged on the convergence point Pe side with the line segment connecting the arrangement start point Pa and Pb being coincident with the line segment connecting Pb and Pb. obtains a line segment connecting said point Pe, and with the point P S2 and the line segment connecting said point Pe, the intersection of the imaginary body of the font data respectively, when passing through the intersection determined, the point P S1 At each intersection of the line parallel to the line connecting the point P S2 and the point P S2 , the line connecting the point P S1 and the point Pe, and the line connecting the point P S2 and the point Pe. Of the specified character corresponding to the font data An arrangement start point specifying means for obtaining an arrangement start point Pa, Pb) of the font data corresponding to the next character; and an arrangement start point P S1 , P S2 set by the setting means, for the font data corresponding to the first character. Arrangement start point Pa, P
b, the size of the font data corresponding to the first character in the text data is obtained, and the obtained size of the first character and the arrangement start points P S1 , P S
Based on S2 , the arrangement position of the font data corresponding to the first character is obtained, and the arrangement start points P S1 and P S2 and the data on the dimensions of the first character are given to the arrangement start point specifying means, The arrangement start points Pa and Pb of the second character in the text data are obtained. Then, the obtained arrangement start points Pa and Pb of the second character are given to the dimension specifying means, and the second character is assigned to the second character. The font corresponding to the second character is determined based on the size of the second character obtained by determining the size of the corresponding font data and the arrangement start points Pa and Pb when the size of the second character is obtained. The arrangement position of data is obtained, and the arrangement start points Pa and Pb when the size of the second character is obtained and the data relating to the size of the second character are given to the arrangement start point specifying means. Third A character arrangement processing control means for controlling so as to determine the size of each font data corresponding to each character in the text data and its arrangement position by repeating the processing for obtaining the character arrangement start points Pa and Pb; Each font data corresponding to each character is read from the font using the character code of each character, and the read font data is obtained by arranging the size and arrangement position of each font data obtained by the character arrangement processing control means. An output means for outputting based on a composition processing device.
【請求項2】 請求項1に記載の組版処理装置におい
て、 前記設定手段から設定された配置開始点PS1とPS2とを
結ぶ線分を、前記出力領域内の座標軸に平行あるいは一
致させるように、前記点PS1(または前記点PS2)を中
心として、前記収束点Peと前記点PS2(または前記点
S1)とを所定角度回転させた点Pe’と点PS2’(ま
たは点PS1’)との座標を求める回転処理手段を備える
とともに、 前記寸法特定手段、前記配置開始点特定手段、前記文字
配置処理制御手段では、前記収束点Peと前記点P
S2(または前記点PS1)を、回転処理手段で求めた点P
e’と点PS2’(または点PS1’)として、前記テキス
トデータ内の各文字に対応する各フォントデータの寸法
と、前記点PS1(または前記点PS2)と前記点Pe’と
前記点PS2’(または前記点PS1’)とに対する、各フ
ォントデータの配置位置を求め、 また、前記求めた点PS1(または点PS2)と点Pe’と
点PS2’(または点PS1’)とに対する、各フォントデ
ータの配置位置を、前記所定角度分、逆回転させて前記
配置開始点PS1、PS2と前記収束点Peに対する、各フ
ォントデータの配置位置を求める逆回転手段を備え、 前記出力手段では、前記フォントから読み出した各フォ
ントデータを、前記求めた寸法と、前記配置開始点
S1、PS2と前記収束点Peに対する、各フォントデー
タの配置位置に基づき出力するように構成したことを特
徴とする組版処理装置。
2. The typesetting processing apparatus according to claim 1, wherein a line segment connecting the arrangement start points P S1 and P S2 set by said setting means is parallel to or coincides with a coordinate axis in said output area. A point Pe ′ and a point P S2 ′ (or a point obtained by rotating the convergence point Pe and the point P S2 (or the point P S1 ) by a predetermined angle around the point P S1 (or the point P S2 ). And a rotation processing unit for obtaining coordinates with the point P S1 ′). The size specifying unit, the arrangement start point specifying unit, and the character arrangement processing control unit include the convergence point Pe and the point P
S2 (or the point P S1 ) is converted to the point P obtained by the rotation processing means.
e ′ and point P S2 ′ (or point P S1 ′), the size of each font data corresponding to each character in the text data, the point P S1 (or the point P S2 ), and the point Pe ′ An arrangement position of each font data with respect to the point P S2 ′ (or the point P S1 ′) is obtained, and the obtained point P S1 (or the point P S2 ), a point Pe ′, and a point P S2 ′ (or The arrangement position of each font data with respect to the point P S1 ′) is reversely rotated by the predetermined angle to obtain the arrangement position of each font data with respect to the arrangement start points P S1 and P S2 and the convergence point Pe. A rotation unit, wherein the output unit converts each font data read from the font based on the determined size and the arrangement position of each font data with respect to the arrangement start points P S1 and P S2 and the convergence point Pe. Configured to output Typesetting processing apparatus according to claim.
【請求項3】 請求項1または請求項2のいずれかに記
載の組版処理装置において、 前記テキストデータの最初の文字に対応するフォントデ
ータの色濃度(開始色濃度)と前記テキストデータの最
後の文字に対応するフォントデータの色濃度(終了色濃
度)とを設定する色濃度設定手段と、 前記開始色濃度と前記終了色濃度との変化量と、前記テ
キストデータの全文字数とに基づき、前記テキストデー
タの各文字に対応する各フォントデータに対する色濃度
の変化率を求め、前記テキストデータ内における各文字
の順番と、前記求めた色濃度の変化率とに基づき、前記
テキストデータの各文字に対応するフォントデータに対
する、前記開始色濃度からの色濃度の変化量を求め、前
記求めた開始色濃度からの色濃度の各変化量を前記開始
色濃度に加算して、前記テキストデータの各文字に対応
するフォントデータの色濃度を求める色濃度特定手段
と、 を備え、 前記出力手段では、前記テキストデータ内の各文字に対
応する各フォントデータを、前記色濃度特定手段で特定
した各色濃度で出力するように構成したことを特徴とす
る組版処理装置。
3. The typesetting processing device according to claim 1, wherein a color density (start color density) of font data corresponding to a first character of said text data and a last color density of said text data are set. Color density setting means for setting a color density (end color density) of font data corresponding to a character; a change amount between the start color density and the end color density; and a total number of characters of the text data, The change rate of the color density for each font data corresponding to each character of the text data is determined, and based on the order of each character in the text data and the calculated change rate of the color density, The amount of change in color density from the start color density for the corresponding font data is determined, and the amount of change in color density from the determined start color density is calculated as the start color density. And a color density specifying unit that calculates the color density of font data corresponding to each character of the text data.The output unit converts the font data corresponding to each character in the text data into A typesetting processor configured to output at each color density specified by a color density specifying unit.
JP33908794A 1994-12-29 1994-12-29 Typesetting equipment Expired - Fee Related JP3065223B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33908794A JP3065223B2 (en) 1994-12-29 1994-12-29 Typesetting equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33908794A JP3065223B2 (en) 1994-12-29 1994-12-29 Typesetting equipment

Publications (2)

Publication Number Publication Date
JPH08184952A JPH08184952A (en) 1996-07-16
JP3065223B2 true JP3065223B2 (en) 2000-07-17

Family

ID=18324140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33908794A Expired - Fee Related JP3065223B2 (en) 1994-12-29 1994-12-29 Typesetting equipment

Country Status (1)

Country Link
JP (1) JP3065223B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6126931A (en) 1993-12-20 2000-10-03 Surfacine Development Company, Llc Contact-killing antimicrobial devices
US6180584B1 (en) 1998-02-12 2001-01-30 Surfacine Development Company, Llc Disinfectant composition providing sustained residual biocidal action
US6264936B1 (en) 1993-12-20 2001-07-24 Biopolymerix, Inc. Contact-killing non-leaching antimicrobial materials

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6279017B1 (en) * 1996-08-07 2001-08-21 Randall C. Walker Method and apparatus for displaying text based upon attributes found within the text

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5653074A (en) * 1979-10-09 1981-05-12 Toppan Printing Co Ltd Drawing method of formative letters
JPS59229560A (en) * 1983-06-11 1984-12-24 Yasufumi Miyake Pattern forming method
JP2802004B2 (en) * 1993-01-07 1998-09-21 三菱電機株式会社 Display control device
JPH06274649A (en) * 1993-03-23 1994-09-30 Dainippon Printing Co Ltd Image synthesizer
JP3517256B2 (en) * 1993-03-23 2004-04-12 大日本印刷株式会社 Image synthesis device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6126931A (en) 1993-12-20 2000-10-03 Surfacine Development Company, Llc Contact-killing antimicrobial devices
US6264936B1 (en) 1993-12-20 2001-07-24 Biopolymerix, Inc. Contact-killing non-leaching antimicrobial materials
US6180584B1 (en) 1998-02-12 2001-01-30 Surfacine Development Company, Llc Disinfectant composition providing sustained residual biocidal action

Also Published As

Publication number Publication date
JPH08184952A (en) 1996-07-16

Similar Documents

Publication Publication Date Title
JP3333297B2 (en) How to change the thickness of raster output characters
KR100818718B1 (en) Image processing device, and computer-readable recording medium having recorded thereon image processing program
JP3065223B2 (en) Typesetting equipment
JP2876942B2 (en) Data converter
JP4201359B2 (en) Design creation device
EP0461811A2 (en) Pattern processing method
JPH05269956A (en) Electronic composition device for composing along optional line
US20060119897A1 (en) Output apparatus and program thereof
JP3718983B2 (en) Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program
JP4201361B2 (en) Design evaluation device and design creation device
US5416852A (en) Pattern processing system and method
JP4309987B2 (en) Raster data editing method and apparatus
JPH04280296A (en) Contour data processing device
JP3236410B2 (en) Contour line forming method
US5065342A (en) Apparatus for preparing image reproduction data
JP3761923B2 (en) Image processing apparatus and method
JP2721348B2 (en) Image processing device
JPS63217394A (en) Character contour line generation system
JP3101402B2 (en) Document editing method and document editing device
JP3658493B2 (en) Electronic typesetting method and recording medium on which program for executing the method is recorded
JPH11219440A (en) Image editing device, image editing method and recording medium recording image editing processing program
US20060227353A1 (en) Printing apparatus and program thereof
JP2721344B2 (en) Image processing method
JPH07106644B2 (en) Character generator
JPH02309459A (en) Data converter

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees