JP3119095B2 - Character storage - Google Patents

Character storage

Info

Publication number
JP3119095B2
JP3119095B2 JP06253591A JP25359194A JP3119095B2 JP 3119095 B2 JP3119095 B2 JP 3119095B2 JP 06253591 A JP06253591 A JP 06253591A JP 25359194 A JP25359194 A JP 25359194A JP 3119095 B2 JP3119095 B2 JP 3119095B2
Authority
JP
Japan
Prior art keywords
rectangular
shape
character
data
rectangular 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
JP06253591A
Other languages
Japanese (ja)
Other versions
JPH08123393A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP06253591A priority Critical patent/JP3119095B2/en
Publication of JPH08123393A publication Critical patent/JPH08123393A/en
Application granted granted Critical
Publication of JP3119095B2 publication Critical patent/JP3119095B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (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 storage device for storing data in which the shape of a character is composed of linear elements.

【0002】[0002]

【従来の技術】従来、文字や記号等のキャラクタを記憶
させる方式としては、文字や記号の輪郭データ(以下、
アウトラインデータと称す)を用いるアウトライン方式
があった。この方式の文字記憶装置は、指定された文字
コードに従い記憶部より文字の形状情報を読みだし、出
力装置が解釈可能な形式のアウトラインデータに変換し
た後、出力装置にデータを出力する。出力装置では、文
字記憶装置から入力した文字のアウトラインデータを任
意の文字サイズにスケーリングした後、ドットデータに
変換し、変換されたデータはレーザプリンタ等の出力機
器から出力されていた。
2. Description of the Related Art Conventionally, as a method of storing a character such as a character or a symbol, contour data of the character or the symbol (hereinafter, referred to as "contour data") is used.
Outline data). This type of character storage device reads character shape information from a storage unit in accordance with a designated character code, converts the information into outline data in a format that can be interpreted by the output device, and then outputs the data to the output device. In an output device, outline data of a character input from a character storage device is scaled to an arbitrary character size and then converted to dot data, and the converted data is output from an output device such as a laser printer.

【0003】この方式では、文字の形状データは1つ以
上のアウトラインデータから構成され、更に、アウトラ
インデータは直線部分と曲線部分との組合せからなる閉
曲線として与えられている。このアウトラインデータを
指定された任意の文字サイズに拡大、または縮小した
後、出力装置の解像度に応じて複数行×複数列の画素を
有する画素スクリーンに重ね合わせ、アウトラインデー
タとの関係が一定基準を満たす画素をオンとすることで
ドットデータを生成する。
In this system, character shape data is composed of one or more outline data, and the outline data is given as a closed curve composed of a combination of a straight line portion and a curved portion. After enlarging or reducing the outline data to a specified character size, the outline data is superimposed on a pixel screen having a plurality of rows and a plurality of columns of pixels according to the resolution of the output device. The dot data is generated by turning on the filled pixels.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
アウトライン方式では、文字のアウトラインを構成する
各頂点の座標値をすべて記憶する必要があるため、デー
タ量が増大する傾向があった。特に、日本語プリンタ等
の場合、文字数が多く、しかも漢字においては「田」、
「曲」、「口」、「日」、「目」、「中」等数多くの文
字で矩形パターンが用いられているにもかかわらず、従
来から単純に直線要素の組合せで記憶する方式が採られ
ており、ますますデータ量の増大につながっていた。
However, in the conventional outline method, it is necessary to store all coordinate values of vertices constituting the outline of a character, and thus the data amount tends to increase. In particular, in the case of Japanese printers, etc., the number of characters is large,
In spite of the fact that rectangular patterns are used for many characters such as “song”, “mouth”, “day”, “eye”, and “medium”, a method of storing simple combinations of linear elements has conventionally been adopted. This has led to an ever-increasing amount of data.

【0005】例えば、図7は、図3の形状を従来の方式
で記憶したものである。ここでコマンド「M」は、現在
の位置座標からパラメータとして与えられる位置座標ま
での移動を表わし、コマンド「L」は、現在の位置座標
からパラメータとして与えられる位置座標まで線を引く
ことを表わし、コマンド「C」は、現在の位置座標から
現在描画している閉曲線の開始点座標までの線引きを表
わし、コマンド「E」は、アウトラインデータの終了を
表わしている。このように、5つの矩形の各四隅の座標
データをパラメータとして持っていた。
[0007] For example, FIG. 7 shows the shape of FIG. 3 stored in a conventional manner. Here, the command “M” represents movement from the current position coordinates to the position coordinates given as a parameter, the command “L” represents drawing a line from the current position coordinates to the position coordinates given as a parameter, The command "C" represents a line from the current position coordinates to the start point coordinate of the currently drawn closed curve, and the command "E" represents the end of the outline data. Thus, the coordinate data of each of the four corners of the five rectangles was used as a parameter.

【0006】本発明は、日本語プリンタを初めとした、
膨大な文字数を記憶する文字記憶装置において、特に矩
形パターンに着目し、効率的に文字の形状を記憶するこ
とができる文字記憶装置を提供することを目的としてい
る。
The present invention is based on Japanese language printers.
In a character storage device that stores an enormous number of characters, it is an object of the present invention to provide a character storage device capable of efficiently storing the shape of a character by paying particular attention to a rectangular pattern.

【0007】[0007]

【課題を解決するための手段】この目的を達成するため
に本発明の請求項1に記載の文字記憶装置は、文字形状
を直線要素または曲線要素で構成されるデータとして予
め記憶手段に記憶している文字記憶装置において、文字
形状を構成する底辺のy座標と高さとが等しい複数の矩
形形状から構成される矩形パターンを、一つの矩形形状
の一つの頂点の位置情報と、各矩形形状に共通な高さ
と、各矩形形状の幅と、各矩形形状間の間隔とで構成さ
れる矩形パターンデータとして記憶する第一の記憶手段
と、前記第一の記憶手段に記憶された矩形パターンデー
タを解析して、その矩形パターンの形状を復元する第一
の復元手段とを備えている。
In order to achieve this object, a character storage device according to a first aspect of the present invention stores a character shape in advance in a storage means as data composed of linear elements or curved elements. in it are character storage device, character
Multiple rectangles with the same y-coordinate and height as the bottom of the shape
A rectangular pattern consisting of a shape
Position information of one vertex of, and height common to each rectangular shape
, The width of each rectangular shape, and the interval between each rectangular shape.
Storage means for storing as rectangular pattern data to be stored
And first restoration means for analyzing the rectangular pattern data stored in the first storage means and restoring the shape of the rectangular pattern.

【0008】また、請求項2に記載の文字記憶装置は、
文字形状を直線要素または曲線要素で構成されるデータ
として予め記憶手段に記憶している文字記憶装置におい
て、文字形状を構成する左側辺のx座標と幅とが等しい
複数の矩形形状から構成され る矩形パターンを、一つの
矩形形状の一つの頂点の位置情報と、各矩形形状に共通
な幅と、各矩形形状の高さと、各矩形形状間の間隔とで
構成される矩形パターンデータとして記憶する第二の記
憶手段と、前記第二の記憶手段に記憶された矩形パター
ンデータを解析して、その矩形パターンの形状を復元す
る第二の復元手段とを備えている。
[0008] The character storage device according to claim 2 is
Character storage device smell stored is in advance in the storage unit as configured data character form a linear element or profile elements
And the x coordinate and width of the left side of the character shape are equal
A rectangular pattern that consists of a plurality of rectangular, one
Position information of one vertex of the rectangular shape and common to each rectangular shape
Width, the height of each rectangular shape, and the interval between each rectangular shape
Second note to be stored as composed rectangular pattern data
Storage means and second restoration means for analyzing the rectangular pattern data stored in the second storage means and restoring the shape of the rectangular pattern.

【0009】請求項3に記載の文字記憶装置は、文字形
状を直線要素または曲線要素で構成されるデータとして
予め記憶手段に記憶している文字記憶装置において、文
字形状を構成する左側辺のx座標と幅とが等しい複数の
矩形形状と、文字形状を構成する底辺のy座標と高さと
が等しい複数の矩形形状とから構成される縦横それぞれ
複数配置された矩形パターンを、一つの矩形形状の一つ
の頂点の位置情報と、各矩形形状に共通な幅と、各矩形
形状に共通な高さと、各矩形形状間の間隔とで構成され
る矩形パターンデータとして記憶する第三の記憶手段
と、前記第三の記憶手段に記憶された矩形パターンデー
タを解析して、その矩形パターンの形状を復元する第三
の復元手段とを備えている。
[0009] character storage device according to claim 3, in the character storage device stored is in advance in the storage unit as configured data character form a linear element or profile elements, sentences
The x-coordinate and width of the left side of the character
The rectangular shape, and the y coordinate and height of the base that constitutes the character shape
Vertical and horizontal composed of multiple rectangular shapes
One of the rectangular patterns arranged in one
Position information of each vertex, the width common to each rectangular shape, and each rectangle
Consists of a common height for the shapes and the spacing between each rectangular shape
Storage means for storing as rectangular pattern data
And third restoration means for analyzing the rectangular pattern data stored in the third storage means and restoring the shape of the rectangular pattern.

【0010】[0010]

【作用】上記の構成を有する本発明の請求項1に記載の
文字記憶装置において、第一の記憶手段は、文字形状を
構成する底辺のy座標と高さとが等しい複数の矩形形状
から構成される矩形パターンを、一つの矩形形状の一つ
の頂点の位置情報と、各矩形形状に共通な高さと、各矩
形形状の幅と、各矩形形状間の間隔とで構成される矩形
パターンデータとして記憶し、前記第一の復元手段は、
前記第一の記憶手段に記憶された矩形パターンデータを
解析して、その矩形パターンの形状を復元する。即ち、
前記位置情報を基準として、前記高さ、前記幅及び前記
間隔等の各データを用いることにより各矩形形状の四隅
の座標を復元することができる。
In the character storage device according to the first aspect of the present invention having the above structure, the first storage means stores the character shape.
Multiple rectangular shapes with the same y-coordinate and height as the base to be configured
A rectangular pattern consisting of
Position information of each vertex, the height common to each rectangular shape,
A rectangle consisting of the width of the shape and the spacing between each rectangle
Stored as pattern data, wherein the first restoration means comprises:
The rectangular pattern data stored in the first storage means is analyzed to restore the shape of the rectangular pattern. That is,
Based on the position information, the height, the width and the
Four corners of each rectangular shape by using each data such as interval
Can be restored.

【0011】請求項2に記載の文字記憶装置において、
第二の記憶手段は、文字形状を構成する左側辺のx座標
と幅とが等しい複数の矩形形状から構成される矩形パタ
ーンを、一つの矩形形状の一つの頂点の位置情報と、各
矩形形状に共通な幅と、各矩 形形状の高さと、各矩形形
状間の間隔とで構成される矩形パターンデータとして記
憶し、前記第二の復元手段は、前記第二の記憶手段に記
憶された矩形パターンデータを解析して、その矩形パタ
ーンの形状を復元する。即ち、前記位置情報を基準とし
て、前記幅、前記高さ及び前記間隔等の各データを用い
ることにより各矩形形状の四隅の座標を復元することが
できる。
[0011] In the character storage device according to claim 2,
The second storage means stores the x coordinate of the left side constituting the character shape.
Pattern consisting of multiple rectangular shapes with the same width
The position information of one vertex of one rectangular shape and each
Common width in a rectangular shape, and height of each rectangle shape, and stored as a rectangular pattern data composed of the distance between the rectangular shape and the second restoring means is stored in said second storage means The obtained rectangular pattern data is analyzed to restore the shape of the rectangular pattern. That is, based on the position information
Using the data such as the width, the height, and the interval.
To restore the coordinates of the four corners of each rectangular shape.
it can.

【0012】請求項3に記載の文字記憶装置において、
第三の記憶手段は、文字形状を構成する左側辺のx座標
と幅とが等しい複数の矩形形状と、文字形状を構成する
底辺のy座標と高さとが等しい複数の矩形形状とから構
成される縦横それぞれ複数配置された矩形パターンを、
一つの矩形形状の一つの頂点の位置情報と、各矩形形状
に共通な幅と、各矩形形状に共通な高さと、各矩形形状
間の間隔とで構成される矩形パターンデータとして記憶
し、前記第三の復元手段は、前記第三の記憶手段に記憶
された矩形パターンデータを解析して、その矩形パター
ンの形状を復元する。即ち、前記位置情報を基準とし
て、前記幅、前記高さ及び前記間隔等の各データを用い
ることにより各矩形形状の四隅の座標を復元することが
できる。
[0012] In the character storage device according to claim 3,
The third storage means comprises a plurality of rectangular shapes having the same x-coordinate and width on the left side constituting the character shape and a character shape.
It is composed of a plurality of rectangular shapes whose height is equal to the y coordinate of the base.
The multiple rectangular patterns arranged vertically and horizontally are
The position information of one vertex of one rectangular shape, the width common to each rectangular shape , the height common to each rectangular shape, and stored as rectangular pattern data including the interval between each rectangular shape, The third restoration unit analyzes the rectangular pattern data stored in the third storage unit and restores the shape of the rectangular pattern. That is, based on the position information
Using the data such as the width, the height, and the interval.
To restore the coordinates of the four corners of each rectangular shape.
it can.

【0013】[0013]

【実施例】以下、本発明を具体化した文字記憶装置の一
実施例を図面を参照して詳細に説明する。図4は、本発
明を適用したレーザープリンタの制御回路のうち、主と
してアウトラインフォントデータをドットデータに変換
し、出力する部分を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a character storage device embodying the present invention will be described below in detail with reference to the drawings. FIG. 4 is a block diagram showing a portion of the control circuit of the laser printer to which the present invention is applied, which mainly converts outline font data into dot data and outputs the dot data.

【0014】この制御回路の主体をなすマイクロコンピ
ュータ部20は、CPU1と、プログラムROM2と、
テキストメモリ3と、ワーキングメモリ4と、ドットデ
ータメモリ5と、キャラクタROM6とから構成されて
いる。前述したマイクロコンピュータ部20の各構成要
素は、システムバス7を介して相互に接続されており、
更に、マイクロコンピュータ部20には、システムバス
7を介して入力部8及び印字部9が接続されている。プ
ログラムROM2は、様々な制御を実施するためのプロ
グラムを記憶している。
A microcomputer unit 20 which is a main component of the control circuit includes a CPU 1, a program ROM 2,
It comprises a text memory 3, a working memory 4, a dot data memory 5, and a character ROM 6. The components of the microcomputer unit 20 described above are interconnected via a system bus 7.
Further, an input unit 8 and a printing unit 9 are connected to the microcomputer unit 20 via the system bus 7. The program ROM 2 stores programs for performing various controls.

【0015】CPU1は、本実施例を実現するための処
理を、プログラムROM2によって記憶されたプログラ
ムに従って行なうものである。ワーキングメモリ4は、
CPU1がプログラムを実行するときに必要なデータを
一時的に記憶するものである。
The CPU 1 performs processing for realizing this embodiment in accordance with a program stored in a program ROM 2. Working memory 4
The CPU 1 temporarily stores data necessary for executing a program.

【0016】キャラクタROM6は、文字のアウトライ
ンを構成する一つの矩形形状から構成される矩形パター
ンを一つの頂点の位置情報と、幅および高さとで構成
される矩形パターンデータで記憶するエリアと、文字形
状を構成する底辺のy座標と高さとが等しい複数の矩形
形状から構成される矩形パターンを、その一つの矩形形
状の一つの頂点の位置情報と、各矩形形状に共通な高さ
と、各矩形形状の幅と、各矩形形状間の間隔とで構成さ
れる矩形パターンデータとして記憶するエリア(第一の
記憶手段に相当)とを備えてる。
The character ROM 6 stores character outlines.
An area for storing a rectangular pattern consisting of a single rectangular shape constituting down, the position information of one of the vertices, in a rectangular pattern data composed of the width and height, character type
A rectangular pattern composed of a plurality of rectangular shapes having the same y-coordinate and height as the bottom of the shape is defined as one rectangular shape.
Area that stores as rectangular pattern data composed of positional information of one vertex of the shape, a height common to each rectangular shape, a width of each rectangular shape, and an interval between the rectangular shapes (first
(Corresponding to storage means) .

【0017】更に、キャラクタROM6は、文字形状を
構成する左側辺のx座標と幅とが等しい複数の矩形形状
から構成される矩形パターンを、その一つの矩形形状の
一つの頂点の位置情報と、各矩形形状に共通な幅と、各
矩形形状の高さと、各矩形形状間の間隔とで構成される
矩形パターンデータとして記憶するエリア(第二の記憶
手段に相当)と、文字形状を構成する左側辺のx座標と
幅とが等しい複数の矩形形状と、文字形状を構成する
辺のy座標と高さとが等しい複数の矩形形状とから構成
される縦横それぞれ複数配置された矩形パターンを、そ
の一つの矩形形状の一つの頂点の位置情報と、各矩形形
状に共通な幅と、各矩形形状に共通な高さと、各矩形形
状間の間隔とで構成される矩形パターンデータとして記
憶するエリア(第三の記憶手段に相当)とを備えてい
る。
Further, the character ROM 6 stores the character shape.
The rectangular pattern constituted by a plurality of rectangular shapes and x and width of the left side is equal to configure the position information of <br/> one of the vertices of one of its rectangular shape, a common width in the rectangular shape , An area to store as rectangular pattern data composed of the height of each rectangular shape and the interval between the rectangular shapes (second storage
Means) , a plurality of rectangular shapes having the same x-coordinate and width on the left side of the character shape, and a plurality of rectangular shapes having the same y-coordinate and height on the bottom side of the character shape the rectangular patterns each aspect constituted with a plurality disposed and a, its
Area stored as rectangular pattern data including position information of one vertex of one rectangular shape, a width common to each rectangular shape, a height common to each rectangular shape, and an interval between each rectangular shape. (Corresponding to third storage means) .

【0018】テキストメモリ3は、入力部8から入力さ
れる文字コード、文字サイズ等の情報を記憶するもので
ある。ワーキングメモリ4には、プログラム実行時に必
要なデータが記憶され、ドットデータメモリ5には、ア
ウトラインデータを変換して得られた印字可能なドット
データが記憶される。入力部8は、外部から供給される
文字コード、文字サイズ等の情報をCPU1に入力す
る。印字部9は、電子写真方式によりドットデータメモ
リ5から読み出されたドットデータを印字する。次に、
実際に矩形パターンがどのような形でキャラクタROM
6に記憶されているかについて図3及び図4を参照しな
がら説明する。最も典型的な例として、以下、「田」と
いう文字を印刷する場合を例に挙げる。
The text memory 3 stores information such as a character code and a character size input from the input unit 8. The working memory 4 stores data necessary for executing a program, and the dot data memory 5 stores printable dot data obtained by converting outline data. The input unit 8 inputs information such as a character code and a character size supplied from the outside to the CPU 1. The printing unit 9 prints the dot data read from the dot data memory 5 by an electrophotographic method. next,
What kind of character ROM actually has a rectangular pattern
6 will be described with reference to FIGS. 3 and 4. FIG. As a most typical example, a case where a character "" is printed will be described below.

【0019】通常アウトラインデータは、図3に示すよ
うに外枠の矩形閉曲線0と、その内部に描かれた矩形閉
曲線1〜4との各四隅の座標によって構成されるが、本
実施例では、図1に示すように、矩形閉曲線0について
は、矩形であることを示すための矩形コマンドR1と、
そのパラメータとして、開始点座標(x01、y0
1)、幅w0、高さh0によって表現される矩形パター
ンである。また、矩形閉曲線1〜4については、左側辺
のx座標と幅とが等しい複数の矩形形状と、底辺のy座
標と高さとが等しい複数の矩形形状とから構成される請
求項に記載の矩形パターンであり、その矩形パターン
を示す矩形コマンドR2H2Vと、そのパラメータとし
て、代表開始点座標(x11、y11)、矩形閉曲線
1、2に共通な高さh1、矩形閉曲線3、4に共通な高
さh3、矩形閉曲線1、4に共通な幅w1、矩形閉曲線
2、3に共通なw3、矩形閉曲線1、2と、矩形閉曲線
3、4との共通な間隔w2、及び矩形閉曲線1、4と矩
形閉曲線2、3との共通な間隔h2によって表現され
る。
Normally, the outline data is composed of the coordinates of the four corners of a rectangular closed curve 0 of the outer frame and rectangular closed curves 1 to 4 drawn inside, as shown in FIG. As shown in FIG. 1, for a rectangular closed curve 0, a rectangular command R1 for indicating a rectangular shape,
The start point coordinates (x01, y0
1) A rectangular pattern represented by a width w0 and a height h0. 4. The rectangular closed curves 1 to 4 according to claim 3 , comprising a plurality of rectangular shapes having the same x-coordinate and width on the left side and a plurality of rectangular shapes having the same y-coordinate and height on the bottom side. 5. A rectangular command R2H2V indicating the rectangular pattern, representative starting point coordinates (x11, y11), a height h1 common to the rectangular closed curves 1 and 2, and a height common to the rectangular closed curves 3 and 4 as parameters. H3, a width w1 common to the rectangular closed curves 1 and 4, w3 common to the rectangular closed curves 2 and 3, a common interval w2 between the rectangular closed curves 3 and 4, and a rectangular closed curve 1 and 4. It is represented by a common interval h2 between the rectangular closed curves 2 and 3.

【0020】矩形コマンドR1は、単独の矩形パターン
を表わし、矩形コマンドR2H2Vは、左側辺のx座標
と幅とが等しい複数の矩形形状と、底辺のy座標と高さ
とが等しい複数の矩形形状とから構成される矩形パター
ンを表わしている。図1、図7から明らかなように、特
別な矩形コマンドを設定し、共通する幅、高さ、間隔等
のデータを共有化することによって、アウトラインデー
タを圧縮し、データ量の大幅な削減を可能にすることが
できる。
The rectangular command R1 represents a single rectangular pattern, and the rectangular command R2H2V includes a plurality of rectangular shapes having the same x-coordinate and width on the left side and a plurality of rectangular shapes having the same y-coordinate and height on the bottom side. Represents a rectangular pattern composed of. As is clear from FIGS. 1 and 7, by setting a special rectangular command and sharing data such as a common width, height, and interval, the outline data is compressed, and the data amount is significantly reduced. Can be made possible.

【0021】次に、CPU1において文字形状のデータ
を処理する方法について図2のフローチャートを用いて
説明する。まず、出力したい文字の文字コードと文字サ
イズを入力部8より入力する(ステップ21、以下、ス
テップをSで表わす)。次に、その入力された文字コー
ドに対応するアウトラインデータをキャラクタROM6
から読み出す(S22)。その後、読み出したアウトラ
インデータが矩形コマンドで構築されているか否かを判
別し(S23)、「はい」であれば後述するS24へ、
「いいえ」であれば後述するS25へ移行する。本実施
例においては、図3に示す文字を想定しているので、矩
形閉曲線0〜4全てについて「はい」という判定にな
る。S24のアウトラインデータ復元処理では、以下の
数式に従って、矩形コマンドとそのパラメータからアウ
トラインデータの各頂点の座標値を算出する。
Next, a method of processing character-shaped data in the CPU 1 will be described with reference to the flowchart of FIG. First, a character code and a character size of a character to be output are input from the input unit 8 (step 21, hereinafter, steps are represented by S). Next, outline data corresponding to the input character code is stored in the character ROM 6.
(S22). Thereafter, it is determined whether or not the read outline data is constructed by a rectangular command (S23). If “Yes”, the process proceeds to S24 described later.
If “No”, the process proceeds to S25 described later. In the present embodiment, since the characters shown in FIG. 3 are assumed, "Yes" is determined for all of the rectangular closed curves 0 to 4. In the outline data restoring process in S24, the coordinates of each vertex of the outline data are calculated from the rectangular command and its parameters according to the following formula.

【0022】[0022]

【数式1】 [Formula 1]

【0023】その後、アウトラインデータが終了コマン
ドであるか否かを判別し(S25)、「はい」であれば
後述するS26へ、「いいえ」であればS23へ移行す
る。本実施例においては、矩形閉曲線4をアウトライン
データに復元したところで終了コマンドを実行すること
になる。次に、アウトラインデータに対して、所望のス
ケーリング処理や、回転、反転など座標変換を行う(S
26)。その後、塗りつぶし処理(S27)では、最終
的に得られたアウトラインデータをCPU1が順次解釈
し、各座標点を結んだ閉曲線内(矩形閉曲線0の内側と
矩形閉曲線1〜4の外側)を塗りつぶすことにより、ド
ットデータに変換する。この処理に関しては既に公知の
技術であり、また本発明の主たる部分ではないため詳細
な説明は省略する。次に、印字部9がドットデータを読
み出し、印刷する(S28)。
Thereafter, it is determined whether or not the outline data is an end command (S25). If "Yes", the process proceeds to S26 described later, and if "No", the process proceeds to S23. In this embodiment, the end command is executed when the rectangular closed curve 4 is restored to the outline data. Next, coordinate conversion such as desired scaling processing, rotation, and inversion is performed on the outline data (S
26). After that, in the filling process (S27), the CPU 1 sequentially interprets the finally obtained outline data and fills the inside of the closed curve connecting the respective coordinate points (the inside of the rectangular closed curve 0 and the outside of the rectangular closed curves 1 to 4). To convert to dot data. This processing is a known technique, and is not a main part of the present invention, so that detailed description is omitted. Next, the printing unit 9 reads and prints the dot data (S28).

【0024】尚、本実施例では、文字形状として単独の
矩形パターン(矩形閉曲線0)と、同じ幅の矩形が、縦
に2つで、各々が同じ高さの矩形を横に2つの、計4つ
の矩形パターン(矩形閉曲線1〜4)の場合を例に挙げ
たが、この他にも種々の矩形パターンの組合せが可能で
ある。
In this embodiment, a single rectangular pattern (rectangular closed curve 0) as a character shape, two rectangles having the same width vertically, and two rectangles each having the same height are arranged horizontally. Although the case of four rectangular patterns (rectangular closed curves 1 to 4) has been described as an example, other combinations of various rectangular patterns are possible.

【0025】図5(a)では、底辺のy座標と高さh1
とが等しい複数の矩形形状から構成される矩形パターン
(請求項1の発明に相当)であり、矩形形状が2つの場
合で、パラメータとして、一つの矩形形状の一つの頂点
である(x、y)と、各矩形形状の幅としてのw1、w
3と、各矩形形状間の間隔としてのw2と、矩形形状の
高さとしてのh1とで構成されている。図5(b)で
は、矩形形状が3つの場合で、パラメータとして、一つ
矩形形状の一つの頂点である(x、y)と、各矩形形
状の幅としてのw1、w3、w5と、各矩形形状間の間
隔としてのw2、w4と、矩形形状の高さとしてのh1
とで構成されている。
In FIG. 5A, the y coordinate of the base and the height h1 are shown.
Rectangular pattern consisting of multiple rectangular shapes with equal
A (corresponding to the invention of claim 1), when the rectangular shape of the two, as a parameter, which is one vertex of a rectangular (x, y) and, w1, w as the width of each rectangular
3, w2 as the interval between the rectangular shapes, and h1 as the height of the rectangular shape. FIG. 5B shows a case where there are three rectangular shapes, and one parameter is
Which is one vertex of the rectangular (x, y) and, and w1, w3, w5 of the width of each rectangular, and w2, w4 as the spacing between the rectangular, the rectangular shape of the height h1
It is composed of

【0026】図6は、左側辺のx座標と幅とが等しい複
数の矩形形状から構成される矩形パターン(請求項2の
発明に相当)であり、パラメータとして、一つの矩形形
状の一つの頂点である(x、y)と、矩形形状の幅とし
てのw1と、各矩形形状間の間隔としてのh2、h4
と、各矩形形状の高さとしてのh1、h3、h5とで構
成されている。
[0026] FIG. 6 is a rectangular pattern constituted by a plurality of rectangular equal the x-coordinate and the width of the left side (according to claim 2
An equivalent) to the present invention, as a parameter, as one vertex of a rectangular (x, y), and w1 of the width of the rectangular shape, h2 as the spacing between the rectangular, h4
And h1, h3, h5 as the height of each rectangular shape.

【0027】尚、前記S24の処理工程は、記憶手段に
記憶された矩形パターンデータを解析して、その矩形パ
ターンの形状を復元する第一の復元手段、第二の復元手
段及び第三の復元手段として機能する。
The processing step of S24 comprises analyzing the rectangular pattern data stored in the storage means, and restoring the shape of the rectangular pattern by the first restoration means, the second restoration means, and the third restoration means. Functions as a means.

【0028】以上説明したことから明らかなように本実
施例の文字記憶装置によれば、少なくとも一つの矩形形
状で構成される矩形パターンを含んだ文字形状につい
て、矩形形状の一つの頂点の位置情報と、矩形形状の高
さと、矩形形状の幅とで構成される矩形パターンデータ
として前記記憶手段に記憶し、その矩形パターンデータ
を解析して矩形パターンの形状を復元手段により復元す
るため、従来の四隅の座標を全て記憶する必要がなく、
更に多くの文字形状を記憶させることができる。
As is apparent from the above description, according to the character storage device of the present embodiment, for a character shape including a rectangular pattern composed of at least one rectangular shape, the position information of one vertex of the rectangular shape is obtained. And storing the rectangular pattern data in the storage unit as rectangular pattern data composed of the height of the rectangular shape and the width of the rectangular shape, analyzing the rectangular pattern data and restoring the rectangular pattern shape by the restoration unit. There is no need to memorize all the coordinates of the four corners,
More character shapes can be stored.

【0029】尚、本発明は以上詳述した実施例に限定さ
れるものではなくその要旨を逸脱しない範囲において、
種々の変更を加えることができる。
The present invention is not limited to the embodiment described in detail above, and is within the spirit and scope of the invention.
Various changes can be made.

【0030】例えば、本実施例での文字形状は、輪郭を
備えたアウトラインデータとして説明したが、輪郭がな
いフォントについても実施することができる。
For example, although the character shape in this embodiment has been described as outline data having an outline, the present invention can also be applied to a font having no outline.

【0031】また、各矩形形状間の間隔が同一のもので
あってもよく、その場合には、パラメータの要素を、更
に減らすことができ、キャラクタROM6の記憶容量を
節約することができる。
Further, the intervals between the rectangular shapes may be the same, in which case the parameter elements can be further reduced, and the storage capacity of the character ROM 6 can be saved.

【0032】更に、本実施例ではレーザープリンタに搭
載した例を示したが、これに限らず、他の方式のプリン
タはもちろん、ディスプレイ装置、その他アウトライン
フォントをドットデータに変換するものであれば、どの
ようなものでも可能である。
Further, in this embodiment, an example in which the printer is mounted on a laser printer is shown. However, the present invention is not limited to this. Anything is possible.

【0033】[0033]

【発明の効果】以上説明したことから明らかなように本
発明の請求項1に記載の文字記憶装置によれば、文字形
状を構成する底辺のy座標と高さとが等しい複数の矩形
形状から構成される矩形パターンを、一つの矩形形状の
一つの頂点の位置情報と、各矩形形状に共通な高さと、
各矩形形状の幅と、各矩形形状間の間隔とで構成される
矩形パターンデータとして第一の記憶手段に記憶し、そ
の第一の記憶手段に記憶された矩形パターンデータを解
析して、その矩形パターンの形状を前記第一の復元手段
により復元するようにしたので、従来の文字記憶装置の
ように四隅乃至複 数の座標を全て記憶する必要がなく、
複数の矩形形状のうちの一つの矩形形状の一つの頂点の
位置情報を基準として複数の矩形形状の共通している高
さ等のデータを用いて四隅の座標を復元でき、記憶容量
を節約して更に多くの文字形状を記憶させることができ
る。
As is apparent from the above description, according to the character storage device of the first aspect of the present invention, the character
Multiple rectangles with the same y-coordinate and height as the bottom of the shape
A rectangular pattern composed of shapes
Position information of one vertex, height common to each rectangular shape,
Consists of the width of each rectangular shape and the spacing between each rectangular shape
It is stored in the first storage means as rectangular pattern data, and
Solving the rectangular pattern data stored in the first storage means
Analyzing the shape of the rectangular pattern into the first restoration means.
So that it can be restored by the conventional character storage device.
It is not necessary to store all four corners or number multiple of coordinates as,
One of the vertices of one of the rectangular shapes
Common height of multiple rectangular shapes based on position information
The coordinates of the four corners can be restored using data such as
And more character shapes can be stored.

【0034】また、請求項2に記載の文字記憶装置によ
れば、文字形状を構成する左側辺のx座標と幅とが等し
い複数の矩形形状から構成される矩形パターンを、一つ
の矩形形状の一つの頂点の位置情報と、各矩形形状に共
通な幅と、各矩形形状の高さと、各矩形形状間の間隔と
で構成される矩形パターンデータとして第二の記憶手段
い記憶し、その第二の記憶手段に記憶された矩形パター
ンデータを解析して、その矩形パターンの形状を第二の
復元手段により復元するようにしたので、従来の文字記
憶装置のように四隅乃至複数の座標を全て記憶する必要
がなく、複数の矩形形状のうちの一つの矩形形状の一つ
の頂点の位置情報を基準として複数の矩形形状の共通し
ている幅等のデータを用いて四隅の座標を復元でき、記
憶容量を節約して更に多くの文字形状を記憶させること
ができる。
Further, according to the character storage device of the present invention,
If the x-coordinate and width of the left side of the character shape are equal,
One rectangular pattern consisting of multiple rectangular shapes
The position information of one vertex of the rectangular shape
Width, the height of each rectangular shape, the space between each rectangular shape,
Storage means as rectangular pattern data composed of
The rectangular pattern stored in the second storage means.
Analysis of the rectangular pattern and the shape of the rectangular pattern
Restoration by means of restoring means
It is necessary to store all four corners or multiple coordinates like a storage device
One of a plurality of rectangular shapes
Of multiple rectangular shapes based on vertex position information
The coordinates of the four corners can be restored using data such as
Save storage space and memorize more character shapes
Can be.

【0035】更に、請求項3に記載の文字記憶装置によ
れば、文字形状を構成する左側辺のx座標と幅とが等し
い複数の矩形形状と、文字形状を構成する底辺のy座標
と高さとが等しい複数の矩形形状とから構成される縦横
それぞれ複数配置された矩形パターンを、一つの矩形形
状の一つの頂点の位置情報と、各矩形形状に共通な幅
と、各矩形形状に共通な高さと、各矩形形状間の間隔と
で構成される矩形パターンデータとして第三の記憶手段
に記憶し、その第三の記憶手段に記憶された矩形パター
ンデータを解析して、その矩形パターンの形状を第三の
復元手段により復元するようにしたので、従来の文字記
憶装置のように四隅乃至複数の座標を全て記憶する必要
がなく、複数の矩形形状のうちの一つの矩形形状の一つ
の頂点の位置情報を基準として複数の矩形形状の共通し
ている高さと幅等のデータを用いて四隅の座標を復元で
き、記憶容量を請求項2及び請求項3の文字記憶装置よ
り更に節約してより多くの文字形状を記憶させることが
できる。
Further, according to the character storage device of claim 3,
If the x-coordinate and width of the left side of the character shape are equal,
Y-coordinates of bases that make up multiple rectangular shapes and character shapes
Height and width consisting of multiple rectangular shapes with the same height
Each rectangular pattern arranged in plural is converted into one rectangular
Position information of one vertex of the shape and width common to each rectangular shape
, The height common to each rectangular shape, the spacing between each rectangular shape,
Storage means as rectangular pattern data composed of
And the rectangular pattern stored in the third storage means.
Analyze the pattern data and determine the shape of the rectangular pattern
Restoration by means of restoring means
It is necessary to store all four corners or multiple coordinates like a storage device
One of a plurality of rectangular shapes
Of multiple rectangular shapes based on vertex position information
The coordinates of the four corners using data such as height and width
The storage capacity of the character storage device according to claim 2 or 3.
Saving more character shapes by saving even more
it can.

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

【図1】図1は、本実施例の文字記憶装置のキャラクタ
ROMに記憶されている矩形パターンのコマンドイメー
ジを示す図である。
FIG . 1 is a diagram illustrating a command image of a rectangular pattern stored in a character ROM of a character storage device according to an embodiment;

【図2】図2は、本実施例の文字記憶装置の文字出力処
理を表すフローチャートである。
FIG . 2 is a flowchart illustrating a character output process of the character storage device according to the embodiment;

【図3】図3は、文字記憶装置のキャラクタROMに記
憶されている矩形パターンの一例である。
FIG . 3 is an example of a rectangular pattern stored in a character ROM of a character storage device.

【図4】図4は、本実施例の文字記憶装置の構成を示す
ブロック図である。
FIG . 4 is a block diagram illustrating a configuration of a character storage device according to the embodiment;

【図5】図5は、請求項に記載の矩形パターンのコマ
ンドイメージを示す図であり、(a)は、矩形形状が2
つの場合、(b)は、矩形形状が3つの場合である。
FIG . 5 is a diagram showing a command image of a rectangular pattern according to claim 1 , wherein FIG.
(B) shows a case where there are three rectangular shapes.

【図6】図6は、請求項に記載の矩形パターンのコマ
ンドイメージを示す図である。
FIG . 6 is a diagram showing a command image of a rectangular pattern according to claim 2 ;

【図7】図7は、従来の文字記憶装置のキャラクタRO
Mに記憶されている矩形パターンのコマンドイメージを
示す図である。
FIG . 7 is a diagram illustrating a character RO of a conventional character storage device;
FIG. 9 is a diagram illustrating a command image of a rectangular pattern stored in M.

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

1 CPU 2 プログラムROM 3 テキストメモリ 4 ワーキングメモリ 5 ドットデータメモリ 6 キャラクタROM 7 システムバス 8 入力部 9 印字部 20 マイクロコンピュータ部 DESCRIPTION OF SYMBOLS 1 CPU 2 Program ROM 3 Text memory 4 Working memory 5 Dot data memory 6 Character ROM 7 System bus 8 Input section 9 Printing section 20 Microcomputer section

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字形状を直線要素または曲線要素で構
成されるデータとして予め記憶手段に記憶している文字
記憶装置において、文字形状を構成する底辺のy座標と高さとが等しい複数
の矩形形状から構成される矩形パターンを、一つの矩形
形状の一つの頂点の位置情報と、各矩形形状に共通な高
さと、各矩形形状の幅と、各矩形形状間の間隔とで構成
される矩形パターンデータとして 記憶する第一の記憶手
段と、 前記第一の記憶手段に記憶された矩形パターンデータを
解析して、その矩形パターンの形状を復元する第一の復
元手段とを備えたことを特徴とする文字記憶装置。
1. A character storage device in which a character shape is stored in advance in a storage means as data comprising a linear element or a curved element, wherein a plurality of bases constituting the character shape have the same y-coordinate and height.
A rectangular pattern composed of
The position information of one vertex of the shape and the height common to each rectangular shape
And the width of each rectangular shape and the spacing between each rectangular shape
A first storage means for storing as a rectangular pattern data, by analyzing the rectangular pattern data stored in said first storage means, and a first restoring means for restoring the shape of the rectangular pattern A character storage device, characterized in that:
【請求項2】 文字形状を直線要素または曲線要素で構
成されるデータとして予め記憶手段に記憶している文字
記憶装置において、文字形状を構成する左側辺のx座標と幅とが等しい複数
の矩形形状から構成される矩形パターンを、一つの矩形
形状の一つの頂点の位置情報と、各矩形形状に共通な幅
と、各矩形形状の高さと、 各矩形形状間の間隔とで構成
される矩形パターンデータとして記憶する第二の記憶手
段と、 前記第二の記憶手段に記憶された矩形パターンデータを
解析して、その矩形パターンの形状を復元する第二の復
元手段とを備えたことを特徴とする文字記憶装置。
2. A character storage device in which a character shape is stored in advance in a storage means as data constituted by a straight line element or a curved element, wherein a plurality of characters having the same x-coordinate and width on the left side of the character shape.
A rectangular pattern composed of
Position information of one vertex of the shape and width common to each rectangular shape
And second storage means for storing as rectangular pattern data comprising the height of each rectangular shape and the interval between the rectangular shapes; analyzing the rectangular pattern data stored in the second storage means And a second restoring means for restoring the shape of the rectangular pattern.
【請求項3】 文字形状を直線要素または曲線要素で構
成されるデータとして予め記憶手段に記憶している文字
記憶装置において、文字形状を構成する左側辺のx座標と幅とが等しい複数
の矩形形状と、文字形状を構成する底辺のy座標と高さ
とが等しい複数の矩形形状とから構成される縦横それぞ
れ複数配置された矩形パターンを、一つの矩形形状の一
つの頂点の位置情報と、各矩形形状に共通な幅と、各矩
形形状に共通な高さと、 各矩形形状間の間隔とで構成さ
れる矩形パターンデータとして記憶する第三の記憶手段
と、 前記第三の記憶手段に記憶された矩形パターンデータを
解析して、その矩形パターンの形状を復元する第三の復
元手段とを備えたことを特徴とする文字記憶装置。
3. A character storage device in which a character shape is stored in advance in a storage means as data constituted by a linear element or a curved element, wherein a plurality of characters having the same x-coordinate and width on the left side constituting the character shape.
Rectangle shape and y coordinate and height of the base that constitutes the character shape
Vertical and horizontal composed of multiple rectangular shapes with the same
The rectangular patterns arranged in multiple
Position information of each vertex, width common to each rectangular shape,
A third storage means for storing as a rectangular pattern data composed of a height common to the shapes and the intervals between the respective rectangular shapes, and analyzing the rectangular pattern data stored in the third storage means, A character storage device comprising: a third restoration unit for restoring the shape of the rectangular pattern.
JP06253591A 1994-10-19 1994-10-19 Character storage Expired - Fee Related JP3119095B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06253591A JP3119095B2 (en) 1994-10-19 1994-10-19 Character storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06253591A JP3119095B2 (en) 1994-10-19 1994-10-19 Character storage

Publications (2)

Publication Number Publication Date
JPH08123393A JPH08123393A (en) 1996-05-17
JP3119095B2 true JP3119095B2 (en) 2000-12-18

Family

ID=17253509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06253591A Expired - Fee Related JP3119095B2 (en) 1994-10-19 1994-10-19 Character storage

Country Status (1)

Country Link
JP (1) JP3119095B2 (en)

Also Published As

Publication number Publication date
JPH08123393A (en) 1996-05-17

Similar Documents

Publication Publication Date Title
JP2876942B2 (en) Data converter
JP3119095B2 (en) Character storage
JPH11109943A (en) Font processor and recording medium recorded with font processing program
JP2819961B2 (en) Printing control device
JP2618528B2 (en) Character drawing device, character output correction method, and character output device
JP2002244643A (en) Image processor
JP2881924B2 (en) Data storage device
JP2861127B2 (en) Data converter
JP3082236B2 (en) Character drawing device
JP3087414B2 (en) Data output device
JP3118310B2 (en) Print processing method of page printer
JP3254657B2 (en) Data converter
JP3057978B2 (en) Character generator
JP3055327B2 (en) Data converter
JP3119094B2 (en) Character output device
JP3033152B2 (en) Outline data processing device
JP2937509B2 (en) Bitmap expansion method
JP2910183B2 (en) Character processor
JPH0784739A (en) Data converter
JP3087511B2 (en) Data converter
JPH07129147A (en) Data converting device
JPS63203363A (en) Printing controller
JPH06110444A (en) Character processor and character output method
JPH0387898A (en) Sentence output device
JPH0439071A (en) Image recorder

Legal Events

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

Free format text: PAYMENT UNTIL: 20071013

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081013

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111013

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20111013

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20121013

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20131013

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees