JPS62280044A - Method of processing character font data - Google Patents

Method of processing character font data

Info

Publication number
JPS62280044A
JPS62280044A JP61126133A JP12613386A JPS62280044A JP S62280044 A JPS62280044 A JP S62280044A JP 61126133 A JP61126133 A JP 61126133A JP 12613386 A JP12613386 A JP 12613386A JP S62280044 A JPS62280044 A JP S62280044A
Authority
JP
Japan
Prior art keywords
data
column
line
character font
stored
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.)
Pending
Application number
JP61126133A
Other languages
Japanese (ja)
Inventor
Kazuo Kawakami
河上 和夫
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP61126133A priority Critical patent/JPS62280044A/en
Publication of JPS62280044A publication Critical patent/JPS62280044A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To reduce a ROM capacity to a great extent without changing a amount of information, by a method wherein; when character font data is stored in a ROM, storage of line-compressed information data allows the deletion of the specific line data to compress the line data as a whole and simultaneously column compressed information data is stored. CONSTITUTION:In the construction of character font data stored in a ROM in a compressed form, numbers 1-24 in a width's direction correspond to the column numbers of the data and numbers 5-20 in a height's direction correspond to the line numbers of the data. The character font data is provided with line-compressed information data 1, column comperssed information data 2, and column data 3. A character font for one character can be composed of 153 bits. The line-compressed information data 1 may be represented by either '1' or '0'; a code '1' is used when all the lines 1-24 are stored in a line direction, and a code '1' is used when the lines 1-4 and 21-24 are deleted and the other lines are stored. Here, with an alphabet character formed in a dot matrix of 24 line X24 column, space is assigned to the upper and lower 4-lines in the line-compressed information data 1.

Description

【発明の詳細な説明】 3、発明の詳細な説明 産業上の利用分野 2 ・ 本発明は、記憶容量を減少するようにした文字フォント
データの処理方法に関するものである。
Detailed Description of the Invention 3. Detailed Description of the Invention Field of Industrial Application 2 - The present invention relates to a method of processing character font data that reduces storage capacity.

従来の技術 一般に、ドツトプリンタでは1印字できるすべての文字
フォントの情報を何の処理も施さずに。
Conventional technology In general, dot printers print all the character font information that can be printed without any processing.

キャラクタジェネレータ用のリード・オンリー・メモリ
(以下ROMと表現する)に記憶させている。
It is stored in a read-only memory (hereinafter referred to as ROM) for the character generator.

文字フォントの一例について第4図に示す。この図は2
4行×24列のドツトマトリックスで、アルファベット
のH″を表示した場合を示しており、数字1〜24はそ
れぞれ行列の番号を示す。
An example of a character font is shown in FIG. This figure is 2
This figure shows the case where the alphabet H'' is displayed in a dot matrix of 4 rows and 24 columns, and numbers 1 to 24 indicate the numbers of the rows and columns, respectively.

第6図は上記第4図の文字フォントに何の処理も施さな
い場合のキャラクタジェネレータのROMの状態を示す
もので、この文字フォントデータにおいて u 11”
は黒ドツトに対応し、空白は便宜上空白としているがデ
ータとしては′○″であり白ドツトに対応しており、こ
の1文字につき676ピツトを必要とする。
FIG. 6 shows the state of the ROM of the character generator when no processing is performed on the character font shown in FIG. 4 above. In this character font data, u 11"
corresponds to a black dot, and the blank space is left blank for convenience, but the data is ``○'', which corresponds to a white dot, and 676 pits are required for each character.

このように、従来一般に文字情報としてROMに記憶さ
れているデータ構成は2文字フォントの1ドツトが2進
符号データの1ビツトに対応して記憶されているもので
ある。
As described above, the data structure conventionally stored in the ROM as character information is such that one dot of a two-character font corresponds to one bit of binary code data.

発明が解決しようとする問題点 しかしなから、上記従来の方法では、ROM内部のデー
タ構成は文字フォントの1ドツトが2進符号データの1
ビツトに対応しているので5文字フォントの種類を増し
たり、印字品質向上の為に1文字を構成するドツト数を
増す事はROMの大容量化を招くという問題点を有して
いた。
However, in the conventional method described above, the data structure inside the ROM is such that one dot of a character font corresponds to one dot of binary code data.
Since it is compatible with bits, increasing the number of 5-character fonts, or increasing the number of dots constituting one character in order to improve printing quality has the problem of increasing the capacity of the ROM.

本発明は上記従来の問題点を解決するものであり、文字
フォントが持つ特徴を利用する事により、情報量を変え
る事なくキャラクタジェネレータ用のROM容量を大巾
に減少する事のできる文字フォントデータの処理方法を
提供することを目的とする。
The present invention solves the above-mentioned conventional problems, and provides character font data that can significantly reduce the ROM capacity for character generators without changing the amount of information by utilizing the characteristics of character fonts. The purpose is to provide a processing method for

問題点を解決するだめの手段 この目的を達成するために本発明の文字フォントデータ
の処理方法は、行・列のマトリックスで表現される文字
フォントデータの行データを複数の部分に分割して1そ
の分割された特定部分の行データが全て0″の場合にそ
の特定部分の行データを削除し、この削除したことを示
す行圧縮情報データを記憶するとともに、上記文字フォ
ントデータから上記特定部分の行データを除く残余のデ
ータを記憶するようにし、更に任意の列データをこの列
データに隣接する前列のデータと比較して前列と同一デ
ータである場合に当該列データを削除し、この削除した
ことを示す列圧縮情報データを記憶するとともに、上記
削除した列データ以外の列データのみを記憶するもので
ある。
Means for Solving the Problem In order to achieve this object, the character font data processing method of the present invention divides the character font data line data expressed in a matrix of rows and columns into a plurality of parts. If the line data of the divided specific part is all 0'', the line data of the specific part is deleted, the line compression information data indicating this deletion is stored, and the specific part is converted from the character font data. The remaining data excluding the row data is stored, and further, any column data is compared with the data in the previous column adjacent to this column data, and if the data is the same as the previous column, the column data is deleted. In addition to storing column compression information data indicating that the deleted column data is deleted, only column data other than the deleted column data is stored.

作用 本発明は上記した方法によって1文字フォントデータを
ROMに記憶する際に1行圧縮情報データを記憶するこ
とにより特定の行データを削除してその行データの圧縮
を行々うとともに5列圧縮情報データを記憶することに
より、一定条件の下に列データを削除してその列データ
の圧縮を行なうこととなる。そして、上記行圧縮情報デ
ータ及び列圧縮情報データによって、削除された行デー
タ及び列データを復元することにより、ROMに圧縮し
て記憶された文字フォントデータから行・列のマトリッ
クスで表現される文字フォントデータを再現することと
なる。
Operation The present invention uses the method described above to store one-line compressed information data when storing one-character font data in a ROM, thereby deleting specific line data and compressing that line data, and compressing the five-column data. By storing information data, column data can be deleted and compressed under certain conditions. Then, by restoring the deleted row data and column data using the row compression information data and column compression information data, characters are expressed in a matrix of rows and columns from the character font data compressed and stored in the ROM. This will reproduce the font data.

実施例 以下本発明の一実施例について第1図〜第3図を参照し
なから説明する。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to FIGS. 1 to 3.

第1図は、上記第5図で示した一般的な文字フォントデ
ータに対し、 これを圧縮した形でROMに記憶された
文字フォントデータの構成を示すものである、同図にお
いて、横方向の1〜24は文字フォントデータの列番号
に相当する番号であり、また縦方向の5〜2oは同行番
号に相当する番号である。この文字フォントデータには
、行圧縮情報データ1と5列圧縮情報データ2と、列デ
ータ3とを有している。そして、枠内の°°1,0が2
進符号データを示しており1このように構成することに
より、1文字の文字フォントを163ビツトで構成する
ことができる。
Figure 1 shows the structure of character font data stored in the ROM in a compressed form compared to the general character font data shown in Figure 5 above. 1 to 24 are numbers corresponding to column numbers of character font data, and 5 to 2o in the vertical direction are numbers corresponding to matching numbers. This character font data includes row compressed information data 1, 5-column compressed information data 2, and column data 3. And °°1,0 in the frame is 2
By configuring it in this way, a character font for one character can be composed of 163 bits.

上記行圧縮情報データ1は、°11”又は°0″6  
l?−゛ で表わされるが5行方向に1〜24行すべてを記憶する
場合のコードは°°0”であり、図示例のように1〜4
行と21〜24行を削除して記憶する場合のコードは′
1”である。ここで、この行圧縮情報データ1は1通常
のアルファベント文字が、24行×24列ドツトマトリ
クス上で構成される場合、上下4行ずつが空白になって
いることに鑑みて構成したものである。
The above row compression information data 1 is °11" or °0"6
l? The code for storing all lines 1 to 24 in the 5-line direction is °°0'', and as in the example shown in the figure, the code is 1 to 4.
The code to delete and memorize lines 21-24 is '
1".Here, this line compression information data 1 is 1 Considering that when a normal alpha bent character is configured on a dot matrix of 24 rows x 24 columns, the top and bottom four rows are blank. It is composed of

次に、上記列圧縮情報データ2は2列番号1〜24のす
べてに対応して2進符号″0”又は”1″が付与される
ものである。ここで、各列データにおいて隣接する前列
が々いため1便宜上0番の列番号を想定し、これはすべ
ての行を°°○″コードとして比較する。そして、列圧
縮情報データ2において、0”コードが割り当てられた
列については列データ3を削除し、°1”コードが割り
当てられた列については行番号6〜20のコードからな
る列データを記憶する。すなわち、第1図において、列
データ3において空白の列はその前列と同じデータが削
除されていることになる。
Next, in the column compressed information data 2, a binary code "0" or "1" is assigned corresponding to all of the two column numbers 1 to 24. Here, since there are many adjacent front columns in each column data, we assume column number 0 for convenience, and compare all rows as °°○" codes. Then, in column compressed information data 2, 0" Column data 3 is deleted for columns to which codes are assigned, and column data consisting of codes in row numbers 6 to 20 are stored for columns to which °1" codes are assigned. In other words, in FIG. 3, the blank column means that the same data as the previous column has been deleted.

了・ 次に1上記第6図の一般的な文字フォントデータから、
この第1図に示す文字フォントデータの構成にデータ圧
縮する手段について、第2図に示すフローチャートとと
もに説明する。
Completion・Next 1 From the general character font data shown in Figure 6 above,
The means for compressing data into the structure of character font data shown in FIG. 1 will be explained with reference to the flowchart shown in FIG.

まず、ステップ1で文字フォントデータの列番号N1お
よび圧縮された文字フォントデータの列番号nを初期化
して、N=Q番目の列データコードをスヘて0”とする
。次にステップ2で、行圧縮をする場合はF=1とおき
、かつ行圧縮情報データを1”′とし、圧縮し々い場合
はF−0とおき、かつ行圧縮情報データを′○″とする
。次に、ステップ3で処理をする文字フォントデータの
列番号Nをカウントする。次にステップ4で、N列とN
−1列のデータを比較して、全て一致する場合はステッ
プ6に進み、列圧縮情報データを”o”としてステップ
10に進む。一方1上記ステップ4において、一致しな
い場合はステップ6に進み1列圧縮情報データを1”と
する。次に、ステップ了で、上記ステップ2に決められ
たFがF=Oの場合は、ステップ8に進んでN列のデー
タをROMにおけるn列のデータとして記憶し、一方F
=1の場合は、ステップ9に進んで行圧縮(すなわち行
番号1〜4と21〜24を削除)されたN列データをn
列のデータとして記憶する。
First, in step 1, the column number N1 of character font data and the column number n of compressed character font data are initialized, and the N=Qth column data code is set to 0''.Next, in step 2, When performing row compression, set F=1 and set the row compression information data as 1"'. When compression is barely done, set F-0 and set the row compression information data as '○".Next, In step 3, count the column number N of the character font data to be processed.Next, in step 4, count the column number N of the character font data to be processed.
- Compare the data in one column, and if they all match, proceed to step 6, set the column compression information data to "o", and proceed to step 10. On the other hand, in step 4 above, if they do not match, proceed to step 6 and set the 1 column compressed information data to 1''.Next, when the step is completed, if F determined in step 2 above is F=O, step Proceed to step 8 to store the N column data as n column data in the ROM, while
If = 1, proceed to step 9 and store the row-compressed (i.e., delete row numbers 1 to 4 and 21 to 24) N column data as n
Store as column data.

次に上記ステップ8及び9よりステップ10に進み、N
=24になる寸でステップ3〜1oの処理を繰返す。
Next, proceed to step 10 from steps 8 and 9 above, and N
The process of steps 3 to 1o is repeated until the size becomes =24.

次に、第3図に示すフローチャートとともに。Next, along with the flowchart shown in FIG.

第1図に示すように構成されたROMの文字フォントデ
ータから1第6図に示す文字フォントデータに復元する
場合について説明する。まず、ステップ11において、
復元された列の順番を示すNと、ROM内に記憶してい
る列のデータ3の順番を示すnとを初期化して、n−〇
のときのデータコードをすべて○″とする。次にステッ
プ12において、行圧縮情報データ1が°0”ならばF
=○とし、後述のステップ16で復元処理を行なう時に
行方向24ビット読み出し、一方行圧縮情報データ1が
°゛1”′ならばF=1とし、同様に16ビツト読み出
す。次に、ステップ13は5文字フォントデータの列N
をカウント処理する。次のステップ14は列圧縮情報デ
ータが1”の場合は次のステップ16で記憶された列番
号nを1つカウントして、次のステップ16でn番目の
列データを復元し、一方前記列圧縮情報データがパ0”
の場合はステップ14からそのままステップ16に進ん
でn番目の列データを復元する。ここで、ステップ16
において列データnを復元する場合、上述したステップ
12で説明したように、F=Oのときは24ビツトを読
み出してその″!、マ復元し、F−1のときは16ビツ
トを読み出してその上下に4ビツトずつ”○”のデータ
コードを追加した24ビツトのデータにして復元する。
A case will be described in which character font data in a ROM configured as shown in FIG. 1 is restored to character font data shown in FIG. 6. First, in step 11,
Initialize N, which indicates the order of the restored columns, and n, which indicates the order of column data 3 stored in the ROM, and set all data codes to ○'' when n-〇.Next, In step 12, if row compression information data 1 is °0'', F
=○, and 24 bits are read in the row direction when performing the restoration process in step 16, which will be described later.On the other hand, if the row compressed information data 1 is °1'', F=1 and 16 bits are read in the same way.Next, step 13 is a column N of 5-character font data
Count and process. In the next step 14, if the column compression information data is 1'', the column number n stored in the next step 16 is counted by 1, and in the next step 16, the n-th column data is restored; Compressed information data is par 0”
In this case, the process directly proceeds from step 14 to step 16 to restore the n-th column data. Here, step 16
When restoring column data n, as explained in step 12 above, when F=O, read 24 bits and restore its "!,", and when F-1, read 16 bits and restore it. The data is restored as 24-bit data by adding 4-bit "○" data codes at the top and bottom.

そして、ステップ17でN−24になるまでステップ1
3〜1了までの処理を繰り返し、N=24になったとき
処理を終了し、上記第6図に示す文字フォントデータを
取り出すこととなる。
Then, step 1 until N-24 is reached in step 17.
The processes from 3 to 1 are repeated, and when N=24, the process is terminated and the character font data shown in FIG. 6 is extracted.

発明の効果 以上のように本発明は、行・列のマトリックスで表現さ
れる文字フォントデータの行データを複1 o 7・−
Effects of the Invention As described above, the present invention allows line data of character font data expressed in a matrix of rows and columns to be
.

数の部分に分割して、その分割された特定部分の行デー
タが全て°゛0”の場合にその特定部分の行データを削
除し、この削除したことを示す行圧縮情報データを記憶
するとともに1上記文字フォントデータから上記特定部
分の行データを除く残余の行データを記憶するようにし
1更に任意の列データをこの列データに隣接する前列の
データと比較して前列と同一データである場合に当該列
データを削除し、この削除したことを示す列圧縮情報デ
ータを記憶するとともに、上記削除した列データ以外の
列データのみを記憶するので、本来のデータを復元可能
なコードに置換する事によりキャラクタジェネレータの
ROM容量を大巾に削減する事が可能であり、同一のR
OM容量で構成ドツト数を増した高品位の印字が可能で
ある。
When the line data of the divided specific part is all °゛0'', the line data of that specific part is deleted, and the line compression information data indicating this deletion is stored. 1 Store the remaining row data excluding the row data of the specific part from the character font data 1 Further compare any column data with the data of the previous column adjacent to this column data and if the data is the same as the previous column The relevant column data is deleted and the column compression information data indicating this deletion is stored, and only the column data other than the deleted column data is stored, so the original data can be replaced with a code that can be restored. It is possible to greatly reduce the ROM capacity of the character generator, and the same R
High-quality printing with an increased number of constituent dots is possible with the OM capacity.

なお、このような処理方法は、マイクロコンピュータに
よって制御するプリンタにおいてはソフトウェアにより
容易に実現可能である。
Note that such a processing method can be easily implemented using software in a printer controlled by a microcomputer.

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

第1図は本発明の処理方法により処理されROM11 
 、 に記憶される一実施例の文字フォントデータの構成図1
第2図はROMに記憶する文字フォントデータに圧縮す
る手段を示すフロ−チャート1第3図はROMに記憶さ
れた文字フォントデータから元のデータを復元するフロ
ーチャート、第4図は24行×24列のドツトマトリク
スで表示しだ文字フォントデータ列図、第6図は第4図
の文字フォントデータを一般的なキャラクタジェネレー
タのROMのビット状態を示す文字フォントデータ列図
である。 1・・・・・行圧縮情報データ、2・・・・・列圧縮情
報データ、3・・・・・列データ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図 第3図 第4図 第5図 (舛
FIG. 1 shows a ROM 11 processed by the processing method of the present invention.
, Configuration diagram 1 of character font data of an embodiment stored in
Figure 2 is a flowchart showing means for compressing character font data stored in ROM. Figure 3 is a flowchart for restoring original data from character font data stored in ROM. Figure 4 is a 24 line x 24 6 is a character font data string diagram showing the character font data of FIG. 4 and the bit states of the ROM of a general character generator. 1... Row compressed information data, 2... Column compressed information data, 3... Column data. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 行・列のマトリックスで表現される文字フォントデータ
の行データを複数の部分に分割して、その分割された特
定部分の行データが全て“0”の場合にその特定部分の
行データを削除し、この削除したことを示す行圧縮情報
データを記憶するとともに、上記文字フォントデータか
ら上記特定部分の行データを除く残余のデータを記憶す
るようにし、更に任意の列データをこの列データに隣接
する前列のデータと比較して前列と同一データである場
合に当該列データを削除し、この削除したことを示す列
圧縮情報データを記憶するとともに、上記削除した列デ
ータ以外の列データのみを記憶することを特徴とする文
字フォントデータの処理方法。
Divide the line data of character font data expressed in a matrix of rows and columns into multiple parts, and delete the line data of the specific part if all the line data of the divided part is "0". , the line compression information data indicating the deletion is stored, and the remaining data excluding the line data of the specific part from the character font data is also stored, and any column data is added adjacent to this column data. Compare with data in the previous column, and if the data is the same as the previous column, delete the column data, store column compression information data indicating this deletion, and store only column data other than the deleted column data. A method of processing character font data characterized by the following.
JP61126133A 1986-05-30 1986-05-30 Method of processing character font data Pending JPS62280044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61126133A JPS62280044A (en) 1986-05-30 1986-05-30 Method of processing character font data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61126133A JPS62280044A (en) 1986-05-30 1986-05-30 Method of processing character font data

Publications (1)

Publication Number Publication Date
JPS62280044A true JPS62280044A (en) 1987-12-04

Family

ID=14927485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61126133A Pending JPS62280044A (en) 1986-05-30 1986-05-30 Method of processing character font data

Country Status (1)

Country Link
JP (1) JPS62280044A (en)

Similar Documents

Publication Publication Date Title
JPH03272874A (en) Dot pattern compression and extension
EP0207789A2 (en) Apparatus and method for displaying dot matrix characters in enlarged form
JPH0723008B2 (en) How to generate a character image
JPS5955762A (en) Printing system
JPH0643135B2 (en) Dot printer dot pattern storage method
JPS6335431B2 (en)
JP3045008B2 (en) Halftone image compression method
US4510617A (en) Character recognition system utilizing pattern matching method
JPS62280044A (en) Method of processing character font data
JPS6317493A (en) Processing of character font data
JP2699035B2 (en) Impact dot printer and printing method
JPH0458392B2 (en)
US5585829A (en) Apparatus and method for printing characters utilizing stored algorithms
JPS58160158A (en) Printing method by line-unit
JPS60155472A (en) Image magnification processing system
JPH0340715B2 (en)
JPS5895386A (en) Graphic japanese character pattern memory system
JPH02250089A (en) Method for removing quantization error in character generation with outline font by element
JPH08279915A (en) Method for compressing data in page printer
JPS608517B2 (en) Text/figure composite display method
JPS61284457A (en) Method for processing dot matrix data
JPS58147786A (en) Character generator
JPH04103370A (en) Storing method of character dot pattern data
JPH02107459A (en) Contract printing method
JPS62104769A (en) Image recorder