JPH07129149A - Character plotting device - Google Patents

Character plotting device

Info

Publication number
JPH07129149A
JPH07129149A JP5276833A JP27683393A JPH07129149A JP H07129149 A JPH07129149 A JP H07129149A JP 5276833 A JP5276833 A JP 5276833A JP 27683393 A JP27683393 A JP 27683393A JP H07129149 A JPH07129149 A JP H07129149A
Authority
JP
Japan
Prior art keywords
character
coordinate
input
reading
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.)
Granted
Application number
JP5276833A
Other languages
Japanese (ja)
Other versions
JP3045905B2 (en
Inventor
Maki Kobayashi
真樹 小林
Hiroki Sugimoto
博樹 杉本
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)

Abstract

PURPOSE:To provide a character plotting device by which character rows inputted beforehand by a character input means can be plotted in an inputted optional coordinate position by using a coordinate input device such as a pen or a mouse. CONSTITUTION:When a coordinate value is inputted from a coordinate input means 105, the inputted coordinate value is read by a coordinate reading means 106, and the read coordinate value is temporarily stored in a coordinate value storage means 107. Next, when a coordinate data calculating means 108 calculates a coordinate interval and the moving direction by reading out the stored coordinate value, a character data calculating means 109 can calculate the character size and the character direction according to the coordinate interval and the moving direction. Since a plotting data creating means 110 creates character rows read out in order from a character row storage means 102 by a reading-out means 103 into plotting data according to the character size and the character direction calculated by the character data calculating means 109, a plotting position control means 111 plots the created plotting data at a prescribed character interval according to the inputted coordinate value, and outputs it to a display means 104.

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 device 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, a character processing device such as a word processor or a personal computer capable of document processing has a character input direction which is usually a vertical direction or a straight line direction of horizontal writing. When changing the character size, the character rotation, the character position, etc., the function keys and the cursor keys were operated in character units. Further, as an example of inputting characters other than vertical writing and horizontal writing, for example, a character processing device has been proposed which is capable of inputting a character string in a diagonal direction by specifying a cursor or a window (Japanese Patent Laid-Open No. 4-18632). See the bulletin).

【0003】[0003]

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

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

【0005】[0005]

【課題を解決するための手段】本発明の構成を示すブロ
ック図である。図1において、本発明は、文字列を入力
する文字入力手段101と、入力された文字列を記憶す
る文字列記憶手段102と、記憶された文字列を順次読
み出す読出手段103と、読み出された文字列を表示す
る表示手段104を備えた文字描画装置において、文字
列を所望の座標位置に配列するための座標値を入力する
座標入力手段105と、座標入力手段105から入力さ
れた座標値を読み取る座標読取手段106と、読み取ら
れた座標値を記憶する座標値記憶手段107と、座標値
記憶手段107から座標値を読み出し座標間隔と移動方
向を算出する座標データ算出手段108と、算出された
座標間隔と移動方向に基づき文字サイズと文字方向を算
出する文字データ算出手段109と、読出手段103に
より文字列記憶手段102から順次読み出した文字列を
文字データ算出手段109で算出された文字サイズと文
字方向に基づき描画データに生成する描画データ生成手
段110と、生成された描画データを入力された座標値
に対応して所定の文字間隔に描画し表示手段104の出
力する描画制御手段111を備え、前記描画制御手段1
11は、座標入力手段105により連続的に座標値が入
力された際には、連続した座標値に対応して文字列を一
定間隔で描画することを特徴とする文字描画装置であ
る。
FIG. 1 is a block diagram showing the structure of the present invention. In FIG. 1, the present invention includes 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, and a read means 103. In the character drawing device including the display means 104 for displaying the character string, the coordinate input means 105 for inputting the coordinate value for arranging the character string at a desired coordinate position, and the coordinate value input from the coordinate input means 105. The coordinate reading means 106 for reading, the coordinate value storage means 107 for storing the read coordinate values, the coordinate data calculation means 108 for reading the coordinate values from the coordinate value storage means 107 and calculating the coordinate interval and the moving direction. The character data calculation means 109 for calculating the character size and the character direction based on the coordinate interval and the moving direction, and the reading means 103 in order from the character string storage means 102. Drawing data generating means 110 for generating the read character string into drawing data based on the character size and the character direction calculated by the character data calculating means 109, and a predetermined value corresponding to the input coordinate values of the generated drawing data. The drawing control means 111 is provided for drawing at character intervals and output by the display means 104.
Reference numeral 11 is a character drawing device characterized in that, when coordinate values are continuously input by the coordinate input means 105, a character string is drawn at regular intervals corresponding to the continuous coordinate values.

【0006】前記描画制御手段111は、座標入力手段
105により断続的に座標値が入力された際には、断続
した座標値に対応して文字列を順番に描画するよう構成
することが好ましい。
[0006] It is preferable that the drawing control means 111 is constructed so that, when the coordinate value is intermittently input by the coordinate input means 105, the character string is sequentially drawn corresponding to the intermittent coordinate value.

【0007】前記描画制御手段111は、座標データ算
出手段108及び文字データ算出手段109により算出
された文字方向に回転させて描画するよう構成すること
もできる。
The drawing control means 111 can also be configured to rotate in the character direction calculated by the coordinate data calculation means 108 and the character data calculation means 109 to perform drawing.

【0008】前記描画制御手段111は、文字データ算
出手段109により計算された文字サイズに基づき生成
された文字データを座標値に対応して所定の文字間隔に
描画するよう構成することもできる。
The drawing control means 111 can also be configured to draw the character data generated based on the character size calculated by the character data calculation means 109 at predetermined character intervals corresponding to the coordinate values.

【0009】なお、本発明において、文字入力手段10
1としてはキーボード、ペン入力タブレット装置、OC
R装置等が用いられる。文字列記憶手段102、読出手
段103、座標読取手段106、座標値記憶手段10
7、座標データ算出手段108、文字データ算出手段1
09、描画データ生成手段110、描画制御手段111
としては、CPU、ROM、RAM、I/Oポートから
なるマイクロコンピュータを用いるのが好ましい。ま
た、特に、文字列記憶手段102、座標値記憶手段10
4としては、通常、その中のRAMが用いられる。表示
手段104としては、CRTディスプレイ装置、LCD
(液晶ディスプレイ)装置、ELディスプレイ装置等の
表示装置が用いられる。座標入力手段105としては、
ペン入力タブレット装置、あるいはマウス等の座標入力
装置が用いられる。
In the present invention, the character input means 10
1, keyboard, pen input tablet device, OC
An R device or the like is used. Character string storage means 102, reading means 103, coordinate reading means 106, coordinate value storage means 10
7, coordinate data calculation means 108, character data calculation means 1
09, drawing data generation means 110, drawing control means 111
It is preferable to use a microcomputer including a CPU, ROM, RAM, and I / O port. In addition, in particular, the character string storage means 102 and the coordinate value storage means 10
As for 4, a RAM therein is usually used. As the display means 104, a CRT display device, LCD
A display device such as a (liquid crystal display) device or an EL display device is used. As the coordinate input means 105,
A pen input tablet device or a coordinate input device such as a mouse is used.

【0010】[0010]

【作用】本発明によれば、図1において、本発明は、文
字入力手段101から入力した文字列を文字列記憶手段
102に記憶し、記憶した文字列を読出手段103で順
次読み出し、表示手段104に表示する文字描画装置に
おいて、座標入力手段105から座標値が入力される
と、入力された座標値は座標読取手段106により読み
取られ、読み取られた座標値を座標値記憶手段107に
一時記憶される。次に、座標データ算出手段108が記
憶された座標値を読み出し座標間隔と移動方向を算出す
ると、文字データ算出手段109はその座標間隔と移動
方向に基づき文字サイズと文字方向を算出することがで
きる。そして、描画データ生成手段110は、読出手段
103により文字列記憶手段102から順次読み出した
文字列を、文字データ算出手段109で算出された文字
サイズと文字方向に基づいた描画データに生成するの
で、描画制御手段111は生成された描画データを入力
された座標値に対応して所定の文字間隔に描画し表示手
段104の出力する。従って、前記描画制御手段111
は、座標入力手段105により連続的に座標値が入力さ
れた際には、連続した座標値に対応して文字列を一定間
隔で描画することができる。
According to the present invention, in FIG. 1, the present invention stores the character string input from the character input means 101 in the character string storage means 102, and sequentially reads the stored character string by the reading means 103 to display the means. When a coordinate value is input from the coordinate input unit 105 in the character drawing device displayed on the display unit 104, the input coordinate value is read by the coordinate reading unit 106, and the read coordinate value is temporarily stored in the coordinate value storage unit 107. To be done. Next, when the coordinate data calculation unit 108 reads the stored coordinate values and calculates the coordinate interval and the moving direction, the character data calculating unit 109 can calculate the character size and the character direction based on the coordinate interval and the moving direction. . Then, the drawing data generating means 110 generates the character strings sequentially read from the character string storing means 102 by the reading means 103 into drawing data based on the character size and the character direction calculated by the character data calculating means 109. The drawing control means 111 draws the generated drawing data at predetermined character intervals corresponding to the input coordinate values, and outputs the drawing data to the display means 104. Therefore, the drawing control means 111
When coordinate values are continuously input by the coordinate input means 105, the character string can be drawn at regular intervals corresponding to the continuous coordinate values.

【0011】前記描画制御手段111は、座標入力手段
105により断続的に座標値が入力された際には、断続
した座標値に対応して文字列を順番に描画するよう構成
することができるので、座標入力手段106を用いて文
字列を描画する際、文字列を自由な座標位置に描画する
ことができる。
The drawing control means 111 can be constructed so that when the coordinate input means 105 intermittently inputs coordinate values, the character strings are drawn in order in correspondence with the intermittent coordinate values. When a character string is drawn using the coordinate input means 106, the character string can be drawn at any coordinate position.

【0012】前記描画制御手段111は、座標データ算
出手段108及び文字データ算出手段109により算出
された文字方向に回転させて描画するよう構成すること
もできるので、座標入力手段106を用いて文字列を描
画する際、移動方向によって文字方向を変えることがで
きる。
Since the drawing control means 111 can also be configured to rotate in the character direction calculated by the coordinate data calculation means 108 and the character data calculation means 109 to draw, a character string can be obtained using the coordinate input means 106. When drawing, the character direction can be changed depending on the moving direction.

【0013】前記描画制御手段111は、文字データ算
出手段109により計算された文字サイズに基づき展開
された文字データを座標値に対応して所定の文字間隔に
描画するよう構成することもできるので、座標入力手段
106を用いて文字列を描画する際、入力した座標値の
間隔によって文字のサイズを変化させることができる。
Since the drawing control means 111 can also be configured to draw the character data developed based on the character size calculated by the character data calculation means 109 at a predetermined character interval corresponding to the coordinate values, When drawing a character string using the coordinate input means 106, the size of the character can be changed according to the interval between the input coordinate values.

【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]

【実施例】以下、図に示す実施例に基づいて本発明を詳
述する。なお、これによって本発明は限定されるもので
はない。また、本発明の装置は、例えば、ペン入力機能
付き日本語ワードプロセッサに組み込まれて好適であ
り、各構成要素は本発明の「任意の座標位置に文字列を
描画する機能」を達成する以外に、通常の文字処理機能
を備えているものとして説明する。
The present invention will be described in detail below based on the embodiments shown in the drawings. The present invention is not limited to this. Further, the device of the present invention is suitable for being incorporated in, for example, a Japanese word processor with a pen input function, and each component has a function other than achieving the "function of drawing a character string at an arbitrary coordinate position" of the present invention. , Which will be described as having 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 of the present invention. In FIG. 2, reference numeral 1 is a coordinate input device composed of a pen input tablet, a digitizer, a mouse, etc. Using the coordinate data input from the coordinate input device 1, a character is drawn at an arbitrary position. 2 is a CRT
The display device includes a display device, an LCD (liquid crystal display) device, and the like, and a character string corresponding to the coordinate value input from the coordinate input device 1 is displayed on the display screen. Reference numeral 3 denotes a control device, which is an arithmetic circuit 31 including a CPU for executing control of character processing of the present invention, a ROM storing various programs and character fonts for controlling the present invention, and input coordinate data. , A memory 32 including RAM for storing various data necessary for processing including character data, drawing data, the number of characters, and the like, and an I / O port for connecting to an external device such as the coordinate input device 1 and the display device 2. It is composed of the interface circuit 33 and the like. In some cases, a keyboard 4, an external storage device 5 including a hard disk and a floppy disk, and a printer 6 may be connected to the control device 3. When the display-integrated pen input tablet is used, the coordinate input device 1
Then, the display device 2 is the same device, but these will be described separately in the following description.

【0017】また、制御装置3の機能として、例えば、
メモリ32のRAMは、文字列を記憶する文字列記憶手
段、座標値を記憶する座標値記憶手段として機能する。
演算回路31のCPUは、メモリ32と協動して、座標
入力装置1から入力された座標値を読み取る座標読取手
段、座標値の間隔と移動方向を算出する座標データ算出
手段、算出された座標間隔と移動方向から文字サイズと
文字方向を算出する文字データ算出手段、文字列記憶手
段から文字列を順次読み出す読出手段、入力された文字
列を文字データ算出手段で算出された文字サイズと文字
方向の描画データに生成する描画データ生成手段、生成
された描画データを入力された座標値に対応して所定の
文字間隔に描画する描画制御手段として機能する。
Further, as the function of the control device 3, 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 coordinate values.
The CPU of the arithmetic circuit 31 cooperates with the memory 32 to read coordinate values input from the coordinate input device 1, coordinate reading means for calculating a coordinate value interval and moving direction, and calculated coordinates. Character data calculation means for calculating the character size and character direction from the interval and movement direction, reading means for sequentially reading character strings from the character string storage means, character size and character direction for the input character string calculated by the character data calculation means The drawing data generating means for generating the drawing data and the drawing control means for drawing the generated drawing data at a predetermined character interval corresponding to the input coordinate value.

【0018】図3は本発明の文字描画処理による表示例
(その1)を示す説明図である。図3において、予め、
キーボード3から入力された文字列を、図3aに示すよ
うに、座標入力装置1で連続的に指定された座標値(座
標点)に、順次描画(配列)していくことによって図3
bのように文字を自由に描画することが可能である。ま
た、入力された座標の移動方向から、図3cのように文
字方向の異なる文字の配列も可能であり、座標間隔か
ら、図3dのようにサイズの異なる文字の入力も容易に
行うことが可能である。図4は本発明の文字描画処理に
よる表示例(その2)を示す説明図である。図4に示す
ような、この座標点は連続したものだけでなく断続的な
ものであっても、文字配列が可能である。
FIG. 3 is an explanatory view showing a display example (No. 1) by the character drawing processing of the present invention. In FIG. 3, in advance,
As shown in FIG. 3A, the character string input from the keyboard 3 is sequentially drawn (arranged) at the coordinate values (coordinate points) continuously designated by the coordinate input device 1 so that the character string shown in FIG.
It is possible to freely draw characters like b. Further, it is possible to arrange characters having different character directions as shown in FIG. 3c from the moving direction of the inputted coordinates, and it is possible to easily input characters having different sizes as shown in FIG. 3d from the coordinate interval. Is. FIG. 4 is an explanatory view showing a display example (No. 2) by the character drawing processing of the present invention. As shown in FIG. 4, this coordinate point is not only continuous but also intermittent, and a 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 accordance with this program in cooperation with peripheral devices.

【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 flow chart showing the processing procedure (No. 1) of the character drawing apparatus of the present invention. Also, 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 it in the memory 32. At this time, since the number of characters input 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 character selection register R. In this example, the character size W is 1
6 (dots), 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 register Rth character of the character string S is
A size W is drawn at the point P1. Step 205: The process of advancing the register R to the next character and drawing the first 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, the character drawing process 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, it means that all the characters have been output, and the process is terminated. 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 step. Step 207: Check whether there is a next coordinate input. If the coordinate input is interrupted, the process is ended, and if the coordinate input is performed, the process proceeds to the next process. Step 208: Input the coordinate point P2 and store it in the memory 32. Step 209: When the distance between the input coordinate points P1 and P2 is smaller than the drawn character size W, processing is performed to prevent characters from overlapping. Here, the space between the points P1 and P2 is compared with the character size W. If the character size W is larger, the process returns to step 207 to newly input the 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 the coordinate interval and the character interval in the character drawing process of the present invention. Step 210: Make a point Q by copying the point P1. Point Q is a temporary variable until the point for drawing a character is searched (see FIG. 7a). Step 211: Check whether the distance 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 dot by dot until the distance 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 interval between point P1 and point Q and the size W become equal, point Q is substituted for point P1 and point P
1 is updated (see FIG. 7c). Step 214: Draw the Rth character of the register of the character string S at the point P1 in the size of the character size W. Step 215: Advance register R to the next character. Step 216: Compared with the number of characters N, if all the characters have been drawn (the register R was large), the process is ended, otherwise, the process returns to the step 209, 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. In step 207, after the processing is completed,
When the process is restarted, it is possible to omit the processes of steps 201 and 202 and start the process from step 203 to input the continuation of the character string drawn halfway. Therefore, by interrupting the coordinate input for each character, it is possible to easily input character strings with different character intervals.

【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 the processing procedure (No. 2) of the character drawing apparatus of the present invention. In addition, FIG.
Is a processing procedure for changing the character direction and character size. Here, two coordinate points are input, and the character size and the character rotation angle are determined from the distance between the two points and the relative coordinates. 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 it in the memory 32. At this time, since the number of characters input is also obtained at the same time, this is also stored in the memory 32 as the number of characters N. Step 302: Substitute 1 (the first character) into the character selection register R and store it in the memory 32. Step 303: Input the coordinate point P1 from the coordinate input device 1 and store it 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: Obtain the distance L and the moving directions Tx and Ty from the points P1 and P2. The formulas for calculating the distance L and the moving directions Tx and Ty are as follows. Tx = P2x−P1x Ty = P2y−P1y L = [(Tx) 2 + (Ty) 2 ] 1/2 where P1x is the x coordinate of the point P1 and P1y is the 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. For the character rotation angle U, the moving directions Tx and Ty are applied to a character rotation angle calculation table as shown in, for example, FIGS. Step 306: Character size W from spacing L, moving direction T
The character rotation angle U is obtained from x and Ty (see FIG. 8). As the character size W, here, a value of 1/2 of the interval L is used. Step 307: The character R-th character of the character string S is drawn 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: Compared with the number of characters N, if the register R is larger, all characters have been drawn, so the processing ends. If not, there are still undrawn characters, so the process returns to step 303 and is repeated. By the above processing, it is possible to input character strings having different character sizes and character directions. Steps 306, 30
In the processing of No. 7, if either the character size or the character direction is not necessary, only one 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 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 a character drawing device of the present invention.

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

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

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

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

【図7】本発明の文字描画処理における座標値と文字間
隔の関係を示す説明図である。
FIG. 7 is an explanatory diagram showing the relationship between coordinate values and character spacing in the 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 プリンタ 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 (4)

【特許請求の範囲】[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 a display for the read character strings. In a character drawing device provided with a display means, coordinate input means for inputting coordinate values for arranging a character string at desired coordinate positions, coordinate reading means for reading coordinate values input from the coordinate input means, and Coordinate value storage means for storing the coordinate values, coordinate data calculation means for reading the coordinate values from the coordinate value storage means and calculating the coordinate interval and the moving direction, and the character size and the character direction based on the calculated coordinate interval and the moving direction. Based on the character size and the character direction calculated by the character data calculating means, and the character string obtained by sequentially reading the character string from the character string storing means by the reading means. And a drawing control unit for drawing the generated drawing data at predetermined character intervals corresponding to the input coordinate values and outputting the display unit. A character drawing device, which draws a character string at regular intervals corresponding to continuous coordinate values when coordinate values continuously input by the coordinate input means are input.
【請求項2】 前記描画制御手段は、座標入力手段によ
り断続的に座標値が入力された際には、断続した座標値
に対応して文字列を順番に描画することを特徴とする請
求項1記載の文字描画装置。
2. The drawing control means, when the coordinate value is intermittently input by the coordinate input means, sequentially draws a character string corresponding to the intermittent coordinate value. 1. The character drawing device according to 1.
【請求項3】 前記描画制御手段は、座標データ算出手
段及び文字データ算出手段により算出された文字方向に
回転させて描画することを特徴とする請求項1記載の文
字描画装置。
3. The character drawing apparatus according to claim 1, wherein the drawing control means draws by rotating in the character direction calculated by the coordinate data calculation means and the character data calculation means.
【請求項4】 前記描画制御手段は、文字データ算出手
段により計算された文字サイズに基づき生成された文字
データを座標値に対応して所定の文字間隔に描画するこ
とを特徴とする請求項1記載の文字描画装置。
4. The drawing control means draws the character data generated based on the character size calculated by the character data calculation means at predetermined character intervals corresponding to the coordinate values. The described character drawing device.
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 true JPH07129149A (en) 1995-05-19
JP3045905B2 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007018481A (en) * 2005-06-10 2007-01-25 Make Softwear:Kk Image editing apparatus, image editing method, image editing program and automatic photographing apparatus
JP2007058627A (en) * 2005-08-25 2007-03-08 Make Softwear:Kk Photograph automatic selling device, photograph automatic selling method, image editing device and photograph automatic selling program
JP2007133885A (en) * 2005-06-10 2007-05-31 Make Softwear:Kk Image editing apparatus, image editing method, image editing program and automatic photographic apparatus
JP2007143150A (en) * 2006-11-13 2007-06-07 Make Softwear:Kk Apparatus, method and program for vending photograph, and image editing apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007018481A (en) * 2005-06-10 2007-01-25 Make Softwear:Kk Image editing apparatus, image editing method, image editing program and automatic photographing apparatus
JP2007133885A (en) * 2005-06-10 2007-05-31 Make Softwear:Kk Image editing apparatus, image editing method, image editing program and automatic photographic apparatus
JP2007058627A (en) * 2005-08-25 2007-03-08 Make Softwear:Kk Photograph automatic selling device, photograph automatic selling method, image editing device and photograph automatic selling 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
JP3045905B2 (en) 2000-05-29

Similar Documents

Publication Publication Date Title
JP2002091676A (en) Input device
JP3045905B2 (en) Character drawing device
JP3171738B2 (en) Brush typeface generator
JP3268029B2 (en) Handwriting input device
JPH0827843B2 (en) How to edit a character string in a figure
JP2797096B2 (en) Graph display control device and graph display control method
JP3006988B2 (en) Spreadsheet apparatus and data management method for spreadsheet apparatus
JP3101402B2 (en) Document editing method and document editing device
JPS6314229A (en) Object selection system
JPH0738153B2 (en) Display data enlargement device
JP2944826B2 (en) Document processing device
JP2005135268A (en) Apparatus, method and program for laying out space
JP2887807B2 (en) Document creation device
JPH0731671B2 (en) Formula input editing method
JPS63110487A (en) Table generator
JP3010275B2 (en) Line output method of figure coordinates
JPH07234868A (en) Document preparing device
JPH083809B2 (en) Small electronic device with graph display function
JPH0822553A (en) Method and system for setting entry condition
JPH06236365A (en) Word processor and format setting method
JPH03282589A (en) Document preparing device
JPH05134641A (en) Cursor display method for display device
JPH04215121A (en) Display data generating device
JPH05108773A (en) Data processor
JPS60126691A (en) Display controller

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