JPH0341496A - Font generating device with gradation - Google Patents

Font generating device with gradation

Info

Publication number
JPH0341496A
JPH0341496A JP1176670A JP17667089A JPH0341496A JP H0341496 A JPH0341496 A JP H0341496A JP 1176670 A JP1176670 A JP 1176670A JP 17667089 A JP17667089 A JP 17667089A JP H0341496 A JPH0341496 A JP H0341496A
Authority
JP
Japan
Prior art keywords
data
gradation
font
difference
memory
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
JP1176670A
Other languages
Japanese (ja)
Inventor
Yuji Onozawa
雄二 小野澤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP1176670A priority Critical patent/JPH0341496A/en
Publication of JPH0341496A publication Critical patent/JPH0341496A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To reduce the capacity of gradation font data by providing a font storage means stored with font data as a bit map and a gradation difference font data storage means stored with difference data for gradation representation and position information on the bit map. CONSTITUTION:A binary font memory 1 stores binary font data as bit map data. A gradation difference font data memory 2 stores the difference data for gradation representation and the position information on the bit map. A control arithmetic circuit 4 calculates the difference data in the memory 2 for the binary font data on the memory 1 according to the gradation data in a gradation data table 3 to generate gradation data. At this time, the difference data on the memory 2 is stored together with the position information on the bit map, so only data on dots having differences are required.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、フォント発生装置、特に階調を有するフォン
トデータ記憶手段を具備するフォント発生装置に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a font generation device, and more particularly to a font generation device equipped with font data storage means having gradations.

(従来の技術) 近年、プリンタやデイスプレィにおいても、デジタル信
号を入力として階調を表現できるものが多くみられるよ
うになってきている。しかし、文字や記号等を出力、表
示するためのフォントデータは、従来のように2値表現
のものが多く、階調をもったものは余り普及していない
(Prior Art) In recent years, many printers and displays that can express gradation by inputting digital signals have become common. However, font data for outputting and displaying characters, symbols, etc. is often expressed in binary format as in the past, and font data with gradation is not widely used.

その理由としては、文字は単色で表現されることが通常
の使用方法であると考えられていること、さらに、2値
のデータでさえフォントデータの容量は多く(日本語標
準文字だけで約7000字もある)、階調を表現しよう
とする場合、データの容量は更にその数倍を必要とし、
製品のコストに大きく影響を与えることである。しかし
、2値のデータで文字等を表現すると、階調のない単調
さだけでなく、斜線部分のギザギザが目立ち、美しいフ
ォントを得ることはできなかった。
The reason for this is that it is considered that characters are normally expressed in a single color, and that even binary data requires a large amount of font data (approximately 7,000 Japanese standard characters alone). If you want to express gradation, the data capacity will be several times that amount,
This has a significant impact on the cost of the product. However, when characters, etc. are expressed using binary data, not only are the fonts monotonous with no gradation, but the jagged edges of the diagonal lines become noticeable, making it impossible to obtain beautiful fonts.

その解決として階調をつけて斜線部分を表現すると、斜
線部分のギザギザも目立たなくなることからも、階調フ
ォントデータの要求は、美しいフォントを得るという意
味でも高まってきている。
As a solution to this problem, if the diagonal lines are expressed using gradation, the jaggedness of the diagonal lines becomes less noticeable, and the demand for gradation font data is also increasing in terms of obtaining beautiful fonts.

例えば、特開昭62−208176号公報に記載された
画像処理装置は、文字あるいは記号等のフォントパター
ンを格納した文字フォントROMに対して、所定の大き
さの階調に応じたパターンを複数個記憶する記憶手段を
用い、該記憶手段に記憶された複数のパターンの中から
所望とする階調のパターンを選択し、選択されたパター
ンを文字フォントROMよりのデータにマスクすること
によって階調を有するパターンを発生できるものである
For example, the image processing device described in Japanese Patent Application Laid-Open No. 62-208176 creates a plurality of patterns corresponding to gradations of a predetermined size in a character font ROM that stores font patterns such as characters or symbols. Using a storage means for storing data, select a desired gradation pattern from a plurality of patterns stored in the storage means, and masking the selected pattern with data from the character font ROM to change the gradation. It is possible to generate a pattern with

したがって、階調のパターンの組合せで多種類パターン
が得られるから、多種類の明暗別の文字フォントを用意
する場合に比して、メモリの容量は少なくなるとしても
、複数個の階調のパターンを用意するため、かなりのメ
モリ容量を必要とするものである。
Therefore, since many types of patterns can be obtained by combining gradation patterns, even if the memory capacity is smaller than when preparing multiple types of bright and dark character fonts, multiple gradation patterns can be obtained. This requires a considerable amount of memory capacity.

(発明が解決しようとする課題) 本発明は、階調を有するフォント発生装置において、フ
ォントデータの容量を小さいものとすることを目的とし
てなされたものである。
(Problems to be Solved by the Invention) The present invention has been made for the purpose of reducing the capacity of font data in a font generating device having gradations.

(課題を解決するための手段) 本発明は、階調を有するフォント発生装置において、2
値のフォントデータをビットマツプデータとして記憶す
る2値フォント記憶手段と、階調表現のための差分デー
タとそのビットマツプ上での位置情報を記憶する階調差
分フォントデータ記憶手段とを具備することを特徴とす
るものである。
(Means for Solving the Problems) The present invention provides a font generating device having gradation, in which two
The present invention includes a binary font storage means for storing value font data as bitmap data, and a gradation difference font data storage means for storing difference data for gradation expression and its position information on the bitmap. This is a characteristic feature.

階調差分フォントデータ記憶手段にはインデックスの領
域を設けず、文字コードに対する階調差分フォントデー
タ記憶手段におけるアドレスを記憶するインデツインデ
ックス記憶手段を介在させることもできる。
Instead of providing an index area in the gradation difference font data storage means, index index storage means for storing addresses in the gradation difference font data storage means for character codes may be interposed.

(作 用) 本発明の作用は、ビットマツプデータを記憶する2値フ
ォント記憶手段よりの2値のフォントデータに対して、
階調差分フォントデータ記憶手段からの階調表現のため
の差分データを演算処理して階調データを作成するもの
である。階調差分フォントデータ記憶手段における階調
表現のための差分データは、ビットマツプ上での位置情
報とともに記憶されるから、差分を有するドツトだけの
データで足りるものである。
(Function) The function of the present invention is to perform the following on binary font data from the binary font storage means for storing bitmap data.
The gradation data is created by calculating the difference data for gradation expression from the gradation difference font data storage means. Since the difference data for expressing the gradation in the gradation difference font data storage means is stored together with the position information on the bitmap, data of only the dots having the difference is sufficient.

(実施例) 第1図は、本発明の一実施例を説明するための概略図で
ある。図中1は、2値のフォントデータをビットマット
マツプデータとして蓄える2値フオントメモリ、2は階
調表現するための差分データとそのビットマツプ上での
位置を蓄える階調差分フォントデータメモリ、3は階調
差分フォントデータメモリ2のある文字データが何番地
から始まるかを記憶する階調データテーブル、4は2値
フオントメモリ1のデータを階調差分フォントデータメ
モリ2のデータをそれぞれ読み出し、それらの値に応じ
た演算を行ない、その結果を書き出す制御演算回路、5
は制御演算回路からの階調フォントデータを一時記憶す
る階調フォントバッファである。
(Example) FIG. 1 is a schematic diagram for explaining an example of the present invention. In the figure, 1 is a binary font memory that stores binary font data as bit mat map data, 2 is a gradation difference font data memory that stores difference data for expressing gradation and its position on the bitmap, and 3 is a gradation difference font data memory that stores difference data for expressing gradation and its position on the bitmap. A gradation data table 4 stores the address from which a certain character data starts in the gradation difference font data memory 2, and 4 reads out the data in the binary font memory 1 and the data in the gradation difference font data memory 2, respectively. A control calculation circuit that performs calculations according to values and writes out the results; 5
is a gradation font buffer that temporarily stores gradation font data from the control arithmetic circuit.

第1図における本発明の実施例を第2図〜第5図を参照
して説明する。ビットマツプは、第4図に示したように
40×40(ビット)のフォントデータとし、グレース
ケールの階調は、256階調(8ビツト)とし、文字と
して漢字の「小」の字を取り上げて説明する。ビットマ
ツプにおけるドツト数、および、階調数がこの値に限ら
ず、適宜の値が採用できることは勿論である。
The embodiment of the invention shown in FIG. 1 will be described with reference to FIGS. 2 to 5. The bitmap is 40 x 40 (bit) font data as shown in Figure 4, the gray scale is 256 gradations (8 bits), and the character is the kanji ``small''. explain. Of course, the number of dots and the number of gradations in the bitmap are not limited to these values, and any appropriate values can be adopted.

2値フオントメモリ1には、それぞれの文字について第
4図に示すような2値のビットマツプデータが蓄えられ
ている。データ形式は、周知のものであり、ポイントア
ドレスのX方向にOから39までを1ラインとし、Y方
向にラインを○から39まで走査した順に、 合計 40X40=1600 のアドレスに対して、「0」又は「1」を書き込んだも
のである。したがって、第4図でハツチングを施した領
域について「1」が、他の白色の領域については、「O
」が書き込まれている。
The binary font memory 1 stores binary bitmap data for each character as shown in FIG. The data format is well-known, and one line is from 0 to 39 in the X direction of the point address, and the lines are scanned from ○ to 39 in the Y direction, and for a total of 40 x 40 = 1600 addresses, "0 ” or “1” is written. Therefore, the hatched area in Figure 4 is marked "1", and the other white areas are marked "O".
” is written.

階調フォントデータメモリ2には、第2図に示すように
、そのドツトにおける2値データ(階調の値で、○また
は255)との階調の差分の値を表わすデータが、階調
差分データとして、また、そのドツトがビットマツプ上
のどの位置であるかを示すアドレスデータが、ポイント
アドレス(X)およびポイントアドレス(Y)として、
それぞれの文字ごとに蓄えられている。この場合、ポイ
ンドアドレス(X)とポイントアドレス(Y)は、それ
ぞれ8ビツトの2進データで記憶される。したがって、
ポイントアドレスとしては、256×256までのデー
タを扱うことができる。階調差分データも同様に8ビツ
トの2進データで、256階調を扱うことができる。上
述した2値フオントメモリ1における「○」および「1
」は、階調としてOおよび255に対応するデータであ
るから、これらに対する差分が○である場合、階調差分
データは省略され、階調差分フォントデータメモリには
記憶されない。
In the gradation font data memory 2, as shown in FIG. Address data indicating the position of the dot on the bitmap is used as point address (X) and point address (Y) as data.
It is stored for each character. In this case, the point address (X) and point address (Y) are each stored as 8-bit binary data. therefore,
Data up to 256x256 can be handled as a point address. The gradation difference data is similarly 8-bit binary data and can handle 256 gradations. “○” and “1” in the binary font memory 1 described above
” is data corresponding to gradations O and 255, so if the difference between them is ◯, the gradation difference data is omitted and is not stored in the gradation difference font data memory.

階調データテーブル3は、第3図に示すようにそれぞれ
の文字コードと、階調差分フォントデータメモリ2上の
データの位置(その文字のデータがどこから始まるか)
が階調フォントデータメモリアドレスとして蓄えられて
いる。文字コードは16進コードで表され、階調フォン
トデータメモリアドレスは、第2図に示した文字毎の階
調差分フォントデータのメモリ上での開始位置であるス
タートアドレスを工6進コードで蓄えている。
As shown in Fig. 3, the gradation data table 3 contains each character code and the position of the data in the gradation difference font data memory 2 (where the data of that character starts).
is stored as a gradation font data memory address. The character code is expressed in hexadecimal code, and the gradation font data memory address stores the start address, which is the starting position in memory of the gradation difference font data for each character shown in Figure 2, in hexadecimal code. ing.

この実施例においては、階調差分フォントデータのメモ
リは文字コードと共に記憶せず、したがって、インデッ
クスを持たず、第3図で説明した階調データテーブルを
介在させることにより、アクセスされた文字に対する階
調差分フォントデータを得るようにした。この方が全体
のメモリ容量は低減されるが、階調差分フォントデータ
メモリに文字コードの領域を与えておけば、階調データ
テーブルは不要である。したがって、第4図の「小コの
字でいえば、第5図にハツチングを施した領域のみ、階
調の差分に相当する値が書き込まれている。
In this embodiment, the memory for the gradation difference font data does not store the character code together with the character code, so it does not have an index, and by interposing the gradation data table explained in FIG. 3, the gradation for the accessed character is Added key difference font data. This method reduces the overall memory capacity, but if a character code area is provided in the gradation difference font data memory, a gradation data table is not necessary. Therefore, in FIG. 4, a value corresponding to the gradation difference is written only in the hatched area in FIG. 5.

制御演算回路4は、文字コードが与えられると、2値フ
オントメモリ1からその文字の対応するデータを、例え
ば、16ビツトごとに順次読み出す。
When the control arithmetic circuit 4 is given a character code, it sequentially reads data corresponding to that character from the binary font memory 1, for example, every 16 bits.

さらに、階調データテーブル3に文字コードを人力し、
階調差分フォントデータメモリ2上のその文字に対応す
る差分データのスタートアドレスを得る。そして、階調
差分フォントデータメモリ2にスタートアドレスを人力
して、順次、そのデータに関するビットマツプ上の位置
データ、および、その位置での差分データを読みだす。
Furthermore, manually enter the character code in the gradation data table 3,
The start address of the difference data corresponding to the character on the gradation difference font data memory 2 is obtained. Then, the start address is manually entered into the gradation difference font data memory 2, and the position data on the bitmap regarding that data and the difference data at that position are sequentially read out.

そして、階調差分フォントデータメモリ2に蓄えられて
いないビットマツプ上の位置は、2値フオントメモリ1
から読み出した値のみ参照して、「○」であれば○を、
「1」であれば255を、階調フォントバッファ5の対
応するビットマツプ位置に書き込む。また、階調差分フ
ォントデータメモリ2に蓄えられているビットマツプ上
の位置については、2値フオントメモリ上と階調差分フ
ォントデータメモリ2の値により、次のような演算を行
ない、結果を階調フォントバッファ5の対応するビット
マツプ位置に書き込む。
The positions on the bitmap that are not stored in the gradation difference font data memory 2 are stored in the binary font memory 1.
Refer only to the value read from , and if it is "○",
If it is "1", 255 is written to the corresponding bitmap position of the gradation font buffer 5. Furthermore, regarding the position on the bitmap stored in the gradation difference font data memory 2, the following calculation is performed using the values in the binary font memory and the gradation difference font data memory 2, and the results are converted into gradations. Write to the corresponding bitmap position in font buffer 5.

■2値フォントメモリの値が「O」の場合階調差分フォ
ントデータメモリの値をそのまま演算結果とする。
(2) When the value of the binary font memory is "O" The value of the gradation difference font data memory is used as the calculation result.

■2値フォントメモリの値が「1」の場合255−階調
差分フォントデータメモリの値を演算結果とする。
(2) When the value of the binary font memory is "1", the value of the 255-gradation difference font data memory is used as the calculation result.

また、階調差分フォントデータメモリ2のそのQ− 文字データの終了を示すために、最終ビット位置に関し
ては差分データがOであっても、(39,39、差分デ
ータ) のように必ず蓄えておくことによって判定できるように
している。
In addition, to indicate the end of the Q-character data in the gradation difference font data memory 2, even if the difference data is O at the final bit position, it is always stored as (39, 39, difference data). It is possible to judge by setting the

このように、1文字分の階調フォントデータを階調フォ
ントバッファ5に蓄えてから出力装置へ送ることにより
、グレースケールフォントを得ることができる。
In this way, a grayscale font can be obtained by storing one character's worth of gradation font data in the gradation font buffer 5 and then sending it to the output device.

(発明の効果) 以上の説明から明かなように、本発明によれば、階調フ
ォントデータの容量を従来のものと比べて大幅に削減す
ることができる。
(Effects of the Invention) As is clear from the above description, according to the present invention, the capacity of gradation font data can be significantly reduced compared to the conventional one.

例えば、上記実施例(文字「小」を例にとり、アドレス
を8ビツト+8ビツトで表すと仮定する。
For example, in the above embodiment (taking the character "small" as an example), assume that the address is represented by 8 bits + 8 bits.

)と従来のフォントメモリにおける2値データを、25
6階調の階調データとした場合(従来方式という)との
データ量を比較すると、 上記実施例では、 [40(ビット)X40 (ビット)+27(ボイ− ント)X24(アドレス16、階調8ビツト)]:8ビ
ット =281BYTE+テーブルメモリ量/文字数(数) 従来方式では、 [40(ビット)X40 (ビット)×8(階調のビッ
ト)]÷8ビット 1600BYTE となり、データ量は大幅に減少している。
) and binary data in conventional font memory, 25
Comparing the amount of data with 6-level gradation data (referred to as the conventional method), in the above example, [40 (bits) x 40 (bits) + 27 (voices) x 24 (address 16, gradation 8 bits)]: 8 bits = 281 BYTE + table memory amount / number of characters (number) In the conventional method, [40 (bits) is decreasing.

さらに、すべての文字について、これを平均的に眺めて
、例えば、256X256ビツト×8階調のグレースケ
ールの場合のデータ量は、階調(グレースケールになる
点)のあるビットが100ポイントあると仮定したとす
ると、 本発明では、 [256x256+100x24]÷8+数BTE =8492+数BYTE となるのに対し、従来方式では、 [256X256X8÷8] 11 =65536BYTE となり、フォントのビット量が増大するほど、本発明よ
れば大幅にメモリ容量を削減できることがわかる。
Furthermore, looking at all the characters on average, for example, the amount of data in the case of a gray scale of 256 x 256 bits x 8 gradations is that there are 100 points of bits with gradations (points that become gray scale). Assuming this, in the present invention, [256x256+100x24] ÷ 8 + number BTE = 8492 + number BYTE, whereas in the conventional method, it becomes [256x256x8 ÷ 8] 11 = 65536 BYTE. It can be seen that according to the invention, the memory capacity can be significantly reduced.

【図面の簡単な説明】 第1図は、本発明の一実施例の概略図、第2図は、階調
フォントデータメモリのデータ内容の一例の説明図、第
3図は、階調差分フォントバッファのデータ内容の一例
の説明図、第4図は、ビットマツプフォントのイメージ
の説明図、第5図はグレースケールフォントのイメージ
の説明図である。 工・・・2値フオントメモリ、2・・・階調差分フォン
トデータメモリ、3・・・階調データテーブル、4・・
・制御演算回路、5・・・階調フォントバッファ。
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a schematic diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of an example of data contents of a gradation font data memory, and FIG. 3 is a gradation difference font FIG. 4 is an explanatory diagram of an example of the data contents of the buffer, FIG. 4 is an explanatory diagram of an image of a bitmap font, and FIG. 5 is an explanatory diagram of an image of a grayscale font. Engineering: binary font memory, 2: gradation difference font data memory, 3: gradation data table, 4...
- Control calculation circuit, 5... gradation font buffer.

Claims (1)

【特許請求の範囲】[Claims]  フォントデータをビットマップデータとして記憶する
フォント記憶手段と、階調表現のための差分データとそ
のビットマップ上での位置情報を記憶する階調差分フォ
ントデータ記憶手段とを具備することを特徴とする階調
を有するフォント発生装置。
The present invention is characterized by comprising a font storage means for storing font data as bitmap data, and a gradation difference font data storage means for storing difference data for gradation expression and its position information on the bitmap. Font generator with gradation.
JP1176670A 1989-07-08 1989-07-08 Font generating device with gradation Pending JPH0341496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1176670A JPH0341496A (en) 1989-07-08 1989-07-08 Font generating device with gradation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1176670A JPH0341496A (en) 1989-07-08 1989-07-08 Font generating device with gradation

Publications (1)

Publication Number Publication Date
JPH0341496A true JPH0341496A (en) 1991-02-21

Family

ID=16017664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1176670A Pending JPH0341496A (en) 1989-07-08 1989-07-08 Font generating device with gradation

Country Status (1)

Country Link
JP (1) JPH0341496A (en)

Similar Documents

Publication Publication Date Title
US5852710A (en) Apparatus and method for storing image data into memory
US4827254A (en) Display apparatus adapted to display various types of modified characters
JPH031193A (en) Data converter
US4642622A (en) Video signal generating circuit
US5367634A (en) Display method, control circuit for the same and display device
JPH0818790A (en) Compression system for half tone image
JPH0341496A (en) Font generating device with gradation
JPS6144317B2 (en)
AU7876887A (en) Printer character generator
JPH04264915A (en) Form overlay printing system
JPS6346429B2 (en)
JPH0113117B2 (en)
JPH03220979A (en) Compressing device and recovery device for contour line data
JPH03169655A (en) Color image output/display system
JPS61144688A (en) Character generation system
JPS5856872B2 (en) Expanded character pattern encoder
KR930000179B1 (en) Letter printing system for dot metrix printer
JPS5855973A (en) Compression of graphic japanese character
JPS6173990A (en) Character pattern generator
JPH0876739A (en) Reduced screen display method and reduced screen display device of bit map font
JPS6364086A (en) Output unit
JPH0486274A (en) Pattern generation system
JPS6010293A (en) Character pattern generator
JPH04168046A (en) Pattern generator
JPH0747332B2 (en) Printer print correction method