JP3045905B2 - Character drawing device - Google Patents

Character drawing device

Info

Publication number
JP3045905B2
JP3045905B2 JP5276833A JP27683393A JP3045905B2 JP 3045905 B2 JP3045905 B2 JP 3045905B2 JP 5276833 A JP5276833 A JP 5276833A JP 27683393 A JP27683393 A JP 27683393A JP 3045905 B2 JP3045905 B2 JP 3045905B2
Authority
JP
Japan
Prior art keywords
character
coordinate
input
character string
interval
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 - Lifetime
Application number
JP5276833A
Other languages
Japanese (ja)
Other versions
JPH07129149A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP5276833A priority Critical patent/JP3045905B2/en
Publication of JPH07129149A publication Critical patent/JPH07129149A/en
Application granted granted Critical
Publication of JP3045905B2 publication Critical patent/JP3045905B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • 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 drawing apparatus for drawing a character string corresponding to a coordinate position input by a coordinate input means such as a pen or a mouse.

【0002】[0002]

【従来の技術】従来、ワードプロセッサ、文書処理を行
うことが可能なパーソナルコンピュータ等の文字処理装
置で文字入力を行う際の文字入力方向は、通常、縦書
き、または横書きによる直線方向であり、また、文字サ
イズ、文字の回転、文字の位置等の変更を行う場合、機
能キーおよびカーソルキー操作により文字単位で処理さ
れていた。また、縦書き、横書き以外の文字を入力する
例として、例えば、カーソル指定、またはウィンドウ指
定によって文字列を斜め方向に入力することのできる文
字処理装置が提案されている(特開平4−18632号
公報参照)。
2. Description of the Related Art Conventionally, when a character is input by a character processor such as a word processor or a personal computer capable of performing document processing, the character input direction is usually a linear direction by vertical writing or horizontal writing. When the character size, the character rotation, the character position, etc. are changed, the processing is performed in character units by operating the function keys and the cursor keys. As an example of inputting characters other than vertical writing and horizontal writing, a character processing device capable of inputting a character string in an oblique direction by specifying a cursor or a window has been proposed (Japanese Patent Laid-Open No. 4-18632). Gazette).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、一般に
広告やポスターなどで使用される文字は、斜めに書かれ
た文字、サイズが異なる文字、一文字毎に方向が異なる
文字列等があり、型にはまらない文字サイズと配置によ
る文字列のレイアウトが多く、このような文字を従来の
文字処理装置等で入力する場合、文字単位で処理しなけ
ればならず操作性が非常に悪かった。特開平4−186
32号公報では、方向指定は文字列単位として処理でき
るものの、各文字毎に文字方向や、文字間隔、文字サイ
ズを変更する場合は、文字単位で処理しなければならず
操作性が悪かった。
However, characters generally used in advertisements, posters, and the like include characters written diagonally, characters having different sizes, character strings having different directions for each character, and the like. There are many layouts of character strings with no character size and arrangement. When such characters are input by a conventional character processing device or the like, they must be processed in character units, and the operability is very poor. JP-A-4-186
In Japanese Patent Publication No. 32, although the direction designation can be processed in units of character strings, when the character direction, character spacing, and character size are changed for each character, processing must be performed in units of characters, resulting in poor operability.

【0004】本発明は以上の事情を考慮してなされたも
ので、例えば、文字入力手段により予め入力された文字
列を、ペン、マウス等の座標入力手段により入力された
座標位置に対応して、文字方向、文字間隔、文字サイズ
等の変更しながら任意に描画することが可能な文字描画
装置を提供するものである。
The present invention has been made in consideration of the above circumstances. For example, a character string input in advance by a character input unit corresponds to a coordinate position input by a coordinate input unit such as a pen or a mouse. It is intended to provide a character drawing device which can perform arbitrary drawing while changing the character direction, character spacing, character size, and the like.

【0005】[0005]

【課題を解決するための手段】本発明の構成を示すブロ
ック図である。図1において、本発明は、文字列を入力
する文字入力手段101と、入力された文字列を記憶す
る文字列記憶手段102と、記憶された文字列を順次読
み出す読出手段103と、読み出された文字列を表示す
る表示手段104とを備えた文字描画装置において
定の文字数の文字列を所望の座標位置に配列するための
始点及び終点を含む座標値を入力する座標入力手段10
5と、座標入力手段105から入力された座標値を読み
取る座標読取手段106と、読み取られた座標値を記憶
する座標値記憶手段107と、座標値記憶手段107か
順次座標値を読み出し各座標値間の座標間隔を算出す
る座標間隔算出手段108と、算出された座標間隔に基
づき文字サイズを算出する文字サイズ算出手段109
と、読出手段103により読み出した文字列を、文字サ
イズ算出手段109で算出された文字サイズの描画デー
タに生成し、その描画データを座標間隔算出手段108
で算出された座標間隔に位置する各座標値に順次出力す
る描画データ出力手段110とを備えたことを特徴とす
る文字描画装置である。
FIG. 1 is a block diagram showing the configuration of the present invention. In FIG. 1, the present invention comprises a character input means 101 for inputting a character string, a character string storage means 102 for storing the input character string, a reading means 103 for sequentially reading the stored character strings, in the character rendering device provided with a display unit 104 for displaying the character string, where
For arranging character strings of a fixed number of characters at desired coordinate positions
Coordinate input means 10 for inputting coordinate values including a start point and an end point
5, coordinates a coordinate reading means 106 reads the input coordinate values from the input unit 105, a coordinate value storing means 107 for storing the read coordinate values, coordinate values sequentially read coordinate value from the coordinate value storing means 107 a coordinate interval calculating unit 108 for calculating the coordinates spacing between the character size and calculates the character size based on the calculated coordinate interval calculating unit 109
And the character string read by the reading means 103 is generated as drawing data of the character size calculated by the character size calculating means 109, and the drawing data is converted to the coordinate interval calculating means 108.
And a drawing data output unit 110 for sequentially outputting each coordinate value located at the coordinate interval calculated in (1 ).

【0006】前記描画データ出力手段110は、前記座
標入力手段105により断続的に座標値が入力された際
には、断続した座標値に描画データを順番に出力するよ
う構成してもよい。
[0006] The drawing data output means 110 may be configured to output drawing data sequentially to the intermittent coordinate values when the coordinate input means 105 intermittently inputs coordinate values.

【0007】前記描画データ出力手段110は、前記座
標間隔算出手段108によってさらに算出された文字の
移動方向を基準に決定した回転角度をもつ描画データ
出力するよう構成してもよい。
The drawing data output means 110 outputs drawing data having a rotation angle determined based on the moving direction of the character further calculated by the coordinate interval calculating means 108.
It may be configured to output .

【0008】前記描画データ出力手段110は、前記文
字サイズ算出手段109によって算出された文字サイズ
に基づいて決定した文字間隔で描画データ出力するよ
う構成してもよい。
The drawing data output means 110 may output drawing data at character intervals determined based on the character size calculated by the character size calculation means 109.

【0009】なお、本発明において、文字入力手段10
1としてはキーボード、ペン入力タブレット装置が用い
られる。文字列記憶手段102、読出手段103、座標
読取手段106、座標値記憶手段107、座標間隔算出
手段108、文字サイズ算出手段109、描画データ
力手段110としては、CPU、ROM、RAM、I/
Oポートからなるマイクロコンピュータを用いるのが好
ましい。また、特に、文字列記憶手段102、座標値記
憶手段104としては、通常、その中のRAMが用いら
れる。表示手段104としては、CRTディスプレイ装
置、LCD(液晶ディスプレイ)装置、ELディスプレ
イ装置等の表示装置が用いられる。座標入力手段105
としては、ペン入力タブレット装置、あるいはマウス等
の座標入力装置が用いられる。
In the present invention, the character input means 10
As 1, a keyboard and a pen input tablet device are used. Character string storage means 102, the reading unit 103, the coordinate reading means 106, the coordinate value storing unit 107, the coordinate interval calculating unit 108, a character size calculating unit 109, out the drawing data
CPU 110 , ROM, RAM, I /
It is preferable to use a microcomputer having an O port. Further, in particular, as the character string storage unit 102 and the coordinate value storage unit 104, a RAM therein is usually used. As the display unit 104, a display device such as a CRT display device, an LCD (liquid crystal display) device, and an EL display device is used. Coordinate input means 105
For example, a pen input tablet device or a coordinate input device such as a mouse is used.

【0010】[0010]

【作用】本発明の構成によれば、図1に示すように、文
字サイズ算出手段109が、座標間隔算出手段108に
よって算出された座標間隔に基づき文字サイズを算出
し、描画データ出力手段110は、読出手段103によ
り読み出した文字列を、文字サイズ算出手段109で算
出された文字サイズの描画データに生成し、その描画デ
ータを座標間隔算出手段108で算出された座標間隔に
位置する各座標値に順次出力する。従って、ポスター、
広告等に用いられる文字を、ペン、マウス等の座標入力
装置によって入力された座標間隔に応じて決定した文字
サイズの描画データに生成し、その描画データを座標間
隔算出手段108で算出された座標間隔に位置する各座
標値に描画することができる。
According to the structure of the present invention, as shown in FIG. 1, the character size calculation means 109 calculates the character size based on the coordinate interval calculated by the coordinate interval calculation means 108, and the drawing data output means 110 The character string read by the reading means 103 is generated as drawing data of the character size calculated by the character size calculating means 109, and the drawing data is generated.
Data to the coordinate interval calculated by the coordinate interval calculating means 108.
The coordinates are sequentially output to the respective coordinate values . Therefore, posters,
Characters used for advertisements and the like are generated as drawing data of a character size determined according to the coordinate interval input by a coordinate input device such as a pen or a mouse, and the drawing data is generated between the coordinates.
Each seat located at the coordinate interval calculated by the interval calculation means 108
Can be drawn to the standard value .

【0011】前記描画データ出力手段110は、前記座
標入力手段105により断続的に座標値が入力された際
には、断続した座標値に描画データを順番に出力するよ
う構成すれば、座標入力手段106を用いて文字列を描
画する際、文字列を自由な座標位置に描画することがで
きる。
If the drawing data output means 110 is configured to output drawing data sequentially to the intermittent coordinate values when the coordinate values are input intermittently by the coordinate input means 105, When a character string is drawn using 106, the character string can be drawn at any coordinate position.

【0012】前記描画データ出力手段110は、前記座
標間隔算出手段108によってさらに算出された文字の
移動方向を基準に決定した回転角度をもつ描画データ
出力するよう構成すれば、回転角度を変更して描画する
ことができる。
The drawing data output means 110 outputs drawing data having a rotation angle determined on the basis of the character moving direction further calculated by the coordinate interval calculating means 108.
If it is configured to output, it is possible to draw by changing the rotation angle.

【0013】前記描画データ出力手段110は、前記文
字サイズ算出手段109によって算出された文字サイズ
に基づいて決定した文字間隔で描画データ出力するよ
う構成すれば、文字間隔を変更して描画することができ
る。
If the drawing data output means 110 is configured to output drawing data at a character interval determined based on the character size calculated by the character size calculating means 109, it is possible to change the character interval and draw. Can be.

【0014】所望の座標位置に描画する文字列を文字入
力手段101により予め文字列を入力し文字列記憶手段
103に記憶しておくことができる。
A character string to be drawn at a desired coordinate position can be input in advance by the character input means 101 and stored in the character string storage means 103.

【0015】[0015]

【実施例】以下、図に示す実施例に基づいて本発明を詳
述する。なお、これによって本発明は限定されるもので
はない。また、本発明の装置は、例えば、ペン入力機能
付き日本語ワードプロセッサに組み込まれて好適であ
り、各構成要素は本発明の「任意の座標位置に文字列を
描画する機能」を達成する以外に、通常の文字処理機能
を備えているものとして説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on an embodiment shown in the drawings. Note that the present invention is not limited by this. In addition, the device of the present invention is preferably incorporated in, for example, a Japanese word processor with a pen input function, and each constituent element achieves the “function of drawing a character string at an arbitrary coordinate position” of the present invention. The following description will be made assuming that the device has a normal character processing function.

【0016】図2は本発明の文字描画装置の一実施例を
示すブロック図である。図2において、1はペン入力タ
ブレット、ディジタイザ、マウス等で構成される座標入
力装置であり、この座標入力装置1から入力される座標
データを使って任意位置に文字を描画する。2はCRT
ディスプレイ装置、LCD(液晶ディスプレイ)装置等
から構成される表示装置であり、座標入力装置1から入
力される座標値に対応する文字列が表示画面に表示され
る。3は制御装置であり、本発明の文字処理の制御を実
行するためのCPUからなる演算回路31と、本発明の
制御を行う各種プログラム及び文字フォントを格納して
いるROM、入力された座標データ、文字データ、描画
データ、文字数等を含む処理に必要な各種データを格納
するRAMからなるメモリ32と、座標入力装置1、表
示装置2等の外部装置との接続を行うI/Oポートから
なるインターフェース回路33等から構成される。この
制御装置3に、さらに、キーボード4、ハードディス
ク、フロッピーディスク等からなる外部記憶装置5、プ
リンタ6が接続される場合もある。また、表示一体型ペ
ン入力タブレットを使用した場合は、座標入力装置1
と、表示装置2は同一装置となるが、以下の説明ではこ
れらを分けて説明する。
FIG. 2 is a block diagram showing an embodiment of the character drawing apparatus according to the present invention. In FIG. 2, reference numeral 1 denotes a coordinate input device including a pen input tablet, a digitizer, a mouse, and the like, and draws a character at an arbitrary position using the coordinate data input from the coordinate input device 1. 2 is CRT
This is a display device including a display device, an LCD (Liquid Crystal Display) device, and the like, and displays a character string corresponding to a coordinate value input from the coordinate input device 1 on a display screen. Reference numeral 3 denotes a control device, which is an arithmetic circuit 31 including a CPU for executing control of character processing according to the present invention, a ROM storing various programs and character fonts for controlling the present invention, and input coordinate data. , A memory 32 for storing various data necessary for processing including character data, drawing data, the number of characters, etc., and an I / O port for connecting to external devices such as the coordinate input device 1 and the display device 2. It comprises an interface circuit 33 and the like. In some cases, an external storage device 5 including a keyboard 4, a hard disk, a floppy disk, and the like, and a printer 6 are further connected to the control device 3. When a display-integrated pen input tablet is used, the coordinate input device 1
And the display device 2 are the same device, but these will be separately described in the following description.

【0017】また、制御装置3の機能として、例えば、
メモリ32のRAMは、文字列を記憶する文字列記憶手
段、座標値を記憶する座標値記憶手段として機能する。
演算回路31のCPUは、メモリ32と協動して、座標
入力装置1から入力された座標値を読み取る座標読取手
段、各座標値間の座標間隔を算出する座標間隔算出手
段、算出された座標間隔から文字サイズを算出する文字
サイズ算出手段、文字列記憶手段から文字列を順次読み
出す読出手段、読出手段により読み出した文字列を文字
サイズ算出手段で算出された文字サイズの描画データに
生成し、その描画データを座標間隔算出手段で算出され
た座標間隔に位置する各座標値に順次出力する描画デー
タ出力手段として機能する。
The functions of the control device 3 include, for example,
The RAM of the memory 32 functions as a character string storage unit that stores a character string and a coordinate value storage unit that stores a coordinate value.
The CPU of the arithmetic circuit 31 cooperates with the memory 32 to read coordinate values input from the coordinate input device 1, coordinate interval calculating means for calculating a coordinate interval between each coordinate value, and calculated coordinate values. Character size calculating means for calculating the character size from the interval, reading means for sequentially reading the character string from the character string storage means, and generating the character string read by the reading means into drawing data of the character size calculated by the character size calculating means; The drawing data is calculated by the coordinate interval calculating means.
It functions as drawing data output means for sequentially outputting each coordinate value located at the coordinate interval .

【0018】図3は本発明の文字描画処理による表示例
(その1)を示す説明図である。図3において、予め、
キーボード3から入力された文字列を、図3aに示すよ
うに、座標入力装置1で連続的に指定された座標値(座
標点)に、順次描画(配列)していくことによって図3
bのように文字を自由に描画することが可能である。ま
た、入力された座標の移動方向から、図3cのように文
字方向の異なる文字の配列も可能であり、座標間隔か
ら、図3dのようにサイズの異なる文字の入力も容易に
行うことが可能である。図4は本発明の文字描画処理に
よる表示例(その2)を示す説明図である。図4に示す
ような、この座標点は連続したものだけでなく断続的な
ものであっても、文字配列が可能である。
FIG. 3 is an explanatory view showing a display example (part 1) by the character drawing processing of the present invention. In FIG. 3,
As shown in FIG. 3A, a character string input from the keyboard 3 is sequentially drawn (arranged) at coordinate values (coordinate points) continuously designated by the coordinate input device 1, thereby obtaining the character strings shown in FIG.
Characters can be freely drawn as shown in b. In addition, it is also possible to arrange characters having different character directions as shown in FIG. 3C based on the moving direction of the input coordinates, and to easily input characters having different sizes as shown in FIG. It is. FIG. 4 is an explanatory diagram showing a display example (part 2) by the character drawing process of the present invention. As shown in FIG. 4, even if these coordinate points are not only continuous but also intermittent, character arrangement is possible.

【0019】本発明による文字描画装置の処理手順を図
5、図6に示すフローチャートに従って詳しく説明す
る。尚、以下の処理手順は、予めプログラム化され、メ
モリ32のROMに記憶されており、制御装置3がこの
プログラムに従い、周辺装置と協動しつつ実行するもの
である。
The processing procedure of the character drawing apparatus according to the present invention will be described in detail with reference to the flowcharts shown in FIGS. The following processing procedure is programmed in advance and stored in the ROM of the memory 32, and is executed by the control device 3 in cooperation with peripheral devices according to the program.

【0020】図5は本発明の文字描画装置の処理手順
(その1)を示すフローチャートである。また、図5
は、文字方向、文字サイズ変更の処理がない場合の処理
手順である。 ステップ201:キーボード4またはペン、マウス等の
座標入力装置1から、ユーザが文字列Sを入力し、メモ
リ32に記憶する。このとき、入力された文字数も同時
に得られるため、これも文字数Nとしてメモリ32に記
憶しておく。 ステップ202:描画する文字のサイズWと文字選択用
のレジスタRを設定する。この例では文字サイズWを1
6(ドット)、レジスタRに1(文字列Sの1文字目)
を代入して、メモリ32に記憶する。 ステップ203:座標入力装置1ら文字を描画する点P
1を入力しメモリ32に記憶する。 ステップ204:文字列SのレジスタR番目の文字を、
点P1にサイズWの大きさで描画する。 ステップ205:レジスタRを次の文字に進めて1文字
目を描画する処理は終了である。
FIG. 5 is a flowchart showing a processing procedure (1) of the character drawing apparatus of the present invention. FIG.
Is a processing procedure when there is no processing for changing the character direction and character size. Step 201: The user inputs a character string S from the keyboard 4 or the coordinate input device 1 such as a pen or a mouse, and stores the character string S in the memory 32. At this time, since the number of input characters is also obtained at the same time, this is also stored in the memory 32 as the number of characters N. Step 202: Set the size W of the character to be drawn and the register R for character selection. In this example, the character size W is set to 1
6 (dot), 1 in register R (first character of character string S)
Is stored in the memory 32. Step 203: Point P for drawing a character from the coordinate input device 1
1 is input and stored in the memory 32. Step 204: The Rth character of the register of the character string S is
Drawing is performed at the size of the size W at the point P1. Step 205: The process of drawing the first character by advancing the register R to the next character is completed.

【0021】次から、2文字目以降の文字描画処理を行
う。 ステップ206:レジスタRと文字数Nを比較する。レ
ジスタRが文字数Nより大きい場合はすべての文字を出
力したことになるので処理を終了する。文字数Nがレジ
スタRより大きい場合はまだすべての文字を出力してい
ないので、次の処理へ進む。 ステップ207:次の座標入力があるかどうかをチェッ
クする。座標入力が中断された場合は処理を終了し、座
標入力がある場合は、次の処理へ進む。 ステップ208:座標点P2を入力し、メモリ32に記
憶する。 ステップ209:入力された座標点P1、P2の間隔
が、描画される文字サイズWより小さい場合に、文字が
重ならないようにするための処理をする。ここでは、点
P1−点P2の間隔と文字サイズWを比較して、文字サ
イズWの方が大きい場合は、ステップ207に戻って新
たに座標点P2の入力を行うようにしている。
Next, character drawing processing for the second and subsequent characters is performed. Step 206: Compare the register R with the number of characters N. If the register R is larger than the number of characters N, all the characters have been output, and the process ends. If the number of characters N is larger than the register R, all the characters have not been output yet, so the process proceeds to the next process. Step 207: It is checked whether or not there is a next coordinate input. If the coordinate input has been interrupted, the process ends, and if there is a coordinate input, the process proceeds to the next process. Step 208: The coordinate point P2 is input and stored in the memory 32. Step 209: When the interval between the input coordinate points P1 and P2 is smaller than the character size W to be drawn, a process for preventing characters from being overlapped is performed. Here, the interval between the point P1 and the point P2 is compared with the character size W, and if the character size W is larger, the process returns to step 207 to input a new coordinate point P2.

【0022】次にステップ210〜213で文字間隔が
広がり過ぎないようにするための処理を行っている。図
7は本発明の文字描画処理における座標間隔と文字間隔
の関係を示す説明図である。 ステップ210:点P1をコピーして、点Qを作成す
る。点Qは文字を描画する点を探すまでの一時的な変数
である(図7a参照)。 ステップ211:点Qと点P1の間隔がサイズWと等し
いかどうかチェックする(図7b参照)。 ステップ212:点Qと点P1の間隔がサイズWと等し
くなるまで点Qを1ドットづつ点P2に近付けて行く。
Next, in steps 210 to 213, processing is performed to prevent the character spacing from becoming too wide. FIG. 7 is an explanatory diagram showing the relationship between coordinate intervals and character intervals in the character drawing process of the present invention. Step 210: A point Q is created by copying the point P1. The point Q is a temporary variable until a point for drawing a character is searched (see FIG. 7A). Step 211: Check whether the interval between the point Q and the point P1 is equal to the size W (see FIG. 7B). Step 212: The point Q is moved closer to the point P2 by one dot until the interval between the point Q and the point P1 becomes equal to the size W.

【0023】ステップ213:点P1−点Qの間隔とサ
イズWが等しくなったら、点P1に点Qを代入し、点P
1を更新する(図7c参照)。 ステップ214:文字列SのレジスタR番目の文字を点
P1に文字サイズWの大きさで描画する。 ステップ215:レジスタRを次の文字へ進める。 ステップ216:文字数Nと比較して、すべての文字を
描画していた(レジスタRが大きかった)場合は、処理
を終了し、そうでない場合はステップ209へ戻り、点
P1−点P2の間に文字が描画できる場合は文字を描画
する(図7d参照)。
Step 213: When the distance between the point P1 and the point Q is equal to the size W, the point Q is substituted for the point P1 and the point P
1 (see FIG. 7c). Step 214: The Rth character of the register of the character string S is drawn at the point P1 with the character size W. Step 215: Advance register R to next character. Step 216: If all the characters have been drawn compared to the number of characters N (the register R is large), the process is terminated. Otherwise, the process returns to step 209, where the point P1 is between the point P1 and the point P2. If the character can be drawn, the character is drawn (see FIG. 7D).

【0024】上記処理を行う際、ユーザによる文字列入
力でなく、すでに文字列Sおよび文字数Nが記憶されて
いる場合は、ステップ201の処理の処理を省略しても
よい。また、ステップ207で、処理を終了してから、
処理を再開する場合、ステップ201、202の処理を
省略し、ステップ203から処理を始めることによっ
て、途中まで描画された文字列の続きを入力することが
可能である。そのため、1文字毎に座標入力を中断する
ことによって、文字間隔の異なる文字列の入力が容易に
行うことができる。
When performing the above processing, if the character string S and the number of characters N have already been stored instead of the character string input by the user, the processing of step 201 may be omitted. Further, after the processing is completed in step 207,
When the process is restarted, it is possible to input the continuation of the character string drawn halfway by omitting the processes of steps 201 and 202 and starting the process from step 203. Therefore, by interrupting the coordinate input for each character, a character string having a different character interval can be easily input.

【0025】図6は本発明の文字描画装置の処理手順
(その2)を示すフローチャートである。また、図6
は、文字方向、文字サイズ変更の処理を行う場合の処理
手順である。ここでは、座標点を2点入力し、その2点
の間隔、相対座標から文字サイズ、文字の回転角度を決
定する。 ステップ301:キーボード4またはペン、マウス等の
座標入力装置1から、ユーザが文字列Sを入力し、メモ
リ32に記憶する。このとき、入力された文字数も同時
に得られるため、これも文字数Nとしてメモリ32に記
憶しておく。 ステップ302:文字選択用のレジスタRに1(文字
目)を代入して、メモリ32に記憶する。 ステップ303:座標入力装置1から座標点P1を入力
しメモリ32に記憶する。
FIG. 6 is a flowchart showing a processing procedure (part 2) of the character drawing apparatus of the present invention. FIG.
Is a processing procedure in the case of performing a process of changing the character direction and the character size. Here, two coordinate points are inputted, and the character size and the rotation angle of the character are determined from the interval and the relative coordinates of the two points. Step 301: The user inputs a character string S from the keyboard 4 or the coordinate input device 1 such as a pen or a mouse, and stores the character string S in the memory 32. At this time, since the number of input characters is also obtained at the same time, this is also stored in the memory 32 as the number of characters N. Step 302: 1 (character) is assigned to a register R for character selection and stored in the memory 32. Step 303: The coordinate point P1 is input from the coordinate input device 1 and stored in the memory 32.

【0026】ステップ304:座標入力装置1から座標
点P2を入力し、メモリ32に記憶する。 ステップ305:点P1、点P2から間隔Lと、移動方
向Tx、Tyを求める。間隔Lと移動方向Tx、Tyの
計算式は以下の通り。 Tx=P2x−P1x Ty=P2y−P1y L =[(Tx)2+(Ty)21/2 ここで、P1x:点P1のx座標、P1y:点P1のy
座標 P2x:点P2のx座標、P2y:点P2のy座標
Step 304: The coordinate point P2 is input from the coordinate input device 1 and stored in the memory 32. Step 305: The distance L from the points P1 and P2 and the moving directions Tx and Ty are obtained. The formula for calculating the distance L and the moving directions Tx and Ty is as follows. Tx = P2x-P1x Ty = P2y -P1y L = [(Tx) 2 + (Ty) 2] 1/2 where, P1x: x coordinate of the point P1, P1y: y of the point P1
Coordinates P2x: x coordinate of point P2, P2y: y coordinate of point P2

【0027】図8は文字描画処理における座標移動方向
と文字回転角度算出表を示す説明図である。文字回転角
度Uは移動方向Tx、Tyを、例えば、図8a、8bに
示すような文字回転角度算出表に当てはめ、角度を求め
る(図8aは縦書き用、図8bは横書き用を示す)。 ステップ306:間隔Lから文字サイズW、移動方向T
x、Tyから文字回転角度Uを求める(図8参照)。文
字サイズWは、ここでは、間隔Lの1/2の値を使用す
る。 ステップ307:点P1に文字列SのレジスタR番目の
文字をサイズWの大きさで、文字回転角度Uの角度で描
画を行う。
FIG. 8 is an explanatory diagram showing a coordinate movement direction and a character rotation angle calculation table in the character drawing process. The character rotation angle U is obtained by applying the movement directions Tx and Ty to, for example, a character rotation angle calculation table as shown in FIGS. 8A and 8B (FIG. 8A shows vertical writing, and FIG. 8B shows horizontal writing). Step 306: Character size W, moving direction T from interval L
The character rotation angle U is obtained from x and Ty (see FIG. 8). Here, as the character size W, a value of 1/2 of the interval L is used. Step 307: Draw the Rth character of the character string S in the register at the point P1 with the size W and the character rotation angle U.

【0028】ステップ308:レジスタRを次の文字へ
進める。 ステップ309:文字数Nと比較して、レジスタRの方
が大きければすべての文字を描画しているので、処理を
終了する。そうでない場合は、まだ描画していない文字
が残っているので、ステップ303に戻って処理を繰り
返す。上記の処理によって、文字サイズ、文字方向の異
なる文字列の入力が可能である。ステップ306、30
7の処理において、文字サイズまたは文字方向のどちら
かが、必要でない場合は片方の処理だけを行うこともで
きる。
Step 308: Advance register R to the next character. Step 309: If the value of the register R is larger than the number of characters N, all the characters are drawn, and the process is terminated. Otherwise, there are characters that have not been drawn yet, so the process returns to step 303 and repeats the process. Through the above processing, a character string having a different character size and character direction can be input. Steps 306, 30
In the processing of 7, if either the character size or the character direction is not required, only one of the processing can be performed.

【0029】[0029]

【発明の効果】本発明によれば、例えば、一文字毎に文
字間隔、文字方向、文字サイズが変化するポスター、広
告等に用いられる文字を、ペン、マウス等の座標入力装
置によって入力された座標位置に対応して任意に描画す
ることが可能になる。
According to the present invention, for example, characters used for posters, advertisements, etc., in which the character spacing, character direction, and character size change for each character, are input by a coordinate input device such as a pen or a mouse. It is possible to draw arbitrarily according to the position.

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

【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】本発明の文字描画装置の一実施例を示すブロッ
ク図である。
FIG. 2 is a block diagram showing an embodiment of the character drawing apparatus of the present invention.

【図3】本発明の文字描画処理による表示例(その1)
を示す説明図である。
FIG. 3 is a display example (part 1) by the character drawing process of the present invention.
FIG.

【図4】本発明の文字描画処理による表示例(その2)
を示す説明図である。
FIG. 4 is a display example (part 2) by the character drawing process of the present invention.
FIG.

【図5】本発明の文字描画装置の処理手順(その1)を
示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure (part 1) of the character drawing apparatus of the present invention.

【図6】本発明の文字描画装置の処理手順(その2)を
示すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure (part 2) of the character drawing apparatus of the present invention.

【図7】本発明の文字描画処理における座標値と文字間
隔の関係を示す説明図である。
FIG. 7 is an explanatory diagram showing a relationship between a coordinate value and a character interval in a character drawing process of the present invention.

【図8】本発明の文字描画処理における座標移動方向と
文字回転角度算出表を示す説明図である。。
FIG. 8 is an explanatory diagram showing a coordinate movement direction and a character rotation angle calculation table in the character drawing processing of the present invention. .

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

1 座標入力装置 2 表示装置 3 制御装置 31 演算回路 32 メモリ 33 インターフェース回路 4 キーボード 5 外部記憶装置 6 プリンタ DESCRIPTION OF SYMBOLS 1 Coordinate input device 2 Display device 3 Control device 31 Arithmetic circuit 32 Memory 33 Interface circuit 4 Keyboard 5 External storage device 6 Printer

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字列を入力する文字入力手段と、入力
された文字列を記憶する文字列記憶手段と、記憶された
文字列を順次読み出す読出手段と、読み出された文字列
を表示する表示手段とを備えた文字描画装置において
所定の文字数の文字列を所望の座標位置に配列するため
始点及び終点を含む座標値を入力する座標入力手段
と、座標入力手段から入力された座標値を読み取る座標
読取手段と、読み取られた座標値を記憶する座標値記憶
手段と、座標値記憶手段から順次座標値を読み出し各座
標値間の座標間隔を算出する座標間隔算出手段と、算出
された座標間隔に基づき文字サイズを算出する文字サイ
ズ算出手段と、読出手段により読み出した文字列を、文
字サイズ算出手段で算出された文字サイズの描画データ
に生成し、その描画データを座標間隔算出手段で算出さ
れた座標間隔に位置する各座標値に順次出力する描画デ
ータ出力手段とを備えたことを特徴とする文字描画装
置。
1. A character input means for inputting a character string, a character string storage means for storing the input character string, a reading means for sequentially reading the stored character strings, and displaying the read character string. In a character drawing device provided with a display means,
Coordinate input means for inputting coordinate values including a start point and an end point for arranging a character string having a predetermined number of characters at a desired coordinate position; coordinate reading means for reading coordinate values input from the coordinate input means; each seat read coordinate value storing means for storing coordinate values, sequentially coordinate values from the coordinate value storage means
A coordinate interval calculating unit that calculates a coordinate interval between the target values, a character size calculating unit that calculates a character size based on the calculated coordinate interval, and a character string read by the reading unit are calculated by the character size calculating unit. Generated as character size drawing data, and the drawing data is calculated by the coordinate interval calculating means.
And a drawing data output means for sequentially outputting each coordinate value located at the set coordinate interval .
JP5276833A 1993-11-05 1993-11-05 Character drawing device Expired - Lifetime JP3045905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5276833A JP3045905B2 (en) 1993-11-05 1993-11-05 Character drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5276833A JP3045905B2 (en) 1993-11-05 1993-11-05 Character drawing device

Publications (2)

Publication Number Publication Date
JPH07129149A JPH07129149A (en) 1995-05-19
JP3045905B2 true JP3045905B2 (en) 2000-05-29

Family

ID=17575044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5276833A Expired - Lifetime JP3045905B2 (en) 1993-11-05 1993-11-05 Character drawing device

Country Status (1)

Country Link
JP (1) JP3045905B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4712675B2 (en) * 2005-06-10 2011-06-29 株式会社メイクソフトウェア Image editing apparatus, image editing method, image editing program, and automatic photography apparatus
JP3998152B2 (en) * 2005-06-10 2007-10-24 株式会社メイクソフトウェア Image editing apparatus, image editing method, image editing program, and automatic photography apparatus
JP3990418B2 (en) * 2005-08-25 2007-10-10 株式会社メイクソフトウェア Photo vending apparatus, photo vending method, and photo vending program
JP2007143150A (en) * 2006-11-13 2007-06-07 Make Softwear:Kk Apparatus, method and program for vending photograph, and image editing apparatus

Also Published As

Publication number Publication date
JPH07129149A (en) 1995-05-19

Similar Documents

Publication Publication Date Title
JP2792597B2 (en) Portable information terminal using soft keyboard and information input method
JPH0814822B2 (en) Command input device
US7675529B1 (en) Method and apparatus to scale graphical user interfaces
JP2002297293A (en) Portable information terminal equipment
JP3045905B2 (en) Character drawing device
JP3015264B2 (en) Information processing apparatus and method
JP3268029B2 (en) Handwriting input device
JPH0594253A (en) Screen touch type key input device
JP3171738B2 (en) Brush typeface generator
JPH09244858A (en) Control method for window system and information processor
JP3533758B2 (en) Scroll control device and display device
JP2738851B2 (en) Input data processing display method using multiple cursors
JP3498408B2 (en) Handwriting input device
JPH11306369A (en) Picture data editor
JP2539066B2 (en) Handwriting input processing device
JPS6314229A (en) Object selection system
JP2001056746A (en) Pointing device, display controller and storage medium
JPH05257636A (en) Display device
JP2706010B2 (en) Information processing device
JP2797096B2 (en) Graph display control device and graph display control method
JPH05143052A (en) Document preparation assisting system
JP3101402B2 (en) Document editing method and document editing device
JP2005135268A (en) Apparatus, method and program for laying out space
JP2645174B2 (en) Computer with field display function
JPH08292749A (en) Display control method

Legal Events

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

Free format text: PAYMENT UNTIL: 20080317

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 13