JPH04238391A - Font data storage method - Google Patents
Font data storage methodInfo
- Publication number
- JPH04238391A JPH04238391A JP3006274A JP627491A JPH04238391A JP H04238391 A JPH04238391 A JP H04238391A JP 3006274 A JP3006274 A JP 3006274A JP 627491 A JP627491 A JP 627491A JP H04238391 A JPH04238391 A JP H04238391A
- Authority
- JP
- Japan
- Prior art keywords
- font data
- character
- font
- character patterns
- data
- 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.)
- Withdrawn
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Digital Computer Display Output (AREA)
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明はフオントデータ記憶方式
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to font data storage systems.
【0002】0002
【従来の技術】従来のドツトマトリツクス形式のフオン
トデータ記憶方式においては、文字の周囲の余白部分を
含めた文字のドツトパターンを文字コード順に格納し、
文字コードから直接フオントデータ格納アドレスを計算
して参照するか、もしくは各文字のフオントデータが格
納されているメモリの先頭アドレスをテーブルとして別
に持ち、このテーブルによつて間接的にフオントデータ
を参照するのが一般的であつた。2. Description of the Related Art In the conventional dot matrix format font data storage system, the dot patterns of characters including the margins around the characters are stored in the order of character codes.
Either calculate and refer to the font data storage address directly from the character code, or keep a separate table with the start address of the memory where the font data of each character is stored, and refer to the font data indirectly using this table. was common.
【0003】0003
【発明が解決しようとする課題】しかしながら上記従来
例では、出力装置ドツトパターンの高精細化及び高密度
化に伴つて、文字のドツトパターンを構成するドツト数
が増加するため、1文字当たりに必要とされるフオント
データのデータ量が増大し、より大容量の記憶媒体を必
要としたり、記憶媒体容量に制限がある場合には格納で
きる文字数が減少したりする問題が生じていた。また、
最近は複数の書体及び文字サイズのフオントデータを収
容する出力装置も増えており、さらに記憶媒体の大容量
化につながつている。[Problems to be Solved by the Invention] However, in the above-mentioned conventional example, as the dot pattern of the output device becomes finer and denser, the number of dots that make up the dot pattern of a character increases. The amount of font data that can be stored has increased, necessitating a storage medium with a larger capacity, and if the storage medium capacity is limited, the number of characters that can be stored is reduced. Also,
Recently, the number of output devices that can accommodate font data of multiple fonts and character sizes has increased, and the capacity of storage media has also increased.
【0004】本発明は上記従来例に鑑みてなされたもの
で、文字フオントのデータ量を減少させ、記憶媒体の利
用効率を向上させたフオントデータ記憶方式を提供する
ことを目的とする。The present invention has been made in view of the above-mentioned conventional example, and an object of the present invention is to provide a font data storage method that reduces the amount of character font data and improves the utilization efficiency of a storage medium.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するため
に本発明のフオントデータ記憶方式は、以下の様な構成
からなる。即ち、ドツトマトリツクス形式で文字パター
ンを構成するフオントにおいて、複数の文字パターンを
記憶する記憶手段を有し、前記複数の文字パターンを前
記記憶手段に記憶する際、前記複数の文字パターン各々
の余白部分を共通にして記憶することを特徴とするフオ
ントデータ記憶方式を備える。[Means for Solving the Problems] In order to achieve the above object, the font data storage system of the present invention has the following configuration. That is, in a font in which character patterns are formed in a dot matrix format, the font has a storage means for storing a plurality of character patterns, and when the plurality of character patterns are stored in the storage means, the margins of each of the plurality of character patterns are The font data storage method is characterized in that parts are stored in common.
【0006】[0006]
【作用】以上の構成により本発明は、ドツトマトリツク
ス形式文字パターンの文字の周囲の余白部分と他の文字
パターンの文字の周囲の余白部分とを共有させて記憶手
段に文字パターンデータを記憶させる。[Operation] With the above structure, the present invention allows the storage means to store character pattern data by sharing the margins around the characters of the dot matrix format character pattern with the margins around the characters of other character patterns. .
【0007】[0007]
【実施例】以下添付図面を参照して本発明の好適な実施
例を詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
【0008】(装置の構成)図1は本発明の代表的ない
くつかの実施例を実行する記録装置の構成を示すブロツ
ク図である。このような記録装置において、まずインタ
フエース2を介して接続された外部装置から印字データ
が入力され、その印字データを構成する文字コードや制
御コードなどは、一旦受信バツフアメモリ4に蓄えられ
る。次にマイクロプロセツサ形態のCPU1は、プログ
ラムメモリ3に格納された制御プログラムに従つて、受
信バツフアメモリ4内の印字データを解析し、フオント
メモリ5内のフオントデータを適宜参照しながら出力イ
メージデータをイメージバツフアメモリ6に展開する。
これと並行して、CPU1は、イメージバツフアメモリ
6に展開された出力イメージデータに基づいて記録装置
7を制御し、記録媒体上に文字、記号等のドツトイメー
ジを記録する。(Structure of Apparatus) FIG. 1 is a block diagram showing the structure of a recording apparatus for carrying out some representative embodiments of the present invention. In such a recording device, first, print data is input from an external device connected via the interface 2, and character codes, control codes, etc. constituting the print data are temporarily stored in the reception buffer memory 4. Next, the CPU 1 in the form of a microprocessor analyzes the print data in the reception buffer memory 4 according to the control program stored in the program memory 3, and outputs the output image data while appropriately referring to the font data in the font memory 5. Expand to image buffer memory 6. In parallel with this, the CPU 1 controls the recording device 7 based on the output image data developed in the image buffer memory 6, and records dot images such as characters and symbols on the recording medium.
【0009】以下にこのような構成の記録装置を用いて
実行するいくつかの実施例について説明する。[0009] Several embodiments executed using a recording apparatus having such a configuration will be described below.
【0010】(第1実施例)図2は、本実施例で用いる
16ドツト(縦)×16ドツト(横)構成のフオントデ
ータ一文字分の記憶形式を示す図である。このようなフ
オントデータはフオントメモリ5に格納される。(First Embodiment) FIG. 2 is a diagram showing a storage format for one character of font data having a 16 dot (vertical) x 16 dot (horizontal) configuration used in this embodiment. Such font data is stored in the font memory 5.
【0011】さて、文字パターンを適当な解像度で細分
する格子点上の各ドツトは、それぞれフオントメモリ5
のデータ各1ビツトに割り当てられ、所定のドツトが文
字パターンに含まれるとき対応するビツトは1にセツト
され、背景部分に含まれるとき対応するビツト0にセツ
トされる。このようなフオントデータは縦方向に分割さ
れ、縦8ドツトずつをひとまとまりのブロツクとし、1
バイトのデータとして記憶される。図2に示すように、
このブロツク各々をd0,d1,d2,…… ,dw−
1 と呼ぶ。
データ各文字のフオントデータはそれぞれWバイトから
なり、各文字の左余白部分および右余白部分は、それぞ
れフオントデータ列の先頭および末尾に割り当てられる
。Now, each dot on the grid point that subdivides the character pattern at an appropriate resolution is stored in the font memory 5.
When a predetermined dot is included in the character pattern, the corresponding bit is set to 1, and when it is included in the background part, the corresponding bit is set to 0. This type of font data is divided vertically, with each 8 vertical dots forming a block.
Stored as byte data. As shown in Figure 2,
Each of these blocks is d0, d1, d2, ..., dw-
Call it 1. Data The font data of each character consists of W bytes, and the left margin and right margin of each character are allocated to the beginning and end of the font data string, respectively.
【0012】図3は前述の記憶形式をもつフオントデー
タの記憶形態を示す図である。本実施例では、縦方向8
ドツトずつを1バイトのデータとして記憶する形式をと
るので、隣接する2文字の左右の余白部分、即ち、各文
字のフオントデータ列の先頭および末尾の、値が0とな
つている部分のうち、aバイトずつが相互に重なり合う
ような形態で記憶する。このようにしてフオントデータ
のデータ量を一文字あたりaバイトづつ減らすことがで
きる。FIG. 3 is a diagram showing a storage form of font data having the above-mentioned storage format. In this embodiment, 8 in the vertical direction
Since each dot is stored as 1-byte data, the left and right margins of two adjacent characters, that is, the parts with a value of 0 at the beginning and end of the font data string of each character, It is stored in a format in which a bytes are overlapped with each other. In this way, the amount of font data can be reduced by a byte per character.
【0013】次に本実施例における1文字分のフオント
データをイメージバツフアメモリ6に展開する処理手順
について、図4に示すフローチヤートを用いて説明する
。Next, the processing procedure for developing one character's worth of font data in the image buffer memory 6 in this embodiment will be explained using the flowchart shown in FIG.
【0014】まずステツプS1では、1文字分の文字コ
ードnを受信バツフアメモリ4から読み込む。次にステ
ツプS2で、文字コードnに対応するフオントデータの
格納アドレスAnを次式により計算する。First, in step S1, a character code n for one character is read from the reception buffer memory 4. Next, in step S2, the storage address An of the font data corresponding to the character code n is calculated using the following equation.
【0015】An=A0+(W−a)×n …(
1)第(1)式中、A0は文字コード0に対応するフオ
ントデータの格納アドレスである。[0015] An=A0+(W-a)×n...(
1) In equation (1), A0 is the storage address of font data corresponding to character code 0.
【0016】ステツプS3で、第(1)式により求めた
フオントデータ格納アドレスAnからWバイト分のフオ
ントデータを、イメージバツフアメモリ6に展開する。In step S3, W bytes worth of font data is expanded into the image buffer memory 6 from the font data storage address An obtained by equation (1).
【0017】従って本実施例に従えば、フオントデータ
展開処理時、文字コードに対応するフオントデータ格納
アドレスの算出において、隣接するフオントデータとの
重なり合う分のaバイトを考慮する以外は、従来と同様
のフオントデータ格納アドレスの算出アルゴリズムを用
いることができるので、従来のフオントデータ展開処理
を維持しつつ効率的なフオントデータ格納を行うことが
できる。Therefore, according to this embodiment, when font data is expanded, the calculation of the font data storage address corresponding to the character code is carried out in the same way as the conventional method except that a bytes of overlap with adjacent font data are taken into consideration. Since the algorithm for calculating the font data storage address can be used, efficient font data storage can be performed while maintaining the conventional font data expansion process.
【0018】(第2実施例)図5は本実施例におけるフ
オントデータの記憶形態を示す図である。本実施例では
、フオントデータを横方向に分割して、横8ドツトずつ
を1バイトのひとかたまりのデータ(即ちブロック)と
して記憶する。本実施例においては、このブロック各々
がフオントメモリ5に格納される際、隣接する文字の上
下の余白部分aバイトずつを、相互に重なり合うような
形態で記憶する。このようにしてフオントデータのデー
タ量を一文字あたりaバイトづつ減らすことができる。(Second Embodiment) FIG. 5 is a diagram showing the storage format of font data in this embodiment. In this embodiment, the font data is divided horizontally, and 8 horizontal dots each are stored as one byte of data (ie, a block). In this embodiment, when each block is stored in the font memory 5, a byte of the upper and lower margins of adjacent characters are stored in such a manner that they overlap with each other. In this way, the amount of font data can be reduced by a byte per character.
【0019】本実施例においても、第1実施例と同様の
方法によつてフオントデータを参照利用することができ
る。In this embodiment as well, the font data can be referenced and used in the same manner as in the first embodiment.
【0020】(第3実施例)本実施例では、各文字ごと
のフオントデータが記憶されているメモリの先頭アドレ
スを格納したルツクアツプテーブルに基づきフオントデ
ータを間接的に参照し、隣接する文字のデータ共有部分
のバイトaがフオントデータの内容により可変とする場
合について説明する。(Third Embodiment) In this embodiment, font data is indirectly referenced based on a lookup table that stores the start address of the memory where font data for each character is stored, and the font data of adjacent characters is A case will be described in which byte a of the data sharing portion is variable depending on the content of font data.
【0021】図6は本実施例におけるフオントデータの
記憶形態を示す図である。図6に示すように、例えば、
“I”のように文字によつては余白部分が大きい場合も
あれば、“H”のように余白部分が小さい場合もある。
本実施例ではこのような場合、隣接する文字に依存して
データ共有部分を大きくとつたり(例えば、“I”と“
J”との間)、小さくとつたり(例えば、“H”と“I
”との間)する。このようにして、余白部分の大きな文
字に対してはデータ共有部分をより大きくすることがで
き、より効率の良いフオントデータ記憶を行なうことが
できる。FIG. 6 is a diagram showing the storage format of font data in this embodiment. As shown in FIG. 6, for example,
Some characters, such as "I", have large margins, while other characters, such as "H", have small margins. In this embodiment, in such a case, the data sharing portion is increased depending on the adjacent characters (for example, "I" and "
between “H” and “I”), or a small difference (for example, between “H” and “I”
”). In this way, the data sharing area can be made larger for large characters in the margin area, and more efficient font data storage can be achieved.
【0022】次に本実施例における1文字分のフオント
データをイメージバツフアメモリ6に展開する処理手順
について、図7に示すフローチヤートを用いて説明する
。Next, the processing procedure for developing one character's worth of font data in the image buffer memory 6 in this embodiment will be explained using the flowchart shown in FIG.
【0023】まず、ステツプS11で、1文字分の文字
コードnを受信バツフアメモリ4から読み込む。次に、
ステツプS12で、文字コードnに対応するルツクアツ
プテーブルのアドレスTnを次式により求める。First, in step S11, the character code n for one character is read from the reception buffer memory 4. next,
In step S12, address Tn of the lookup table corresponding to character code n is determined by the following equation.
【0024】Tn=T0+t×n …(2)第(
2)式中、T0はルツクアツプテーブルの先頭アドレス
、tはルツクアツプテーブル中で1文字分の要素が占め
るバイト数である。次にステツプS13では、ステツプ
S12で求めたアドレスTnをアクセスし、フオントデ
ータ格納アドレスAnを求める。最後にステツプS14
で、ステツプS13により求めたフオントデータ格納ア
ドレスAnからWバイト分のフオントデータを、イメー
ジバツフアメモリ6に展開する。Tn=T0+t×n...(2)th (
2) In the equation, T0 is the start address of the lookup table, and t is the number of bytes occupied by an element for one character in the lookup table. Next, in step S13, the address Tn obtained in step S12 is accessed to obtain the font data storage address An. Finally step S14
Then, W bytes worth of font data is expanded into the image buffer memory 6 from the font data storage address An obtained in step S13.
【0025】従って本実施例に従えば、フオントデータ
に依存してデータ共有部分を可変とすることができるの
で、より効率の良いフオントデータ記憶を行なうことが
できる。さらにプログラムメモリ3に格納する制御プロ
グラムを変更することなく、フオントメモリ5のフオン
トデータ及びルツクアツプテーブルのみを変更すること
によりフオントメモリからのフオントデータ読み出しを
行うことができる。Therefore, according to this embodiment, the data sharing portion can be made variable depending on the font data, so that more efficient font data storage can be performed. Furthermore, without changing the control program stored in the program memory 3, font data can be read from the font memory by changing only the font data and lookup table in the font memory 5.
【0026】以上3つの実施例においては各文字フオン
トのドツト構成は一定であることを前提として説明した
が本発明はこれに限定されるものではない。例えば、文
字ごとに文字の幅が異なる、所謂プロポーシヨナルスペ
ーシングのフオントに対しても本発明を適用することが
できる。Although the above three embodiments have been described on the assumption that the dot configuration of each character font is constant, the present invention is not limited to this. For example, the present invention can also be applied to a font with so-called proportional spacing, in which the width of each character differs.
【0027】また、フオントデータの記憶媒体としては
フオントメモリROMに限定されるものではなく、フロ
ツピデイスクなどに記憶しておき必要に応じてフオント
メモリRAMにフオントデータを読み込んで参照利用す
る方法や、外部装置から必要に応じてインタフエースを
介してフオントデータをダウンロードする方法も考えら
れる。Furthermore, the storage medium for font data is not limited to the font memory ROM, but there are also methods of storing the font data on a floppy disk or the like and reading the font data into the font memory RAM for reference and use as needed, or using an external A method of downloading font data from the device via an interface as needed may also be considered.
【0028】さらに本実施例では記録装置を出力とする
構成で説明したが、本発明はこれに限定されるものでは
なく、例えば、他のドツトイメージ画像出力装置に出力
することもできる。Furthermore, although this embodiment has been described with a configuration in which the recording device is used as an output, the present invention is not limited to this, and for example, it is also possible to output to another dot image image output device.
【0029】[0029]
【発明の効果】以上説明したように本発明によれば、フ
オントデータの記憶効率が向上し記憶媒体を有効に利用
できる効果がある。As explained above, according to the present invention, the storage efficiency of font data is improved and the storage medium can be used effectively.
【図1】本発明の代表的な実施例である記録装置の構成
を示すブロツク図である。FIG. 1 is a block diagram showing the configuration of a recording apparatus that is a typical embodiment of the present invention.
【図2】第1実施例に従う1文字のフオントデータの形
式を示す図である。FIG. 2 is a diagram showing the format of one character font data according to the first embodiment.
【図3】第1実施例に従うフオントデータの記憶形態を
示す図である。FIG. 3 is a diagram showing a storage format of font data according to the first embodiment.
【図4】第1実施例に従うフオントデータ展開処理手順
を示すフローチヤートである。FIG. 4 is a flowchart showing a font data development processing procedure according to the first embodiment.
【図5】第2実施例に従うフオントデータの記憶形態を
示す図である。FIG. 5 is a diagram showing a storage format of font data according to a second embodiment.
【図6】第3実施例に従うフオントデータの記憶形態を
示す図である。FIG. 6 is a diagram showing a storage format of font data according to a third embodiment.
【図7】第3実施例に従うフオントデータ展開処理手順
を示すフローチヤートである。FIG. 7 is a flowchart showing a font data development processing procedure according to a third embodiment.
1 CPU 2 インタフエース 3 プログラムメモリ 4 受信バツフアメモリ 5 フオントメモリ 6 イメージバツフアメモリ 7 記録装置 1 CPU 2 Interface 3 Program memory 4 Reception buffer memory 5 Font memory 6 Image buffer memory 7 Recording device
Claims (3)
ンを構成するフオントにおいて、複数の文字パターンを
記憶する記憶手段を有し、前記複数の文字パターンを前
記記憶手段に記憶する際、前記複数の文字パターン各々
の余白部分を共通にして記憶することを特徴とするフオ
ントデータ記憶方式。1. A font in which character patterns are formed in a dot matrix format, comprising a storage means for storing a plurality of character patterns, and when storing the plurality of character patterns in the storage means, the plurality of character patterns are stored in the storage means. A font data storage method characterized by storing each blank space in common.
ドツトマトリツクスをしており、前記矩形のドツトマト
リツクスの上側下側或は右側左側の所定の範囲を前記余
白部分とみなすことを特徴とする請求項第1項に記載の
フオントデータ記憶方式。2. Each of the plurality of character patterns is a rectangular dot matrix, and a predetermined range on the upper, lower, right, and left sides of the rectangular dot matrix is regarded as the blank space. The font data storage method according to claim 1.
ドツトマトリツクスをしており、前記複数文字パターン
各々のドツトパターンに従つて、前記余白部分の大きさ
を決定することを特徴とする請求項第1項に記載のフオ
ントデータ記憶方式。3. Each of the plurality of character patterns is a rectangular dot matrix, and the size of the margin portion is determined according to the dot pattern of each of the plurality of character patterns. The font data storage method according to paragraph 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3006274A JPH04238391A (en) | 1991-01-23 | 1991-01-23 | Font data storage method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3006274A JPH04238391A (en) | 1991-01-23 | 1991-01-23 | Font data storage method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04238391A true JPH04238391A (en) | 1992-08-26 |
Family
ID=11633834
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3006274A Withdrawn JPH04238391A (en) | 1991-01-23 | 1991-01-23 | Font data storage method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04238391A (en) |
-
1991
- 1991-01-23 JP JP3006274A patent/JPH04238391A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4692757A (en) | Multimedia display system | |
| US4887228A (en) | Method for filling surface parts of an image with a surface pattern | |
| EP0461811A2 (en) | Pattern processing method | |
| JPH04238391A (en) | Font data storage method | |
| JPS61141480A (en) | Expanded character processor | |
| JP3006529B2 (en) | Character font conversion method | |
| JP2907826B2 (en) | Character font management device | |
| JP2776347B2 (en) | Drawing device for printer | |
| JPH07106649B2 (en) | output method | |
| KR970002108B1 (en) | Laser-printer bit map font | |
| JP2849319B2 (en) | Character pattern compression method | |
| JPS61158384A (en) | character processing device | |
| JPS63207656A (en) | Output device for font set of arbitrary size per character style | |
| JP2744250B2 (en) | Character processing apparatus and method | |
| JP2715475B2 (en) | Graphic output device | |
| JPH0439434B2 (en) | ||
| JPS63218993A (en) | Character/graphics expander | |
| JPH06127030A (en) | Printer | |
| JPS6230053A (en) | Dot-shaped scaling method | |
| JPH0474659A (en) | printer device | |
| JPH04344522A (en) | Character output device | |
| JPH0263761A (en) | character output device | |
| JPH03176169A (en) | Printer | |
| JPH0250277A (en) | Screening system for binary picture information | |
| JPS6136788A (en) | Character pattern generation processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19980514 |