JPH03113496A - Character processing device and method - Google Patents
Character processing device and methodInfo
- Publication number
- JPH03113496A JPH03113496A JP1250558A JP25055889A JPH03113496A JP H03113496 A JPH03113496 A JP H03113496A JP 1250558 A JP1250558 A JP 1250558A JP 25055889 A JP25055889 A JP 25055889A JP H03113496 A JPH03113496 A JP H03113496A
- Authority
- JP
- Japan
- Prior art keywords
- character
- generating
- pattern
- font
- processing device
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は文字処理装置に関し、例えば文字コードに基づ
いて文字パターンを発生する文字処理装置に関するもの
である。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character processing device, and for example, to a character processing device that generates a character pattern based on a character code.
[従来の技術]
従来、この種の装置においては、同一の文字コードであ
っても文字の書体が異なる文字パターンを出力するため
には、別のパターン情報、即ち、輪郭点情報を具備する
必要であった。[Prior Art] Conventionally, in this type of device, in order to output character patterns with different fonts even if the character code is the same, it is necessary to provide other pattern information, that is, contour point information. Met.
[発明が解決しようとしている課題]
しかしながら、上記従来例では、書体毎に文字コードに
対応した輪郭点情報を持たねばならなかった。このため
、書体を形成するためのデータ量は増大し、メモリを多
く必要とするという欠点があった。[Problems to be Solved by the Invention] However, in the conventional example described above, it was necessary to have contour point information corresponding to the character code for each typeface. As a result, the amount of data required to form a typeface increases, resulting in a disadvantage that a large amount of memory is required.
本発明は上述した従来例の欠点に鑑みてなされたもので
あり、その目的とするところは、データ量を削減し、ひ
とつの書体から複数の書体を生成できる文字処理装置を
提供する点にある。The present invention has been made in view of the above-mentioned drawbacks of the conventional examples, and its purpose is to provide a character processing device that can reduce the amount of data and generate multiple fonts from one font. .
[課題を解決するための手段]
上述した課題を解決し、目的を達成するため、本発明に
係わる文字処理装置は、文字パターンを発生するための
輪郭点情報を記憶する記憶手段と、少なくとも書体命令
と文字コードとを入力する入力手段と、該入力手段]で
入力された文字コードに対応する輪郭点情報を前記記憶
手段で記憶された輪郭点情報から検出する検出手段と、
該検出手段で検出された輪郭点情報と前記入力手段で入
力された書体命令とに基づいて文字パターンを発生する
発生手段とを備えることを特徴とする。[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the objectives, a character processing device according to the present invention includes a storage means for storing contour point information for generating character patterns, and at least a typeface. an input means for inputting a command and a character code; a detection means for detecting contour point information corresponding to the character code input by the input means from the contour point information stored in the storage means;
The apparatus is characterized by comprising a generating means for generating a character pattern based on the contour point information detected by the detecting means and a font command input by the input means.
[作用]
かかる構成によれば、記憶手段は文字パターンを発生す
るための輪郭点情報を記憶し、入力手段は少なくとも書
体命令と文字コードとを入力し、検出手段は入力手段で
入力された文字コードに対応する輪郭点情報を記憶手段
で記憶された輪郭点情報から検出し、発生手段は検出手
段で検出された輪郭点情報と入力手段で入力された書体
命令とに基づいて文字パターンを発生する。[Operation] According to this configuration, the storage means stores contour point information for generating a character pattern, the input means inputs at least a font command and a character code, and the detection means receives characters input by the input means. The contour point information corresponding to the code is detected from the contour point information stored in the storage means, and the generation means generates a character pattern based on the contour point information detected by the detection means and the font command inputted by the input means. do.
[実施例]
以下添付図面を参照して・、本発明に係わる好適な実施
例を詳細に説明する。[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。同図において、本実施例の文字処理装置1は、ホス
トコンピュータ等の外部装置20から文字コードや制御
命令(例えば、書体命令)を入力し、プリンタ30に書
体命令に応じた書体の文字パターンデータな出力する。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, the character processing device 1 of this embodiment inputs character codes and control commands (for example, font commands) from an external device 20 such as a host computer, and sends character pattern data of a font according to the font commands to a printer 30. output.
プリンタ30は、入力した文字パターンデータに基づい
て文字画像を記憶紙に印刷する。文字処理装置1におい
て、2は外部装置20から送られる文字コードや制御命
令等を格納する大力バッファを示している。3は水装置
1全体を制御する中央処理装置(CPU)を示し、この
CPU3はROM4に格納された制御プログラム、エラ
ー処理プログラム、後述の第6図に示されるプログラム
等に従って動作する。また、CPU・3はRAM5をワ
ークエリア及びエラー処理時の一時退避エリアとして使
用する。6は本実施例の文字パターンを発生するための
文字情報を記憶しているフォントメモリを示している。The printer 30 prints a character image on memory paper based on the input character pattern data. In the character processing device 1, reference numeral 2 indicates a large-capacity buffer for storing character codes, control commands, etc. sent from an external device 20. Reference numeral 3 indicates a central processing unit (CPU) that controls the entire water device 1, and this CPU 3 operates according to a control program stored in a ROM 4, an error processing program, a program shown in FIG. 6, which will be described later, and the like. Further, the CPU 3 uses the RAM 5 as a work area and a temporary save area during error processing. Reference numeral 6 indicates a font memory that stores character information for generating character patterns of this embodiment.
7はフォントメモリ6によって発生されたフォントパタ
ーン等によって形成される1ペ一ジ分のイメージデータ
を格納するイメージバッファを示し、8はプリンタ30
に対してイメージバッファ7に格納されたイメージデー
タな伝送制御するプリンタインタフェースを示している
。Reference numeral 7 indicates an image buffer that stores image data for one page formed by the font pattern etc. generated by the font memory 6, and 8 indicates the printer 30.
A printer interface for controlling the transmission of image data stored in the image buffer 7 is shown.
次に、本実施例の文字情報の記憶方法について説明する
。Next, a method of storing character information in this embodiment will be explained.
第2図は本実施例の文字パターンの一例を示す図、第3
図は第2図に示される文字パターンに対応する文字情報
の記憶方法を示す図、第4図、第5図は第2図に示され
る基1本書体に基づいて生成される他の書体を示す図で
ある。FIG. 2 is a diagram showing an example of the character pattern of this embodiment, and FIG.
The figure shows a method of storing character information corresponding to the character pattern shown in Fig. 2, and Figs. 4 and 5 show other fonts generated based on the basic font shown in Fig. 2. FIG.
第2図には、「河」の基本文字パターン、即ち、基本書
体を構成する画の輪郭線が表わされている。201〜2
08は書き順に従った各々の画の輪郭線を示している。FIG. 2 shows the basic character pattern of ``川'', that is, the contour lines of the strokes that make up the basic typeface. 201-2
08 shows the outline of each stroke according to the stroke order.
その輪郭線201〜208はそれぞれ複数の輪郭点(座
標点)、即ち、パターン抽出点によって形成される。第
3図には、文字情報として、文字コードに対応するよう
に画数と画毎のパターン抽出点が記憶されている。さら
に、本実施例では、文字情報として、前段の画のパター
ン(ひとつ前の画とは限らない)に連続する場合を“2
”、連続しない場合を“1”、パターン化しない場合を
O”としたフラグが画毎に記憶され、前段或は後段の画
のパターン(書き順で前後に位置する画とは限らない)
と接続する場合の開始点及び終了点も・併せて記憶され
る。上記開始点及び終了点は、輪郭線を太くするために
それぞれ2点記憶される。第3図に示されるように、文
字「河」の場合、コードを“324F”画数を°°8゛
として、開始点、終了点、パターン抽出点が1画から8
画までそれぞれ記憶されている。尚、本実施例では、−
文字が100X100ドツトのマトリクス内に形成され
る。Each of the contour lines 201 to 208 is formed by a plurality of contour points (coordinate points), that is, pattern extraction points. In FIG. 3, the number of strokes and pattern extraction points for each stroke are stored as character information so as to correspond to the character code. Furthermore, in this embodiment, when the character information is continuous with the previous stroke pattern (not necessarily the previous stroke), "2" is used.
A flag is stored for each stroke, with a flag set to ``1'' if it is not continuous, and ``O'' if it is not patterned, and the pattern of the previous or subsequent stroke (not necessarily the strokes located before or after in stroke order).
The starting point and ending point when connecting with the terminal are also stored. Two starting points and two ending points are each stored in order to make the outline thicker. As shown in Figure 3, in the case of the character "river", the code is "324F" and the number of strokes is °°8, and the start point, end point, and pattern extraction point are from 1 stroke to 8.
Each image is memorized. In this example, −
Characters are formed in a 100x100 dot matrix.
以上の文字情報に基づいて文字パターンを発生させる場
合、本実施例では外部装置20より2つの情報を受は取
る。ひとつは文字コードであり、もうひとつは文字コー
ドに対応する文字の書体を決める書体命令である。書体
命令として、ゴシック、明朝体9毛筆、オレータ等があ
り、これらの書体の指定方法は外部装置20側での公知
技術のため、説明を省略する。When generating a character pattern based on the above character information, in this embodiment, two pieces of information are received from the external device 20. One is the character code, and the other is the font command that determines the font of the character corresponding to the character code. The font commands include Gothic, Mincho 9-brush, Orator, etc., and the method of specifying these fonts is a known technique on the external device 20 side, so a description thereof will be omitted.
第4図に基本書体(第2・図)から各々の画を接続させ
ることにより得られた文字パターンの一例が示されてい
る。この文字パターンの書体は、実際にプリンタ30へ
出力されるときのイメージであって、第3図に示される
文字情報のフラグ情報に基づいて形成される。そこで、
文字「河」の偏401 (第4図)の部分は、輪郭線
201.202.203 (第2図)を接続したパター
ンである。また、文字「河」の9402(第4図)の“
口”の部分において、輪郭線208(第2図)の文字情
報のフラグは°°2”に設定されているが、フラグを“
0”として、輪郭線206と207の各終了点を結ぶよ
うに設定しても良い。FIG. 4 shows an example of a character pattern obtained by connecting each stroke from the basic typeface (FIG. 2). The font of this character pattern is an image when it is actually output to the printer 30, and is formed based on the flag information of the character information shown in FIG. Therefore,
The part 401 (FIG. 4) of the character "river" is a pattern in which contour lines 201, 202, and 203 (FIG. 2) are connected. Also, “9402 (Figure 4) for the character “river”
In the "mouth" part, the text information flag of the outline 208 (Fig. 2) is set to "°°2", but if you change the flag to "
0'' and may be set to connect the end points of the contour lines 206 and 207.
また、第S図には、第2両目の輪郭線202(第2図)
をパターン化しなかった場合の書体が示されている。こ
の場合、第5図に示される如(、文字「河」の9502
は第4図と同様にパターン化される。また、文字「河」
の偏501は、第2両目のフラグを“O”として、第1
両目の輪郭線201 (第2図)と第3両目の輪郭線2
03(第2図)とを接続した形状となる。Also, in Figure S, the contour line 202 of the second eye (Figure 2)
The font is shown without patterning. In this case, as shown in FIG.
is patterned in the same manner as in FIG. Also, the character ``river''
In the bias 501, the flag of the second car is set to “O” and the flag of the first car is set to “O”.
Outline 201 of both eyes (Figure 2) and outline 2 of the third eye
03 (FIG. 2).
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
第6図はCPU3の文字発生処理の動作を説明するフロ
ーチャートである。FIG. 6 is a flowchart illustrating the operation of character generation processing by the CPU 3.
まず、外部装置20よりデータが送信され、文字コード
が検出されることにより、本プログラムは開始する。そ
こで、文字コード及びその書体命令が外部装置20から
入力されると、そのデータが大力バッファ2に格納され
る(ステップS1)。そして、入力された文字コードに
対応する文字情報がフォントメモリ6の中で検索される
(ステップS2)。このようにして、入力された文字コ
ードに対応する文字;情報が検出されると、パラメータ
Nに文字の総画数がセットされ(ステップS3)、さら
に、パラメータNにパターン展開時の展開画数の初期値
“1”がセットされる(ステップS4)。そして、第M
両目の文字情報として、パターン抽出点とフラグとがR
AM5に読出され(ステップS5)、ステップSlで入
力された書体制御命令からフラグの変更が必要かどうか
の判定が行われる(ステップS6)。このスナップS6
では、−例として、第5図に示される文字パターンでは
、偏501を形成する元となる輪郭線201,202,
203のうち輪郭線202のフラグ情報が°2”から”
O”に変更される。このように、フラグ変更がある場合
には、RAM5上において、書体命令に基づいて別のフ
ラグ情報に書換える(ステップS7)。First, this program starts when data is transmitted from the external device 20 and a character code is detected. Therefore, when a character code and its font command are input from the external device 20, the data is stored in the power buffer 2 (step S1). Then, character information corresponding to the input character code is searched in the font memory 6 (step S2). In this way, when the character information corresponding to the input character code is detected, the total number of strokes of the character is set to the parameter N (step S3), and furthermore, the initial number of strokes of the character when developing the pattern is set to the parameter N. A value "1" is set (step S4). And the Mth
As character information for both eyes, pattern extraction points and flags are R.
AM5 (step S5), and it is determined whether the flag needs to be changed based on the font control command input in step Sl (step S6). This snap S6
Now, as an example, in the character pattern shown in FIG. 5, the contour lines 201, 202,
Out of 203, the flag information of contour line 202 is from °2"
In this way, if there is a flag change, it is rewritten to another flag information on the RAM 5 based on the font command (step S7).
次に、フラグの状態が調・べられ、その内容に応じてパ
ターン化処理等が行われる。まず、フラグが“O”の場
合には、上述した第5図の文字パターンの輪郭線202
のように、パターン化しないで次の処理に進む。また、
フラグが“1”の場合には、現在処理中のM両目の輪郭
線が同M両目のパターン輪郭点によって形成され、さら
に、その輪郭線によって形成される閉領域内が塗り潰さ
れる(ステップS9)。または、フラグが“2”の場合
には、前回の輪郭線によるパターンの終了点(■、■)
と現在処理中のM両目の開始点(■、■)とを結んで輪
郭線が接続され、複数の輪郭線が一体化される。このよ
うにして、一体化された輪郭線もステップS9のときと
同様に輪郭線によって形成される閉領域内が塗り潰され
る(ステップ510)。Next, the state of the flag is checked, and patterning processing or the like is performed depending on its contents. First, if the flag is "O", the outline 202 of the character pattern shown in FIG.
As in, proceed to the next process without creating a pattern. Also,
If the flag is "1", the contour line of both M eyes currently being processed is formed by the pattern contour points of both M eyes, and the inside of the closed area formed by the contour line is filled (step S9). . Or, if the flag is “2”, the end point of the pattern based on the previous contour line (■, ■)
The contour lines are connected by connecting the starting points (■, ■) of both M eyes currently being processed, and the plurality of contour lines are integrated. In this way, the closed area formed by the integrated contour lines is also filled in as in step S9 (step 510).
そして、第M両目の処理・が終ると、展開画数をひとつ
繰り上げるため、パラメータMに“1”が加算される(
ステップ511)。この後、パラメータMがパラメータ
Nを越えるまでは、本処理はステップS5に戻って、−
文字分のパターンを発生させる処理が一画毎に繰り返さ
れる(ステップ512)。Then, when the processing for both Mth eyes is completed, "1" is added to the parameter M in order to increment the number of developed strokes by one (
Step 511). After this, until the parameter M exceeds the parameter N, the process returns to step S5 and -
The process of generating a character pattern is repeated for each stroke (step 512).
以上説明したように、本実施例によれば、文字情報とし
て、画毎に接続で、即ち、開始点と終了点とを記憶して
おくことによって、画を形成する輪郭線間の接続が自由
になり、ひとつの書体から複数の書体を発生することが
できることは勿論、書体のパターンを記憶するためのメ
モリ容量を節約することができる。As explained above, according to this embodiment, by memorizing the connection for each stroke as character information, that is, the start point and end point, connections between contour lines forming a stroke can be made freely. Not only can a plurality of fonts be generated from one font, but also the memory capacity for storing font patterns can be saved.
さて、上述した実施例では、それぞれの画を結ぶために
開始点と終了点とを単純に結んでいたが、本発明はこれ
に限定さ;れるものではな(、輪郭線によって形成され
るパターン間の中心位置を求めたり、重心位置を求める
ことによって、接続する輪郭線を新規に求め、これによ
って、−層均整のとれた文字パターンを生成することが
できる。Now, in the above-mentioned embodiment, the start point and the end point were simply connected to connect each stroke, but the present invention is not limited to this (the pattern formed by the outline By determining the center position between the lines or the center of gravity, a connecting contour line can be newly determined, and thereby a character pattern with good layer balance can be generated.
さらに、上述した実施例において、書き順を人れ替える
手段を加えることによって、個性的な文字の生成も可能
となる。この場合、フォントメモリ6からRAM5に一
端文字情報を読出すことによって書き順等の書換えを行
えば良い。Furthermore, in the above-described embodiment, by adding means for changing the stroke order, it is possible to generate unique characters. In this case, the writing order, etc. may be rewritten by reading character information from the font memory 6 to the RAM 5.
[発明の効果]
以上説明したように、本実施例によれば、ひとつの書体
から複数の書体を発生することができることは勿論、書
体のパターンを記憶するためのメモリ容量を節約するこ
とができる。[Effects of the Invention] As explained above, according to this embodiment, not only can a plurality of fonts be generated from one font, but also the memory capacity for storing font patterns can be saved. .
第1図は本発明の一実施例の構成を示すブロック図、
第2図は本実施例の文字パターンの一例を示す図、
第3図は第2図に示される文字パターンに対応する文字
情報の記憶方法を示す図、
第4図、第5図は第2図に示される基本書体に基づいて
生成される他の書体を示す図、第6図はCPU3の文字
発生処理の動作を説明するフローチャートである。
図中、1・・・文字処理装置、2・・・大力バッファ、
3・・・CPU、4・・・ROM、5・・・RAM、6
・・・フォントメモリ、7・・・イメージバッファ、8
・・・プリンタインタフェース、20・・・外部装置、
30・・・プリンタ、201〜208・・・輪郭線、4
01゜501・・・偏、402,50i2・・・労であ
る。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the character pattern of this embodiment, and FIG. 3 is character information corresponding to the character pattern shown in FIG. 2. Figures 4 and 5 are diagrams showing other fonts generated based on the basic font shown in Figure 2, and Figure 6 explains the operation of character generation processing by the CPU 3. It is a flowchart. In the figure, 1... character processing device, 2... large power buffer,
3...CPU, 4...ROM, 5...RAM, 6
...Font memory, 7...Image buffer, 8
... printer interface, 20 ... external device,
30... Printer, 201-208... Outline, 4
01°501... bias, 402,50i2... labor.
Claims (3)
憶する記憶手段と、 少なくとも書体命令と文字コードとを入力する入力手段
と、 該入力手段で入力された文字コードに対応する文字情報
を前記記憶手段で記憶された文字情報から検出する検出
手段と、 該検出手段で検出された文字情報と前記入力手段で入力
された書体命令とに基づいて文字パターンを発生する発
生手段とを備えることを特徴とする文字処理装置。(1) A storage means for storing character information for generating a basic character pattern; an input means for inputting at least a typeface command and a character code; and a storage means for storing character information for generating a basic character pattern; The method further comprises: a detection means for detecting character information stored in the storage means; and a generation means for generating a character pattern based on the character information detected by the detection means and a font command inputted by the input means. Characteristic character processing device.
情報と前記入力手段で入力された書体命令とから閉領域
を生成する閉領域生成手段と、該生成手段で生成された
閉領域をパターン化するパターン化手段とを含むことを
特徴とする請求項第1項記載の文字処理装置。(2) The generating means includes closed area generating means for generating a closed area from the character information detected by the detecting means and the font command input by the input means, and 2. The character processing device according to claim 1, further comprising patterning means for patterning.
ための接続点を含み、 前記閉領域生成手段は、前記接続点に基づいてそれぞれ
の画を接続する接続手段を含むことを特徴とする請求項
第2項記載の文字処理装置。(3) The character information includes connection points for connecting to other strokes in the same character, and the closed area generation means includes connection means for connecting each stroke based on the connection points. 3. A character processing device according to claim 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1250558A JP2647510B2 (en) | 1989-09-28 | 1989-09-28 | Character processing apparatus and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1250558A JP2647510B2 (en) | 1989-09-28 | 1989-09-28 | Character processing apparatus and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03113496A true JPH03113496A (en) | 1991-05-14 |
| JP2647510B2 JP2647510B2 (en) | 1997-08-27 |
Family
ID=17209692
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1250558A Expired - Fee Related JP2647510B2 (en) | 1989-09-28 | 1989-09-28 | Character processing apparatus and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2647510B2 (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60202476A (en) * | 1984-03-28 | 1985-10-12 | 株式会社日立製作所 | Character font generation system |
| JPS61147288A (en) * | 1984-12-20 | 1986-07-04 | 興和株式会社 | Character pattern generation display unit |
-
1989
- 1989-09-28 JP JP1250558A patent/JP2647510B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60202476A (en) * | 1984-03-28 | 1985-10-12 | 株式会社日立製作所 | Character font generation system |
| JPS61147288A (en) * | 1984-12-20 | 1986-07-04 | 興和株式会社 | Character pattern generation display unit |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2647510B2 (en) | 1997-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2860204B2 (en) | Output device and method of selecting interpretation program in the device | |
| JP2755308B2 (en) | Output method and device | |
| EP0424885A2 (en) | Control apparatus of high speed/high quality printer | |
| JPH0832471B2 (en) | output method | |
| JP2812412B2 (en) | Printer control device and method | |
| US5878194A (en) | Method and device for outputting multicolor document | |
| JP2647510B2 (en) | Character processing apparatus and method | |
| JP2591021B2 (en) | Character pattern generation method | |
| JP3156527B2 (en) | Outline font processing method and method | |
| JP2711860B2 (en) | Output control method and device | |
| JP3118310B2 (en) | Print processing method of page printer | |
| JPS59201870A (en) | Printer | |
| JP2525333B2 (en) | Output device | |
| JP3378662B2 (en) | Document processing device | |
| JP3191954B2 (en) | Contour data processing device | |
| JP2797134B2 (en) | Outline pattern printing device | |
| JP3040624B2 (en) | Pattern generator | |
| JPH03111891A (en) | printing device | |
| JPH0216068A (en) | Image forming device | |
| JPH03112668A (en) | printing device | |
| JP3084817B2 (en) | Character output device | |
| JPH02305662A (en) | Printer | |
| JPH0462084A (en) | Printer | |
| JPH0499657A (en) | Image supplying device | |
| JPH03129394A (en) | Document processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |