JP2710131B2 - Character processing apparatus and method - Google Patents

Character processing apparatus and method

Info

Publication number
JP2710131B2
JP2710131B2 JP1055066A JP5506689A JP2710131B2 JP 2710131 B2 JP2710131 B2 JP 2710131B2 JP 1055066 A JP1055066 A JP 1055066A JP 5506689 A JP5506689 A JP 5506689A JP 2710131 B2 JP2710131 B2 JP 2710131B2
Authority
JP
Japan
Prior art keywords
character pattern
pattern data
character
data
pattern
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
JP1055066A
Other languages
Japanese (ja)
Other versions
JPH02235096A (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 JP1055066A priority Critical patent/JP2710131B2/en
Publication of JPH02235096A publication Critical patent/JPH02235096A/en
Application granted granted Critical
Publication of JP2710131B2 publication Critical patent/JP2710131B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文字処理装置及び方法、詳しくはベクトルフ
ォントデータに基づいて文字パターンデータを作成する
文字処理装置及び方法に関するものである。
The present invention relates to a character processing device and method, and more particularly to a character processing device and method for creating character pattern data based on vector font data.

[従来の技術] 近年、レーザビームプリンタ等の電子写真方式の印刷
装置の出現により、その印刷品位は一段と向上してきて
いる。
[Related Art] In recent years, with the advent of electrophotographic printing apparatuses such as laser beam printers, the printing quality has been further improved.

そして、最近になつて、この種の装置にではアウトラ
インフオントを採用してきている。
Recently, outline fonts have been employed in this type of apparatus.

アウトラインフオントの特徴はその加工の容易性及び
鮮明さにあるが、逆に問題となるのがその文字パターン
を発生するまでに要する時間が通常のドツトパターンで
もつて記憶している場合より多くを必要とする点にあ
る。
Outline fonts are characterized by their ease of processing and sharpness, but on the other hand, the problem is that the time required to generate the character pattern requires more than the time required to store the normal dot pattern. It is in the point.

現在では、アウトラインフオントをその修飾情報(網
点や斜線指示等)に従つて展開したドツトパターンをキ
ヤツシユ領域に登録する。そして、再び同一文字コード
が入力されたときには、そのキヤツシユ領域からその文
字パターンを読み込みそして展開するという処理を施し
ている。
At present, a dot pattern obtained by developing an outline font in accordance with its modification information (halftone dot, hatching, etc.) is registered in the cache area. When the same character code is input again, the character pattern is read from the cache area and expanded.

そこで、展開しようとする文字が既にキヤツシユ領域
にあるかを検索する必要があるが、このとき従来では、
文字セツト識別、文字コード、大きさ及び修飾情報を用
いていた。
Therefore, it is necessary to search whether the character to be expanded is already in the cache area.
Character set identification, character code, size, and modification information were used.

[発明が解決しようとする課題] ところで、キヤツシユ領域に登録する文字パターン
は、その修飾情報に対応しているため、同一の大きさ及
び文字コードであつて、その修飾情報が異なると、再び
新規にその文字パターンを発生することが必要で、印刷
速度が低下するという欠点があつた。
[Problems to be Solved by the Invention] Since the character pattern registered in the cache area corresponds to the modification information, if the modification information has the same size and character code and the modification information is different, a new pattern is created again. However, it is necessary to generate the character pattern, and the printing speed is reduced.

また、修飾情報が異なるという理由によりキヤツシユ
領域に同一の大きさ及び文字コードが複数個登録するこ
とにより、キヤツシユ情報を増大するという問題があ
る。
Another problem is that the cache information is increased by registering the same size and a plurality of character codes in the cache area because the modification information is different.

本発明はかかる問題点に鑑みなされたものであり、修
飾文字パターンデータを出力する際には、その後に使用
される可能性の高い基本文字パターンデータをキャッシ
ュしておくことにより、限られた容量のキャッシュメモ
リを効率良く管理し、且つ、基本文字パターンデータは
勿論、修飾文字パターンデータの出力を効率良く行なう
ことを可能ならしめる文字処理装置及び方法を提供しよ
うとするものである。
The present invention has been made in view of such a problem, and when outputting the modified character pattern data, the basic character pattern data which is likely to be used later is cached, thereby limiting the capacity. It is an object of the present invention to provide a character processing device and a method capable of efficiently managing a cache memory and efficiently outputting not only basic character pattern data but also modified character pattern data.

[課題を解決するための手段] この課題を解決するため、例えば本発明の文字処理装
置は以下の構成を備える。すなわち、 ベクトルフォントデータに基づき生成された文字パタ
ーンデータを出力する文字処理装置であって、 生成された文字パターンデータをキャッシュするため
の記憶手段と、 出力すべき文字パターンデータに対応する文字パター
ンデータが前記記憶手段に記憶されているか否かを判別
する判別手段と、 該判別手段により、出力すべき文字パターンデータに
対応する文字パターンデータが前記記憶手段に記憶され
ていないと判別した場合には、出力すべき文字パターン
データに対応するベクトルフォントデータに基づいて生
成した文字パターンデータを前記記憶手段に記憶させる
制御手段とを備え、 前記判別手段は、 出力すべき文字パターンデータが修飾文字パターンデ
ータである場合には、当該出力すべき文字パターンデー
タが基本文字パターンデータでないにもかかわらず、前
記記憶手段に基本文字パターンデータが記憶されている
か否かを判別し、 前記制御手段は、 出力すべき文字パターンデータが修飾文字パターンデ
ータである場合、当該出力すべき文字パターンデータが
基本文字パターンデータではないにもかかわらず、ベク
トルフォントデータに基づき生成した基本文字パターン
データを前記記憶手段に記憶させると共に、生成した基
本文字パターンデータに基づいて修飾文字パターンデー
タを生成する ことを特徴とする。
[Means for Solving the Problem] To solve the problem, for example, a character processing device of the present invention has the following configuration. That is, a character processing device that outputs character pattern data generated based on vector font data, a storage unit for caching the generated character pattern data, and character pattern data corresponding to the character pattern data to be output. A determination unit that determines whether or not is stored in the storage unit; and if the determination unit determines that character pattern data corresponding to the character pattern data to be output is not stored in the storage unit, Control means for storing character pattern data generated based on vector font data corresponding to character pattern data to be output in the storage means, wherein the determination means determines that the character pattern data to be output is modified character pattern data. If the character pattern data to be output is Determining whether or not basic character pattern data is stored in the storage means despite the fact that the character pattern data is not character pattern data, the control means, if the character pattern data to be output is modified character pattern data, Although the character pattern data to be processed is not the basic character pattern data, the basic character pattern data generated based on the vector font data is stored in the storage means, and the modified character pattern data is generated based on the generated basic character pattern data. Is generated.

[実施例] 以下、添付図面に従つて本発明に係る実施例を詳細に
説明する。
Embodiment An embodiment according to the present invention will be described below in detail with reference to the accompanying drawings.

<装置構成の説明(第1図)> 第1図に本実施例における印刷装置の構成概略を示
す。
<Description of Apparatus Configuration (FIG. 1)> FIG. 1 shows a schematic configuration of a printing apparatus according to the present embodiment.

図中、100が本実施例における印刷装置であり、印刷
結果200を形成するものである。300は印刷データを出力
してくるホストコンピユータである。
In the figure, reference numeral 100 denotes a printing apparatus according to the present embodiment, which forms a printing result 200. Reference numeral 300 denotes a host computer that outputs print data.

印刷装置100内には、印刷装置全体を制御するCPU1−
1をはじめ、以下に示す構成を備えている。
The printing apparatus 100 includes a CPU 1-that controls the entire printing apparatus.
1 and the following configuration.

1−2はアウトラインフオントデータを記憶している
フオントメモリ、1−3キヤツシユメモリ、1−4は受
信データを格納するページバツフア、1−5は1ページ
分のイメージデータを展開するビツトマツプメモリ、1
−6は修飾パターンを生成するときに用いる各種パター
ンを記憶しているパターンメモリ(詳細は後述する)、
1−7はピツトマツプメモリ1−5に展開されたイメー
ジデータに基いて実際に印刷処理を行なうプリンタエン
ジン部である。
1-2 is a font memory for storing outline font data, 1-3 cache memory, 1-4 is a page buffer for storing received data, 1-5 is a bit map memory for developing one page of image data, 1
-6 is a pattern memory (which will be described later in detail) that stores various patterns used when generating a decoration pattern.
Reference numeral 1-7 denotes a printer engine which actually performs a printing process based on the image data developed in the pit map memory 1-5.

尚、フオントメモリ1−2には所謂アウトラインフオ
ントを生成するデータ、すなわち、各々の文字パターン
の輪郭上の点座標データが複数個記憶されている。そし
て、文字パターン発生は、それら点座標データを読み込
み、各々の点間(或いは近似する)線分で結び、その内
部を例えば全て塗り潰すことで、その文字パターンを生
成する。
The font memory 1-2 stores data for generating a so-called outline font, that is, a plurality of point coordinate data on the outline of each character pattern. In generating a character pattern, the character pattern is generated by reading the point coordinate data, connecting the points with (or approximating) line segments, and filling the interior, for example, entirely.

<処理概要の説明(第2図〜第4図)> 第2図に本実施例におけるキヤツシユメモリ1−3内
のデータ格納状態を示す。
<Description of Processing Outline (FIGS. 2 to 4)> FIG. 2 shows a data storage state in the cache memory 1-3 in the present embodiment.

図示の如く、本実施例においては、1つの文字文字パ
ターンをキヤツシユメモリ1−3に登録するときには、
その文字パターンの修飾情報に関係なく、内部が塗り潰
された文字パターンを登録する(理由は後で説明す
る)。また、文字パターンを登録するとき、その文字パ
ターンに係る基本情報を情報部として一緒に登録する。
As shown in the figure, in this embodiment, when registering one character character pattern in the cache memory 1-3,
Regardless of the modification information of the character pattern, a character pattern whose inside is filled is registered (the reason will be described later). When a character pattern is registered, basic information relating to the character pattern is also registered as an information part.

1個の文字パターンの登録エリアと情報部の内部は第
3図に示す通りである。
The registration area of one character pattern and the inside of the information part are as shown in FIG.

情報部には文字セツト識別子(文字の書体を表わすも
の、例えば明朝体、ゴシツク体等)、登録文字の文字コ
ード及びその文字パターンの大きさ(幅と高さ)が格納
されている。
The information section stores a character set identifier (indicating a character typeface, for example, Mincho, Gothic, etc.), a character code of a registered character, and the size (width and height) of the character pattern.

このようにして、新たな文字コードに対応する文字パ
ターンを発生させることが必要になる度に、塗り潰した
文字パターンをキヤツシユメモリ1−3に登録してい
く。
In this way, every time it is necessary to generate a character pattern corresponding to a new character code, the filled character pattern is registered in the cache memory 1-3.

今、キヤツシユメモリ1−3に、第2図に示す様な文
字パターン“A,B"の2つが登録されているとする。そし
て、ページバツフア1−5より、文字“A"に対すること
コードと、その修飾情報として“斜線”を入力したとす
る。
Now, it is assumed that two character patterns "A, B" as shown in FIG. 2 are registered in the cache memory 1-3. Then, it is assumed that, from the page buffer 1-5, a character code for the character "A" and "diagonal lines" as its modification information are input.

このとき、本実施例では、新規に斜線文字“A"を発生
させるべく、フオントメモリ1−2をアクセスするので
はなく、既に登録される塗り潰し文字“A"を用いて斜線
文字“A"を得ようとするものである。
At this time, in the present embodiment, instead of accessing the font memory 1-2 to generate a new oblique line character “A”, the oblique line character “A” is written using the already registered fill character “A”. It is what we are trying to get.

具体的には、パターンメモリ1−6より第4図のパタ
ーン4−2で示す斜線パターンを読み出し、そのパター
ンデータと塗り潰し文字パターン4−1を論理積するこ
とで斜線文字パターン4−3を得る。
Specifically, the oblique line pattern indicated by the pattern 4-2 in FIG. 4 is read from the pattern memory 1-6, and the pattern data and the solid character pattern 4-1 are logically ANDed to obtain the oblique line character pattern 4-3. .

尚、パターンメモリ1−6には斜線パターン4−2の
他、網点パターンなど各種パターンデータが予め記憶さ
れているものであり、CPU1−1により任意のパターンを
読み出すことがきるようになつている。
The pattern memory 1-6 stores various pattern data such as a halftone pattern in addition to the oblique line pattern 4-2, so that an arbitrary pattern can be read by the CPU 1-1. I have.

<処理手順の説明(第5図)> 第5図は本実施例におけるCPU1−1の動作処理手順を
説明するためのフローチヤートである。
<Explanation of Processing Procedure (FIG. 5)> FIG. 5 is a flowchart for explaining the operation processing procedure of the CPU 1-1 in the present embodiment.

尚、この処理に先立ち、ページバツフアメモリ1−4
には既に1ページ分のページが格納されているものとす
る。
Prior to this processing, the page buffer memory 1-4
Is assumed to already store one page.

先ず、ステツプS1でページバツフアメモリ1−4より
1文字分のデータを読み出す。そして、ステツプS2でも
つて、キヤツシユメモリ1−3内の各情報部を参照し
て、読み込んだデータの文字セツト識別子のデータが記
憶されているかを判断する。
First, in step S1, one character data is read from the page buffer memory 1-4. Then, in step S2, it is determined whether or not the data of the character set identifier of the read data is stored with reference to each information section in the cache memory 1-3.

同一文字セツト識別子が未だ登録されていないと判断
した場合には、ステツプS3に進んで、該当するアウトラ
インデータをフオントメモリ1−2に読み込み、そのデ
ータに基づいて内部が塗り潰された文字パターンを発生
(RAM1−1b上に展開)する(ステツプS4)。この後、ス
テツプS5に進んで、その文字パターンをキヤツシユメモ
リ1−3に登録する。
If it is determined that the same character set identifier has not been registered, the process proceeds to step S3, where the corresponding outline data is read into the font memory 1-2, and a character pattern whose inside is filled based on the data is generated. (Developed on RAM1-1b) (Step S4). Thereafter, the process proceeds to step S5, and the character pattern is registered in the cache memory 1-3.

一方、ステツプS2の判断でYESの場合、処理はステツ
プS6に進んで、キヤツシユメモリ1−3内の注目してい
る情報部に該当する文字コードがあるか否かを判断す
る。その存在を検出した場合には、ステツプS7に進み、
今度は同じ大きさ文字パターンが登録されているのかを
判断する。こうして、ステツプS6,S7のループを繰り返
していつて、キヤツシユメモリ1−3内の情報部を調べ
ていく。そして、どこにも同じ文字コード及び大きさの
文字パターンがないと判断した場合には、処理はステツ
プS6から、ステツプS3に進んで、該当する塗り潰しされ
た文字パターンを新規に発生させ、登録処理を行なう。
On the other hand, if the determination in step S2 is YES, the process proceeds to step S6, in which it is determined whether or not there is a character code corresponding to the information portion of interest in the cache memory 1-3. If its presence is detected, proceed to step S7,
This time, it is determined whether the same size character pattern is registered. In this way, the information section in the cache memory 1-3 is examined by repeating the loop of steps S6 and S7. If it is determined that there is no character pattern having the same character code and size anywhere, the process proceeds from step S6 to step S3, in which a corresponding filled character pattern is newly generated, and the registration process is performed. Do.

また、ステツプS6,S7のループ処理を繰り返している
最中、入力した文字コード及びその文字の大きさと同一
の文字パターンが登録されていることを検出したときに
は、ステツプS8に進み、そのキヤツシユメモリ1−3よ
り該当する文字パターンを読み出す。
If it is detected during the loop processing of steps S6 and S7 that the entered character code and the same character pattern as the character size are registered, the process proceeds to step S8, and the cache memory is read. The corresponding character pattern is read from 1-3.

さて、新規に内部が塗り潰された文字パターンを発生
した後、もしくはキヤツシユメモリ1−3より内部が塗
り潰された文字パターンを読み出した後は、ステツプS9
以降の処理を実行する。
Now, after generating a newly filled character pattern or reading out a filled character pattern from the cache memory 1-3, step S9 is executed.
Execute the following processing.

ステツプS9では、入力した文字コードの修飾情報か
ら、当該文字が修飾文字か否かを判断する。通常文字の
場合、修飾情報はないので、ステツプS10に進み、得ら
れた塗り潰し文字パターンでもつてビツトマツプメモリ
1−5に展開する処理を行なう。また、斜線字指定等の
修飾情報があつた場合には、ステツプS11に進んで、パ
ターンメモリ1−6内の該当するパターンデータと塗り
潰し文字パターンとを論理演算する。そして、ステツプ
S10の処理を行なう。
In step S9, it is determined from the input modification information of the character code whether or not the character is a modification character. In the case of normal characters, since there is no decoration information, the process proceeds to step S10, and processing for expanding the obtained filled character pattern in the bit map memory 1-5 is performed. If there is modification information such as designation of an oblique character, the flow advances to step S11 to logically operate the corresponding pattern data in the pattern memory 1-6 and the filled character pattern. And step
The processing of S10 is performed.

こうして、次のステツプS12でもつて、1ページ分の
文字パターンの展開処理が終了したと判断されるまで、
上述したステツプS1以下の処理を繰り返す。そして、1
ページ分の文字パターンの展開処理が完了したと判断し
た場合には、処理はステツプS13に進んで、ビツトマツ
プメモリ1−5内のイメージを順次プリンタエンジン部
1−7に出力することで、印刷処理を行う。
Thus, in the next step S12, until it is determined that the development processing of the character pattern for one page has been completed,
The above steps S1 and subsequent steps are repeated. And 1
If it is determined that the character pattern development processing for the page has been completed, the process proceeds to step S13, in which the images in the bit map memory 1-5 are sequentially output to the printer engine unit 1-7, so that printing is performed. Perform processing.

このように、異なつた修飾文字を入力しても、キヤツ
シユメモリ1−3に同一文字コードで、且つ同一大きさ
の塗り潰し文字パターンが登録されていれば、わざわざ
フオントメモリ1−2よりアウトラインデータを読み出
しそして文字を発生させる手間が省けるので、印刷処理
は高速なる。
As described above, even if a different modifier character is input, if the same character code and the same size of the filled character pattern are registered in the cache memory 1-3, the outline data from the font memory 1-2 is bothersome. The printing process can be performed at a high speed because it is not necessary to read and generate characters.

尚、実施例では、塗り潰し文字パターンとパターンメ
モリ1−6内に記憶されているパターンデータとを論理
演算して、所望としている文字パターンを発生させた
が、その文字パターンそのものでもつて白抜きパターン
を生成しても構わない。
In the embodiment, a desired character pattern is generated by performing a logical operation on the filled character pattern and the pattern data stored in the pattern memory 1-6. May be generated.

この場合、第6図に示すように、キヤツシユメモリ1
−3内に登録された文字パターン6−1を一旦反転させ
文字パターン6−2を生成する。この後、ビツトマツプ
メモリ1−5内に展開しておいて黒塗り領域6−3と論
理席することで白抜き文字パターン6−5を得る。或い
は文字パターン6−1を黒塗り領域6−3に展開する
と、排他的論理和を取るようにすれば良い。
In this case, as shown in FIG.
-3 is once inverted to generate a character pattern 6-2. Thereafter, the character pattern is expanded in the bit map memory 1-5 and logically overlaps with the black area 6-3 to obtain an outline character pattern 6-5. Alternatively, when the character pattern 6-1 is developed in the blackened area 6-3, an exclusive OR may be obtained.

[第2の実施例の説明(第7図〜第11図)] 上述した第1の実施例では、塗り潰し文字パターンを
基に種々の修飾文字を生成した。しかしながら、基本と
なるのがこの塗り潰し文字パターンのみに限定されるも
のではない。
[Explanation of Second Embodiment (FIGS. 7 to 11)] In the first embodiment described above, various modified characters are generated based on the solid character pattern. However, the basis is not limited to only this filled character pattern.

本第2の実施例においては、輪郭パターンを基に修飾
文字を生成する場合を説明する。
In the second embodiment, a case will be described in which a decoration character is generated based on an outline pattern.

<キヤツシユメモリの説明(第7図)> 第7図は本第2の実施例におけるキヤツシユメモリ1
−3内に登録された文字情報(情報部と輪郭パターン)
を示している。
<Description of Cache Memory (FIG. 7)> FIG. 7 shows the cache memory 1 according to the second embodiment.
Character information registered in -3 (information part and contour pattern)
Is shown.

情報部は前述した第1の実施例と同様、文字セツト識
別子、文字コードそして文字の大きさ情報で構成されて
いる。
The information section is composed of a character set identifier, a character code, and character size information, as in the first embodiment.

<輪郭パターンの説明(第8図)> 第8図(a)は実施例における文字A″の輪郭パター
ンを示している。尚、破線(例えば破線8−2等)は文
字の形状を理解しやすいようにし付加させたものであつ
て、実際に対応するドツトが存在するのではない。そし
て、線分8−7に沿つてスキヤンしていつたとき、その
輪郭との交点(8−3〜6)が必ず偶数個存在するよう
になつている。
<Explanation of Outline Pattern (FIG. 8)> FIG. 8A shows an outline pattern of a character A ″ in the embodiment. A broken line (for example, a broken line 8-2) indicates the shape of the character. It is added in such a way that it does not have a corresponding dot, and when scanning along the line segment 8-7, the intersection with the contour (8-3 to 6) ) Always exist evenly.

そして、奇数個目の交点から偶数個目の交点までの領
域(範囲)に対しては、第8図(b)のパターンデータ
の対応する領域のドツト情報を採用する。これによつて
第8図(c)のような斜線文字を生成することが可能と
なる。因に、第8図(b)のパターンを塗り潰されたパ
ターンにした場合には、通常の文字パターンが生成され
ることになる。また、網目模様のパターンであれば、網
点文字を生成することができることになる。
For the area (range) from the odd-numbered intersection to the even-numbered intersection, the dot information of the area corresponding to the pattern data in FIG. 8B is adopted. This makes it possible to generate hatched characters as shown in FIG. 8 (c). By the way, when the pattern of FIG. 8 (b) is a solid pattern, a normal character pattern is generated. If the pattern is a halftone pattern, a halftone character can be generated.

<処理手順の説明(第9図)> 上述した原理でもつて、輪郭パターンから文字パター
ンを生成するわけである。第9図を用いた本第2の実施
例におけるCPU1−1の処理手順を説明する。
<Explanation of Processing Procedure (FIG. 9)> Based on the above-described principle, a character pattern is generated from an outline pattern. The processing procedure of the CPU 1-1 in the second embodiment will be described with reference to FIG.

先ず、ステツプS21でページバツフアメモリ1−4よ
り1文字分のデータを読み出す。そして、ステツプS22
でもつて、キヤツシユメモリ1−3内の各情報部を参照
して、読み込んだデータに対する文字セツト識別子が記
憶されているかを判断する。
First, in step S21, data for one character is read from the page buffer memory 1-4. Then, step S22
Then, it is determined whether or not the character set identifier for the read data is stored with reference to each information section in the cache memory 1-3.

同一文字セツト識別子が未だ登録されていないと判断
した場合には、ステツプS23に進んで、該当する輪郭を
形成する座標データをフオントメモリ1−2より読み込
み、そのデータに基づいて輪郭文字パターンを発生(RA
M1−1b上に展開)する(ステツプS24)。この後、ステ
ツプS25に進んで、その輪郭文字パターンをキヤツシユ
メモリ1−3に登録する。
If it is determined that the same character set identifier has not been registered, the process proceeds to step S23, where the coordinate data forming the corresponding contour is read from the font memory 1-2, and a contour character pattern is generated based on the data. (RA
It is developed on M1-1b) (Step S24). Thereafter, the flow advances to step S25 to register the outline character pattern in the cache memory 1-3.

一方、ステツプS22の判断でYESの場合、処理はステツ
プS26に進んで、キヤツシユメモリ1−3内の注目して
いる情報部に該当する文字コードがあるか否かを判断す
る。その存在を検出した場合には、ステツプS27に進
み、今度は同じ大きさ文字パターンが登録されているの
かを判断する。こうして、ステツプS26,S27のループを
繰り返していつて、キヤツシユメモリ1−3内の情報部
を調べていく。そして、どこにも同じ文字コード及び大
きさの輪郭文字パターンがないと判断した場合には、処
理はステツプS26からから、ステツプS23に進んで、該当
する輪郭文字パターンを新規に発生させ、登録処理を行
なう。
On the other hand, if the determination in step S22 is YES, the process proceeds to step S26, in which it is determined whether there is a character code corresponding to the information portion of interest in the cache memory 1-3. If the presence is detected, the process proceeds to step S27, and it is determined whether the same size character pattern is registered. Thus, the information section in the cache memory 1-3 is checked by repeating the loop of steps S26 and S27. If it is determined that no outline character pattern having the same character code and size exists anywhere, the process proceeds from step S26 to step S23, where a new outline character pattern is generated, and the registration process is performed. Do.

また、ステツプS26,S27のループ処理を繰り返してい
る最中、入力した文字コード及びその文字の大きさと同
一の輪郭文字パターンの登録を検出したときには、処理
はステツプS28に進み、そのキヤツシユメモリ1−3よ
り該当する輪郭文字パターンを読み出す。
If the registration of the input character code and the outline character pattern having the same size as that of the character is detected while the loop processing of steps S26 and S27 is repeated, the process proceeds to step S28, and the cache memory 1 is read. The corresponding outline character pattern is read from -3.

さて、新規に輪郭文字パターンを発生した後、もしく
はキヤツシユメモリ1−3より輪郭文字パターンを読み
出した後は、ステツプS29に進んで、入力した文字コー
ドの修飾情報に基づいて修飾文字パターンを生成させ
る。尚このとき、入力データに修飾指示情報がないとき
(通常文字指定のとき)には、パターンメモリ1−6内
に記憶された塗り潰しパターンに従つて文字パターンを
発生させる。この後、処理はステツプS30に進み、得ら
れた文字パターンをビツトマツプメモリ1−5に展開す
る。
After a new outline character pattern is generated or after the outline character pattern is read from the cache memory 1-3, the process proceeds to step S29, where a modified character pattern is generated based on the input character code modification information. Let it. At this time, when there is no decoration instruction information in the input data (when normal characters are specified), a character pattern is generated according to the filling pattern stored in the pattern memory 1-6. Thereafter, the process proceeds to step S30, and the obtained character pattern is developed in the bit map memory 1-5.

以上の処理を1ページ分行つた後は、先に説明した第
1の実施例と同様、印刷処理を行なう。
After the above processing has been performed for one page, the printing processing is performed as in the first embodiment described above.

このように、本第2の実施例においても、異なつた修
飾文字を入力しても、キヤツシユメモリ1−3に同一文
字コードでしかも同一大きさの輪郭文字パターンが登録
されていれば、わざわざフオントメモリ1−2よりアウ
トラインデータを読み出しそして文字を発生させる手間
が省けるので、印刷処理は高速なる。しかも、修飾形態
の異なる同一コードの文字パターンがキヤツシユメモリ
1−3に格納されることがないので、キヤツシユメモリ
1−3の使用効率を上げることが可能となる。
As described above, even in the second embodiment, even if different modifier characters are input, if the outline character pattern having the same character code and the same size is registered in the cache memory 1-3, it is bothersome. Since it is not necessary to read outline data from the font memory 1-2 and generate characters, the printing process is performed at high speed. Moreover, since character patterns of the same code having different modification forms are not stored in the cache memory 1-3, it is possible to increase the use efficiency of the cache memory 1-3.

<第2の実施例における応用例(第10,11図)> 第10図(a)は水平ラインテーブルを示しており、第
8図(a)における輪郭パターンとして描かれない線分
(破線)をスキヤン番号(Y座標に対応している)と開
始X座標、終了Y座標要素として構成させたものであ
る。すなわち、このテーブルでもつて第10図(b)に示
す実線で示した線分を再現することができる。
<Application Example in Second Embodiment (FIGS. 10 and 11)> FIG. 10 (a) shows a horizontal line table, and a line segment (broken line) not drawn as a contour pattern in FIG. 8 (a). Are configured as a scan number (corresponding to the Y coordinate), a start X coordinate, and an end Y coordinate element. That is, the line segment shown by the solid line in FIG. 10B can be reproduced with this table.

このテーブルを基にし、上述した第2の実施例で生成
された第8図(c)の文字パターンに、第8図(a)の
輪郭パターンと第10図(b)の輪郭パターンを調理和す
ることで、第11図に示すような輪郭を有する斜線文字を
生成することが可能となる。
Based on this table, the outline pattern of FIG. 8 (a) and the outline pattern of FIG. 10 (b) are added to the character pattern of FIG. 8 (c) generated in the second embodiment described above. By doing so, it is possible to generate hatched characters having an outline as shown in FIG.

尚、この場合、フオントメモリ1−2には、輪郭を生
成するための座標データのうち水平部分を生成する線分
の座標データを分離した状態、換言すれば、どの座標デ
ータが水平成分を示しているのか否かがわかるようにし
て記憶しておくことが必要になる。
In this case, in the font memory 1-2, the coordinate data for generating the outline is separated from the coordinate data of the line segment for generating the horizontal portion, in other words, which coordinate data indicates the horizontal component. It is necessary to memorize it so that it can be determined whether or not it is.

[発明の効果] 以上説明したように本発明によれば、修飾文字パター
ンデータを出力する際には、その後に使用される可能性
の高い基本文字パターンデータをキャッシュしておくこ
とにより、限られた容量のキャッシュメモリ容量を効率
良く管理し、且つ、基本文字パターンデータは勿論、修
飾文字パターンデータの出力を効率良く行なうことが可
能になる。
[Effect of the Invention] As described above, according to the present invention, when outputting modified character pattern data, basic character pattern data that is likely to be used later is cached, thereby limiting It is possible to efficiently manage the cache memory capacity of the large capacity and efficiently output the modified character pattern data as well as the basic character pattern data.

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

第1図は本実施例における印刷装置のブロツク構成図、 第2図は第1の実施例におけるキヤツシユメモリのデー
タ格納状態を示す図、 第3図は第1の実施例におけるキヤツシユメモリのデー
タフオーマツトを示す図、 第4図は第1の実施例における斜線文字の発生原理を説
明するための図、 第5図は第1の実施例におけるCPUの動作処理内容を示
すフローチヤート、 第6図は第1の実施例において反転文字の発生の原理を
説明するための図、 第7図は第2の実施例におけるキヤツシユメモリのデー
タ格納状態を示す図、 第8図(a)〜(c)は第2の実施例における斜線文字
の発生の原理を説明するための図、 第9図は第2の実施例におけるCPUの動作処理内容を示
すフローチヤート、 第10,第11図は第2の実施例における輪郭付き斜線文字
の発生の原理を説明するための図である。 図中、1−1……CPU、1−2……フオントメモリ、1
−3……キヤツシユメモリ、1−4……ページバツフア
メモリ、1−5……ビツトマツプメモリ、1−6……パ
ターンメモリ、1−7……プリンタエンジン部である。
FIG. 1 is a block diagram of a printing apparatus according to this embodiment, FIG. 2 is a diagram showing a data storage state of a cache memory in the first embodiment, and FIG. 3 is a block diagram of the cache memory in the first embodiment. FIG. 4 is a diagram showing a data format, FIG. 4 is a diagram for explaining the principle of generation of hatched characters in the first embodiment, FIG. 5 is a flowchart showing operation processing contents of a CPU in the first embodiment, FIG. FIG. 6 is a diagram for explaining the principle of generation of inverted characters in the first embodiment, FIG. 7 is a diagram showing a data storage state of the cache memory in the second embodiment, and FIGS. (C) is a diagram for explaining the principle of generation of hatched characters in the second embodiment, FIG. 9 is a flowchart showing the operation processing contents of the CPU in the second embodiment, and FIGS. Outlined hatched character in the second embodiment It is a diagram for explaining the principle of generation. In the figure, 1-1: CPU, 1-2: Font memory, 1
-3, a cache memory, 1-4, a page buffer memory, 1-5, a bit map memory, 1-6, a pattern memory, 1-7, a printer engine unit.

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ベクトルフォントデータに基づき生成され
た文字パターンデータを出力する文字処理装置であっ
て、 生成された文字パターンデータをキャッシュするための
記憶手段と、 出力すべき文字パターンデータに対応する文字パターン
データが前記記憶手段に記憶されているか否かを判別す
る判別手段と、 該判別手段により、出力すべき文字パターンデータに対
応する文字パターンデータが前記記憶手段に記憶されて
いないと判別した場合には、出力すべき文字パターンデ
ータに対応するベクトルフォントデータに基づいて生成
した文字パターンデータを前記記憶手段に記憶させる制
御手段とを備え、 前記判別手段は、 出力すべき文字パターンデータが修飾文字パターンデー
タである場合には、当該出力すべき文字パターンデータ
が基本文字パターンデータでないにもかかわらず、前記
記憶手段に基本文字パターンデータが記憶されているか
否かを判別し、 前記制御手段は、 出力すべき文字パターンデータが修飾文字パターンデー
タである場合、当該出力すべき文字パターンデータが基
本文字パターンデータではないにもかかわらず、ベクト
ルフォントデータに基づき生成した基本文字パターンデ
ータを前記記憶手段に記憶させると共に、生成した基本
文字パターンデータに基づいて修飾文字パターンデータ
を生成する ことを特徴とする文字処理装置。
1. A character processing device for outputting character pattern data generated based on vector font data, comprising: storage means for caching the generated character pattern data; and character data corresponding to the character pattern data to be output. Determining means for determining whether character pattern data is stored in the storage means; and determining that the character pattern data corresponding to the character pattern data to be output is not stored in the storage means. Control means for storing the character pattern data generated based on the vector font data corresponding to the character pattern data to be output in the storage means. If it is character pattern data, the character pattern data to be output is Determining whether or not basic character pattern data is stored in the storage means despite the fact that the character pattern data is not the present character pattern data.If the character pattern data to be output is modified character pattern data, the control means Although the character pattern data to be output is not the basic character pattern data, the basic character pattern data generated based on the vector font data is stored in the storage means, and the modified character pattern is generated based on the generated basic character pattern data. A character processing device for generating data.
【請求項2】更に、前記文字パターンデータに基づき印
刷する印刷手段を備えることを特徴とする請求項第1項
に記載の文字処理装置。
2. The character processing apparatus according to claim 1, further comprising printing means for printing based on said character pattern data.
【請求項3】前記ベクトルフォントデータは、アウトラ
インフォントデータであることを特徴とする請求項第1
項に記載の文字処理装置。
3. The method according to claim 1, wherein said vector font data is outline font data.
A character processing device according to the item.
【請求項4】ベクトルフォントデータに基づき生成され
た文字パターンデータを出力する文字処理方法であっ
て、 生成された文字パターンデータをキャッシュ用メモリに
記憶させる記憶工程と、 出力すべき文字パターンデータに対応する文字パターン
データが前記キャッシュ用メモリに記憶されているか否
かを判別する判別工程と、 該判別工程により、出力すべき文字パターンデータに対
応する文字パターンデータが前記キャッシュ用メモリに
記憶されていないと判別した場合には、出力すべき文字
パターンデータに対応するベクトルフォントデータに基
づいて生成した文字パターンデータを前記キャッシュ用
メモリに記憶させる制御工程とを備え、 前記判別工程は、 出力すべき文字パターンデータが修飾文字パターンデー
タである場合には、当該出力すべき文字パターンデータ
が基本文字パターンデータでないにもかかわらず、前記
キャッシュ用メモリに基本文字パターンデータが記憶さ
れているか否かを判別し、 前記制御工程は、 出力すべき文字パターンデータが修飾文字パターンであ
る場合、当該出力すべき文字パターンデータが基本文字
パターンデータではないにもかかわらず、ベクトルフォ
ントデータに基づき生成した基本文字パターンデータを
前記キャッシュ用メモリに記憶させると共に、生成した
基本文字パターンデータに基づいて修飾文字パターンデ
ータを生成する ことを特徴とする文字処理方法。
4. A character processing method for outputting character pattern data generated based on vector font data, comprising: a storage step of storing the generated character pattern data in a cache memory; A determining step of determining whether or not corresponding character pattern data is stored in the cache memory; and, by the determining step, character pattern data corresponding to the character pattern data to be output is stored in the cache memory. If it is determined that there is no character pattern data, a control step of storing the character pattern data generated based on the vector font data corresponding to the character pattern data to be output in the cache memory is provided. When character pattern data is modified character pattern data Determines whether or not the basic character pattern data is stored in the cache memory even though the character pattern data to be output is not the basic character pattern data. When the data is a modified character pattern, the basic character pattern data generated based on the vector font data is stored in the cache memory, and the generated character pattern data is not the basic character pattern data. A character processing method characterized by generating modified character pattern data based on the basic character pattern data obtained.
【請求項5】更に文字パターンに基づき印刷させる印刷
工程を備えることを特徴とする請求項第4項に記載の文
字処理方法。
5. The character processing method according to claim 4, further comprising a printing step of printing based on the character pattern.
【請求項6】前記ベクトルフォントデータは、アウトラ
インフォントデータであることを特徴とする請求項第4
項に記載の文字処理方法。
6. The system according to claim 4, wherein said vector font data is outline font data.
Character processing method described in section.
JP1055066A 1989-03-09 1989-03-09 Character processing apparatus and method Expired - Fee Related JP2710131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1055066A JP2710131B2 (en) 1989-03-09 1989-03-09 Character processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1055066A JP2710131B2 (en) 1989-03-09 1989-03-09 Character processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH02235096A JPH02235096A (en) 1990-09-18
JP2710131B2 true JP2710131B2 (en) 1998-02-10

Family

ID=12988318

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1055066A Expired - Fee Related JP2710131B2 (en) 1989-03-09 1989-03-09 Character processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2710131B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60162286A (en) * 1984-02-02 1985-08-24 日本電気株式会社 Character pattern generator
JPS6157987A (en) * 1984-08-29 1986-03-25 株式会社東芝 Character pattern accentuation control system
JPS62208090A (en) * 1986-03-10 1987-09-12 キヤノン株式会社 Image processor
JPS6346429A (en) * 1987-05-13 1988-02-27 Minolta Camera Co Ltd Flash system
JP2699976B2 (en) * 1987-03-17 1998-01-19 キヤノン株式会社 Character generator

Also Published As

Publication number Publication date
JPH02235096A (en) 1990-09-18

Similar Documents

Publication Publication Date Title
JP2911470B2 (en) Character processing apparatus and method
JP2610993B2 (en) Information processing apparatus and method
JP2710131B2 (en) Character processing apparatus and method
KR960010410B1 (en) Output method and apparatus
JPH0425891A (en) Pattern expansion system
JP2845380B2 (en) Printing apparatus and control method thereof
JP2661742B2 (en) Character processor
JPH01290448A (en) Character generator
JP3450869B2 (en) Bit image data generation device and bit image data generation method
JP2710140B2 (en) Output control device
JP3054157B2 (en) Character processing device and character processing method
JPH06274145A (en) Character processor
JP3864520B2 (en) Print processing apparatus and print processing method
JP3121124B2 (en) Pattern generator and control method thereof
JP2598125B2 (en) Output control device
JP2910154B2 (en) Character generator
JP3651214B2 (en) Print processing apparatus and print processing method
JP2758875B2 (en) Registered character display system
JPH02150895A (en) Image data processor
JPH03112668A (en) Printer
JPH08310060A (en) Printing device, printing system, and method for printing
JPH02241267A (en) Picture information processor
JPH04350897A (en) Method and device for generating character
JPH09198378A (en) Image processor and image processing method
JPH0439071A (en) Image recorder

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees