JP2958417B2 - String output device - Google Patents

String output device

Info

Publication number
JP2958417B2
JP2958417B2 JP8281261A JP28126196A JP2958417B2 JP 2958417 B2 JP2958417 B2 JP 2958417B2 JP 8281261 A JP8281261 A JP 8281261A JP 28126196 A JP28126196 A JP 28126196A JP 2958417 B2 JP2958417 B2 JP 2958417B2
Authority
JP
Japan
Prior art keywords
character
arrangement
modification
skeleton
character string
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
JP8281261A
Other languages
Japanese (ja)
Other versions
JPH09146527A (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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP8281261A priority Critical patent/JP2958417B2/en
Publication of JPH09146527A publication Critical patent/JPH09146527A/en
Application granted granted Critical
Publication of JP2958417B2 publication Critical patent/JP2958417B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、文字列を出力する文
字列出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string output device for outputting a character string.

【0002】[0002]

【従来の技術】従来、ワードプロセッサ等の文書処理装
置において、文書中の一部の文字列を強調する場合には
予めメーカーサイドで決められている網かけ、反転、肉
太、アンダライン、斜体文字、回転等によって所望の文
字列を修飾するようにしていた。
2. Description of the Related Art Conventionally, in a document processing apparatus such as a word processor, when emphasizing a part of a character string in a document, shading, inversion, boldness, underline, italic characters determined in advance by a maker side. , Rotation, etc., to modify a desired character string.

【0003】[0003]

【発明が解決しようとする課題】このように文字列の強
調は予め決められた方法でしか行なうことができず、極
めて自由度が低く、ユーザの要望に十分応じきれないと
いう欠点があった。本発明の課題は、奥行き感が得られ
るように曲線配列された文字列を出力することができる
ようにすることである。
As described above, the character string can be emphasized only by a predetermined method, and has a disadvantage that the degree of freedom is extremely low and the user's demand cannot be sufficiently satisfied. An object of the present invention is to be able to output a character string arranged in a curved line so as to obtain a sense of depth.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。出力対象の文字列を配置する曲線ラインの配
置領域を指定する指定手段と、この指定手段により指定
された前記配置領域に沿って前記文字列を構成する各文
字を配置出力すると共に、前記各文字の形状を、曲線ラ
インの内側における文字の幅よりも、曲線の外側におけ
る文字の幅が大きくなるように、その文字の配置位置に
従って連続的に変化させる配列手段と、この配列手段に
より配列された前記文字列を出力する出力手段とを備え
るものである。
The means of the present invention are as follows. Specifying means for specifying a layout area of a curved line on which a character string to be output is to be positioned; and arranging and outputting each character constituting the character string along the layout area specified by the specifying means; And the arrangement means for continuously changing the shape of the character according to the arrangement position of the character so that the width of the character outside the curve is larger than the width of the character inside the curve line. Output means for outputting the character string.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。配列
手段は、出力対象の文字列を配置する曲線ラインの配置
領域を指定する指定手段により指定された前記配置領域
に沿って前記文字列を構成する各文字を配置出力すると
共に、前記各文字の形状を、曲線ラインの内側における
文字の幅よりも、曲線の外側における文字の幅が大きく
なるように、その文字の配置位置に従って連続的に変化
させる。そして、出力手段は、配列手段により配列され
た前記文字列を出力する。したがって、奥行き感が得ら
れるように曲線配列された文字列を出力することができ
る。
The operation of the means of the present invention is as follows. The arranging means arranges and outputs the characters constituting the character string along the arrangement area specified by the specifying means for specifying the arrangement area of the curve line in which the character string to be output is arranged, and outputs the characters. The shape is continuously changed according to the arrangement position of the character such that the character width outside the curve is larger than the character width inside the curve line. The output means outputs the character strings arranged by the arrangement means. Therefore, it is possible to output a character string arranged in a curved line so as to obtain a sense of depth.

【0006】[0006]

【第1実施例】以下、図1〜図17を参照して第1実施
例を説明する。図1は修飾文字出力装置のブロック構成
図である。手操作部11は文字列情報等を入力するキー
入力装置で、この手操作部11から入力された文字列コ
ードは主制御装置12に取り込まれたのち、テキスト記
憶装置13内の文字列コード記憶部13−1に格納され
る。テキスト記憶装置13はランダムアクセスメモリに
よって構成され、文字列コード記憶部13−1の他に配
置関数記憶部13−2を有している。いま、文字列コー
ド記憶部13−1内の文字列が配置される基準線、つま
り配置骨格線(文字列を構成する各文字の中心を通る
線)を定義すると共に、文字列を構成する各文字の配置
位置での高さを定義する関数を手操作部11から入力す
ると、主制御装置12は入力された関数をテキスト記憶
装置13内の配置関数記憶部13−2に設定する。な
お、本実施例では配置骨格線として直線、ベジュール曲
線、楕円曲線の3種類が用意されており、配置関数記憶
部13−2には任意に選択指定された配置骨格線の種類
も設定される。また、文字列コード記憶部13−1、配
置関数記憶部13−2の内容は1行毎に1組のデータと
して記憶され、ある文字列に対してその配置関数を定義
しておく。
First Embodiment Hereinafter, a first embodiment will be described with reference to FIGS. FIG. 1 is a block diagram of a decoration character output device. The manual operation unit 11 is a key input device for inputting character string information and the like. The character string code input from the manual operation unit 11 is taken into the main control device 12 and then stored in the text storage device 13. It is stored in the unit 13-1. The text storage device 13 is constituted by a random access memory, and has an arrangement function storage unit 13-2 in addition to the character string code storage unit 13-1. Now, a reference line in which the character string in the character string code storage unit 13-1 is arranged, that is, an arrangement skeleton line (a line passing through the center of each character constituting the character string) is defined, and each of the characters constituting the character string is defined. When a function that defines the height at the character arrangement position is input from the manual operation unit 11, the main control unit 12 sets the input function in the arrangement function storage unit 13-2 in the text storage device 13. In the present embodiment, three types of arrangement skeleton lines, a straight line, a Bezier curve, and an elliptic curve, are prepared, and the type of the arrangement skeleton line arbitrarily selected and designated is also set in the arrangement function storage unit 13-2. . The contents of the character string code storage unit 13-1 and the arrangement function storage unit 13-2 are stored as one set of data for each row, and an arrangement function is defined for a certain character string.

【0007】主制御装置12はテキスト記憶装置13内
の文字列を出力する際にその文字列の文字数を求めて文
字位置パラメータ算出装置14に与える。文字位置パラ
メータ算出装置14は配置骨格線上に配置する各文字位
置を算出し、文字位置パラメータメモリ15に格納す
る。また、主制御装置12はテキスト記憶装置13内の
文字列をフォントデータ記憶装置16に送ると共に、そ
れに対応する配置関数記憶部13−2内の定義内容を修
飾パラメータ算出装置17に送る。
[0007] When outputting a character string in the text storage device 13, the main control device 12 obtains the number of characters of the character string and gives it to the character position parameter calculation device 14. The character position parameter calculation device 14 calculates each character position to be arranged on the arrangement skeleton line, and stores it in the character position parameter memory 15. The main controller 12 sends the character string in the text storage 13 to the font data storage 16 and sends the corresponding definition in the layout function storage 13-2 to the modification parameter calculator 17.

【0008】修飾パラメータ算出装置17は配置関数記
憶部13−2からの定義内容と文字位置パラメータメモ
リ15からの文字位置パラメータとに基づいて修飾パラ
メータを文字毎に算出し、それを修飾パラメータメモリ
18に格納する。フォントデータ記憶装置16は文字列
コード記憶部13−1からの文字コードにしたがって対
応する文字フォントデータを座標計算装置19に与え
る。なお、フォントデータは文字を構成する要素の輪郭
を座標でなぞるようなデータ列で構成されており、座標
変換により文字修飾がかけやすいデータ構造となってい
る。
The modification parameter calculating device 17 calculates a modification parameter for each character based on the definition contents from the layout function storage section 13-2 and the character position parameters from the character position parameter memory 15, and stores it in the modification parameter memory 18 To be stored. The font data storage device 16 provides the corresponding character font data to the coordinate calculation device 19 according to the character code from the character string code storage unit 13-1. It should be noted that the font data is composed of a data string that traces the outline of an element constituting a character with coordinates, and has a data structure that allows easy character modification by coordinate conversion.

【0009】座標計算装置19は1文字毎に修飾パラメ
ータメモリ18から読み込んだ修飾パラメータにしたが
ってフォントデータ記憶装置16からの文字フォントデ
ータに対して配置位置の制御や大きさ、回転などの修飾
をかけるもので、その結果をラスタライザー20に与え
る。
The coordinate calculation device 19 applies control such as control of the arrangement position, size, and rotation to the character font data from the font data storage device 16 in accordance with the modification parameters read from the modification parameter memory 18 for each character. And gives the result to the rasterizer 20.

【0010】ラスタライザー20は座標計算装置19か
ら送られて来る文字フォントデータの内部を表示の時に
は水平方向に塗り潰して表示制御・表示装置21に与え
て表示出力させ、印字の時には垂直方向(プリンタの印
字ヘッドが垂直方向に取り付けられている時)に塗り潰
して印字バッファ・プリンタ制御装置22に与えてプリ
ンタ23から印字出力させる。
The rasterizer 20 paints the inside of the character font data sent from the coordinate calculation device 19 in the horizontal direction at the time of display and gives it to the display control / display device 21 for display output. (When the print head is mounted in the vertical direction), is applied to the print buffer / printer control device 22, and is printed out from the printer 23.

【0011】次に、本実施例の動作を図2〜図17に基
づいて説明する。いま、文字列コード記憶部13−1内
に入力作成した文字列を印字出力する場合、この文字列
に対応して配置関数記憶部13−2内には任意に定義し
た配置骨格線の種類や各種パラメータが設定されている
ものとする。
Next, the operation of this embodiment will be described with reference to FIGS. When a character string input and created in the character string code storage unit 13-1 is to be printed out, the type of arbitrarily defined arrangement skeleton line or the like is stored in the arrangement function storage unit 13-2 corresponding to this character string. It is assumed that various parameters have been set.

【0012】ここで、図2、図3、図4は配置骨格線の
式とその定義内容を示し、図2は配置骨格線が直線の場
合、図3はベジュール曲線の場合、図4は楕円曲線の場
合である。即ち、配置骨格線が直線の場合にはその開始
点Sの座標(SX、SY)と終了点Eの座標(EX、E
Y)が配置関数記憶部13−2に定義される。また、ベ
ジュール曲線の場合には、その開始点Sの座標(SX、
SY)と終了点Eの座標(EX、EY)の他に、第1制
御点C1の座標(C1X、C1Y)、第2制御点C2の
座標(C2X、C2Y)が配置関数記憶部13−2に定
義される。更に、楕円曲線の場合二はその中心点座標
(CCX、CCY)およびX方向半径CRX、Y方向半
径CRY、開始角度ST1、終了角度EN1が配置関数
記憶部13−2に定義される。一方、本実施例におい
て、配置骨格線上の任意の点は1つの媒介変数で表わさ
れており、その値を開始点Sにおいて「0」、終了点E
において「1」となる媒介変数「t」を用いて表わす
と、その式は図2〜図4に示す如くとなる。例えば直線
の場合にはP(t)=S+(E−S)・tここでt=0
〜1となる。また、本実施例において、出力対象の文字
列は骨格線に沿って配置され、その文字の高さは同じ媒
介変数tに基づいて算出される。
FIGS. 2, 3 and 4 show the formulas of the arrangement skeleton lines and their definitions. FIG. 2 shows a case where the arrangement skeleton lines are straight lines, FIG. This is the case for a curve. That is, when the arrangement skeleton line is a straight line, the coordinates of the start point S (SX, SY) and the coordinates of the end point E (EX, E
Y) is defined in the placement function storage unit 13-2. Further, in the case of a Bezier curve, the coordinates (SX,
SY) and the coordinates (EX, EY) of the end point E, the coordinates (C1X, C1Y) of the first control point C1, and the coordinates (C2X, C2Y) of the second control point C2 are stored in the arrangement function storage unit 13-2. Is defined as Further, in the case of an elliptic curve, the center point coordinates (CCX, CCY), the X direction radius CRX, the Y direction radius CRY, the start angle ST1, and the end angle EN1 are defined in the arrangement function storage unit 13-2. On the other hand, in this embodiment, an arbitrary point on the arrangement skeleton line is represented by one parameter, and its value is set to “0” at the start point S and to the end point E
Is represented by using the parameter "t" which becomes "1", the equations are as shown in FIGS. For example, in the case of a straight line, P (t) = S + (E−S) · t where t = 0
~ 1. In this embodiment, the character string to be output is arranged along the skeleton line, and the height of the character is calculated based on the same parameter t.

【0013】図5は文字の高さHを説明すると共に媒介
変数tによる文字の高さHの変化を示した図で、文字の
中心からの高さをHとすると、この高さHは媒介変数t
の2次式で表わされる。即ち、文字はt=0の開始点か
らt=1の終了点までその文字が配置されるtの値によ
って図5のグラフに示す高さHをとることになる。この
2次式H=At2+Bt+CのA、B、Cの値も定義し
て配置関数記憶部13−2に格納しておく。
FIG. 5 is a view for explaining the character height H and showing the change of the character height H according to the parameter t. Assuming that the height from the center of the character is H, this height H is the intermediate value. Variable t
Is represented by the following quadratic equation. That is, the character has a height H shown in the graph of FIG. 5 depending on the value of t at which the character is arranged from the start point of t = 0 to the end point of t = 1. The values of A, B, and C of the quadratic expression H = At 2 + Bt + C are also defined and stored in the placement function storage unit 13-2.

【0014】このように文字列コード記憶部13−1に
格納されている印字対象の文字列に対応して配置関数記
憶部13−2に配置骨格線の種類や各種パラメータを定
義した状態において、印字指令が与えられると、主制御
装置12は文字列コード記憶部13−1に印字対象であ
る文字列の文字数を求めて文字位置パラメータ算出装置
14に与える。すると、文字位置パラメータ算出装置1
4はこの文字数の逆数をとって媒介変数tの刻を算出す
る。いま、直線骨格に4文字を配置するものとすると、
図6に示す如く、開始点P0から終了点P4までのtの値
はP0でt=0、P1でt=0.25、P2でt=0.
5、P3でt=0.75、P4でt=1となり、この値が
文字位置パラメータメモリ15に書き込まれる。
As described above, in the state where the type of the arrangement skeleton line and various parameters are defined in the arrangement function storage unit 13-2 corresponding to the character strings to be printed stored in the character string code storage unit 13-1, When a print command is given, main controller 12 obtains the number of characters of a character string to be printed in character string code storage unit 13-1 and supplies the number of characters to character position parameter calculator 14. Then, the character position parameter calculation device 1
4 calculates the parameter t by taking the reciprocal of the number of characters. Now, assuming that four characters are arranged on a linear skeleton,
As shown in FIG. 6, the starting point t = 0.25 at t = 0, P 1 by the value of t is P 0 from P 0 to the end point P 4, t = 0 in P 2.
5, P 3 at t = 0.75, t = 1 becomes at P 4, this value is written in the character position parameter memory 15.

【0015】次に、主制御装置12は配置関数記憶部1
3−2から配置骨格線の種類とそれを定義するのに必要
なパラメータを取り出し、修飾パラメータ算出装置17
に送る。すると、修飾パラメータ算出装置17は文字位
置パラメータメモリ15内の値tと配置関数記憶部13
−2からの定義内容に基づいて位置、縦・横の倍率、回
転角を文字毎に算出し、それを修飾パラメータメモリ1
8に格納する。ここで、図7は修飾パラメータ算出装置
17において配置関数の係数から修飾パラメータを求め
る演算例を配置骨格線別に示した一覧表で、修飾パラメ
ータ算出装置17は図7に示すように、配置骨格線の種
類(直線、楕円、ベジェール曲線)に対応して後述する
各種の修飾パラメータ(X軸位置座標XL、Y軸位置座
標YL、X軸方向拡大率RX、Y軸方向拡大率RY、回
転角RR)を求める。なお、図中K1〜K10はフォント
データのメッシュ数とプリンタのドット数で定まる定数
で、例えば拡大率の場合、1文字のフォントメッシュ数
が192ドット、プリンタの物理的なドット数が192
0ドットのとき、10文字を1920ドットで出力した
いときはK21と定まる。
Next, the main controller 12 stores the allocation function storage unit 1
The type of the arrangement skeleton line and the parameters necessary for defining it are extracted from 3-2, and the modification parameter calculation device 17
Send to Then, the modification parameter calculating device 17 stores the value t in the character position parameter memory 15 and the arrangement function storage 13
-2, the position, the vertical / horizontal magnification, and the rotation angle are calculated for each character on the basis of the definition contents from -2, and are calculated.
8 is stored. Here, FIG. 7 is a table showing an example of calculating the modification parameter from the coefficient of the arrangement function in the modification parameter calculation device 17 for each arrangement skeleton line. As shown in FIG. (X-axis position coordinates XL, Y-axis position coordinates YL, X-axis direction enlargement ratio RX, Y-axis direction enlargement ratio RY, rotation angle RR, which will be described later, corresponding to the type (straight line, ellipse, Bezier curve). ). In the drawing, K 1 to K 10 are constants determined by the number of meshes of the font data and the number of dots of the printer. For example, in the case of an enlargement ratio, the number of font meshes of one character is 192 dots, and the number of physical dots of the printer is 192 dots.
In the case of 0 dots, if it is desired to output 10 characters in 1920 dots, K21 is determined.

【0016】一方、座標計算装置19はフォントデータ
記憶装置16からの文字フォントデータに対して1文字
毎に座標変換演算を行ない、位置の制御や大きさ、回転
などの修飾をかける。即ち、座標計算装置19は図8に
示す拡大・縮小修飾、図9に示す回転修飾、図10に示
す平行移動修飾の多機能を持ち、拡大・縮小、回転、平
行移動の順番で文字フォントデータを構成する全ての座
標データについて変換演算を行う。
On the other hand, the coordinate calculation device 19 performs a coordinate conversion operation on the character font data from the font data storage device 16 for each character, and modifies position control, size, rotation, and the like. That is, the coordinate calculation device 19 has multi-functions of enlargement / reduction modification shown in FIG. 8, rotation modification shown in FIG. 9, and parallel movement modification shown in FIG. 10, and character font data in the order of enlargement / reduction, rotation, and translation. The conversion operation is performed for all the coordinate data that constitutes.

【0017】ここで、図8に示す様に拡大・縮小修飾を
行う場合において、修飾前における任意の点の座標(x
0、y0)は修飾後において(x1、y1)に変換される
が、その変換式は x1=x0・RX y1=y0・RY となる。ここで、図7で示した如く変数RXはX軸方向
拡大率、変数YはY軸方向拡大率である。また、図9に
示す様に回転修飾を行なう場合においてその変換式は x1=x0cosθ−y0sinθ y1=x0sinθ+y0cosθ となる。ここで回転角θは紙面に直交する方向を軸とし
て反時計方向に回転させた場合を正とした。更に、図1
1に示す様に平行移動修飾を行なう場合においてその変
換式は x1=x0+XL y1=y0+YL となる。ここで、図7で示した如く変数XLはX軸位置
座標、変数YLはY軸位置座標である。
Here, in the case of performing enlargement / reduction modification as shown in FIG. 8, the coordinates (x
0 , y 0 ) is converted to (x 1 , y 1 ) after modification, and the conversion formula is x 1 = x 0 · RX y 1 = y 0 · RY. Here, as shown in FIG. 7, the variable RX is the enlargement ratio in the X-axis direction, and the variable Y is the enlargement ratio in the Y-axis direction. Also, the conversion formula in the case of performing the rotating modified as shown in FIG. 9 is the x 1 = x 0 cosθ-y 0 sinθ y 1 = x 0 sinθ + y 0 cosθ. Here, the rotation angle θ was defined as positive when rotated in a counterclockwise direction about an axis perpendicular to the paper surface. Further, FIG.
In the case of performing the translational modification as shown in FIG. 1, the conversion formula is x 1 = x 0 + XL y 1 = y 0 + YL. Here, as shown in FIG. 7, the variable XL is the X-axis position coordinate, and the variable YL is the Y-axis position coordinate.

【0018】このように座標計算装置19は修飾パラメ
ータに基づいて3つの要素(倍率、回転、位置)につい
て座標変換を行なう。この場合、図7に示す如く各配置
骨格線とも位置(平行移動)については骨格線の式(図
2〜図4参照)に、骨格線上の任意の点Pnと次の点P
n+1の媒介変数tの値(Tn、Tn+1)の平均を入れれば
よい。水平方向(X軸方向)の倍率は基本的にPnから
n+1までの骨格の距離とフォントデータフィールドの
横幅との比率により求められる。更に、垂直方向(Y軸
方向)の倍率は文字の高さを表わす2次式(図5参照)
にPn、Pn+1のtの値(Tn、Tn+1)の平均を入れたも
の、あるいはPn、Pn+1における高さの平均とフォント
データフィールドの縦幅との比率により求められる。一
方、回転角については配置骨格線が直線の場合には図1
1、ベジェール曲線の場合には図12、楕円の場合には
図13に示す様に求められる。即ち、直線においてはそ
の傾きから、ベジェール曲線においてはPnとPn+1とを
結んだ線の傾きから求められ、楕円についてはPnとP
n+1との中点から求められる。
As described above, the coordinate calculation device 19 performs coordinate conversion on three elements (magnification, rotation, and position) based on the modification parameters. In this case, the expression of the skeleton line (see FIGS. 2-4) for the location in each placement skeleton line as shown in FIG. 7 (parallel movement), any point P n and the next point of the skeleton line P
n + 1 values of the parametric t (T n, T n + 1) may If you put the average. Magnification in the horizontal direction (X axis direction) is basically determined by the ratio of the width of the distance and font data fields skeleton from P n to P n + 1. Further, the magnification in the vertical direction (Y-axis direction) is a quadratic expression representing the height of the character (see FIG. 5).
To P n, P n + 1 values of t (T n, T n + 1) shall put average, or P n, the height of the average and font data field height at P n + 1 It is determined by the ratio. On the other hand, regarding the rotation angle, when the arrangement skeleton line is a straight line, FIG.
1. In the case of a Bezier curve, it is obtained as shown in FIG. 12, and in the case of an ellipse, it is obtained as shown in FIG. That is, it is obtained from the inclination of a straight line, from the inclination of a line connecting Pn and Pn + 1 in a Bezier curve, and Pn and P
It is obtained from the midpoint of n + 1 .

【0019】このようにして座標変換された文字フォン
トデータはラスタライザー20に送られ、その内部が塗
り潰されたのち印字バッファ・プリンタ制御装置22を
介してプリンタ23から印字出力される。ここで、図1
4〜図16は文字列を各種の骨格線に対応して配置出力
した場合の出力例を示している。なお、図14〜図16
では文字列の配置状態や修飾状態を明瞭にする為に文字
フォントエリアのみを枠線で示した。図14は直線骨格
の配置例を示し、文字高は骨格線の中央部を低く、両端
部を高くした場合である。図15はベジェール曲線骨格
の配置例を示し、一端から他端に向かって文字高を徐々
に高くした場合である。図16は楕円曲線骨格の配置例
を示し、一端から他端に向かって文字高を徐々に高くし
た場合である。図17は図16で示した楕円骨格に沿っ
て実際に文字列を配置出力した状態を示している。
The character font data subjected to the coordinate conversion in this manner is sent to the rasterizer 20, where the inside of the character font data is painted out, and then printed out from the printer 23 via the print buffer / printer controller 22. Here, FIG.
4 to 16 show output examples in the case where character strings are arranged and output in correspondence with various skeleton lines. 14 to 16.
In the above, only the character font area is shown by a frame line in order to clarify the arrangement state and the modification state of the character string. FIG. 14 shows an arrangement example of a straight skeleton, in which the character height is lower at the center of the skeleton line and higher at both ends. FIG. 15 shows an arrangement example of a Bezier curve skeleton, in which the character height is gradually increased from one end to the other end. FIG. 16 shows an arrangement example of an elliptic curve skeleton, in which the character height is gradually increased from one end to the other end. FIG. 17 shows a state where character strings are actually arranged and output along the elliptical skeleton shown in FIG.

【0020】以上の様に本実施例によれば、文字列の行
頭から行末までを連続する数値(媒介変数t、t=0〜
1)の範囲内で、文字位置を数値により表わす様にした
為、文字列を構成する全ての文字を配置骨格線上に均一
に配置することができる。したがって文字列が長くても
その文字列が骨格線上に収まりきらなくなるようなこと
はなく、また文字列が短かくてもその配置が片寄るよう
なことはなく、常にバランスの良い配置が可能となる。
また、同じ媒介変数tを用いて文字の高さを算出するこ
とができる。更に、骨格線の形状や大きさあるいは文字
の高さは関数を定義するだけで種々の設定が可能とな
る。
As described above, according to this embodiment, a continuous numerical value (parameter t, t = 0 to 0) from the beginning to the end of the line of the character string
Since the character positions are represented by numerical values within the range of 1), all the characters constituting the character string can be uniformly arranged on the arrangement skeleton line. Therefore, even if the character string is long, the character string does not fall out of the skeleton line, and even if the character string is short, the arrangement does not shift, and a well-balanced arrangement is always possible. .
Also, the height of the character can be calculated using the same parameter t. Further, the shape and size of the skeleton line or the height of the character can be variously set only by defining a function.

【0021】[0021]

【第2実施例】以下、図18〜図24を参照して第2実
施例を説明する。なお上記第1実施例では座標計算装置
19に倍率、回転、位置の3種類のパラメータで座標変
換する機能を持たせたが、本実施例においては、これに
更に図18、図19に示す絞り修飾、図20、図21に
示す傾斜修飾をかける座標変換機能を持たせたものであ
る。この場合、本実施例の修飾パラメータ算出装置17
は図22、図23に示す様に修飾パラメータとして更
に、X軸方向絞り率、Y軸方向絞り率、X軸方向傾斜
率、Y軸方向傾斜率を求める。なお、図22は直線骨
格、楕円骨格の場合に修飾パラメータを求める演算例一
覧表を示した図、図23はベジェール曲線骨格の場合に
修飾パラメータを求める演算例一覧表を示した図であ
る。
Second Embodiment Hereinafter, a second embodiment will be described with reference to FIGS. In the first embodiment, the coordinate calculating device 19 is provided with a function of performing coordinate conversion using three types of parameters of magnification, rotation, and position. It is provided with a coordinate conversion function for applying the modification and the inclination modification shown in FIGS. In this case, the modification parameter calculation device 17 of the present embodiment
As shown in FIG. 22 and FIG. 23, the X-axis direction reduction ratio, the Y-axis direction reduction ratio, the X-axis direction inclination ratio, and the Y-axis direction inclination ratio are further obtained as modification parameters. FIG. 22 is a diagram showing a list of calculation examples for obtaining a modification parameter in the case of a linear skeleton and an elliptic skeleton, and FIG. 23 is a diagram showing a list of calculation examples for obtaining a modification parameter in the case of a Bezier curve skeleton.

【0022】図18はX方向の絞り修飾を示している。
ここで、X方向の絞り修飾とは文字の縦方向を上から下
または下から上に向かって文字の横方向の倍率を変化さ
せることによりX方向を軸とする回転修飾を行い、奥行
き感を持たせるようにしたものである。この場合の座標
変換式は、x1=x0−x0・y0・R1、y1=y0であ
る。なお、R1はX方向の絞り率を示し、骨格に直線を
用いている限りにおいては基本的に「0」に固定される
が、ベジェール曲線骨格と楕円骨格とにおいては、Pn
とPn+1の直線傾き角度差から求められる(図22、図
23)。
FIG. 18 shows the modification of the aperture in the X direction.
Here, the aperture modification in the X direction is a rotation modification about the X direction by changing the magnification in the horizontal direction of the character from the top to the bottom or from the bottom to the top in the vertical direction of the character, thereby giving a sense of depth. It is made to have. Coordinate conversion formula in this case is x 1 = x 0 -x 0 · y 0 · R1, y 1 = y 0. Note that R1 indicates the aperture ratio in the X direction, and is basically fixed to “0” as long as a straight line is used for the skeleton. However, in the Bezier curve skeleton and the elliptical skeleton, P n
And P n +1 (FIGS. 22 and 23).

【0023】図19はY方向の絞り修飾を示している。
ここで、Y方向の絞り修飾とは文字の横方向を左から右
または右から左に向かって文字の縦方向の倍率を変化さ
せることによりY方向を軸とする回転修飾を行い、奥行
き感を持たせるようにしたものである。この場合の座標
変換式は、x1=x0−x0、y1=y0・x0・R2であ
る。なお、R2はY方向の絞り率を示し、PnとPn+1
点における文字高さの差から求められる。
FIG. 19 shows the aperture modification in the Y direction.
Here, the iris modification in the Y direction is a rotation modification about the Y direction by changing the magnification of the character in the vertical direction from left to right or from right to left in the horizontal direction of the character, thereby giving a sense of depth. It is made to have. Coordinate conversion formula in this case is x 1 = x 0 -x 0, y 1 = y 0 · x 0 · R2. Note that R2 indicates the aperture ratio in the Y direction, which is obtained from the difference between the character heights at points Pn and Pn + 1 .

【0024】図20はX方向傾斜修飾を示し、その座標
変換式はx1=x0−y0・RS1、y1=y0であり、R
S1はX軸方向傾斜率を示す。図21はY方向傾斜修飾
を示し、その座標変換式はx1=x0、y1=y0−x0
RS2であり、RS2はY軸方向傾斜率を示す。
FIG. 20 shows the X-direction tilt modification. The coordinate conversion formula is x 1 = x 0 −y 0 · RS1, y 1 = y 0 , and R
S1 indicates an X-axis direction inclination rate. FIG. 21 shows the Y-direction tilt modification, and the coordinate conversion formula is x 1 = x 0 , y 1 = y 0 −x 0.
RS2, where RS2 indicates the rate of inclination in the Y-axis direction.

【0025】図24は楕円骨格について修飾を実行した
例であり、図24の(A)は第1実施例のみの修飾(倍
率、回転、位置)を付加した場合、図24の(B)は本
実施例の修飾(更に絞り、傾斜)を付加した場合であ
る。ここで、本実施例においては、フォントデータ記憶
装置16から読み出された文字フォントデータにそのフ
ォントのエリアを示す枠データを付加するようにしたも
ので、通常、枠データは1ドット幅の正方形を成すが、
各種の修飾がかけられることによって変形する。特に、
図24の(A)に示す様に隣合う文字の枠同士が一部重
なり合っているし場合、本実施例の修飾を施すことによ
って枠の重なりがなくなると共に、奥行き感のある文字
配列となる。
FIG. 24 shows an example in which the modification is performed on the elliptical skeleton. FIG. 24A shows the case where the modification (magnification, rotation, position) of only the first embodiment is added, and FIG. This is a case where the modification (further stop, inclination) of the present embodiment is added. Here, in the present embodiment, frame data indicating the area of the font is added to the character font data read from the font data storage device 16, and the frame data is usually a one-dot-width square. , But
It is deformed by various modifications. Especially,
In the case where adjacent character frames partially overlap as shown in FIG. 24A, by applying the modification of the present embodiment, the overlapping of the frames is eliminated and a character arrangement with a sense of depth is obtained.

【0026】なお、上記各実施例において文字の高さを
2次の連続関数で定義したが、文字位置(t)の値の区
間ごとに定義される離散値データ列のテーブルのような
形で持つようにしてもよい。
In each of the above embodiments, the height of a character is defined by a quadratic continuous function. However, the height of the character is defined as a table of a discrete value data string defined for each section of the value of the character position (t). You may have it.

【0027】また、上記各実施例では配置骨格線の種類
を直線、ベジェール曲線、楕円曲線の3種類としたが、
それに限らないことは勿論である。
In each of the above embodiments, three types of arrangement skeleton lines are used: straight lines, Bezier curves, and elliptic curves.
Of course, it is not limited to this.

【0028】[0028]

【発明の効果】この発明によれば、文字列を構成する各
文字を曲線ラインの配置領域に沿って配置出力すると共
に、前記各文字の形状を、曲線ラインの内側における文
字の幅よりも、曲線の外側における文字の幅が大きくな
るように、その文字の配置位置に従って連続的に変化さ
せることができるものであり、奥行き感が得られるよう
に曲線ラインに沿って配列された文字列を出力すること
ができる。
According to the present invention, each character constituting a character string is arranged and output along the arrangement area of the curved line, and the shape of each character is made smaller than the width of the character inside the curved line. It can be changed continuously according to the position of the character so that the width of the character outside the curve becomes large, and outputs a character string arranged along a curved line so as to obtain a sense of depth can do.

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

【図1】実施例における修飾文字出力装置のブロック
図。
FIG. 1 is a block diagram of a modified character output device according to an embodiment.

【図2】配置骨格線が直線の場合にその骨格線の式とそ
の定義内容を示した図。
FIG. 2 is a diagram showing a formula of a skeleton line and its definition when the arrangement skeleton line is a straight line.

【図3】配置骨格線がベジェール曲線の場合にその骨格
線の式とその定義内容を示した図。
FIG. 3 is a diagram showing a formula of a skeleton line and its definition when the arrangement skeleton line is a Bezier curve.

【図4】配置骨格線が楕円曲線の場合にその骨格線の式
とその定義内容を示した図。
FIG. 4 is a diagram showing an equation of a skeleton line and its definition when the arrangement skeleton line is an elliptic curve.

【図5】文字の高さHを説明すると共に、媒介変数tに
よる文字の高さHの変化を示した図。
FIG. 5 is a diagram illustrating a character height H and showing a change in the character height H depending on a parameter t.

【図6】配置骨格へ4文字構成の文字列を配置する場合
の具体例を示し、特に各文字位置での媒介変数tの値を
示した図。
FIG. 6 is a diagram showing a specific example of a case where a character string having four characters is arranged in an arrangement skeleton, and particularly showing values of a parameter t at each character position.

【図7】修飾パラメータを求める演算例の一覧表を示し
た図。
FIG. 7 is a diagram showing a list of calculation examples for obtaining modification parameters.

【図8】拡大・縮小修飾を行う場合の座標変換を説明す
る為の図。
FIG. 8 is a view for explaining coordinate conversion when performing enlargement / reduction modification.

【図9】回転修飾を行う場合の座標変換を説明する為の
図。
FIG. 9 is a view for explaining coordinate conversion when performing rotation modification.

【図10】平行移動修飾を行う場合の座標変換を説明す
る為の図。
FIG. 10 is a diagram for explaining coordinate conversion in the case of performing translational modification;

【図11】直線骨格への配置の際の回転角を求める場合
の説明図。
FIG. 11 is an explanatory diagram in the case of obtaining a rotation angle at the time of arrangement on a linear skeleton.

【図12】ベジェール骨格への配置の際の回転角を求め
る場合の説明図。
FIG. 12 is an explanatory diagram of a case where a rotation angle at the time of arrangement on a Bezier skeleton is obtained.

【図13】楕円骨格への配置の際の回転角を求める場合
の説明図。
FIG. 13 is an explanatory diagram when a rotation angle at the time of arrangement on an elliptical skeleton is obtained.

【図14】枠線で示した文字フォントエリアを直線骨格
へ配置した場合の実行例を示した図。
FIG. 14 is a diagram showing an execution example when character font areas indicated by frame lines are arranged in a linear skeleton.

【図15】枠線で示した文字フォントエリアをベジェー
ル曲線骨格へ配置した場合の実行例を示した図。
FIG. 15 is a diagram showing an execution example when a character font area indicated by a frame line is arranged on a Bezier curve skeleton.

【図16】枠線で示した文字フォントエリアを楕円曲線
骨格へ配置した場合の実行例を示した図。
FIG. 16 is a diagram showing an execution example when a character font area indicated by a frame line is arranged on an elliptic curve skeleton.

【図17】図16で示した楕円骨格に沿って実際に文字
列を配置した状態を示した図。
FIG. 17 is a view showing a state where character strings are actually arranged along the elliptical skeleton shown in FIG. 16;

【図18】第2実施例において、X方向絞り修飾を行う
場合の座標変換を示した図。
FIG. 18 is a diagram showing coordinate conversion when performing X-direction aperture modification in the second embodiment.

【図19】第2実施例において、Y方向絞り修飾を行う
場合の座標変換を説明する為の図。
FIG. 19 is a view for explaining coordinate conversion when performing Y-direction aperture modification in the second embodiment.

【図20】第2実施例において、X方向傾斜修飾を行う
場合の座標変換を説明する為の図。
FIG. 20 is a diagram for explaining coordinate conversion when performing X-direction tilt modification in the second embodiment.

【図21】第2実施例において、Y方向傾斜修飾を行う
場合の座標変換を示した図。
FIG. 21 is a diagram showing coordinate conversion when performing Y-direction tilt modification in the second embodiment.

【図22】第2実施例において、直線骨格、楕円骨格の
場合に修飾パラメータを求める演算例一覧表を示した
図。
FIG. 22 is a diagram showing a calculation example list for obtaining modification parameters in the case of a linear skeleton and an elliptical skeleton in the second embodiment.

【図23】第2実施例において、ベジェール曲線の場合
に修飾パラメータを求める演算例一覧表を示した図。
FIG. 23 is a diagram showing a calculation example list for obtaining a modification parameter in the case of a Bezier curve in the second embodiment.

【図24】第2実施例において、楕円骨格について修飾
を実行した例を示した図。
FIG. 24 is a diagram showing an example in which modification is performed on an elliptical skeleton in the second embodiment.

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

11 手操作部 12 主制御装置 13 テキスト記憶装置 13−1 文字列コード記憶部 13−2 配置関数記憶部 16 フォントデータ記憶装置 17 修飾パラメータ算出装置 19 座標計算装置 21 表示制御・表示装置 22 印字バッファ・プリンタ装置 23 プリンタ Reference Signs List 11 hand operation unit 12 main control unit 13 text storage unit 13-1 character string code storage unit 13-2 layout function storage unit 16 font data storage unit 17 modification parameter calculation unit 19 coordinate calculation unit 21 display control / display unit 22 print buffer・ Printer 23 Printer

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】出力対象の文字列を配置する曲線ラインの
配置領域を指定する指定手段と、 この指定手段により指定された前記配置領域に沿って前
記文字列を構成する各文字を配置出力すると共に、前記
各文字の形状を、曲線ラインの内側における文字の幅よ
りも、曲線の外側における文字の幅が大きくなるよう
に、その文字の配置位置に従って連続的に変化させる配
列手段と、 この配列手段により配列された前記文字列を出力する出
力手段と、 を具備したことを特徴とする文字列出力装置。
1. A designating means for designating an arrangement area of a curved line on which a character string to be output is arranged, and each character constituting the character string along the arrangement area designated by the designating means. And output the shape of each character, and determine the shape of each character from the width of the character inside the curved line.
The width of characters outside the curve
To a sequence means for continuously varying in accordance with the arrangement position of the character, and an output means for outputting the character string arranged by the arrangement means, the character string output apparatus characterized by comprising a.
JP8281261A 1996-10-03 1996-10-03 String output device Expired - Fee Related JP2958417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8281261A JP2958417B2 (en) 1996-10-03 1996-10-03 String output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8281261A JP2958417B2 (en) 1996-10-03 1996-10-03 String output device

Publications (2)

Publication Number Publication Date
JPH09146527A JPH09146527A (en) 1997-06-06
JP2958417B2 true JP2958417B2 (en) 1999-10-06

Family

ID=17636619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8281261A Expired - Fee Related JP2958417B2 (en) 1996-10-03 1996-10-03 String output device

Country Status (1)

Country Link
JP (1) JP2958417B2 (en)

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

Also Published As

Publication number Publication date
JPH09146527A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
JPH06266847A (en) Method and equipment for displaying object changed into raster
JPS62123573A (en) Computer graphic apparatus and operation thereof
JPH06309466A (en) Equipment and method for displaying graphical image
JPH05127654A (en) Character and figure deformation processing device
EP1203351B1 (en) System for rapidly performing scan conversion with anti-aliasing upon outline fonts and other graphic elements
US5590247A (en) Character string outputting method and apparatus capable of varying sizes of characters
US5489920A (en) Method for determining the optimum angle for displaying a line on raster output devices
JP2958417B2 (en) String output device
JP5245444B2 (en) Information display device and program
JPH09127925A (en) Character string output device
JPH02270019A (en) Generation system for high quality character pattern
US5506942A (en) Apparatus of outputting a train of characters
JPH0566759A (en) Modification character output device
JP3479282B2 (en) Character and graphic transformation processor
JPS63137378A (en) Graphics processing system
JPH0566760A (en) Modification character output device
JP5492911B2 (en) Character creation method and character creation device
JPS63217394A (en) Character contour line generation system
KR20040075466A (en) Method for making Hangul font via structural steps
JP2009116157A (en) Screen display method of numerical control device
JP3211404B2 (en) String output device
JPS62201496A (en) Font memory system, font output system and font editing system
JP2757411B2 (en) Data converter
JP2943301B2 (en) How to push out the wiring pattern
JPH06110442A (en) Character and figure processor and method for deforming character of figure

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees