[go: up one dir, main page]

JP3471939B2 - Character pattern generating apparatus and method - Google Patents

Character pattern generating apparatus and method

Info

Publication number
JP3471939B2
JP3471939B2 JP31054994A JP31054994A JP3471939B2 JP 3471939 B2 JP3471939 B2 JP 3471939B2 JP 31054994 A JP31054994 A JP 31054994A JP 31054994 A JP31054994 A JP 31054994A JP 3471939 B2 JP3471939 B2 JP 3471939B2
Authority
JP
Japan
Prior art keywords
data
contour
cached
target
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31054994A
Other languages
Japanese (ja)
Other versions
JPH08166782A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP31054994A priority Critical patent/JP3471939B2/en
Priority to DE69426758T priority patent/DE69426758D1/en
Priority to EP94309752A priority patent/EP0661669B1/en
Priority to US08/362,986 priority patent/US5734748A/en
Priority to TW083112195A priority patent/TW282526B/zh
Priority to CN94120762A priority patent/CN1102278C/en
Priority to KR1019940039768A priority patent/KR0185245B1/en
Publication of JPH08166782A publication Critical patent/JPH08166782A/en
Application granted granted Critical
Publication of JP3471939B2 publication Critical patent/JP3471939B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Character Discrimination (AREA)
  • Image Generation (AREA)
  • Document Processing Apparatus (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 pattern generating apparatus and method having a plurality of character pattern processing resources for analyzing input character information and generating a character pattern.

【0002】[0002]

【従来の技術】従来、この種の文字パターン発生装置に
おける文字パターンの生成処理は、制御点から演算で1
文字分の輪郭を求めるアウトライン生成で行われていた
が、多種類の書体を扱うようになった現在、この方法で
文字生成を行おうとすると膨大なフォントデータを保持
する必要があり、データ削減方法を考えることが急務と
なっていた。
2. Description of the Related Art Conventionally, a character pattern generating process in a character pattern generating device of this type is calculated by a calculation from a control point.
It was done by outline generation to find the outline of characters, but now that many types of fonts are handled, it is necessary to hold huge font data when trying to generate characters by this method, so the data reduction method There was an urgent need to think about.

【0003】そこで、ストロークまたは部首単位でデー
タを持ち、これを合成させて文字を生成させるストロー
ク合成方法が生まれてきた。多種類の文字に、同一のス
トロークまたは部首を流用できるので、以前の方法に比
べ、データ量が削減できるように構成されている。
Therefore, a stroke synthesizing method has been created in which data is stored in units of strokes or radicals and these are synthesized to generate a character. Since the same stroke or radical can be used for many kinds of characters, the amount of data can be reduced as compared with the previous method.

【0004】従来、ハードを用いたアウトラインフォン
トパターン展開では、その都度、フォントデータ、ヒン
ティング手段、補間手段、塗りつぶし手段等を装置に予
め定められた方法に合わせるか、予め用意されたフォン
トデータ、ヒンティング手段、補間手段、塗りつぶし手
段等に合わせて装置が設計されていた。
Conventionally, in outline font pattern development using hardware, each time, font data, hinting means, interpolation means, filling means, etc. are matched with a predetermined method in the apparatus, or font data prepared in advance, The device was designed according to hinting means, interpolation means, filling means, and the like.

【0005】[0005]

【発明が解決しようとする課題】しかし、長い文章を作
成するときなどは、同じストロークや部首のデータを違
う文字ごとに呼び出しパターンを発生させなくてはいけ
ないといった、同一作業の反復現象が起こった。
However, when creating a long sentence, a repetitive phenomenon of the same work occurs, such as having to generate a calling pattern for different characters of the same stroke or radical data. It was

【0006】また、予め用意されたフォントデータ、ヒ
ンティング部、補間部、塗りつぶし部等に合わせた装置
を作成する必要があったため、多大な労力と、価格の上
昇を招くという問題点があった。
Further, since it is necessary to prepare an apparatus adapted to the font data, the hinting section, the interpolation section, the painting section, etc. prepared in advance, there is a problem that a great amount of labor and a price increase are caused. .

【0007】さらに、多種類の書体を扱う場合フォント
データデータが膨大になり、多大なメモリを使わなけれ
ばならないと等の問題があった。
Further, when dealing with various types of fonts, there is a problem that the font data data becomes enormous and a large memory must be used.

【0008】本発明の一実施例では、上記の問題点を解
消するためになされたもので、使用頻度の高い文字、部
首、ストロークに関して、その生成させたデータをキャ
ッシュして保管することにより、同じ作業の反復を防
ぎ、文字パターン発生における一連の作業を簡素化でき
る文字パターン発生装置及び方法を提供することを目的
とする。
One embodiment of the present invention has been made to solve the above-mentioned problems. By storing frequently generated characters, radicals and strokes, the generated data is cached and stored. It is an object of the present invention to provide a character pattern generation device and method that can prevent repetition of the same operation and simplify a series of operations in character pattern generation.

【0009】[0009]

【0010】[0010]

【0011】[0011]

【課題を解決するための手段】上述の目的を達成するた
めに、本発発明による文字パターン発生装置は、対象文
字の輪郭形式の座標データがキャッシュされているか否
かを判別する第1判別手段と、前記第1判別手段により
対象文字の輪郭形式の座標データがキャッシュされてい
ないと判別された場合、対象部首の輪郭形式の座標デー
タがキャッシュされているか否かを判別する第2判別手
段と、前記第2判別手段により対象部首の輪郭形式の座
標データがキャッシュされていないと判別された場合、
対象ストロークの輪郭形式の座標データがキャッシュさ
れているか否かを判別する第3判別手段と、前記第3判
別手段により対象ストロークの輪郭形式の座標データが
キャッシュされていないと判別された場合、対象ストロ
ークデータを取得し、取得した対象ストロークデータに
座標変換を行い、輪郭形式の座標データへ変換し、キャ
ッシュするキャッシュ手段と、前記第3判別手段により
対象ストロークの輪郭形式の座標データがキャッシュさ
れていると判別された場合、キャッシュされている輪郭
形式の座標データを取得し、前記第2判別手段により対
象部首の輪郭形式の座標データがキャッシュされている
と判別された場合、キャッシュされている輪郭形式の座
標データを取得し、前記第1判別手段により対象文字の
輪郭形式の座標データがキャッシュされていると判別さ
れた場合、キャッシュされている輪郭形式の座標データ
を取得する取得手段と、前記取得手段により取得した輪
郭形式の座標データに基づき塗り潰しを行う手段とを有
することを特徴とする。
In order to achieve the above-mentioned object, a character pattern generator according to the present invention is a first discriminating means for discriminating whether or not coordinate data of a target character in outline form is cached. And a second discriminating means for discriminating whether the contour data of the target character is cached when the contour data of the target character is not cached. When it is determined by the second determining means that the coordinate data of the contour shape of the target radical is not cached,
Third discrimination means for discriminating whether or not the contour-format coordinate data of the target stroke is cached, and if the third discrimination means determines that the contour-format coordinate data of the target stroke is not cached, The stroke data is acquired, the acquired target stroke data is subjected to coordinate conversion, converted into contour format coordinate data, and cached, and the third determination means caches the contour data of the target stroke. If it is determined that the contour-shaped coordinate data that has been cached is obtained, and if it is determined that the contour-format coordinate data of the target radical has been cached by the second determining means, it is cached. The outline format coordinate data is acquired, and the outline format coordinate data of the target character is acquired by the first discriminating means. If it is determined that the cached data is cached, it has an acquisition unit for acquiring the cached contour-shaped coordinate data, and a unit for performing filling based on the contour-formatted coordinate data acquired by the acquisition unit. Characterize.

【0012】[0012]

【0013】また、本発明の文字パターン発生方法は、
対象文字の輪郭形式の座標データがキャッシュされてい
るか否かを判別する第1判別ステップと、前記第1判別
ステップにより対象文字の輪郭形式の座標データがキャ
ッシュされていないと判別された場合、対象部首の輪郭
形式の座標データがキャッシュされているか否かを判別
する第2判別ステップと、前記第2判別ステップにより
対象部首の輪郭形式の座標データがキャッシュされてい
ないと判別された場合、対象ストロークの輪郭形式の座
標データがキャッシュされているか否かを判別する第3
判別ステップと、前記第3判別ステップにより対象スト
ロークの輪郭形式の座標データがキャッシュされていな
いと判別された場合、対象ストロークデータを取得し、
取得した対象ストロークデータに座標変換を行い、輪郭
形式の座標データへ変換し、キャッシュするキャッシュ
ステップと、前記第3判別ステップにより対象ストロー
クの輪郭形式の座標データがキャッシュされていると判
別された場合、キャッシュされている輪郭形式の座標デ
ータを取得し、前記第2判別ステップにより対象部首の
輪郭形式の座標データがキャッシュされていると判別さ
れた場合、キャッシュされている輪郭形式の座標データ
を取得し、前記第1判別ステップにより対象文字の輪郭
形式の座標データがキャッシュされていると判別された
場合、キャッシュされている輪郭形式の座標データを取
得する取得ステップと、前記取得ステップにより取得し
た輪郭形式の座標データに基づき塗り潰しを行うステッ
プとを有することを特徴とする。
The character pattern generating method of the present invention is
A first determining step of determining whether or not the contour-shaped coordinate data of the target character is cached, and if the first determination step determines that the contour-shaped coordinate data of the target character is not cached, A second determining step of determining whether or not the radical contour coordinate data is cached, and if it is determined by the second determining step that the radical contour coordinate data is not cached, A third step of determining whether or not the coordinate data of the contour format of the target stroke is cached
When it is determined in the determination step and the third determination step that the coordinate data of the contour form of the target stroke is not cached, the target stroke data is acquired,
When it is determined that the acquired stroke data of the target stroke is subjected to coordinate conversion, converted into the coordinate data of the contour format, and cached, and the coordinate data of the contour format of the target stroke is cached by the third determination step. , The cached contour format coordinate data is acquired, and when the contour format coordinate data of the target radical is determined to be cached in the second determining step, the cached contour format coordinate data is determined. If it is determined that the contour format coordinate data of the target character is cached in the first determining step, the obtaining step of obtaining the cached contour format coordinate data and the obtaining step are performed. And a step of performing filling based on the coordinate data in contour form. And it features.

【0014】[0014]

【0015】[0015]

【0016】[0016]

【0017】[0017]

【作用】本発明によれば、使用頻度の高いストローク、
部首、文字パターンまたはデータの発生頻度を格段に下
げて、効率よく文字パターンを発生させることがある。
According to the present invention, strokes that are frequently used,
Occasionally, the frequency of generation of radicals, character patterns or data is significantly reduced, and character patterns may be efficiently generated.

【0018】[0018]

【0019】[0019]

【0020】[0020]

【実施例】【Example】

〔第1実施例〕図1は本発明の第1実施例を示す文字パ
ターン発生装置の構成を説明するブロック図であり、本
実施例の文字パターン発生装置は、日本語ワードプロセ
ッサ、ワークステーション、コンピュータシステム、プ
リンタ、表示装置等に適用可能に構成されている。
[First Embodiment] FIG. 1 is a block diagram for explaining the configuration of a character pattern generator according to a first embodiment of the present invention. The character pattern generator of the present embodiment is a Japanese word processor, workstation, or computer. It is configured to be applicable to systems, printers, display devices, and the like.

【0021】図において、1は中央処理装置(CPU)
であり、本装置全体の制御および演算処理を行う。2は
ランダムアクセスメモリ(RAM)であり、要用な処理
毎にそれぞれのプログラムおよびデータがロードされ、
実行される領域である。3は読出し専用メモリ(RO
M)であり、システム制御プログラムや、後述するフロ
ーチャートに係るプログラムやフォントデータなどの記
憶領域である。
In the figure, 1 is a central processing unit (CPU)
That is, the control and arithmetic processing of the entire apparatus are performed. A random access memory (RAM) 2 is loaded with each program and data for each required process,
This is the area to be executed. 3 is a read-only memory (RO
M), which is a storage area for the system control program, programs and font data related to flowcharts described later, and the like.

【0022】4はキーボード制御部(KBC)であり、
キーボード(KB)5によりキー入力されたデータを受
け取りCPUへ伝達する。6はプリンタ制御部(PRT
C)であり、プリンタ装置(PRT7:レーザービーム
プリンタ、インクジェットプリンタなどのドットプリン
タ)を制御するものである。8はディスプレイ制御部
(CRTC)であり、ディスプレイ装置(CRT)9を
制御するもので、ディスク制御部(DKC)10から送
られてきたデータをディスプレイ装置9に表示させる。
Reference numeral 4 is a keyboard control unit (KBC),
The data input by the keyboard (KB) 5 is received and transmitted to the CPU. 6 is a printer control unit (PRT
C), which controls a printer device (PRT7: dot printer such as laser beam printer or inkjet printer). A display control unit (CRTC) 8 controls the display device (CRT) 9, and causes the display device 9 to display the data sent from the disk control unit (DKC) 10.

【0023】ディスク制御部(DKC)10は、データ
伝送などの制御を行うものである。11はフロッピーデ
ィスク装置(FD)あるいはハードディスク装置(H
D)などの外部記憶装置であり、プログラムおよびデー
タを記憶させておき、実行時必要に応じて参照またはR
AM2へロードする。12はシステムバスであり、上述
の構成要素間におけるデータ転送の通路となるべきもの
である。
The disk controller (DKC) 10 controls data transmission and the like. 11 is a floppy disk device (FD) or a hard disk device (H
An external storage device such as D) in which programs and data are stored and can be referenced or R as needed at the time of execution.
Load to AM2. Reference numeral 12 is a system bus, which should serve as a path for data transfer between the above-mentioned components.

【0024】この様に構成された文字パターン発生装置
において、キャッシュ制御手段(CPU1)が発生させ
たストローク、部首、文字パターン、または、座標デー
タを記憶装置(RAM2)のキャッシュバッファ部分に
個別にキャッシュ(詳細は図2に示すフローチャートの
手順に従う)し、該キャッシュしたストロークデータ、
部首、文字パターン、または、座標データに基づくパタ
ーンを合成して文字パターンを発生して、使用頻度の高
いストローク、部首、パターンの発生頻度を格段に下げ
て、効率よく文字パターンを発生させるものである。
In the character pattern generator thus constructed, the stroke, radical, character pattern or coordinate data generated by the cache control means (CPU1) is individually stored in the cache buffer portion of the storage device (RAM2). Cache (details follow the procedure of the flow chart shown in FIG. 2), the cached stroke data,
Generate radicals, letter patterns, or patterns based on coordinate data to generate letter patterns, and significantly reduce the frequency of frequently used strokes, radicals, and patterns to generate letter patterns efficiently. It is a thing.

【0025】図2は本発明の第1実施例を示す文字パタ
ーン発生装置における第1の文字パターン発生処理手順
を説明するフローチャートである。なお、(1)〜(2
7)は各ステップを示す。
FIG. 2 is a flow chart for explaining a first character pattern generation processing procedure in the character pattern generation device showing the first embodiment of the present invention. Note that (1) to (2
7) shows each step.

【0026】ステップ(1)では取り込んだ展開対象文
字の輪郭座標データが、すでに文字としてキャッシュさ
れているかどうかをIDに基づきキャッシュバッファを
確認することにより調べる。なお、ここで輪郭座標デー
タは、X、Y座標値で記憶されているものとする。ここ
でキャッシュバッファに対応する文字データが記憶され
ている場合、すでにキャッシュされているものと、ステ
ップ(2)に移り、キャッシュバッファから対象文字の
輪郭座標データを取り込みステップ(27)へ進む。
In step (1), it is checked by checking the cache buffer based on the ID whether or not the contour coordinate data of the fetched expansion target character is already cached as a character. It is assumed here that the contour coordinate data is stored as X and Y coordinate values. Here, if the character data corresponding to the cache buffer is stored, the data that has already been cached moves to step (2), the contour coordinate data of the target character is fetched from the cache buffer, and the process proceeds to step (27).

【0027】ステップ(1)において、キャッシュバッ
ファに対応する文字データが記憶されていない場合、ま
だキャッシュされていないものと認識し、ステップ
(3)に移り、文字を構成している部首の数とその種類
のデータを取り込む。
In step (1), if the character data corresponding to the cache buffer is not stored, it is recognized that the character data has not been cached yet, and the process proceeds to step (3), in which the number of radicals forming the character. And that type of data.

【0028】次にステップ(4)へ移り、それら部首の
内、対象とする部首に対応する輪郭座標にキャッシュさ
れているかどうかをIDに基づきキャッシュバッファを
確認することにより調べる。このとき、文字を構成する
部首の中から対象とする部首を選ぶ順序は、今回は筆順
に準ずることとするが、特に筆順に準じなければならな
いわけではない。
Next, in step (4), it is checked by checking the cache buffer based on the ID whether the contour coordinates corresponding to the target radical among those radicals are cached. At this time, the order of selecting the target radicals from the radicals forming the characters is based on the writing order this time, but it is not particularly necessary to follow the writing order.

【0029】ここでキャッシュバッファに対応する部首
データが記憶されている場合、すでにキャッシュされて
いるものと認識し、ステップ(5)へ移り、キャッシュ
バッファから対象部首の輪郭座標データを取り込み、ス
テップ(23)に進む。
Here, if radical data corresponding to the cache buffer is stored, it is recognized that the radical data has already been cached, and the process proceeds to step (5) to fetch the contour coordinate data of the target radical from the cache buffer, Proceed to step (23).

【0030】ステップ(4)において、キャッシュバッ
ファに対応する部首データが記憶されていない場合、ま
だキャッシュされていないものと認識し、ステップ
(6)へ移り対象部首を構成するストローク数とその種
類のデータを取り込む。
In step (4), if radical data corresponding to the cache buffer is not stored, it is recognized that the radical data is not cached yet, and the process proceeds to step (6) and the number of strokes constituting the target radical and its Get the type of data.

【0031】次にステップ(7)へ移り、対象ストロー
クの輪郭座標データがすでにキャッシュされているもの
かどうかをIDに基づきキャッシュバッファを確認する
ことにより調べる。このとき部首を構成するストローク
の中から対象とするストロークを選ぶ順序は、今回は筆
順に準ずることとするが、特に筆順に準じなければなら
ないわけではない。
Next, in step (7), it is checked by checking the cache buffer based on the ID whether or not the contour coordinate data of the target stroke is already cached. At this time, the order of selecting the target stroke from the strokes forming the radical is based on the stroke order this time, but it does not necessarily have to be based on the stroke order.

【0032】ここでキャッシュバッファに対応するスト
ロークデータが記憶されている場合、すでにキャッシュ
されているものと認識し、ステップ(8)へ移り、キャ
ッシュバッファから対象ストロークの輪郭座標データを
取り込みステップ(19)へ進む。
If the stroke data corresponding to the cache buffer is stored, it is recognized that the stroke data has already been cached, and the process proceeds to step (8) to fetch the contour coordinate data of the target stroke from the cache buffer in step (19). ).

【0033】ステップ(7)において、キャッシュバッ
ファに対応するストロークデータが記憶されていない場
合、まだキャッシュされていないものと認識し、ステッ
プ(9)へ移り、対象ストロークのストローク形式の座
標(制御点)データを取り込む。次にステップ(10)
へ移り、取り込んだストローク形式の座標データ(制御
点データ)に、拡大縮小に伴う座標変換を行う。
When the stroke data corresponding to the cache buffer is not stored in step (7), it is recognized that the stroke data is not cached yet, and the process proceeds to step (9), in which the stroke format coordinates of the target stroke (control point). ) Import data. Next step (10)
Then, the coordinate data (control point data) in the stroke format that has been imported is subjected to coordinate conversion associated with enlargement / reduction.

【0034】ストローク形式の座標データは「芯線」+
「太さ」による情報なので、ステップ(11)で、図3
に示すように輪郭形式の座標データ(制御点データ)へ
変換する。
The stroke format coordinate data is "core line" +
Since the information is based on the "thickness", in step (11), FIG.
The coordinate data is converted into contour-form coordinate data (control point data) as shown in.

【0035】次いで、ステップ(12)で直線データか
どうかを判別し、直線データでないならば曲線データと
認識し、ステップ(13)で所定の曲線補間方式による
補間を行い、ステップ(14)で打点を行う。
Next, in step (12), it is determined whether the data is straight line data, and if it is not straight line data, it is recognized as curved line data. In step (13), interpolation is performed according to a predetermined curved line interpolation method. I do.

【0036】一方、ステップ(12)で直線データであ
ると判定された場合は、そのままステップ(15)で打
点を行う。こうしてステップ(16)では、対象ストロ
ークのデータが1輪郭分すべて打点し終ったかどうか調
べ、まだ終わっていなければステップ(12)へ戻り、
終っていればステップ(17)へ移り、このストローク
がキャッシュ条件を満たしているかどうかを判断する。
該判定処理については後述する図4及び図5に基づいて
説明する。
On the other hand, if it is determined in step (12) that the data is straight line data, the dot is directly applied in step (15). In this way, in step (16), it is checked whether the data of the target stroke has been hit for all one contour, and if it has not finished, the process returns to step (12),
If it is over, the process proceeds to step (17), and it is judged whether or not this stroke satisfies the cache condition.
The determination process will be described with reference to FIGS. 4 and 5 described later.

【0037】ステップ(17)でキャッシュ条件を満た
していると判定されると、ステップ(18)へ移りキャ
ッシュが行われる。次にステップ(19)へ移り、こう
して生成された対象ストロークの輪郭座標データ、また
はステップ(8)で取り込んだ輪郭座標データを、対象
とする部首中での展開位置に対応する輪郭座標データに
変換する。
When it is determined in step (17) that the cache condition is satisfied, the process proceeds to step (18) and caching is performed. Next, the process proceeds to step (19), and the contour coordinate data of the target stroke thus generated or the contour coordinate data captured in step (8) is converted into contour coordinate data corresponding to the development position in the target radical. Convert.

【0038】次にステップ(20)へ移り、部首を構成
する全ストロークの打点が終了されたかどうかを調べ
る。もしまだ終了されていなければ、ステップ(7)へ
戻り、次の対象ストロークについて同様の作業をする。
Next, the process proceeds to step (20), and it is checked whether or not the hit points of all the strokes forming the radical have been completed. If it has not been finished yet, the process returns to step (7) and the same operation is performed for the next target stroke.

【0039】対象とする部首の打点が終了していれば、
ステップ(17)と同様に、ステップ(21)でこの部
首がキャッシュ条件を満たしているかどうかを判定す
る。キャッシュ条件を満たしていれば、ステップ(2
2)へ移りキャッシュを行う。
If the hitting point of the target radical is completed,
Similar to step (17), it is determined in step (21) whether this radical satisfies the cache condition. If the cache conditions are met, step (2
Move to 2) and cache.

【0040】次にステップ(23)へ移り、こうして生
成された対象部首の輪郭座標データまたはステップ
(5)で取り込んだ輪郭座標データを対象とする文字中
での展開位置に対応する輪郭座標データに変換する。次
にステップ(24)で、文字を構成する全部首の打点が
終了されたかどうかを調べる。もしまだ終了されていな
ければ、ステップ(4)へ戻り、次の対象部首について
同様の作業をする。
Next, the process proceeds to step (23), where the contour coordinate data of the target radical thus generated or the contour coordinate data fetched in step (5) corresponds to the contour coordinate data corresponding to the developed position in the character. Convert to. Next, in step (24), it is checked whether or not the hit points of all the necks forming the character have been completed. If not completed, return to step (4) and do the same for the next target radical.

【0041】一方、ステップ(24)の判定で全部首の
打点が終了していれば、ステップ(17)、(21)と
同様に、ステップ(25)でこの文字がキャッシュ条件
を満たしているかどうかを判定する。
On the other hand, if it is judged in the step (24) that all the hit points have been finished, whether the character satisfies the cache condition in the step (25) as in the steps (17) and (21). To judge.

【0042】該判定でキャッシュ条件を満たしていれば
ステップ(26)へ移りキャッシュを行う。こうしてで
きた1文字分のビットマップまたは、ステップ(2)で
取り込んだ輪郭座標データをステップ(27)で塗りつ
ぶし、文字パターン生成が完了する。
If it is determined that the cache condition is satisfied, the process proceeds to step (26) to perform the cache. The one-character bitmap thus created or the contour coordinate data captured in step (2) is filled in in step (27) to complete the character pattern generation.

【0043】また、上述のフローチャートに基づき生成
された文字パターンはプリンタ装置7、または、ディス
プレイ装置9により印刷または表示される。
The character pattern generated based on the above-mentioned flow chart is printed or displayed by the printer device 7 or the display device 9.

【0044】以下、図4、図5、図6を参照しながら、
図2に示したステップ(17)、(21)、(25)に
おけるキャッシュ条件の判定処理について説明する。
Hereinafter, referring to FIGS. 4, 5 and 6,
The cache condition determination processing in steps (17), (21), and (25) shown in FIG. 2 will be described.

【0045】図4は、図2に示した文字パターン発生処
理におけるキャッシュ条件の判定処理の一例を示すフロ
ーチャートである。なお、(1)、(2)、(3)はス
テップを示す。
FIG. 4 is a flow chart showing an example of cache condition determination processing in the character pattern generation processing shown in FIG. Note that (1), (2), and (3) indicate steps.

【0046】ステップ(1)で、対象ストロークのメイ
ンIDを調べる。次にステップ(2)へ移りステップ
(1)で調べたメインID用に対応するキャッシュバッ
ファがすでにデータでいっぱいになっているかどうかを
調べる。すでに一杯の場合はステップ(3)でこのキャ
ッシュバッファ内にすでに格納されているデータの優先
順位と対象となっているストロークの優先順位とを比べ
どちらが優先順位が高いか調べる。もし対象とするもの
より優先順位が低いもののデータが、キャッシュバッフ
ァ内に格納されていなければ、対象とするストロークは
キャッシュしない。しかしキャッシュバッファ内に対象
とするものより優先順位が低いものが1つ以上あれば、
そのなかでもっとも優先順位の低いものをキャッシュバ
ッファから削除し、対象としているストロークのデータ
をキャッシュバッファに格納する。
In step (1), the main ID of the target stroke is checked. Next, the process proceeds to step (2), and it is checked whether or not the cache buffer corresponding to the main ID checked in step (1) is already full of data. If it is already full, in step (3), the priority of the data already stored in this cache buffer is compared with the priority of the target stroke to see which has the higher priority. If data with a lower priority than the target is not stored in the cache buffer, the target stroke is not cached. However, if there is more than one in the cache buffer that has a lower priority than the target,
The one with the lowest priority among them is deleted from the cache buffer, and the data of the target stroke is stored in the cache buffer.

【0047】なお、本実施例におけるメインIDとは、
横棒、縦棒、右払い、左払い、点、かぎ跳ね等の様に、
基本となるストロークの種類を言う。サブIDとは同一
メインIDの中で、角度や長さ等が違うものを区別する
ためにつけられたIDである。
The main ID in this embodiment is
Like horizontal bar, vertical bar, right pay, left pay, dot, squiggles, etc.
Says the basic stroke type. The sub ID is an ID given to distinguish among the same main IDs having different angles and lengths.

【0048】また、部首のキャッシュについては、本実
施例ではメインIDについて行っているが、キャッシュ
の容量さえあれば、ストロークと同様のキャッシュも可
能である。
As for the cache of the radical, the main ID is used in the present embodiment, but a cache similar to the stroke is also possible as long as the cache has a capacity.

【0049】図5は、図2に示した文字パターン発生処
理におけるキャッシュ条件の判定処理手順の一例を示す
フローチャートである。なお、(1)、(2)はステッ
プを示す。図6は、図1に示したRAM2上のキャッシ
ュバッファの状態を示す図であり、(a)はストローク
キャッシュバッファの状態を示し、(c)は文字キャッ
シュバッファの状態を示し、(b)は部首キャッシュバ
ッファの状態を示す。
FIG. 5 is a flow chart showing an example of a cache condition determination processing procedure in the character pattern generation processing shown in FIG. Note that (1) and (2) indicate steps. FIG. 6 is a diagram showing the state of the cache buffer on the RAM 2 shown in FIG. 1, where (a) shows the state of the stroke cache buffer, (c) shows the state of the character cache buffer, and (b) shows the state. Indicates the state of the radical cache buffer.

【0050】ステップ(1)で、キャッシュした文字ま
たは部首データを格納しておくバッファが既にデータで
一杯になっているかどうかを調べる。
In step (1), it is checked whether or not the buffer for storing the cached character or radical data is already full of data.

【0051】既に一杯の場合はステップ(2)で、この
キャッシュバッファ内に格納されているデータの優先順
位と対象となっている文字または部首の優先順位とを比
べどちらが優先順位が高いかを調べる。
If it is already full, in step (2), the priority of the data stored in this cache buffer is compared with the priority of the target character or radical, and which one has the higher priority is determined. Find out.

【0052】もし対象とするものより優先順位が低いも
ののデータが、キャッシュバッファ内に格納されていな
ければ、対象とする文字または部首はキャッシュされな
い。
If the data of lower priority than the target is not stored in the cache buffer, the target character or radical is not cached.

【0053】しかし、キャッシュバッファ内に対象とす
るものより優先順位が低いものが1つ以上あれば、その
中でもっとも優先順位の低いものをキャッシュバッファ
から削除し、対象としている文字または部首をキャッシ
ュバッファに格納する。
However, if there is one or more items having a lower priority than the target in the cache buffer, the one having the lowest priority among them is deleted from the cache buffer, and the target character or radical is deleted. Store in cache buffer.

【0054】これにより、図6の(c)に示す文字キャ
ッシュバッファの状態では、対象文字「打」、優先順位
「25」の文字が処理される際に、ステップ(17)
で、図4に示すステップ(2)の判定で、該文字よりも
優先順位の低い文字「訳」、優先順位「34」の文字が
削除され、対象文字「打」、優先順位「25」の文字が
優先順位順に登録されることになる。
As a result, in the state of the character cache buffer shown in FIG. 6C, when the character having the target character "stroke" and the priority "25" is processed, step (17)
Then, in the determination of step (2) shown in FIG. 4, the characters "translation" having a lower priority than that character and the characters having the priority "34" are deleted, and the target character "stroke" and the priority "25" are deleted. The characters will be registered in order of priority.

【0055】同様に、図6の(b)に示す文字キャッシ
ュバッファの状態では、対象部首B1、優先順位「5」
の部首が処理される際に、ステップ(17)で、図5に
示すステップ(2)の判定で、該部首よりも優先順位の
低い部首B2、優先順位「23」の部首が削除され、対
象部首B1、優先順位「5」の部首が優先順位順に登録
されることによる。
Similarly, in the state of the character cache buffer shown in FIG. 6B, the target radical B1 and the priority "5" are set.
When the radical is processed, in step (17), in the determination of step (2) shown in FIG. 5, the radical B2 having a lower priority than the radical and the radical having the priority “23” are determined. This is because the target radical B1 and the radical with the priority "5" are deleted and registered in the order of priority.

【0056】なお、上記の実施例では、ストロークおよ
び部首の輪郭座標データをキャッシュしていたが本実施
例では輪郭座標データだけではなく、上記実施例では展
開時に加算していたオフセット値も含めてキャッシュを
行う。
In the above embodiment, the stroke and radical contour coordinate data are cached, but in this embodiment, not only the contour coordinate data but also the offset value added at the time of expansion in the above embodiment is included. Cache.

【0057】つまり、ストロークならば、その部首のど
の位置に展開されるか、部首ならば、その文字のどの位
置に展開されるかという位置情報を含めてキャッシュを
行うように制御すれば、上記実施例のように、キャッシ
ュデータを展開後、オフセット分シフトする処理が不用
となり、文字パターン発生処理を高速化できる。以下、
図7に示すフローチャートに従って詳述する。
That is, if the stroke is controlled, the position of the radical is expanded. If the radical is the position of the character, the position information is controlled to be cached. As in the above embodiment, the process of shifting the cache data and then shifting by the offset becomes unnecessary, and the character pattern generation process can be speeded up. Less than,
Details will be described according to the flowchart shown in FIG. 7.

【0058】図7は本発明の第1実施例を示す文字パタ
ーン発生装置における第2の文字パターン発生処理手順
を説明するフローチャートである。なお、(1)〜(2
7)は各ステップを示す。
FIG. 7 is a flow chart for explaining the second character pattern generation processing procedure in the character pattern generation device showing the first embodiment of the present invention. Note that (1) to (2
7) shows each step.

【0059】なお、ステップ(1)〜ステップ(16)
までは上記実施例を示した図2のステップ(16)まで
と同じであるので説明は省略する。
Steps (1) to (16)
Up to step (16) of FIG. 2 showing the above embodiment, the description is omitted.

【0060】つまり、文字に対応する輪郭座標データが
キャッシュされているかどうかを調べ、キャッシュされ
ていればそのデータを使い、キャッシュされていなけれ
ば、その文字を構成する部首についてキャッシュされて
いるかどうかを調べる。
That is, it is checked whether or not the contour coordinate data corresponding to the character is cached, and if it is cached, that data is used. If not, whether or not the radicals that make up the character are cached. Find out.

【0061】文字を構成している部首に対応する輪郭座
標データがキャッシュされているものならば、そのデー
タを使い、キャッシュされていなければ、その部首を構
成しているストロークについてキャッシュされているか
を調べ、キャッシュされていればそのデータを使い、キ
ャッシュされていなければそのストロークのデータを取
り込み、輪郭データを発生させる。
If the contour coordinate data corresponding to the radical forming the character is cached, that data is used. If not, the stroke constituting the radical is cached. If it is cached, the data is used. If it is not cached, the stroke data is fetched and contour data is generated.

【0062】ステップ(17)でこのようにして生成し
たストロークの輪郭座標データに、対象とする部首にお
けるそのストロークの展開位置への変位量を加算してい
る。ステップ(18)では上記実施例と同様にキャッシ
ュするかどうかを判定し、キャッシュを行う場合はステ
ップ(19)でキャッシュを行う。
In step (17), the displacement amount of the target radical to the expanded position is added to the contour coordinate data of the stroke thus generated. In step (18), it is determined whether or not to cache as in the above embodiment, and when caching is performed, cache is performed in step (19).

【0063】こうしてステップ(20)で1部首が生成
されたと判断されると、そのデータに、ステップ(2
1)でその部首が対象文字中で展開される位置への変位
量を加算する。次にステップ(22)でキャッシュする
かどうかを判定し、キャッシュを行う場合はステップ
(23)へ移りキャッシュを行う。以下ステップ(2
4)以降の処理は、上記実施例のステップ(24)以降
と同様である。
When it is determined in step (20) that one radical has been generated, the data of step (2
In 1), the displacement amount to the position where the radical is developed in the target character is added. Next, in step (22), it is determined whether or not to cache, and if caching is to be performed, the process proceeds to step (23) and cache is performed. Following steps (2
The processing after 4) is the same as the processing after step (24) in the above embodiment.

【0064】上記実施例では、キャッシュを図1に示し
たRAM2に確保する実施例について説明したが、本実
施例では後述する第8のフローチャートに示すようにハ
ードディスクやフロッピィディスク等の外部記憶装置1
1に確保して処理するように構成してもよい。
In the above-mentioned embodiment, the embodiment in which the cache is secured in the RAM 2 shown in FIG. 1 has been described, but in this embodiment, as shown in the eighth flow chart described later, the external storage device 1 such as a hard disk or floppy disk 1 is described.
It may be configured so as to be secured at 1 for processing.

【0065】図8は本発明の第1実施例を示す文字パタ
ーン発生装置における第3の文字パターン発生処理手順
を説明するフローチャートである。なお、(1)〜(2
7)は各ステップを示す。
FIG. 8 is a flow chart for explaining a third character pattern generation processing procedure in the character pattern generation device showing the first embodiment of the present invention. Note that (1) to (2
7) shows each step.

【0066】ステップ(1)では展開対象文字のデータ
を取り込みそのとき、すでに文字としてキャッシュされ
ているものかどうかをIDに基づきキャッシュバッファ
を確認することにより調べる。ここでキャッシュバッフ
ァに対応する文字データが記憶されていなければステッ
プ(2)に移り、図1に示した外部記憶装置11のキャ
ッシュバッファからビットマップデータを取り込みステ
ップ(27)へ進み、対象文字の生成処理は終る。
In step (1), the data of the character to be expanded is fetched, and at that time, it is checked by checking the cache buffer based on the ID whether it is already cached as a character. If the character data corresponding to the cache buffer is not stored here, the process proceeds to step (2), the bitmap data is fetched from the cache buffer of the external storage device 11 shown in FIG. The generation process ends.

【0067】一方、ステップ(1)でキャッシュバッフ
ァに対応する文字データが記憶されていないと判定され
たならば、ステップ(3)に移り、文字を構成している
部首の数とその種類のデータを取り込む。
On the other hand, if it is determined in step (1) that the character data corresponding to the cache buffer is not stored, the process proceeds to step (3), in which the number of radicals forming the character and their type are determined. Capture data.

【0068】次にステップ(4)へ移り、対象部首のデ
ータがすでにキャッシュされているものかどうかをID
に基づきキャッシュバッファを確認することにより調べ
る。このとき対象部首の順序は、今回は筆順に準ずるこ
ととするが、特に筆順に準ずる必要はない。
Next, the process proceeds to step (4) to determine whether the data of the target radical has already been cached.
Check by checking the cache buffer based on. At this time, the order of the target radicals is based on the stroke order this time, but it is not particularly necessary to follow the stroke order.

【0069】ここで、キャッシュバッファに対応する部
首データが記憶されていればステップ(5)へ移り、図
1に示した外部記憶装置11のキャッシュバッファから
ビットマップデータを取り込みステップ(24)へ進
む。
If radical data corresponding to the cache buffer is stored, the process proceeds to step (5), and the bitmap data is fetched from the cache buffer of the external storage device 11 shown in FIG. 1 to step (24). move on.

【0070】ステップ(4)において、キャッシュバッ
ファに対応する部首データが記憶されていなければ、ス
テップ(6)へ移り対象部首を構成するストローク数と
その種類のデータを取り込む。次にステップ(7)へ移
り、対象ストロークのデータがすでにキャッシュされて
いるものかどうかをIDに基づきキャッシュバッファを
確認することにより調べる。
If radical data corresponding to the cache buffer is not stored in step (4), the process proceeds to step (6) and the number of strokes constituting the target radical and its type data are fetched. Next, in step (7), it is checked whether the data of the target stroke is already cached by checking the cache buffer based on the ID.

【0071】このとき対象ストロークの順序は、今回は
筆順に準ずることとするが、特に筆順に準ずる必要はな
い。
At this time, the order of the target strokes is based on the stroke order this time, but it is not particularly necessary to follow the stroke order.

【0072】ここで、キャッシュバッファに対応するス
トロークデータが記憶されていればステップ(8)へ移
り、図1に示した外部記憶装置11のキャッシュバッフ
ァからビットマップデータを取り込みステップ(20)
へ進む。ステップ(7)において、キャッシュバッファ
に対応するストロークデータが記憶されていなければ、
ステップ(9)へ移り対象ストロークのストローク形式
の座標データを取り込む。
If the stroke data corresponding to the cache buffer is stored, the process proceeds to step (8), and the bitmap data is fetched from the cache buffer of the external storage device 11 shown in FIG. 1 (step 20).
Go to. In step (7), if the stroke data corresponding to the cache buffer is not stored,
The process moves to step (9) and the stroke format coordinate data of the target stroke is fetched.

【0073】次に、ステップ(10)へ移り取り込んだ
ストローク形式の座標データに、拡大縮小に伴う座標変
換を行う。
Next, in step (10), the coordinate data in the stroke format that has been taken in is subjected to coordinate conversion associated with enlargement / reduction.

【0074】ストローク形式の座標データは芯線+太さ
による情報なので、図3に示したようにステップ(1
1)で輪郭形式の座標データへ変換する。ステップ(1
2)で直線データかどうかを判定し直線データでないな
らば曲線データと確認し、ステップ(13)で所定の曲
線補間方式による補間を行いステップ(14)で打点を
行う。
Since the stroke format coordinate data is information based on the core line + thickness, the step (1
In 1), it is converted into the coordinate data in the contour format. Step (1
In 2), it is determined whether or not it is straight line data, and if it is not straight line data, it is confirmed that it is curved line data.

【0075】一方、ステップ(12)で直線データだっ
た場合は、そのままステップ(15)で打点を行う。こ
うしてステップ(16)では対象ストロークのデータが
1輪郭分すべて打点し終ったかどうか調べ、まだ終って
いなければステップ(12)へ戻り、終っていればステ
ップ(17)へ移り対象ストロークの塗りつぶしを行
う。
On the other hand, when the straight line data is obtained in the step (12), the dot is directly applied in the step (15). In this way, in step (16), it is checked whether all the data of the target stroke have been hit by one contour, and if not completed, the process returns to step (12), and if completed, the process moves to step (17) and the target stroke is filled. .

【0076】次にステップ(18)へ移りこのストロー
クがキャッシュ条件を満たしているかどうかを上述した
ように判定する。
Next, in step (18), it is determined as described above whether or not this stroke satisfies the cache condition.

【0077】図4、図5に示したステップ(2)、ステ
ップ(1)で外部記憶装置11にキャッシュした文字ま
たは部首またはストロークを格納しておくバッファがす
でにデータでいっぱいになっているかどうかを調べる。
すでにいっぱいの場合はステップ(2)で、このキャッ
シュバッファ内に格納されているデータの優先順位と対
象となっている文字または部首またはストロークの優先
順位とを比べどちらが優先順位が高いかを調べる。
Whether the buffer for storing the characters, radicals or strokes cached in the external storage device 11 in steps (2) and (1) shown in FIGS. 4 and 5 is already full of data. Find out.
If it is already full, in step (2), the priority of the data stored in this cache buffer is compared with the priority of the target character, radical or stroke to see which has the higher priority. .

【0078】もし対象とするものより優先順位が低いも
ののデータが、キャッシュバッファ内に格納されていな
ければ、対象とする文字または部首またはストロークは
キャッシュされない。
If the data of lower priority than the target is not stored in the cache buffer, the target character or radical or stroke is not cached.

【0079】しかし、キャッシュバッファ内に対象とす
るものより優先順位が低いものが1つ以上あれば、その
中で最も優先順位の低いものをキャッシュバッファから
削除し、対象としている文字または部首またはストロー
クをキャッシュバッファに格納する。
However, if there is one or more ones having a lower priority than the target in the cache buffer, the one with the lowest priority among them is deleted from the cache buffer and the target character or radical or Store the stroke in the cache buffer.

【0080】ステップ(18)でキャッシュ条件を満た
していると判定されると、ステップ(19)へ移りキャ
ッシュが行われる。次にステップ(20)へ移り、こう
して生成されて対象ストロークのビットマップデータ、
またはステップ(8)で取り込んだビットマップデータ
を、対象とする部首中での展開位置のビットマップデー
タに変換する。次にステップ(21)へ移り、部首を構
成する全てストロークのビットマップ生成とその合成が
終了されたかどうかを調べる。
When it is determined in step (18) that the cache condition is satisfied, the process proceeds to step (19) and caching is performed. Next, in step (20), the bitmap data of the target stroke generated in this way,
Alternatively, the bitmap data fetched in step (8) is converted into bitmap data of the development position in the target radical. Next, the process proceeds to step (21), and it is checked whether the bitmap generation of all strokes forming the radical and the synthesis thereof have been completed.

【0081】もしまだ終了されていなければ、ステップ
(7)へ戻り、次の対象ストロークについて同様の作業
をする。対象とする部首のビットマップ生成が終了して
いれば、ステップ(18)と同様に、ステップ(22)
でこの部首がキャッシュ条件を満たしているかどうかを
判定する。キャッシュ条件を満たしていれば、ステップ
(23)へ移りキャッシュを行う。
If it has not been completed, the process returns to step (7) and the same operation is performed for the next target stroke. If the generation of the target radical bitmap has been completed, the step (22) is performed in the same manner as the step (18).
Then, it is judged whether or not this radical satisfies the cash condition. If the cache condition is satisfied, the process proceeds to step (23) to perform the cache.

【0082】次にステップ(24)へ移り、こうして生
成された対象部首のビットマップまたは、ステップ
(5)で取り込んだビットマップを、対象とする文字中
での展開位置のビットマップデータに変換する。
Next, the process proceeds to step (24), and the bitmap of the target radical thus generated or the bitmap captured in step (5) is converted into bitmap data of the expansion position in the target character. To do.

【0083】次にステップ(25)で文字を構成する全
部首のビットマップ生成とその合成が終了されたかどう
かを調べる。もし、まだ終了されていなければ、ステッ
プ(4)へ戻り、次の対象部首について同様の作業をす
る。終了していればステップ(18)、(22)と同様
に、ステップ(26)でこの文字がキャッシュ条件を満
たしているかどうかを判定する。キャッシュ条件を満た
していればステップ(27)へ移りキャッシュを行う。
こうして対象文字のパターン生成が終了する。
Next, in step (25), it is checked whether or not the bitmap generation of all the necks forming the character and its synthesis have been completed. If it is not finished yet, return to step (4) and perform the same work for the next target radical. If it has ended, it is determined whether or not this character satisfies the cache condition in step (26) as in steps (18) and (22). If the cache condition is satisfied, the process proceeds to step (27) to perform the cache.
Thus, the pattern generation of the target character is completed.

【0084】上記実施例では、ストロークおよび部首の
ビットマップデータを外部記憶装置11にキャッシュす
る場合について説明したが、上記ビツトマップデータだ
けではなく、上記実施例では展開時に加算していたオフ
セット値も含めてキャッシュを行う。
Although the stroke and radical bitmap data are cached in the external storage device 11 in the above embodiment, not only the bit map data but also the offset value added at the time of expansion in the above embodiment. Cache is also included.

【0085】つまり、ストロークならばその部首のどの
位置に展開されるか、部首ならその文字のどの位置に展
開されるかという位置情報を含めキャッシュを行い、上
記実施例のように、キャッシュデータを展開後、オフセ
ツト分シフトする処理を実行しないように制御(詳細は
図9に基づいて詳述する)してもよい。
In other words, the cache is performed by including the position information of the stroke where the stroke is developed and the position of the character where the stroke is developed, and the cache is performed as in the above embodiment. After expanding the data, control (details will be described in detail with reference to FIG. 9) may be performed so as not to execute the offset shift process.

【0086】図9は本発明の第1実施例を示す文字パタ
ーン発生装置における第4の文字パターン発生処理手順
を説明するフローチャートである。なお、(1)〜(2
7)は各ステップを示す。ステップ(17)までは、上
記実施例を示した図7のステップ(17)までと同じで
あるので、説明を省略する。
FIG. 9 is a flow chart for explaining the fourth character pattern generation processing procedure in the character pattern generation device showing the first embodiment of the present invention. Note that (1) to (2
7) shows each step. The process up to step (17) is the same as the process up to step (17) of FIG.

【0087】本実施例の処理は、文字がキャッシュされ
ているかどうかを調べ、キャッシュされていればそのデ
ータを使い、キャッシュされていなければ、その文字を
構成する部首についてキャッシュされているかどうかを
調べる。文字を構成している部首がキャッシュされてい
るものならば、そのデータを使い、キャッシュされてい
なければ、その部首を構成しているストロークについて
キャッシュされているかを調べ、キャッシュされていれ
ばそのデータを使い、キャッシュされていなければその
ストロークのデータを取り込み、ビットマップデータを
発生させる。
The process of this embodiment checks whether or not a character is cached, and if the character is cached, the data is used. If not, it is determined whether or not the radical constituting the character is cached. Find out. If the radicals that make up a character are cached, use that data, if not, check if the strokes that make up that radical are cached, and if so, It uses that data and, if not cached, fetches that stroke's data and generates bitmap data.

【0088】そして、ステップ(18)で、このように
して生成したストロークのビットマップデータを、対象
とする部首におけるそのストロークの展開位置へシフト
させている。ステップ(19)では上記実施例と同様に
キャッシュするかどうかを判定し、キャッシュを行う場
合はステップ(20)でキャッシュを行う。
Then, in step (18), the bitmap data of the stroke thus generated is shifted to the development position of the stroke on the target radical. In step (19), it is determined whether to cache as in the above embodiment, and if caching is to be performed, cache is performed in step (20).

【0089】こうしてステップ(21)で1部首が生成
されたと判断されると、そのビットマップデータを、ス
テップ(22)でその部首が対象文字中で展開される位
置へシフトさせる。
When it is determined in step (21) that one radical has been generated, the bitmap data is shifted to a position where the radical is developed in the target character in step (22).

【0090】次にステップ(23)でキャッシュするか
どうかを判定し、キャッシュを行う場合はステップ(2
4)へ移りキャッシュを行う。以下ステップ(25)以
降の処理は、図8に示した処理のステップ(25)以降
と同様であるので説明は省略する。
Next, in step (23), it is determined whether or not to cache, and if cache is to be performed, step (2
Go to 4) and cache. Since the processing after step (25) is the same as the processing after step (25) of the processing shown in FIG. 8, description thereof will be omitted.

【0091】〔第2実施例〕次に、第2実施例を説明す
る。なお装置の構成については前述の第1実施例と同様
なので省略する。
[Second Embodiment] Next, a second embodiment will be described. The configuration of the device is the same as that of the first embodiment described above, and will be omitted.

【0092】図10は本発明の第2実施例を示す文字パ
ターン発生装置の構成を説明するブロック図である。
FIG. 10 is a block diagram for explaining the configuration of the character pattern generator showing the second embodiment of the present invention.

【0093】図において、20はフラグ作成部で、文字
パターン発生装置に用意されている各処理を自動的に選
択できるように操作者は自分が欲している処理を図1の
KB5によって選択し、選択した処理に基づき処理選択
フラグを複数設定し、IDに対応する様に登録してお
く、このことによりIDを指定するだけで確実に複数の
処理の中から正しい処理を選択できる。本実施例におい
て、文字データは、そのパターン発生方法であるアウト
ライン型やストローク型、そしてされらの曲線の発生方
法であるベジェやスプライン等様々なフォントデータ形
式で格納されている。このパターン発生の対象となる文
字についてフラグ作成部20によって作成されたフラグ
に基づき、所望のパターン発生方法が得られるように輪
郭発生部21から選択する。
In the figure, reference numeral 20 denotes a flag creating section, which allows the operator to select the processing he or she desires by the KB5 of FIG. 1 so that each processing prepared in the character pattern generator can be automatically selected. A plurality of process selection flags are set based on the selected process and registered so as to correspond to the ID. This makes it possible to surely select the correct process from among the plurality of processes only by specifying the ID. In the present embodiment, the character data is stored in various font data formats such as outline type and stroke type which are the pattern generating method, and Bezier and spline which are the generating method of these curves. Based on the flag created by the flag creating section 20 for the character for which the pattern is to be generated, the contour creating section 21 selects the desired pattern generating method.

【0094】この様に構成された文字パターン発生装置
において、CPU1が入力される文字情報を解析して文
字パターンを発生させるために利用する文字パターン処
理資源を選択するフラグを後述するようにRAM2上に
作成し、該作成されたフラグに基づいて文字パターン処
理(CPU1が後述するフローチャートに示す手順に従
って実行する手段)が異なる文字パターン処理資源を選
択して文字パターンを発生させて、文字パターン発生装
置の複数の文字パターン処理資源を共有して異なる文字
パターン処理を確実に行うものである。
In the character pattern generator configured as described above, a flag for selecting a character pattern processing resource used by the CPU 1 to analyze the character information input and generate a character pattern is stored in the RAM 2 as described later. Character pattern processing resources (means executed by the CPU 1 in accordance with a procedure shown in a flowchart described later) having different character pattern processing resources based on the created flag to generate a character pattern, and generate a character pattern generating device. That is, a plurality of character pattern processing resources are shared to surely perform different character pattern processing.

【0095】また、文字パターン発生をストローク形式
またはアウトライン形式で処理する複数のフォント発生
方法を備える(本実施例ではストローク形式とアウトラ
イン形式の2種類を備える)輪郭発生部21と、文字の
品位を高めるための座標変換を行う複数のヒンティング
処理を備えるヒンティング部22と、曲線を発生させ閉
領域の輪郭パターンを作成する複数の補間処理を有する
補間部23と、発生された閉領域を塗りつぶしビットマ
ップを作成する複数の塗りつぶし部24の文字パターン
処理資源中から、該作成されたフラグに基づいて文字パ
ターン処理方法が異なる文字パターン処理資源を選択し
て文字パターンを発生させて、プリンタ装置7またはデ
ィスプレイ装置9により印刷または表示を行うことによ
り、文字パターン発生装置の複数の文字パターン処理資
源を共有して異なる文字パターン処理を確実に行うもの
である。
Further, a contour generating unit 21 having a plurality of font generating methods for processing the generation of a character pattern in a stroke format or an outline format (in this embodiment, two types of a stroke format and an outline format) and a character quality are set. A hinting unit 22 having a plurality of hinting processes for performing coordinate conversion for enhancing, an interpolation unit 23 having a plurality of interpolation processes for generating a curve to create a contour pattern of a closed region, and filling the generated closed region. The character pattern processing resources having different character pattern processing methods are selected from the character pattern processing resources of the plurality of filling units 24 for creating the bitmap based on the created flags to generate the character pattern, and the printer device 7 Alternatively, by printing or displaying by the display device 9, the character pattern Share a plurality of character pattern processing resources of raw device is performed reliably different character pattern process.

【0096】以下に説明するが、本実施例の文字パター
ン発生処理には、ヒンティング部22、補間部23、塗
りつぶし部24の3つの処理部を使う。なお、各部はロ
ジック回路で構成されていてもいいし、ROM2に記憶
されたプログラムをCPU1により実行されるソフトウ
エア構成であっても差し支えない。
As will be described below, three processing units, that is, the hinting unit 22, the interpolation unit 23, and the filling unit 24 are used for the character pattern generation processing of this embodiment. Each unit may be configured by a logic circuit, or may be a software configuration in which a program stored in the ROM 2 is executed by the CPU 1.

【0097】それぞれの部は複数の処理方法を予め持
ち、その選択を前記フラグに基づいて行う。
Each unit has a plurality of processing methods in advance, and the selection is made based on the flag.

【0098】輪郭発生部21は、輪郭発生方法に関し
て、上記フラグ作成部20で指定された発生方法で発生
し、ヒンティング部22は上記フラグ作成部20で指定
されたヒンティング処理を行う。補間部23は、曲線に
関して上記フラグ作成部20で指定された補間方法を用
いて補間をし、輪郭座標を生成する。塗りつぶし部24
は上記フラグ作成部20で指定された方法で塗りつぶし
を行う。
The contour generating section 21 generates the contour generating method by the generating method specified by the flag creating section 20, and the hinting section 22 performs the hinting process specified by the flag creating section 20. The interpolation unit 23 interpolates the curve using the interpolation method designated by the flag creation unit 20 to generate contour coordinates. Filling section 24
Performs the painting by the method designated by the flag creating section 20.

【0099】なお、ヒンティング部22および塗りつぶ
し部24は使わない場合もありうる。
The hinting portion 22 and the filling portion 24 may not be used.

【0100】図11は、図10に示したフラグ作成部2
0のフラグ化処理を説明する図である。
FIG. 11 shows the flag creating section 2 shown in FIG.
It is a figure explaining the flag formation process of 0.

【0101】この図に示すように、処理選択フラグは8
ビット構成で構成され、その内容は、最初の1ビットが
パターン発生方法を選択する輪郭選択ビット、2、3ビ
ットがヒンティング部22に予め用意されている複数の
ヒンティング方法から最適な方法を選択するヒンティン
グ選択ビット、ヒット4、5が補間部23に予め用意さ
れている複数の補間方法から最適な方法を選択する補間
選択ビット、ビット6、7が塗りつぶし部24に予め用
意されている複数の塗りつぶし方法から最適な方法を選
択する塗りつぶし選択ビットからなっている。なお、本
実施例は、8ビットでフラグ情報を構成する場合につい
て説明するが、ビット数を増やして、各資源数を増やし
てもよく、様々な変形または組合せに対応させることが
できることはいうまでもない。
As shown in this figure, the process selection flag is 8
The content of the bit configuration is the first one bit is a contour selection bit that selects a pattern generation method, and the second and third bits are an optimum method from a plurality of hinting methods prepared in advance in the hinting unit 22. The hinting selection bits to be selected, hits 4 and 5, are interpolation selection bits and bits 6 and 7 for selecting an optimum method from a plurality of interpolation methods prepared in advance in the interpolation section 23 are prepared in the filling section 24 in advance. It consists of a fill selection bit that selects the best method from multiple fill methods. Although the present embodiment describes a case where the flag information is configured with 8 bits, it is needless to say that the number of bits may be increased to increase the number of each resource, and various modifications or combinations can be supported. Nor.

【0102】まず、図11に示した手段選択フラグの1
ビット目つまり、輪郭選択ビットが立っている場合につ
いて説明する。
First, 1 of the means selection flag shown in FIG.
The case of the bit position, that is, the contour selection bit is set will be described.

【0103】この輪郭選択ビットが立っていると、その
文字パターン生成を図12の(a)に示すような、文字
の輪郭を座標データで表現し、ストロークの交差を持た
ないアウトラインフォントで行うことになる。
When the contour selection bit is set, the character pattern is generated by the outline font which does not have stroke intersections by expressing the contour of the character by coordinate data as shown in FIG. become.

【0104】以下、図13に示すフローチャートを参照
しながら図9に示したヒンティング部22の処理につい
て説明する。
The processing of the hinting section 22 shown in FIG. 9 will be described below with reference to the flowchart shown in FIG.

【0105】図13は、図10に示したヒンティング部
22の処理動作を説明するフローチャートである。な
お、(1)〜(6)は各ステップを示す。
FIG. 13 is a flow chart for explaining the processing operation of the hinting section 22 shown in FIG. Note that (1) to (6) indicate each step.

【0106】ステップ(1)では、処理選択フラグの2
ビット目が立っているかどうかを調べている。立ってい
る場合はステップ(2)に移り、今度は処理選択フラグ
の3ビット目を調べる。ここで、3ビット目が立ってい
れば、ヒンティング部の処理として、ステップ(4)へ
移りヒンティング処理Aを行い、3ビット目が立ってい
なければ、ステップ(5)へ移りヒンティグ処理Bを行
う。また、ステップ(2)で処理選択フラグの2ビット
目が立っていなければ、ステップ(3)へ移り、処理選
択フラグの3ビット目を調べる。
In step (1), the process selection flag 2
I'm checking to see if it stands out. If it is standing, the process proceeds to step (2), and this time, the third bit of the processing selection flag is checked. If the 3rd bit is set, the hinting processing A is performed as the hinting processing. If the 3rd bit is set, the hinting processing A is performed. If the 3rd bit is not set, the hinting processing B is performed. I do. If the second bit of the process selection flag is not set in step (2), the process moves to step (3) to check the third bit of the process selection flag.

【0107】ここで処理選択フラグの3ビツト目が立っ
ていれば、ヒンティング部の処理として、ステップ
(6)へ移りヒンティング処理Cを行い、3ビット目が
立っていなければ、ヒンティング部22においてヒンテ
ィンク処理を行わない。
If the third bit of the process selection flag is set, the hinting process C is executed as the hinting process, and if the third bit is not set, the hinting process is performed. No hinting treatment is performed at 22.

【0108】次に、図14に示すフローチャートを参照
しながら図9に示した補間手段23の処理動作について
説明する。
Next, the processing operation of the interpolating means 23 shown in FIG. 9 will be described with reference to the flowchart shown in FIG.

【0109】図14は、図10に示した補間部23の処
理動作を説明するフローチャートである。なお、(1)
〜(7)は各ステップを示す。
FIG. 14 is a flow chart for explaining the processing operation of the interpolation section 23 shown in FIG. Note that (1)
~ (7) shows each step.

【0110】ステップ(1)で処理選択フラグの4ビッ
ト目が立っているかどうかを調べる。立っている場合は
ステップ(2)へ移り、今度は処理選択フラグの5ビッ
ト目を調べる。
In step (1), it is checked whether the fourth bit of the process selection flag is set. If it is standing, the process proceeds to step (2), and this time, the fifth bit of the processing selection flag is checked.

【0111】ここで5ビット目が立っていれば、補間部
23の処理として、ステップ(4)へ移り2次Bスプラ
インによる補間を行い、5ビット目が立っていなけれ
ば、ステップ(5)へ移り3次Bスプラインによる補間
を行う。
If the 5th bit is set, the process proceeds to step (4) as the processing of the interpolating unit 23, and the interpolation by the quadratic B-spline is performed. If the 5th bit is not set, the process proceeds to step (5). Interpolation is performed using the transitional cubic B-spline.

【0112】また、ステップ(1)で処理選択フラグの
4ビット目が立っていなければ、ステップ(3)へ移り
処理選択フラグの5ビツト目を調べる。ここで処理選択
フラグの5ビツト目が立っていればステップ(6)へ移
り、補間部23の処理として、2次ベジェによる補間を
行い、5ビット目が立っていなければ、ステップ(7)
へ移り3次ベジェによる補間を行う。
If the fourth bit of the process selection flag is not set in step (1), the process proceeds to step (3) and the fifth bit of the process selection flag is checked. Here, if the fifth bit of the processing selection flag is set, the process proceeds to step (6). As the process of the interpolation unit 23, interpolation by a quadratic Bezier is performed, and if the fifth bit is not set, step (7).
Move to and perform interpolation by cubic Bezier.

【0113】補間部23に用意されている補間方式は、
前述したように3次ベジェ、2次ベジェ、3次Bスプラ
イン、2次Bスプラインであり、図15、図16に示
す。
The interpolation method prepared in the interpolation section 23 is
As described above, the third-order Bezier, the second-order Bezier, the third-order B-spline, and the second-order B-spline are shown in FIGS. 15 and 16.

【0114】図15、図16は、図10に示した補間部
23による補間方法を説明する図であり、図15は3次
ベジェの補間処理に対応し、図16は2次ベジェの補間
処理に対応する。
FIGS. 15 and 16 are diagrams for explaining the interpolation method by the interpolation unit 23 shown in FIG. 10. FIG. 15 corresponds to the cubic Bezier interpolation process, and FIG. 16 is the quadratic Bezier interpolation process. Corresponding to.

【0115】図15に示すように、1曲線を発生させる
ための制御点A、B、C、D4点について、AB、B
C、CDの中間点a、f、eを算出する。次に今算出し
たa、f、e3点について同様に、af、feの中間点
b、dをbdの中間点cを算出する。こうして求めた点
の内A、a、b、cが1曲線F(0)をc、d、e、D
がF(1)を新たに表わすようになる。この作業を予め
定められた値になるまで繰り返すことにより1曲線を表
わす座標データを作成する。
As shown in FIG. 15, the control points A, B, C, and D4 for generating one curve are AB, B.
Intermediate points a, f and e of C and CD are calculated. Next, for the three points a, f, and e just calculated, the intermediate points b and d of af and fe are similarly calculated as the intermediate point c of bd. Of the points thus obtained, A, a, b, and c are one curve F (0) and are c, d, e, and D.
Will newly represent F (1). By repeating this operation until the value reaches a predetermined value, coordinate data representing one curve is created.

【0116】図16に示した2次ベジェは、3次ベジェ
が曲線で4点で構成していたのに対し、3点で曲線を構
成している。後は同様に、制御点A、B、CについてA
B、BCの中点a、cおよびこのacの中点を算出し、
算出された点の内A、a、bで1曲線F(0)を、b、
c、Cで1曲線を構成する。この作業を予め定められた
値になるまで繰り返し1曲線を表す座標データを作成す
る。
The quadratic Bézier shown in FIG. 16 has a curved line with three points, whereas the cubic Bézier has four points with a curved line. After that, similarly for control points A, B, and C, A
The midpoints a and c of B and BC and the midpoint of this ac are calculated,
Among the calculated points, one curve F (0) is represented by b,
One curve is composed of c and C. This work is repeated until the value reaches a predetermined value, and coordinate data representing one curve is created.

【0117】次にBスプラインによる補間は、ベジェに
よる曲線補間とは異なり、設定された数に曲線を分割
し、それぞれ2次ないし3次の関数により曲線を発生さ
せる。
Next, the interpolation by the B-spline is different from the curve interpolation by the Bezier, and the curve is divided into a set number, and the curve is generated by a quadratic or cubic function.

【0118】次に、図17に示すフローチャートを参照
しながら、どのようにして輪郭座標を発生させるかにつ
いて説明する。
Next, how to generate the contour coordinates will be described with reference to the flowchart shown in FIG.

【0119】図17は、図10に示した補間部23を使
用した輪郭処理手順の一例を示すフローチャートであ
る。なお値(1)〜(4)は各ステップを示す。
FIG. 17 is a flow chart showing an example of the contour processing procedure using the interpolation section 23 shown in FIG. The values (1) to (4) indicate each step.

【0120】ステップ(1)では、取り込んだ輪郭制御
点が直線を構成しているものかどうかを調べている。こ
こで、その点が直線を構成している点であったならば、
ステップ(2)へ移り直線を発生させる。ステップ
(1)で直線を構成する点でなかったならば、ステップ
(3)へ移り前記フラグ作成部20に基づき、図14の
処理手順で選択された所定の補間方式で補間を行い曲線
を発生させる。ステップ(2)およびステップ(3)で
直線、曲線を発生させた後、ステップ(4)へ移り、1
輪郭分の座標データを作成し終ったかを調べ、終ってい
なければステップ(1)へ戻る。
In step (1), it is checked whether the contour control points taken in form a straight line. If the point is a point that forms a straight line,
Go to step (2) and generate a straight line. If it is not a point that forms a straight line in step (1), the process proceeds to step (3) and interpolation is performed by the predetermined interpolation method selected in the processing procedure of FIG. Let After generating straight lines and curves in step (2) and step (3), move to step (4) and
It is checked whether the coordinate data for the contour has been created. If not completed, the process returns to step (1).

【0121】一方、ステップ(4)の判定で1輪郭分終
っていると判定された場合には、補間装置の処理は終了
する。
On the other hand, if it is determined in step (4) that one contour has been completed, the processing of the interpolating device ends.

【0122】次に、図18に示すフローチャートを参照
しながら図10に示した塗りつぶし部24の処理動作に
ついて説明する。
Next, the processing operation of the filling section 24 shown in FIG. 10 will be described with reference to the flowchart shown in FIG.

【0123】図18は、図10に示した塗りぬぶし部2
4による塗りつぶし処理手順の一例を示すフローチャー
トである。なお、(1)〜(4)は各ステップを示す。
FIG. 18 shows the smearing section 2 shown in FIG.
6 is a flowchart showing an example of a filling processing procedure according to No. 4; Note that (1) to (4) indicate each step.

【0124】ステップ(1)で処理選択フラグの6ビッ
ト目(図10参照)が立っているかどうか調べる。6ビ
ット目が立っていればステップ(2)へ移り、処理選択
フラグの7ビット目を調べる。ここで、7ビット目が立
っていれば、ステップ(3)へ移り塗りつぶし部24の
処理として、non zero windingによる
塗りつぶし処理(詳細は後述する)を行う。
In step (1), it is checked whether the sixth bit (see FIG. 10) of the process selection flag is set. If the 6th bit is set, the process proceeds to step (2), and the 7th bit of the processing selection flag is checked. Here, if the 7th bit is set, the process proceeds to step (3), and as the process of the filling unit 24, the non-zero winding filling process (details will be described later) is performed.

【0125】一方、ステップ(2)の判定で7ビット目
が立っていなければ、ステップ(4)へ移りeven
oddによる塗りつぶし処理(詳細は後述する)を行
う。
On the other hand, if the 7th bit is not found in the judgment in step (2), the process moves to step (4) and even.
Fill processing by odd (details will be described later) is performed.

【0126】一方、ステップ(1)において、処理選択
フラグの6ビット目が立っていなければ、塗りつぶし部
24において塗りつぶしを行わない。以上一連の作業に
より1輪郭による文字発生が終了する。
On the other hand, in step (1), if the 6th bit of the process selection flag is not set, the painting section 24 does not perform painting. With the series of operations described above, the character generation by one contour is completed.

【0127】次に、処理選択フラグの1ビット目が立っ
ていなかった場合について説明する。
Next, a case where the first bit of the process selection flag is not set will be described.

【0128】処理選択フラグの1ビット目が立っていな
かった場合は、図12の(b)に示すようにストローク
単位でパターンを作成し、それを合成することにより文
字を発生させる。ストローク合成における文字パターン
発生を行う。このストローク合成による文字パターン発
生順序は図19の手順に従う。
If the first bit of the process selection flag is not set, a pattern is created in stroke units as shown in FIG. 12B and the characters are generated by synthesizing the patterns. Performs character pattern generation in stroke synthesis. The sequence of character pattern generation by this stroke synthesis follows the procedure of FIG.

【0129】図19は本発明の第2実施例を示す文字パ
ターン発生装置における第2の文字パターン発生処理手
順の一例を示すフローチャートである。なお、(1)〜
(4)、(2−1)、(2−2)、(3−1)、(3−
2)、(4−1)、(4−2)は各ステップを示す。
FIG. 19 is a flow chart showing an example of a second character pattern generation processing procedure in the character pattern generation device showing the second embodiment of the present invention. In addition, (1) ~
(4), (2-1), (2-2), (3-1), (3-
2), (4-1), and (4-2) indicate each step.

【0130】なお、こま場合、各部の働きおよびその処
理の指定は1輪郭による文字生成とほぼ同様であるた
め、異なる部分についてのみ説明する。
In this case, the function of each part and the designation of its processing are almost the same as the character generation by one contour, and therefore only different parts will be described.

【0131】まず、異なるのは取り込むデータで、スト
ローク合成の場合は、文字を構成する全ストローク数と
そのストロークの構成点およびその位置と大きさがデー
タとなる。
First, what is different is the data to be fetched. In the case of stroke composition, the total number of strokes forming a character, the constituent points of the stroke, and the position and size thereof become the data.

【0132】ヒンティング部22は図13に基づく処理
を行い、補間部23は図14、図17に基づく処理を行
い、対象とする文字を構成するストローク数だけそれぞ
れの部内の処理をループさせ(2−1)、(2−2)、
(3−1)、(3−2)、全ストロークについて一度の
データ転送で作業を終わらせる。
The hinting section 22 performs the processing based on FIG. 13, the interpolation section 23 performs the processing based on FIG. 14 and FIG. 17, and loops the processing in each section by the number of strokes forming the target character ( 2-1), (2-2),
(3-1), (3-2), the work is completed with one data transfer for all strokes.

【0133】そして、その処理はヒンティング部22に
おいては、1輪郭における処理方法と同一で、補間部2
3においては、座標データを1ストローク作成するごと
に同一テーブルに合成していく。
In the hinting unit 22, the processing is the same as the processing method for one contour, and the interpolation unit 2
In 3, the coordinate data is combined in the same table every time one stroke is created.

【0134】次いで、ステップ(4)で、塗りつぶし部
24が図20に従って塗りつぶし処理を行う。
Then, in step (4), the painting section 24 carries out the painting process according to FIG.

【0135】図20は、図19に示した塗りつぶし処理
の詳細手順の一例を示すフローチャートである。なお、
(1)、(2)は各ステップを示す。
FIG. 20 is a flow chart showing an example of a detailed procedure of the filling processing shown in FIG. In addition,
(1) and (2) show each step.

【0136】ステップ(1)で処理選択フラグの6ビッ
ト目を調べる。ここで、6ビット目が立っていたなら
ば、ステップ(2)へ移り塗りつぶし部24の処理とし
て、non zero windingによる塗りつぶ
しを行う。
In step (1), the 6th bit of the processing selection flag is checked. Here, if the 6th bit is set, the process proceeds to step (2), and as the process of the painting unit 24, non-zero painting is performed.

【0137】一方、ステップ(1)の判定で6ビット目
が立っていなければ、塗りつぶし部24で塗りつぶし処
理は行わない。
On the other hand, if the 6th bit is not found in the determination in step (1), the painting processing is not performed by the painting unit 24.

【0138】図21、図22は本発明に係る文字パター
ン発生装置における塗りつぶし方法を説明する図であ
る。
21 and 22 are views for explaining a painting method in the character pattern generator according to the present invention.

【0139】図21に示すように、ストローク合成の様
な輪郭が交差するパターンの塗りつぶしを行うとき、e
ven oddによる塗りつぶしを行うと、塗りつぶし
が行われない部分が発生する場合がある。これはeve
n oddの塗りつぶし方法が、X軸方向にビットを水
平に調べていき、最初にたっていた(値が1)ビットか
ら次にたっているビットを検知するまで、その間のビッ
トをすべて立てるという塗りつぶし方法であるため、図
21(a)に示すようにストロークが重なっているよう
な場合、塗りつぶされない部分が発生する。non z
ero windingによる塗りつぶしの場合、図2
1(b)に示すように、輪郭を構成している点(ビッ
ト)それぞれに、そのビットが上向きの線を構成してい
るビットか、下向きの線を構成しているビットかの属性
がつけられており、その属性に上向きなら1、下向きな
ら−1といった値が設けられている。そこで、even
oddのときと同様に、X軸に平行に各ビットを調べ
ていき、たっているビットを検知したら、その属性値を
加算していき、その加算した値が0でないかぎり、ビツ
トを立て続け塗りつぶしを行う。
As shown in FIG. 21, when filling a pattern in which contours intersect with each other, such as a stroke composition, e
If the filling is performed by the ven odd, there may be a portion where the filling is not performed. This is eve
The nodd filling method is to examine bits horizontally in the X-axis direction, and set all the bits between them until the bit that was first (value 1) to the next bit is detected. Therefore, when the strokes are overlapped as shown in FIG. 21A, a part that is not filled occurs. non z
In case of filling by ero winding, Fig. 2
As shown in 1 (b), each of the points (bits) forming the contour is assigned an attribute indicating whether the bit forms an upward line or a downward line. The attribute is provided with a value such as 1 for upward and -1 for downward. So even
As in the case of odd, each bit is examined in parallel with the X axis, and when a bit that is tapped is detected, the attribute value is added, and unless the added value is 0, the bit is kept standing and filled. .

【0140】図22に示すように、ストローク合成のよ
うな輪郭線が交差するパターンの塗りつぶしを行うと
き、even oddによる塗りつぶしを行うと塗りつ
ぶしが行われない部分(塗り抜け部HP)が発生する場
合があるため、ストローク合成の場合、選択できる塗り
つぶし方法はnon zero windingのみと
なる。
As shown in FIG. 22, when filling a pattern in which contour lines intersect each other such as in stroke composition, when the filling is performed by the even odd, there is a portion where the filling is not performed (fill-out portion HP). Therefore, in the case of stroke synthesis, the only filling method that can be selected is non zero winding.

【0141】なお、上記実施例の塗りつぶし処理では、
ストローク合成における塗りつぶしはnon zero
windingのみで行ったが、ここでは、even
oddによっても、塗りつぶしが行える処理について
以下説明する。なお、装置の構成およびアウトラインフ
ォントによる文字パターン発生方法は同じであるが、ス
トローク合成による文字パターン発生方法における塗り
つぶし方法が以下のように変わる。
In the filling process of the above embodiment,
Filling in stroke composition is non zero
I went to the windowing only, but here is even
The processing that can be applied by odd will be described below. Although the device configuration and the character pattern generation method by the outline font are the same, the filling method in the character pattern generation method by stroke synthesis is changed as follows.

【0142】上記第2実施例では、ヒンティング部2
2、補間部23とも1文字を構成する全ストロークにつ
いて、1度のデータ転送でその装置を終らせていたが、
今回は、ヒンティング部22、補間部23、塗りつぶし
部24ともに、1回に1ストロークのみの処理を行う。
すなわち、1度目の塗りつぶし部24の処理が終った時
点では1つのストロークの塗りつぶしの終わったビット
マップデータができ上がった状態になる。以下、図23
及び図24、図25を参照しながら他の塗りつぶし処理
について説明する。
In the second embodiment, the hinting section 2 is used.
2. With respect to all strokes that make up one character, both the interpolation unit 23 and the device are terminated by one data transfer.
This time, the hinting unit 22, the interpolation unit 23, and the filling unit 24 perform only one stroke at a time.
That is, at the time when the processing of the filling section 24 for the first time is finished, the bitmap data in which the painting of one stroke is finished is completed. Below, FIG.
Another filling process will be described with reference to FIGS. 24 and 25.

【0143】図23は本発明に係る文字パターン発生装
置における他の文字パターン生成手順の一例を示すフロ
ーチャートである。なお、(1)〜(5)は各ステップ
を示す。
FIG. 23 is a flow chart showing an example of another character pattern generating procedure in the character pattern generating apparatus according to the present invention. Note that (1) to (5) indicate each step.

【0144】図24は本発明に係る文字パターン発生装
置における他の文字パターン生成状態を示す図である。
なお、(1)〜(7)は各塗りつぶしのステップを示
す。図25は本発明に係る文字パターン発生装置におけ
る文字パターンのストロークと部首との対応説明する図
である。
FIG. 24 is a diagram showing another character pattern generation state in the character pattern generator according to the present invention.
It should be noted that (1) to (7) indicate steps of each filling. FIG. 25 is a diagram illustrating correspondence between strokes of character patterns and radicals in the character pattern generator according to the present invention.

【0145】図23に示すように塗りつぶし処理が終わ
るごとに(1)〜(5)、文字を構成する全ストローク
について処理が終ったかどうかを確認し終っていなけれ
ば、繰り返し次のストロークについて処理を行う。
As shown in FIG. 23, every time the filling process is completed (1) to (5), it is confirmed whether or not the process has been completed for all strokes forming the character, and if it is not completed, the process is repeated for the next stroke. To do.

【0146】これにより、文字が構成されていく過程
は、図24に示す「木」を例にすると、1度目の処理で
はステップ(1)のように横線のパターンが生成され
る、次にステップ(2)で次のストロークである縦線の
パターンが生成され、ステップ(3)でこのパターンを
ステップ(1)で生成された横線のパターンが合成され
る。
As a result, in the process of character formation, if the "tree" shown in FIG. 24 is taken as an example, a horizontal line pattern is generated in the first process as in step (1). In (2), a vertical line pattern which is the next stroke is generated, and in step (3), this pattern is combined with the horizontal line pattern generated in step (1).

【0147】ステップ(4)では次のストロークである
左払いのパターンが生成され、ステップ(5)でこのパ
ターンを前記ステップ(3)で生成されたパターンに合
成する。ステップ(6)では次のストロークである右払
いのパターンが生成され、ステップ(7)でこのパター
ンをステップ(5)で生成され得たパターンに合成する
と、文字パターン「木」が生成される。また、この方法
における塗りつぶし装置の処理によれば、アウトライン
フォントと同様に、non zero windin
g,even oddの二通りの方法で塗りつぶしが行
える。
In step (4), a pattern for left paying which is the next stroke is generated. In step (5), this pattern is combined with the pattern generated in step (3). In step (6), the right stroke pattern which is the next stroke is generated, and when this pattern is combined with the pattern generated in step (5) in step (7), the character pattern "tree" is generated. Also, according to the processing of the filling device in this method, as with the outline font, the non zero windin
Filling can be done by two methods, g and even odd.

【0148】〔他の実施例〕前述の第1の実施例におけ
る第1、第2の文字パターン発生装置においては、X、
Y座標で表わされる輪郭座標データをキャッシュする例
を説明し、第1の実施例における第3、第4の文字パタ
ーン発生装置においてはビットマップデータをキャッシ
ュする例を説明した。本実施例においては制御点データ
をキャツシュする例を説明する。
[Other Embodiments] In the first and second character pattern generators of the above-described first embodiment, X,
The example of caching the contour coordinate data represented by the Y coordinate has been described, and the example of caching the bitmap data in the third and fourth character pattern generators in the first embodiment has been described. In this embodiment, an example in which control point data is cached will be described.

【0149】図26に示すのが、前記第1実施例におけ
る第5の文字パターン発生処理の流れである。ステップ
(1)では取り込んだ展開対象文字の輪郭形式の座標デ
ータ(制御点データ)が、すでに文字としてキャッシュ
されているかどうかをIDに基づきキャッシュバッファ
を確認することにより調べる。ここでキャッシュバッフ
ァに対応する文字データが記憶されていればすでにキャ
ッシュされているものと認識し、ステップ(2)に移
り、キャッシュバッファからストローク合成による対象
文字の輪郭形式の座標データ(制御点データ)を取り込
みステップ(22)の入口へ進む。ステップ(1)にお
いてキャッシュバッファに対応する文字データが記憶さ
れていなければまだキャッシュされていないものと認識
し、ステップ(3)に移り、文字を構成している部首の
数とその種類のデータを取り込む。次にステップ(4)
へ移り、それらの部首の内、対象とする部首の輪郭形式
の座標データ(制御点データ)がすでにキャッシュされ
ているかどうかをIDに基づきキャッシュバッファを確
認することにより調べる。このとき文字を構成する部首
の中から対象とする部首を選ぶ順序は、今回は筆順に準
ずる事とするが、特に筆順に準じなければならないわけ
ではない。ここでキャッシュバッファに対応する部首デ
ータが記憶されていればすでにキャッシュされているも
のと認識し、ステップ(5)へ移り、キャッシュバッフ
ァからストローク合成による対象部首の輪郭形式の座標
データ(制御点データ)を取り込みステップ(18)の
入口へ進む。ステップ(4)において、キャッシュバッ
ファに対応する部首データが記憶されていなければまだ
キャッシュされていないものと認識し、ステップ(6)
へ移り対象部首を構成するストローク数とその種類のデ
ータを取り込む。次にステップ(7)へ移り、対象スト
ロークの輪郭形式の座標データ(制御点データ)がすで
にキャッシュされているものかどうかをIDに基づきキ
ャッシュバッファを確認することにより調べる。このと
き部首を構成するストロークな中から対象とするストロ
ークを選ぶ順序は、今回は筆順に準ずる事とするが、特
に筆順に準じなければならないわけではない。ここで、
キャッシュバッファに対応するストロークデータが記憶
されていればすでにキャッシュされているものと認識
し、ステップ(8)へ移り、キャッシュバッファから対
象ストロークの制御点データを取り込みステップ(1
4)の入口へ進む。ステップ(7)において、キャッシ
ュバッファに対応するストロークデータが記憶されてい
なければまだキャッシュされていないものと認識し、ス
テップ(9)へ移り対象ストロークのストローク形式の
座標データ(制御点データ)を取り込む。次にステップ
(10)へ移り、取り込んだストローク形式の座標デー
タ(制御点データ)に、拡大縮小に伴う座標変換を行
う。ストローク形式の座標データは芯線+太さによる情
報なので、ステップ(11)で図3に示すように輪郭形
式の座標データ(制御点データ)へ変換する。次にステ
ップ(12)へ移りこのストロークがキャッシュ条件を
満たしているかどうかを判定する。このキャッシュ条件
の判定を示すブロック図を図4に、この時のキャッシュ
バッファの状態を示す図を図6に示す。
FIG. 26 shows the flow of the fifth character pattern generation processing in the first embodiment. In step (1), it is checked by checking the cache buffer based on the ID whether or not the coordinate data (control point data) in the contour format of the loaded expansion target character is already cached as a character. If the character data corresponding to the cache buffer is stored here, it is recognized that the character data has already been cached, and the process proceeds to step (2). From the cache buffer, coordinate data in the contour form of the target character by stroke synthesis (control point data ) Is taken in and the process proceeds to the entrance of step (22). If the character data corresponding to the cache buffer is not stored in step (1), it is recognized that the character data is not cached yet, and the process moves to step (3), in which the number of radicals forming the character and the data of that type. Take in. Next step (4)
Then, it is checked by checking the cache buffer based on the ID whether or not the coordinate data (control point data) in the contour format of the target radical among those radicals is already cached. At this time, the order of selecting the target radicals from the radicals forming the characters is based on the stroke order this time, but it does not necessarily have to be based on the stroke order. If radical data corresponding to the cache buffer is stored, it is recognized that the radical data has already been cached, and the process moves to step (5). Point data) is taken in and the process proceeds to the entrance of step (18). If radical data corresponding to the cache buffer is not stored in step (4), it is recognized that it has not been cached, and step (6)
The number of strokes constituting the target radical and the data of that type are fetched. Next, in step (7), it is checked by checking the cache buffer based on the ID whether or not the coordinate data (control point data) in the contour form of the target stroke is already cached. At this time, the order of selecting the target stroke from the strokes forming the radical is based on the stroke order this time, but it does not necessarily have to be based on the stroke order. here,
If the stroke data corresponding to the cache buffer is stored, it is recognized that the stroke data has already been cached, and the process proceeds to step (8) to fetch the control point data of the target stroke from the cache buffer in step (1
Go to the entrance of 4). In step (7), if the stroke data corresponding to the cache buffer is not stored, it is recognized that the stroke data is not cached yet, and the process proceeds to step (9), and the stroke format coordinate data (control point data) of the target stroke is fetched. . Then, the process proceeds to step (10), and the coordinate data (control point data) in the captured stroke format is subjected to coordinate conversion associated with enlargement / reduction. Since the stroke format coordinate data is information based on the core line + thickness, it is converted into contour format coordinate data (control point data) in step (11) as shown in FIG. Next, in step (12), it is determined whether or not this stroke satisfies the cache condition. FIG. 4 shows a block diagram showing the determination of the cache condition, and FIG. 6 shows a state of the cache buffer at this time.

【0150】図26に戻り、このようにしてステップ
(12)でキャッシュ条件を満たしていると判定される
とステップ(13)へ移りキャッシュが行われる。次に
ステップ(14)へ移り、こうして生成された対象スト
ロークの輪郭形式の座標データ(制御点データ)、また
はステップ(8)で取り込んだ輪郭形式のデータ(制御
点データ)を、対象とする部首中での展開位置へシフト
する。次にステップ(15)へ移り、部首を構成する全
ストロークについて上記作業が終了したかどうかを調べ
る。もしまだ終了されていなければ、ステップ(7)の
入口へ戻り、次の対象ストロークについて同様の作業を
する。上記作業が終了していれば、ステップ(16)へ
移りこのストロークがキャッシュ条件を満たしているか
どうかを判定する。このキャッシュ条件の判定を示すブ
ロック図を図5に、この時のキャッシュバッファの状態
を示す図を図6に示す。ステップ5−1でキャッシュし
た文字または部首を格納しておくバッファがすでにデー
タでいっぱいになっているかどうかを調べる。すでに一
杯の場合はステップ5−2で、このキャッシュバッファ
内に格納されているデータの優先順位と対象となってい
る文字または部首の優先順位とを比べどちらが優先順位
が高いかを調べる。もし対象とするものより優先順位が
低いもののデータが、キャッシュバッファ内に格納され
ていなければ、対象とする文字または部首はキャッシュ
されない。しかし、キャッシュバッファ内に対象とする
ものより優先順位が低いものが1つ以上あれば、その中
で最も優先順位の低いものをキャッシュバッファから削
除し、対象としている文字または部首をキャッシュバッ
ファに格納する。図26に戻り、キャッシュ条件を満た
していれば、ステップ(17)へ移りキャッシュを行
う。次にステップ(18)へ移り、こうして生成された
ストローク合成による対象部首の輪郭形式の座標データ
(制御点データ)または、ステップ(5)で取り込んだ
輪郭形式の座標データ(制御点データ)を、対象とする
文字中での展開位置へシフトする。次にステップ(1
9)で文字を構成する全部首について、上記作業が終了
したかどうかを調べる。もしまだ終了されていなけれ
ば、ステップ(4)の入口へ戻り、次の対象部首につい
て同様の作業をする。終了していればステップ(16)
と同様に、ステップ(20)でこの文字がキャッシュ条
件を満たしているかどうかを判定する。キャッシュ条件
を満たしていればステップ(21)へ移りキャッシュを
行う。次にステップ(22)に移り、文字を構成してい
るストロークの内、対象とするストロークを補間するた
め、制御点が直線データかどうかを判別し直線データで
ないならば曲線データと認識し、ステップ(23)で所
定の曲線補間方式による補間を行いステップ(24)で
打点を行う。ステップ(22)で直線データだった場合
は、そのままステップ(25)で打点を行う。こうして
ステップ(26)では対象ストロークのデータが1輪郭
分すべて打点し終わったかどうか調べ、まだ終わってい
なければステップ(22)の入り口へ戻り、終わってい
ればステップ(27)へ移り文字を構成しているストロ
ークすべてについて、補間処理が終了したか調べる。終
了していない場合は、ステップ(22)の入り口へ戻
り、終わっていればステップ(28)へ移り塗りつぶし
を行う。
Returning to FIG. 26, if it is determined in step (12) that the cache condition is satisfied in this way, the process moves to step (13) to perform caching. Next, the process proceeds to step (14), and the target coordinate data is the contour data (control point data) of the contour of the target stroke thus generated or the contour data (control point data) captured in step (8). Shift to the deployed position in the neck. Next, the process proceeds to step (15), and it is checked whether or not the above work has been completed for all strokes forming the radical. If not completed, return to the entrance of step (7) and do the same for the next target stroke. If the above work is completed, the process proceeds to step (16), and it is determined whether or not this stroke satisfies the cache condition. FIG. 5 shows a block diagram showing the determination of the cache condition, and FIG. 6 shows a state of the cache buffer at this time. It is checked whether or not the buffer for storing the character or radical cached in step 5-1 is already full of data. If it is already full, in step 5-2, the priority of the data stored in the cache buffer is compared with the priority of the target character or radical, and which one has the higher priority is checked. If the data of lower priority than the target is not stored in the cache buffer, the target character or radical is not cached. However, if there is one or more ones with a lower priority than the target in the cache buffer, the one with the lowest priority among them is deleted from the cache buffer, and the target character or radical is stored in the cache buffer. Store. Returning to FIG. 26, if the cache condition is satisfied, the process proceeds to step (17) to perform the cache. Next, the process proceeds to step (18), and the coordinate data (control point data) in the contour format of the target radical by the stroke synthesis thus generated or the coordinate data (control point data) in the contour format fetched in step (5) is used. , Shift to the expansion position in the target character. Next step (1
It is checked whether or not the above work is completed for all necks that form the character in 9). If not, return to the entrance of step (4) and do the same for the next target radical. If finished, step (16)
Similarly, in step (20), it is determined whether this character satisfies the cache condition. If the cache condition is satisfied, the process proceeds to step (21) to perform the cache. Next, in step (22), among the strokes forming the character, the target stroke is interpolated. Therefore, it is determined whether the control point is straight line data, and if it is not straight line data, it is recognized as curved line data, In step (23), interpolation is performed according to a predetermined curve interpolation method, and in step (24), a dot is entered. If the straight line data is obtained in step (22), the dot is directly applied in step (25). In this way, in step (26), it is checked whether or not the data of the target stroke has been completely printed for one contour. Check whether the interpolation processing is completed for all the strokes. If not completed, the process returns to the entrance of step (22), and if completed, the process moves to step (28) to perform painting.

【0151】上記第1実施例における第5の文字パター
ン発生手順では、文字ストローク及び部首の輪郭形式の
座標データ(制御点データ)をキャッシュしていたが、
本実施例では輪郭形式の座標データ(制御点データ)だ
けではなく、上記実施例では展開時に加算していたオフ
セット値も含めてキャッシュを行う。つまり、ストロー
クならば、その部首のどの位置に展開されるか、部首な
らその文字のどの位置に展開されるかという位置情報を
含めてキャッシュを行い、上記実施例の様に、キャッシ
ュデータを展開後、オフセット分シフトする処理を必要
としない。図27は本実施例の処理の流れを示す図であ
る。ステップ(11)までは上記実施例を示した図26
のステップ(11)までと同じである。つまり、文字に
対応する輪郭形式の座標データ(制御点データ)がキャ
ッシュされているかどうかを調べ、キャッシュされてい
ればそのデータを使い、キャッシュされていなければ、
その文字を構成する部首に対応する輪郭形式の座標デー
タ(制御点データ)がキャッシュされているかどうかを
IDに基づき調べる。文字を構成している部首がキャッ
シュされているものならば、そのデータを使い、キャッ
シュされていなければ、その部首を構成しているストロ
ークに対応する輪郭形式の座標データ(制御点データ)
がキャッシュされているかを調べ、キャッシュされてい
ればそのデータを使い、キャッシュされていなければそ
のストローク形式の座標データ(制御点データ)を取り
込み、輪郭形式の座標データ(制御点データ)を発生さ
せる。ステップ(12)でこのようにして生成したスト
ロークの輪郭データに、対象とする部首におけるそのス
トロークの展開位置への変位量を加算している。ステッ
プ(13)では上記実施例と同様にキャッシュするかど
うかを判定し、キャッシュを行う場合はステップ(1
4)でキャッシュを行う。こうしてステップ(15)で
部首を構成している全ストロークについて上記作業が終
了したかどうか判定する。終了していなければステップ
(7)へ戻り、終了していればステップ(16)へ移
り、その部首が対象文字中で展開される位置への変位量
を加算する。次にステップ(17)でキャッシュするか
どうかを判定し、キャッシュを行う場合はステップ(1
8)へ移りキャッシュを行う。以下ステップ(19)以
降の処理は、上記第1実施例の第5の文字パターン発生
手順のステップ(19)以降と同様である。
In the fifth character pattern generating procedure in the first embodiment, the character stroke and the coordinate data (control point data) in the contour form of the radical are cached.
In this embodiment, not only the coordinate data in the contour form (control point data) but also the offset value added at the time of expansion in the above embodiment is cached. In other words, if it is a stroke, it is cached by including the position information of the position of the radical to be expanded, and the position of the character to be expanded if it is a radical. After expanding, the process of shifting by offset is not required. FIG. 27 is a diagram showing the flow of processing in this embodiment. FIG. 26 showing the above embodiment up to step (11).
This is the same as up to step (11). In other words, check whether the coordinate format coordinate data (control point data) corresponding to the character is cached. If it is cached, use that data. If it is not cached,
It is checked based on the ID whether or not the coordinate format coordinate data (control point data) corresponding to the radical forming the character is cached. If the radical that makes up the character is cached, use that data. If it is not cached, coordinate data in the contour format (control point data) corresponding to the stroke that makes up the radical.
Is checked, if it is cached, the data is used. If it is not cached, the coordinate data of the stroke format (control point data) is fetched and the coordinate data of the contour format (control point data) is generated. . In step (12), the displacement amount of the target radical to the expanded position is added to the stroke contour data thus generated. In step (13), it is determined whether to cache as in the above embodiment, and if caching is to be performed, step (1)
Cache is performed in 4). Thus, in step (15), it is determined whether or not the above work has been completed for all the strokes forming the radical. If it is not completed, the process returns to step (7), and if it is completed, the process proceeds to step (16) to add the displacement amount to the position where the radical is developed in the target character. Next, in step (17), it is determined whether to cache, and if cache is to be performed, step (1
Move to 8) and cache. The process after step (19) is the same as that after step (19) in the fifth character pattern generation procedure of the first embodiment.

【0152】図28に示すのが、上記第1実施例の第7
の文字パターン発生手順を示す動作の流れである。ステ
ップ(1)では展開対象文字のデータを取り込み、その
とき、すでに文字に対応するビットマップデータがキャ
ッシュされているものかどうかをIDに基づきキャッシ
ュバッファを確認することにより調べる。ここでキャッ
シュバッファに対応する文字データが記憶されていれば
ステップ(2)に移り、キャッシュバッファからビット
マップデータを取り込みステツプ(25)の出口へ進み
対象文字の生成は終わる。ステップ(1)でキャッシュ
バッファに対応する文字データが記憶されていなけれ
ば、ステップ(3)に移り、文字を構成している部首の
数とその種類のデータを取り込む。次にステップ(4)
へ移り、対象部首に対応するビットマップデータがすで
にキャッシュされているものかどうかをIDに基づきキ
ャッシュバッファを確認することにより調べる。このと
き対象部首の順序は、今回は筆順に準ずる事とするが、
特に筆順に準ずる必要はない。ここでキャッシュバッフ
ァに対応する部首データが記憶されていればステップ
(5)へ移り、キャッシュバッファからビットマップデ
ータを取り込みステップ(24)の入り口へ進む。ステ
ップ(4)において、キャッシュバッファに対応する部
首データが記憶されていなければ、ステップ(6)へ移
り対象部首を構成するストローク数とその種類のデータ
を取り込む。次にステップ(7)へ移り、対象ストロー
クに対応するビットマップデータがすでにキャッシュさ
れているものかどうかをIDに基づきキャッシュバッフ
ァを確認することにより調べる。このとき対象ストロー
クの順序は、今回は筆順に準ずる事とするが、特に筆順
に準ずる必要はない。ここでキャッシュバッファに対応
するストロークデータが記憶されていればステップ
(8)へ移り、キャッシュバッファからビットマップデ
ータを取り込みステップ(21)の入口へ進む。ステッ
プ(7)において、キャッシュバッファに対応するスト
ローグデータが記憶されていなければ、ステップ(9)
へ移り対象ストロークのストローク形式の座標データを
取り込む。次にステップ(10)へ移り取り込んだスト
ローク形式の座標データに、拡大縮小に伴う座標変換を
行う。ストローク形式の座標データは芯線+太さによる
情報なので、図3に示すようにステップ(11)で輪郭
形式の座標データへ変換する。ステップ(12)で、こ
のストロークに対応する座標データを対象部首中で展開
される位置へシフトする。次にステップ(13)へ移
り、直線データかどうかを判定し直線データでないなら
ば曲線データと認識し、ステップ(14)で所定の曲線
補間方式による補間を行いステップ(15)で打点を行
う。ステップ(13)で直線データだった場合は、その
ままステップ(16)で打点を行う。こうしてステツプ
(17)では対象ストロークの輪郭座標データが1輪郭
分すべて打点し終わったかどうか調べ、まだ終わってい
なければステップ(13)の入り口へ戻り、終わってい
ればステップ(18)へ移り対象ストロークの輪郭座標
データに基づく塗りつぶしを行う。次にステップ(1
9)へ移りこのストロークがキャッシュ条件を満たして
いるかどうかを判定する。このキャッシュ条件の判定を
示すブロック図を図4に、この時のキャッシュバッファ
の状態を示す図を図6に示す。
FIG. 28 shows the seventh embodiment of the first embodiment.
Is a flow of operations showing the character pattern generation procedure of. In step (1), the data of the expansion target character is fetched, and at that time, whether or not the bitmap data corresponding to the character has already been cached is checked by checking the cache buffer based on the ID. If the character data corresponding to the cache buffer is stored, the process proceeds to step (2), the bitmap data is fetched from the cache buffer and the process proceeds to the exit of step (25) to finish the generation of the target character. If the character data corresponding to the cache buffer is not stored in step (1), the process moves to step (3), and the number of radicals forming the character and the data of that type are fetched. Next step (4)
Then, it is checked by checking the cache buffer based on the ID whether the bitmap data corresponding to the target radical has already been cached. At this time, the order of the target radicals will follow the stroke order this time,
It is not necessary to follow the stroke order. Here, if radical data corresponding to the cache buffer is stored, the process proceeds to step (5), where bitmap data is fetched from the cache buffer and the process proceeds to the entrance of step (24). If radical data corresponding to the cache buffer is not stored in step (4), the process proceeds to step (6) and the number of strokes forming the target radical and its type data are fetched. Next, in step (7), it is checked whether the bitmap data corresponding to the target stroke is already cached by checking the cache buffer based on the ID. At this time, the order of the target strokes is based on the stroke order this time, but it is not particularly necessary to follow the stroke order. If the stroke data corresponding to the cache buffer is stored here, the process proceeds to step (8) to fetch the bitmap data from the cache buffer and proceed to the entrance of step (21). In step (7), if the strogue data corresponding to the cache buffer is not stored, step (9)
The coordinate data of the stroke format of the target stroke is fetched. Next, in step (10), the stroke-formatted coordinate data is subjected to coordinate conversion associated with enlargement / reduction. Since the stroke format coordinate data is information based on the core line + thickness, it is converted to contour format coordinate data in step (11) as shown in FIG. In step (12), the coordinate data corresponding to this stroke is shifted to the position developed in the target radical. Next, the process proceeds to step (13), it is judged whether or not it is straight line data, and if it is not straight line data, it is recognized as curve data, interpolation is carried out by a predetermined curve interpolation method at step (14), and a dot is made at step (15). When the straight line data is obtained in step (13), the dot is directly applied in step (16). Thus, in step (17), it is checked whether or not the contour coordinate data of the target stroke has finished hitting all one contour. If not completed, the process returns to the entrance of step (13). Fill based on the contour coordinate data of. Next step (1
It moves to 9) and it is judged whether or not this stroke satisfies the cache condition. FIG. 4 shows a block diagram showing the determination of the cache condition, and FIG. 6 shows a state of the cache buffer at this time.

【0153】図28に戻り、このようにしてステップ
(19)でキャッシュ条件を満たしていると判定される
とステップ(20)へ移りキャッシュが行われる。次に
ステップ(21)へ移り、部首を構成する全ストローク
のビットマップ生成とその合成が終了されたかどうかを
調べる。もしまだ終了されていなければ、ステップ
(7)の入り口へ戻り、次の対象ストロークについて同
様の作業をする。対象とする部首のビットマップ生成が
終了していれば、ステップ(22)へ移りこの部首がキ
ャッシュ条件を満たしているかどうかを判定する。この
キャッシュ条件の判定を示すブロック図を図5に、この
時のキャッシュバッファの状態を示す図を図6に示す。
ステップ5−1でキャッシュした文字または部首を格納
しておくバッファがすでにデータでいっぱいになってい
るかどうかを調べる。すでにいっぱいの場合はステップ
5−2で、このキャッシュバッファ内に格納されている
データの優先順位と対象となっている文字または部首の
優先順位とを比べどちらが優先順位が高いかを調べる。
もし対象とするものより優先順位が低いもののデータ
が、キャッシュバッファ内に格納されていなければ、対
象とする文字または部首はキャッシュされない。しか
し、キャッシュバッファ内に対象とするものより優先順
位が低いものが1つ以上あれば、その中で最も優先順位
の低いものをキャッシュバッファから削除し、対象とし
ている文字または部首をキャッシュバッファに格納す
る。図28に戻り、このようにしてステップ(22)で
キャッシュ条件を満たしていると判定されるとステップ
(23)へ移りキャッシュが行われる。次にステップ
(24)で文字を構成する全部首のビットマップ生成と
その合成が終了されたかどうかを調べる。もしまだ終了
されていなければ、ステップ(4)の入り口へ戻り、次
の対象部首について同様の作業をする。終了していれば
ステップ(22)と同様に、ステップ(25)でこの文
字がキャッシュ条件を満たしているかどうかを判定す
る。キャッシュ条件を満たしていればステップ(26)
へ移りキャッシュを行う。こうして対象文字のパターン
生成が終了する。
Returning to FIG. 28, if it is determined in step (19) that the cache condition is satisfied in this way, the process proceeds to step (20) and caching is performed. Next, the process proceeds to step (21), and it is checked whether the bitmap generation of all strokes forming the radical and the synthesis thereof have been completed. If not completed, return to the entrance of step (7) and perform the same operation for the next target stroke. If the bitmap generation of the target radical is completed, the process proceeds to step (22), and it is determined whether or not this radical satisfies the cache condition. FIG. 5 shows a block diagram showing the determination of the cache condition, and FIG. 6 shows a state of the cache buffer at this time.
It is checked whether or not the buffer for storing the character or radical cached in step 5-1 is already full of data. If it is already full, in step 5-2, the priority of the data stored in the cache buffer is compared with the priority of the target character or radical, and which one has the higher priority is checked.
If the data of lower priority than the target is not stored in the cache buffer, the target character or radical is not cached. However, if there is one or more ones with a lower priority than the target in the cache buffer, the one with the lowest priority among them is deleted from the cache buffer, and the target character or radical is stored in the cache buffer. Store. Returning to FIG. 28, if it is determined in step (22) that the cache condition is satisfied in this way, the process proceeds to step (23) and caching is performed. Next, in step (24), it is checked whether or not the bitmap generation of all the necks forming the character and its synthesis have been completed. If not, return to the entrance of step (4) and do the same for the next target radical. If it has ended, it is determined whether or not this character satisfies the cache condition in step (25) as in step (22). If the cache conditions are met, step (26)
Move to and cache. Thus, the pattern generation of the target character is completed.

【0154】次に、第1実施例において説明した第1〜
第7の文字パターン発生処理をメモリ容量(メモリ環
境)に応じて自動的に切り替えることができる制御手順
を図29を用いて説明する。
Next, the first to the first embodiment described in the first embodiment will be described.
A control procedure capable of automatically switching the seventh character pattern generation processing according to the memory capacity (memory environment) will be described with reference to FIG.

【0155】キャッシュを行う記憶装置を外部記憶装置
であるハードディスクにするか内蔵のRAMにするかの
判定を図29に示す。ステップ(1)では、使用するシ
ステムにおけるキャッシュに使用できるRAM容量をチ
ェックし、その容量がビットマップキャッシュに対応で
きるかどうかを判定している。対応できる場合はステッ
プ(2)へ進み、以後RAMを用いたストローク単位の
ビットマップキャッシュを行う。ステップ(1)で対応
できないと判定された場合、ステップ(3)へ移りシス
テムとしてハードディスクを使用するか(または、でき
るか)どうかを判定する。使用する(または、できる)
場合はステップ(4)へ移りハードディスクによるビッ
トマップキャッシュを行う。ハードディクを使用しない
(または、できない)場合はステップ(5)へ移りRA
Mによる輪郭座標データ、または、制御点データのキャ
ツシュを行う。
FIG. 29 shows the judgment as to whether the storage device for the cache is the external storage device such as the hard disk or the built-in RAM. In step (1), the RAM capacity that can be used for the cache in the system to be used is checked, and it is determined whether or not the capacity can correspond to the bitmap cache. If it is possible, the process proceeds to step (2), and thereafter, stroke-based bitmap cache using the RAM is performed. If it is determined in step (1) that it is not possible, it moves to step (3) and it is determined whether or not the hard disk is used (or can be used) as a system. Use (or can)
In the case, the process proceeds to step (4) to perform bitmap cache by the hard disk. If hard disk is not used (or cannot be used), go to step (5) RA
The contour coordinate data by M or the control point data is cached.

【0156】なお、(5)の輪郭座標データのキャッシ
ュ、または、制御点データのキャッシュはRAMの容量
に応じて、所定の量より多い場合は、輪郭座標データの
キャッシュを行い、所定の量より少い場合は、制御点デ
ータのキャッシュを行うようにしてもよい。また、ビッ
トマップ形式、輪郭座標形式、制御点形式をユーザがコ
マンドにより指定できるようにしてもよい。
Note that the contour coordinate data cache or the control point data cache of (5) caches the contour coordinate data if the cache amount is larger than a predetermined amount according to the capacity of the RAM. If the number is small, the control point data may be cached. Also, the bitmap format, the contour coordinate format, and the control point format may be specified by the user.

【0157】なお、(3)のハードディスクの使用許可
は、ハードディスクへのアクセス時間、パターン展開処
理時間に応じてユーザが設定する(または、システムが
計算して自動的に設定する)ものとする。
The (3) permission to use the hard disk is set by the user (or is calculated and automatically set by the system) according to the access time to the hard disk and the pattern development processing time.

【0158】上記実施例によれば、文字、部首、ストロ
ークをそれぞれキャッシュすることにより、ストローク
合成による文字生成で、多数の文字を生成するときに、
いちいち同一のストロークや、部首や文字をその都度展
開する処理を減らすことを大幅に削減できる。
According to the above-described embodiment, by caching characters, radicals, and strokes respectively, when a large number of characters are created by character creation by stroke composition,
It is possible to drastically reduce the reduction of the processing for expanding the same strokes, radicals and characters each time.

【0159】また、あらかじめそれぞれの装置に複数の
文字パターン処理資源を用意しておくことにより、デー
タの違いや処理方法の変更等による装置自体の変更や作
成等の余分な処理が削減され、効率よく文字パターン発
生が可能となる。
Further, by preparing a plurality of character pattern processing resources for each device in advance, it is possible to reduce extra processing such as modification or creation of the device itself due to differences in data or changes in processing method, thereby improving efficiency. It is possible to generate character patterns.

【0160】なお、本発明は、複数の機器から構成され
るシステムに適用しても、1つの機器から成る装置に適
用しても良い。また、本発明はシステムあるいは装置に
プログラムを供給することによって達成させる場合にも
適用できることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0161】以上説明したように、本発明によれば、キ
ャッシュ手段が発生されたストローク、部首、パターン
を記憶装置にキャッシュし、該キャッシュしたストロー
クデータ、部首、パターンを合成して文字パターンを発
生したので、使用頻度の高いストローク、部首、パター
ンの発生頻度を格段に下げて、効率よく文字パターンを
発生させることができる。
As described above, according to the present invention, the cache means caches the generated strokes, radicals, and patterns in the storage device, and combines the cached stroke data, radicals, and patterns to form a character pattern. Since the occurrence of strokes, radicals and patterns that are frequently used is significantly reduced, it is possible to efficiently generate character patterns.

【0162】本発明によれば、情報作成手段が入力され
る文字情報を解析して文字パターンを発生させるために
利用する文字パターン処理資源を選択するフラグを作成
し、該作成されたフラグに基づいて文字パターン処理手
段が異なる文字パターン処理資源を選択して文字パター
ンを発生させるので、入力される文字情報に左右されな
い文字パターン処理資源を共有して異なる文字パターン
処理を行うことができる。
According to the present invention, a flag for selecting a character pattern processing resource used for generating a character pattern by analyzing the character information input by the information creating means is created, and based on the created flag. Since the character pattern processing means selects different character pattern processing resources to generate a character pattern, different character pattern processing can be performed by sharing the character pattern processing resources that are not influenced by the input character information.

【0163】本発明によれば、文字パターン発生をスト
ロークまたはアウトラインで処理する複数のフォント処
理手段と、文字の品位を高めるための座標変換を前記フ
ラグにより定められた方法で行う複数のヒンティング手
段と、前記フラグにより定められた曲線特性により曲線
を発生させ閉領域の輪郭パターンを作成する複数の補間
手段と、前記フラグにより定められた方法で発生された
閉領域を塗りつぶしビットマップを作成する複数の塗り
つぶし部の文字パターン処理資源中から、該作成された
フラグに基づいて文字パターン部処理手順が異なる文字
パターン処理資源を選択して文字パターンを発生させる
ので、複数の文字パターン処理資源を共有して異なる文
字パターン処理を確実に行うことができる。
According to the present invention, a plurality of font processing means for processing character pattern generation by strokes or outlines, and a plurality of hinting means for performing coordinate conversion for enhancing character quality by the method defined by the flag. And a plurality of interpolating means for generating a curve by the curve characteristic defined by the flag to create a contour pattern of the closed area, and a plurality of creating a bitmap for filling the closed area generated by the method defined by the flag. Among the character pattern processing resources of the filled portion of, the character pattern processing resources having different character pattern processing procedures are selected based on the created flag to generate the character pattern, so that a plurality of character pattern processing resources are shared. It is possible to reliably perform different character pattern processing.

【0164】従って、同じ作業の反復を防ぎ、文字パタ
ーン発生における一連の作業を簡素化できるとともに、
フォントデータと、装置の仕様の違いによって起こる余
計な手間をなくすことができるという効果を奏する。
Therefore, it is possible to prevent repetition of the same work and simplify a series of works in generating a character pattern.
It is possible to eliminate an unnecessary trouble caused by the difference between the font data and the device specifications.

【0165】また、メモリの容量に応じてキャッシュ形
式を選択することができる。
The cache format can be selected according to the capacity of the memory.

【0166】また、ユーザの指示に応じてキャッシュ形
式を選択することができる。
Also, the cache format can be selected according to the user's instruction.

【0167】[0167]

【発明の効果】以上説明したように本発明によれば、使
用頻度の高いストローク、部首、文字パターンまたはデ
ータの発生頻度を格段に下げて効率よく文字パターンを
発生させることができる。
As described above, according to the present invention, the frequency of frequently used strokes, radicals, character patterns or data can be markedly reduced to efficiently generate character patterns.

【0168】[0168]

【0169】[0169]

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

【図1】本発明の第1実施例を示す文字パターン発生装
置の構成を説明するブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a character pattern generation device according to a first embodiment of the present invention.

【図2】本発明の第1実施例を示す文字パターン発生装
置における第1の文字パターン発生処理手順を説明する
フローチャートである。
FIG. 2 is a flowchart illustrating a first character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図3】本発明に係る文字パターン発生装置における座
標データから輪郭情報への変換状態を説明する模式図で
ある。
FIG. 3 is a schematic diagram illustrating a conversion state from coordinate data to contour information in the character pattern generation device according to the present invention.

【図4】図2に示した文字パターン発生処理におけるキ
ャッシュ条件の判定処理手順の一例を示すフローチャー
トである。
FIG. 4 is a flowchart showing an example of a cache condition determination processing procedure in the character pattern generation processing shown in FIG.

【図5】図2に示した文字パターン発生処理におけるキ
ャッシュ条件の判定処理手順の一例を示すフローチャー
トである。
5 is a flowchart showing an example of a cache condition determination processing procedure in the character pattern generation processing shown in FIG.

【図6】キャッシュバッファの状態を示す図である。FIG. 6 is a diagram showing a state of a cache buffer.

【図7】本発明の第1実施例を示す文字パターン発生装
置における第2の文字パターン発生処理手順を説明する
フローチャートである。
FIG. 7 is a flowchart illustrating a second character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図8】本発明の第1実施例を示す文字パターン発生装
置における第3の文字パターン発生処理手順を説明する
フローチャートである。
FIG. 8 is a flowchart illustrating a third character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図9】本発明の第1実施例を示す文字パターン発生装
置における第4の文字パターン発生処理手順を説明する
フローチャートである。
FIG. 9 is a flowchart illustrating a fourth character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図10】本発明の第2実施例を示す文字パターン発生
装置の構成を説明するブロック図である。
FIG. 10 is a block diagram illustrating a configuration of a character pattern generation device showing a second embodiment of the present invention.

【図11】図10に示したフラグ作成部20のフラグ化
処理を説明する図である。
11 is a diagram illustrating a flagging process of a flag creating unit 20 shown in FIG.

【図12】この種の文字パターン発生装置における文字
パターン生成方法を示す模式図である。
FIG. 12 is a schematic diagram showing a character pattern generation method in this type of character pattern generation device.

【図13】図10に示したヒンティング部の処理動作を
説明するフローチャートである。
13 is a flowchart illustrating a processing operation of the hinting section shown in FIG.

【図14】図10に示した補間部の処理動作を説明する
フローチャートである。
14 is a flowchart illustrating a processing operation of an interpolation unit illustrated in FIG.

【図15】図10に示した補間部による補間方式の一例
を説明する図である。
15 is a diagram illustrating an example of an interpolation method by the interpolation unit illustrated in FIG.

【図16】図10に示した補間部による補間方式の一例
を説明する図である。
16 is a diagram illustrating an example of an interpolation method by the interpolation unit illustrated in FIG.

【図17】図10に示した補間部を使用した輪郭処理手
順の一例を示すフローチャートである。
17 is a flowchart illustrating an example of a contour processing procedure using the interpolation unit illustrated in FIG.

【図18】図10に示した塗りつぶし手段による塗りつ
ぶし処理手順の一例を示すフローチャートである。
18 is a flowchart showing an example of a filling processing procedure by the filling means shown in FIG.

【図19】本発明の第2実施例を示す文字パターン発生
装置における第2の文字パターン発生処理手順の一例を
示すフローチャートである。
FIG. 19 is a flowchart showing an example of a second character pattern generation processing procedure in the character pattern generation device according to the second embodiment of the present invention.

【図20】図19に示した塗りつぶし処理の詳細手順の
一例を示すフローチャートである。
20 is a flowchart illustrating an example of detailed procedures of the filling process illustrated in FIG.

【図21】本発明に係る文字パターン発生装置における
塗りつぶし方法を説明する図である。
FIG. 21 is a diagram illustrating a painting method in the character pattern generation device according to the present invention.

【図22】本発明に係る文字パターン発生装置における
塗りつぶし方法を説明する図である。
FIG. 22 is a diagram illustrating a painting method in the character pattern generation device according to the present invention.

【図23】本発明に係る文字パターン発生装置における
他の文字パターン生成手順の一例を示すフローチャート
である。
FIG. 23 is a flowchart showing an example of another character pattern generation procedure in the character pattern generation device according to the present invention.

【図24】本発明に係る文字パターン発生装置における
他の文字パターン生成状態を示す図である。
FIG. 24 is a diagram showing another character pattern generation state in the character pattern generation device according to the present invention.

【図25】本発明に係る文字パターン発生装置における
文字パターンのストロークと部首との対応説明する図で
ある。
FIG. 25 is a diagram illustrating correspondence between strokes of character patterns and radicals in the character pattern generation device according to the present invention.

【図26】本発明の第1実施例を示す文字パターン発生
装置における第5の文字パターン発生処理手順を説明す
るフローチャートである。
FIG. 26 is a flowchart illustrating a fifth character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図27】本発明の第1実施例を示す文字パターン発生
装置における第6の文字パターン発生処理手順を説明す
るフローチャートである。
FIG. 27 is a flowchart illustrating a sixth character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図28】本発明の第1実施例を示す文字パターン発生
装置における第7の文字パターン発生処理手順を説明す
るフローチャートである。
FIG. 28 is a flowchart illustrating a seventh character pattern generation processing procedure in the character pattern generation device according to the first embodiment of the present invention.

【図29】本発明の第1実施例を示す文字パターン発生
装置におけるキャッシュ方法選択処理手順を説明するフ
ローチャートである。
FIG. 29 is a flowchart illustrating a cache method selection processing procedure in the character pattern generation device according to the first embodiment of the present invention.

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

1 CPU 2 RAM 3 ROM 4 KBC 5 KB 6 PRTC 7 PRT 8 CRTC 9 CRT 10 DKC 11 外部記憶装置 1 CPU 2 RAM 3 ROM 4 KBC 5 KB 6 PRTC 7 PRT 8 CRTC 9 CRT 10 DKC 11 External storage device

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 対象文字の輪郭形式の座標データがキャ
ッシュされているか否かを判別する第1判別手段と、 前記第1判別手段により対象文字の輪郭形式の座標デー
タがキャッシュされていないと判別された場合、対象部
首の輪郭形式の座標データがキャッシュされているか否
かを判別する第2判別手段と、 前記第2判別手段により対象部首の輪郭形式の座標デー
タがキャッシュされていないと判別された場合、対象ス
トロークの輪郭形式の座標データがキャッシュされてい
るか否かを判別する第3判別手段と、 前記第3判別手段により対象ストロークの輪郭形式の座
標データがキャッシュされていないと判別された場合、
対象ストロークデータを取得し、取得した対象ストロー
クデータに座標変換を行い、輪郭形式の座標データへ変
換し、キャッシュするキャッシュ手段と、 前記第3判別手段により対象ストロークの輪郭形式の座
標データがキャッシュされていると判別された場合、キ
ャッシュされている輪郭形式の座標データを取得し、前
記第2判別手段により対象部首の輪郭形式の座標データ
がキャッシュされていると判別された場合、キャッシュ
されている輪郭形式の座標データを取得し、前記第1判
別手段により対象文字の輪郭形式の座標データがキャッ
シュされていると判別された場合、キャッシュされてい
る輪郭形式の座標データを取得する取得手段と、 前記取得手段により取得した輪郭形式の座標データに基
づき塗り潰しを行う手段とを有することを特徴とする文
字パターン発生装置。
1. A first discriminating means for discriminating whether or not the contour data of the target character is cached, and the first discriminating means discriminating that the contour data of the target character is not cached. In the case where the contour data of the target radical is cached, the second discrimination means determines whether or not the coordinate data of the contour format of the target radical is cached, and the coordinate data of the contour format of the target radical is not cached by the second discrimination means. When it is determined, the third determination unit determines whether or not the contour format coordinate data of the target stroke is cached, and the third determination unit determines that the contour format coordinate data of the target stroke is not cached. If done,
The target stroke data is acquired, the acquired target stroke data is subjected to coordinate conversion, converted into contour format coordinate data, and cached, and the third determination means caches the contour format coordinate data of the target stroke. If it is determined that the contour format coordinate data that has been cached is obtained, and if it is determined that the contour format coordinate data of the target radical is cached by the second determining means, it is cached. Acquiring contour data coordinate data in the contour format, and acquiring the cached contour data in the contour format when the first determination means determines that the contour data in the contour format of the target character is cached. And a means for filling based on the coordinate data in the contour format acquired by the acquisition means. Character pattern generating apparatus according to claim and.
【請求項2】 前記キャッシュ手段は、キャッシュ条件
を満たす場合に、キャッシュすることを特徴とする請求
項1記載の文字パターン発生装置。
2. The character pattern generator according to claim 1, wherein said cache means caches when a cache condition is satisfied.
【請求項3】 前記キャッシュ手段により輪郭形式の座
標データをキャッシュしてからオフセット分シフトする
ことを特徴とする請求項1記載の文字パターン発生装
置。
3. The character pattern generator according to claim 1, wherein the cache means caches the coordinate data in the contour format and shifts the data by an offset.
【請求項4】 前記キャッシュ手段により輪郭形式の座
標データをキャッシュする前にオフセット分シフトする
ことを特徴とする請求項1記載の文字パターン発生装
置。
4. The character pattern generation device according to claim 1, wherein the cache means shifts the offset coordinate data by the offset before cached.
【請求項5】 対象文字の輪郭形式の座標データがキャ
ッシュされているか否かを判別する第1判別ステップ
と、 前記第1判別ステップにより対象文字の輪郭形式の座標
データがキャッシュされていないと判別された場合、対
象部首の輪郭形式の座標データがキャッシュされている
か否かを判別する第2判別ステップと、 前記第2判別ステップにより対象部首の輪郭形式の座標
データがキャッシュされていないと判別された場合、対
象ストロークの輪郭形式の座標データがキャッシュされ
ているか否かを判別する第3判別ステップと、 前記第3判別ステップにより対象ストロークの輪郭形式
の座標データがキャッシュされていないと判別された場
合、対象ストロークデータを取得し、取得した対象スト
ロークデータに座標変換を行い、輪郭形式の座標データ
へ変換し、キャッシュするキャッシュステップと、 前記第3判別ステップにより対象ストロークの輪郭形式
の座標データがキャッシュされていると判別された場
合、キャッシュされている輪郭形式の座標データを取得
し、前記第2判別ステップにより対象部首の輪郭形式の
座標データがキャッシュされていると判別された場合、
キャッシュされている輪郭形式の座標データを取得し、
前記第1判別ステップにより対象文字の輪郭形式の座標
データがキャッシュされていると判別された場合、キャ
ッシュされている輪郭形式の座標データを取得する取得
ステップと、 前記取得ステップにより取得した輪郭形式の座標データ
に基づき塗り潰しを行うステップとを有することを特徴
とする文字パターン発生方法。
5. A first determining step of determining whether or not the contour data of the target character is cached, and it is determined that the contour data of the target character is not cached by the first determining step. If it is determined that the contour data of the target radical is cached, the second discrimination step determines whether or not the contour data of the target radical is not cached by the second discrimination step. If determined, a third determination step of determining whether or not the contour-format coordinate data of the target stroke is cached, and it is determined that the contour-format coordinate data of the target stroke is not cached by the third determination step. If so, the target stroke data is acquired, coordinate conversion is performed on the acquired target stroke data, and the contour shape is If it is determined in the cache step of converting to coordinate data of a formula and caching, and in the third determining step that the coordinate data of the contour format of the target stroke is cached, the cached coordinate data of the contour format is acquired. However, when it is determined in the second determining step that the coordinate data of the contour shape of the target radical is cached,
Obtain the cached contour format coordinate data,
When it is determined in the first determination step that the coordinate data of the contour format of the target character is cached, an acquisition step of acquiring the cached coordinate data of the contour format; And a step of filling based on coordinate data.
【請求項6】 前記キャッシュステップは、キャッシュ
条件を満たす場合に、キャッシュすることを特徴とする
請求項5記載の文字パターン発生方法。
6. The character pattern generation method according to claim 5, wherein the cache step caches data when a cache condition is satisfied.
【請求項7】 前記キャッシュステップにより輪郭形式
の座標データをキャッシュしてからオフセット分シフト
することを特徴とする請求項5記載の文字パターン発生
方法。
7. The method for generating a character pattern according to claim 5, wherein the contour format coordinate data is cached by the caching step and then shifted by an offset.
【請求項8】 前記キャッシュステップにより輪郭形式
の座標データをキャッシュする前にオフセット分シフト
することを特徴とする請求項5記載の文字パターン発生
方法。
8. The method of generating a character pattern according to claim 5, wherein the cache step shifts the contour-form coordinate data by the offset before caching.
JP31054994A 1993-12-30 1994-12-14 Character pattern generating apparatus and method Expired - Fee Related JP3471939B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP31054994A JP3471939B2 (en) 1994-12-14 1994-12-14 Character pattern generating apparatus and method
EP94309752A EP0661669B1 (en) 1993-12-30 1994-12-23 Character processing apparatus and method
US08/362,986 US5734748A (en) 1993-12-30 1994-12-23 Character pattern generation apparatus and method
DE69426758T DE69426758D1 (en) 1993-12-30 1994-12-23 Arrangement and method for processing character patterns
TW083112195A TW282526B (en) 1993-12-30 1994-12-27
CN94120762A CN1102278C (en) 1993-12-30 1994-12-30 Character pattern generation apparatus and method
KR1019940039768A KR0185245B1 (en) 1993-12-30 1994-12-30 Character pattern generation apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31054994A JP3471939B2 (en) 1994-12-14 1994-12-14 Character pattern generating apparatus and method

Publications (2)

Publication Number Publication Date
JPH08166782A JPH08166782A (en) 1996-06-25
JP3471939B2 true JP3471939B2 (en) 2003-12-02

Family

ID=18006580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31054994A Expired - Fee Related JP3471939B2 (en) 1993-12-30 1994-12-14 Character pattern generating apparatus and method

Country Status (1)

Country Link
JP (1) JP3471939B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5183286B2 (en) * 2008-04-15 2013-04-17 三菱電機株式会社 Character display device

Also Published As

Publication number Publication date
JPH08166782A (en) 1996-06-25

Similar Documents

Publication Publication Date Title
KR0167618B1 (en) Character generator and method
KR950012083B1 (en) Character / Shape Generator and Information Processing Unit
JPH06266847A (en) Method and equipment for displaying object changed into raster
US5734748A (en) Character pattern generation apparatus and method
JP3332165B2 (en) Image processing device
JP6298422B2 (en) Character string processing technology for graphic display of man-machine interface
US5524198A (en) Character or graphic processing method and apparatus
US5771047A (en) Graphics computer
JP3471939B2 (en) Character pattern generating apparatus and method
US5388166A (en) Image drawing apparatus
EP0356262B1 (en) Image processing apparatus
US5519412A (en) Pattern processing method
US5553219A (en) Font outline and bit map generator synthesizing filling data with selected outline data or duplicate outline data
JP2774653B2 (en) Character processor
JP2903917B2 (en) Image editing processor
JP3025739B2 (en) Character pattern generation device and character pattern generation method
JPH10143134A (en) Method for forming and storing characters and apparatus therefor
WO2010134124A1 (en) Vector graphic drawing device
JP3408176B2 (en) Font processing apparatus, font processing method, and storage medium
JP3280160B2 (en) Document processing apparatus and document processing method
JP3344538B2 (en) Character generator
JP3191409B2 (en) Font data generator
JP2700124B2 (en) Graphic display method and apparatus for implementing the same
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JP3099556B2 (en) Data converter

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030826

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

Free format text: PAYMENT UNTIL: 20070912

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080912

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090912

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090912

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100912

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100912

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110912

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110912

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120912

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120912

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130912

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees