JPH07181950A - Generating method for character data - Google Patents

Generating method for character data

Info

Publication number
JPH07181950A
JPH07181950A JP5346197A JP34619793A JPH07181950A JP H07181950 A JPH07181950 A JP H07181950A JP 5346197 A JP5346197 A JP 5346197A JP 34619793 A JP34619793 A JP 34619793A JP H07181950 A JPH07181950 A JP H07181950A
Authority
JP
Japan
Prior art keywords
character data
reduced
bit
basic
point
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.)
Granted
Application number
JP5346197A
Other languages
Japanese (ja)
Other versions
JP2901860B2 (en
Inventor
Masaki Fujiwara
正木 藤原
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP5346197A priority Critical patent/JP2901860B2/en
Publication of JPH07181950A publication Critical patent/JPH07181950A/en
Application granted granted Critical
Publication of JP2901860B2 publication Critical patent/JP2901860B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To eliminate the need to develop reduced character data of KANJI (Chinese character) which are low in frequency of use and to eliminate the need to add an extra expensive ROM by generating the reduced character data from basic character data. CONSTITUTION:A CPU 1 when generating character data, supplies necessary instruction and information to a character data generating means 2 as a drawing mechanism. A character data generating means 2 reads the basic character data out of a CG(character generator) 3 and develops and processes the data on a character data memory 4 to generate various reduced character data. For example, when the reduction direction is only longitudinal or lateral, 1st reduced character data based upon a basic point bit as a start point are generated, 2nd reduced character data based upon a point, shifted from the basic point bit by specific bits in the specific direction, as a start point are generated, and the 1st and 2nd reduced character data are ORed to generate longitudinally or laterally reduced character data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ビットパターンで構成
される基本文字データからそれに対して所定割合で縮小
された縮小文字データを生成する文字データの生成方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character data generating method for generating reduced character data which is reduced at a predetermined ratio from basic character data composed of bit patterns.

【0002】[0002]

【従来の技術】一般的に、プリンタやディスプレイは、
ビットパターンで構成される文字データ(ビットマップ
・フォント)をキャラクタジェネレータ(以下、CGと
いう)から読み出して文字の印刷や表示を行う。CG
は、英数字、ひらがな、及びカタカナ等の単純な文字に
ついては、全角の文字データの他に、半角及び1/4角
等の異なる形式(サイズ)の縮小文字データを有してい
るが、漢字については、全角サイズに相当する文字デー
タ(基本文字データ)のみしか備えていないのが普通で
ある。
2. Description of the Related Art Generally, printers and displays are
Character data (bitmap font) composed of bit patterns is read from a character generator (hereinafter referred to as CG) to print or display characters. CG
For simple characters such as alphanumeric characters, hiragana and katakana, in addition to full-width character data, reduced character data of different formats (size) such as half-width and quarter-width are available. As for, is usually provided only with character data (basic character data) corresponding to full-width size.

【0003】[0003]

【発明が解決しようとする課題】したがって、例えば、
漢字の縮小文字データが必要な場合には、漢字の縮小文
字データを異なるサイズ毎に格納したROMを増設しな
ければならない。このためには、多数の漢字の縮小文字
データを開発する費用がかかるだけでなく、大量の縮小
文字データを格納する高価なROMが必要となる。一
方、漢字の縮小文字は、通常、その使用頻度が低いた
め、上記の理由により装置全体のコストが上昇すること
は好ましくない。本発明は、このような事情に基づいて
なされたもので、その目的は、使用頻度の低い漢字等の
縮小文字データを開発する必要がなく、かつ、高価なR
OMの増設も不要な文字データの生成方法を提供するこ
とにある。
Therefore, for example,
If reduced kanji character data is needed, a ROM that stores reduced kanji character data for different sizes must be added. For this purpose, not only is it expensive to develop a large number of reduced character data of Chinese characters, but also an expensive ROM for storing a large amount of reduced character data is required. On the other hand, the reduced characters of Chinese characters are usually used infrequently, and therefore it is not preferable that the cost of the entire device increases due to the above reasons. The present invention has been made based on such a situation, and its purpose is to eliminate the need for developing reduced character data such as Kanji characters which are rarely used and which is expensive.
It is to provide a method of generating character data that does not require additional OM.

【0004】[0004]

【課題を解決するための手段及び作用】[Means and Actions for Solving the Problems]

(1)縮小方向が縦又は横のいずれか一方向のみのとき
は、基点ビットを開始点として第1の縮小文字データを
生成し、基点ビットから所定ビット分だけ所定方向にず
れた点を開始点として第2の縮小文字データを生成し、
第1及び第2の縮小文字データとの論理和から縦又は横
方向の縮小文字データを生成する。 (2)縮小方向が縦及び横両方向のときは、基点ビット
を開始点として第1の縮小文字データを生成し、基点ビ
ットから所定ビット分だけ縦方向にずれた点を開始点と
して第2の縮小文字データを生成し、基点ビットから所
定ビット分だけ横方向にずれた点を開始点として第3の
縮小文字データを生成し、第1〜第3の縮小文字データ
の論理和から縦横方向の縮小文字データを生成する。 上記(1)及び(2)の手順では、基本文字データから
生成した縮小文字データと、基本文字データを縮小方向
にずらして生成した縮小文字データとの論理和をとって
いるので、縦線又は横線が細い基本文字データから縦線
又は横線を消失させることなく縮小文字データを得るこ
とができる。
(1) When the reduction direction is only one of the vertical direction or the horizontal direction, the first reduced character data is generated with the base point bit as the start point, and the point shifted from the base point bit by the predetermined amount in the predetermined direction is started. Generate the second reduced character data as points,
Reduced character data in the vertical or horizontal direction is generated from the logical sum of the first and second reduced character data. (2) When the reduction direction is both the vertical and horizontal directions, the first reduced character data is generated with the base point bit as a start point, and the second shifted character is generated with a point vertically displaced from the base point bit by a predetermined bit as the start point. The reduced character data is generated, the third reduced character data is generated with a point laterally displaced from the base point bit by a predetermined number of bits as a start point, and vertical and horizontal directions are obtained from the logical sum of the first to third reduced character data. Generate reduced character data. In the steps (1) and (2) above, since the logical sum of the reduced character data generated from the basic character data and the reduced character data generated by shifting the basic character data in the reduction direction is calculated, a vertical line or Reduced character data can be obtained from basic character data having thin horizontal lines without losing vertical lines or horizontal lines.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。図1は、本発明の文字データの生成方法をプリンタ
に適用する場合の構成を示す要部ブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a main part showing a configuration when a character data generation method of the present invention is applied to a printer.

【0006】CPU1は、文字データの生成にあたっ
て、必要な命令や情報を描画機構である文字データ生成
手段2に対して与える。文字データ生成手段2は、CG
(キャラクタジェネレータ)3から基本文字データを読
み出すとともに、これを後述する方法に従って文字デー
タメモリ4上において展開及び演算することにより、各
種類の縮小文字データを生成する。文字データメモリ4
は、例えば、フレームメモリ等の画像メモリによって構
成される。印字部5は、文字データメモリ4に格納され
る縮小文字データを読み出して所定の印字動作を実行す
る。
When generating character data, the CPU 1 gives necessary commands and information to the character data generating means 2 which is a drawing mechanism. The character data generating means 2 is CG
The basic character data is read from the (character generator) 3 and is expanded and operated on the character data memory 4 according to a method described later to generate reduced character data of each type. Character data memory 4
Is composed of, for example, an image memory such as a frame memory. The printing unit 5 reads the reduced character data stored in the character data memory 4 and executes a predetermined printing operation.

【0007】CPU1から文字データ生成手段2には、
基本文字データのコード(例えば、JISコード)、文
字データメモリ4における文字データの展開位置(アド
レス)、展開形式(サイズ)、縦及び横方向の倍率、及
びその他の文字の回転方向(縦書き、横書き等)等を指
定するコマンドが与えられる。文字データ生成手段2
は、このコマンドに基づいて、指定されたコードに対応
するアドレスに基づいてCG3から基本文字データを読
み出して、文字データメモリ4上に文字データを展開し
て縮小動作を行う。
From the CPU 1 to the character data generating means 2,
Code of basic character data (for example, JIS code), expansion position (address) of character data in the character data memory 4, expansion format (size), vertical and horizontal magnification, and other character rotation direction (vertical writing, A command for specifying horizontal writing, etc.) is given. Character data generation means 2
Based on this command, reads the basic character data from the CG 3 based on the address corresponding to the specified code, expands the character data on the character data memory 4, and performs the reduction operation.

【0008】なお、文字データ生成手段2は、その他に
一般的な機能として、基本文字データに所定処理を行っ
て、それを文字データメモリ4上に展開することによ
り、縦方向及び横方向に拡大する機能、太文字及び細文
字へ変形する機能、及び袋文字や立体文字等の周知の修
飾を行う機能等を備えているが、これについては、周知
の方法によりなされるものであり、その説明は省略す
る。
As another general function, the character data generating means 2 performs a predetermined process on the basic character data and expands it on the character data memory 4 to expand in the vertical and horizontal directions. It has a function to change, a function to transform into bold characters and thin characters, and a function to perform well-known modification such as bag characters and three-dimensional characters, but this is done by a well-known method. Is omitted.

【0009】ビットパターンで構成される文字データの
縮小は、通常、次のように行う。すなわち、図2に示す
ような基本文字データP1を、縦方向(列方向)及び横
方向(行方向)にそれぞれ1/2ずつ縮小する場合は、
基本文字データP1の1行1列目である基点ビットQを
開始点として、縦横両方向に2ビットにつき1ビットの
割合でビットデータを基本文字データ1から間引くこと
により、図3に示すような縦1/2、横1/2に縮小し
た縦横縮小文字データP2を生成することができる。こ
のような処理は、図1に示すように、CPU1から与え
られる命令に従って、文字データ生成手段2が、CG3
から文字データを読み出して間引き、その結果を指定さ
れた文字データメモリ4上のアドレスに、指定されたサ
イズで展開することによって行われる。
Reduction of character data composed of bit patterns is usually performed as follows. That is, when the basic character data P1 as shown in FIG. 2 is reduced by 1/2 in the vertical direction (column direction) and the horizontal direction (row direction),
Starting from the base point bit Q, which is the first row and first column of the basic character data P1, the bit data is thinned out from the basic character data 1 at a rate of 1 bit per 2 bits in both vertical and horizontal directions. It is possible to generate vertically and horizontally reduced character data P2 reduced to 1/2 and horizontally 1/2. As shown in FIG. 1, such processing is performed by the character data generation means 2 by the CG 3 according to an instruction given from the CPU 1.
This is performed by reading out the character data from, thinning out, and expanding the result at the specified address in the character data memory 4 in the specified size.

【0010】また、図4は、横方向が32ビットで構成
された基本文字データの1行R1を示したものである。
横(行)方向においてのみ、4ビットにつき3ビットの
割合でビットデータを間引けば、横方向にのみ1/4に
縮小した縮小文字データの1列R2を生成することがで
きる。このような操作を各行について順次行えば、横方
向を1/4に縮小した横縮小文字データを生成すること
ができる。上述と同様の間引きの操作を、縦(列)方向
においてのみ行えば、縦方向にのみ1/4に縮小した縦
縮小文字データを生成することができる。すなわち、ビ
ットパターンで構成される基本文字データの基点ビット
を開始点として基本文字データから所定割合で所定方向
にビットデータを抽出することにより、基本文字データ
に対して所定割合で縮小された縮小文字データを生成す
ることができる。
Further, FIG. 4 shows one row R1 of basic character data composed of 32 bits in the horizontal direction.
By thinning out bit data at a rate of 3 bits per 4 bits only in the horizontal (row) direction, one column R2 of reduced character data reduced to 1/4 in the horizontal direction can be generated. If such an operation is sequentially performed for each row, horizontally reduced character data in which the horizontal direction is reduced to 1/4 can be generated. If the thinning operation similar to the above is performed only in the vertical (column) direction, vertical reduced character data reduced to ¼ only in the vertical direction can be generated. That is, by extracting bit data in a predetermined direction from the basic character data in a predetermined direction starting from a base point bit of the basic character data composed of a bit pattern, a reduced character reduced in a predetermined ratio with respect to the basic character data. Data can be generated.

【0011】図2に示すように、文字の書体がゴシック
体のように、縦線及び横線が同一の太さ(例えば、2ビ
ット)である場合には問題がない。しかしながら、図5
に示すような明朝体等の書体においては、文字データP
3は、縦線が太く(例えば、2ビット)、かつ、横線が
細く(例えば、1ビット)なっている。したがって、こ
のような文字データP3から縦方向及び横方向にビット
データを間引く場合には、1ビットの幅で構成される横
線が間引かれてしまう場合がある。例えば、図5に示す
文字データP3から縦及び横方向にそれぞれ1/2の割
合でデータを間引くと、図6に示すように、縦線が残っ
ているのに対して、横線が消失した縮小文字データP4
が生成されてしまうことがある。
As shown in FIG. 2, there is no problem when the vertical and horizontal lines have the same thickness (for example, 2 bits) like the Gothic typeface. However, FIG.
In a typeface such as Mincho type as shown in, the character data P
3, the vertical line is thick (for example, 2 bits) and the horizontal line is thin (for example, 1 bit). Therefore, when thinning out the bit data in the vertical and horizontal directions from such character data P3, the horizontal lines having a width of 1 bit may be thinned out. For example, when data is thinned out in the vertical and horizontal directions from the character data P3 shown in FIG. 5 at a rate of 1/2 respectively, as shown in FIG. 6, vertical lines remain, but horizontal lines disappear. Character data P4
May be generated.

【0012】このように、文字を構成する縦線又は横線
が消失すると、文字の品質が低下して文字を判読するこ
とが困難になる。このような不都合を解消するために
は、基本文字データに対して次述するような処理を行
い、縮小によって消失する可能性のある、縦線又は横
線、あるいは、縦線及び横線の両方を太くした文字デー
タ(以下、二次基本文字データという)をいったん生成
した後、二次基本文字データから縮小文字データを生成
することが必要である。
As described above, when the vertical lines or the horizontal lines forming a character disappear, the quality of the character deteriorates and it becomes difficult to read the character. In order to eliminate such an inconvenience, the following processing is performed on the basic character data, and the vertical line or the horizontal line, or both the vertical line and the horizontal line, which may be lost by the reduction, is thickened. It is necessary to generate the reduced character data from the secondary basic character data once the generated character data (hereinafter referred to as the secondary basic character data) is generated.

【0013】図7のフローチャートは、基本文字データ
から二次基本文字データを生成し、さらに、それから縮
小文字データを生成する手順を示すものである。一例と
して、縦横両方向に縮小された縦横縮小文字データを生
成する場合を説明する。まず、縮小方向(縦横両方向)
と、縮小割合(縦横いずれも1/2)とを指定する(S
1)。次いで、CG3から基本文字データを読出し、図
5に示す基本文字データP3を生成し(S2),CG3
から基本文字データを縦横両方向のそれぞれに1ビット
分ずらして副基本文字データ(図示せず)を生成する
(S3)。次いで、基本文字データP3と副基本文字デ
ータとの論理和をとることにより、図8に示すように、
縦線及び横線がそれぞれ1ビット分だけ太くなった二次
基本文字データP5を生成する(S4)。そして、この
二次基本文字データP5を所定割合で縮小することによ
り、図9に示すように、横線の消失がない縦横縮小文字
データP6を得る(S5)。
The flowchart of FIG. 7 shows a procedure for generating secondary basic character data from basic character data and further generating reduced character data therefrom. As an example, a case will be described in which vertical and horizontal reduced character data reduced in both vertical and horizontal directions is generated. First, the reduction direction (both vertical and horizontal)
And a reduction ratio (both vertical and horizontal) are specified (S
1). Then, the basic character data is read from CG3 to generate basic character data P3 shown in FIG. 5 (S2), CG3
To generate basic sub character data (not shown) by shifting the basic character data by 1 bit in each of the vertical and horizontal directions (S3). Next, as shown in FIG. 8, the logical sum of the basic character data P3 and the sub basic character data is taken,
The secondary basic character data P5 in which the vertical line and the horizontal line are thickened by 1 bit each is generated (S4). Then, the secondary basic character data P5 is reduced at a predetermined ratio to obtain vertical and horizontal reduced character data P6 in which horizontal lines do not disappear as shown in FIG. 9 (S5).

【0014】この手順によれば、基本文字データP3を
所定方向に所定ビット(1ビット)ずらして副基本文字
データを生成し、基本文字データP3と副基本文字デー
タとの論理和から所定方向(縦横両方向)に対して線が
太くなった二次基本文字データP5を生成し、二次基本
文字データP5に基づいて縮小文字データP6を生成す
るので、明朝体等の縦線と横線との太さが異なる文字デ
ータを縮小しても、基本文字データから縦線又は横線を
消失させることなく、文字データの品質を保った縮小文
字データを得ることができる。なお、上述の処理は、図
1において、文字データ生成手段2が、文字データメモ
リ3上に文字データを展開して操作することによってな
される。
According to this procedure, the basic character data P3 is shifted in the predetermined direction by a predetermined bit (1 bit) to generate sub-basic character data, and the logical sum of the basic character data P3 and the sub-basic character data is used in the predetermined direction ( Since the secondary basic character data P5 having a thicker line in both the vertical and horizontal directions is generated, and the reduced character data P6 is generated based on the secondary basic character data P5, the vertical line and the horizontal line of Mincho type etc. Even if the character data having different thicknesses are reduced, it is possible to obtain the reduced character data that maintains the quality of the character data without losing vertical lines or horizontal lines from the basic character data. The above-described processing is performed by the character data generation means 2 in FIG. 1 by expanding the character data on the character data memory 3 and operating it.

【0015】しかしながら、この方法では、縮小方向と
して、上述した縦横両方向の他に、縦方向及び横方向が
必要である場合には、それぞれの縮小方向に対応して、
異なる副基本文字データ、すなわち、間引かれる方向に
のみ1ビット分ずらした副基本文字データを生成する必
要がある。この理由は、もし、縦横両方向に1ビット分
ずらした副基本文字データに基づいて生成した二次基本
文字データのみに基づいて、それからそれぞれ縦方向又
は横方向の縮小文字データを得た場合には、それぞれの
横線又は縦線が太くなり過ぎて縮小文字データの品質が
悪化するからである。
However, in this method, when the vertical direction and the horizontal direction are required as the reduction directions in addition to the above-described vertical and horizontal directions, the reduction directions are corresponding to the respective reduction directions.
It is necessary to generate different sub-basic character data, that is, sub-basic character data shifted by 1 bit only in the thinning direction. The reason for this is that if, based on only the secondary basic character data generated based on the sub-basic character data that is shifted by 1 bit in both the vertical and horizontal directions, and if the reduced character data in the vertical direction or the horizontal direction is obtained, respectively. This is because each horizontal line or vertical line becomes too thick and the quality of the reduced character data deteriorates.

【0016】したがって、上記3種類の縮小方向のそれ
ぞれに対応して、(a)縦横両方向に1ビット分ずつず
らして生成した副基本文字データ、(b)縦方向にのみ
1ビット分ずらして生成した副基本文字データ、(c)
横方向にのみ1ビット分ずらして生成した副基本文字デ
ータ、をそれぞれ生成しなくてはならず、処理過程が増
えるので好ましくない。このため、処理過程を共通化す
ることにより、手順を簡素にした方法を以下に説明す
る。
Therefore, corresponding to each of the above three types of reduction directions, (a) sub-basic character data generated by shifting by 1 bit in both vertical and horizontal directions, and (b) generated by shifting by 1 bit only in the vertical direction. Sub-basic character data, (c)
It is not preferable because the sub-basic character data generated by shifting only one bit in the horizontal direction must be generated, which increases the number of processing steps. Therefore, a method of simplifying the procedure by making the processing process common will be described below.

【0017】(1)縦横縮小文字データの生成方法 図5に示す基本文字データP3から縦横両方向にそれぞ
れ1/2に縮小した縦横縮小文字データを生成する手順
は、次のとおりである。図10のフローチャートに示す
ように、まず、縮小方向(縦横両方)を指定する(S1
0)。次に、縮小割合(縦横とも1/2)を指定する
(S11)。次いで、基本文字データP3を読み出し
(S12)、基点Sを開始点として縦横両方向に所定割
合(1/2)でビットデータを間引いて第1の縦横縮小
文字データP7(図11)を生成する(S13)。基点
Sから1ビット分縦方向(下方)にずれたビットQ1を
開始点として同様に第2の縦横縮小文字データP8(図
12)を生成する(S14)。基点Sから1ビット分横
方向(右方)にずれたビットQ2を開始点として同様に
第3の縦横縮小文字データP9(図13)を生成する
(S15)。次いで、これら3つの文字データの論理和
をとって縦横縮小文字データP10(図14)を生成す
る(S16)。なお、縮小割合は、縦方向と横方向とで
それぞれ異なる割合に設定することもできる。
(1) Method for Generating Vertically and Horizontally Reduced Character Data The procedure for generating vertically and horizontally reduced character data obtained by reducing the basic character data P3 shown in FIG. 5 by 1/2 in both vertical and horizontal directions is as follows. As shown in the flowchart of FIG. 10, first, the reduction direction (both vertical and horizontal) is designated (S1).
0). Next, the reduction ratio (both vertical and horizontal) is designated (S11). Next, the basic character data P3 is read (S12), the bit data is thinned out in the vertical and horizontal directions at a predetermined ratio (1/2) with the base point S as a start point, and the first vertical and horizontal reduced character data P7 (FIG. 11) is generated ( S13). Similarly, the second vertical / horizontal reduced character data P8 (FIG. 12) is generated with the bit Q1 shifted from the base point S by one bit in the vertical direction (downward) as a starting point (S14). Similarly, the third vertical / horizontal reduced character data P9 (FIG. 13) is generated using the bit Q2, which is shifted from the base point S by one bit in the horizontal direction (right direction), as a start point (S15). Next, the logical sum of these three character data is taken to generate vertical and horizontal reduced character data P10 (FIG. 14) (S16). The reduction ratio can be set to be different in the vertical direction and the horizontal direction.

【0018】(2)縦縮小文字データの生成方法 図5に示す基本文字データP3から縦方向にのみ1/2
縮小した縦縮小文字データを生成する手順は、次のとお
りである。図15のフローチャートに示すように、ま
ず、縮小方向(縦方向)を指定する(S20)。次に、
縮小割合(1/2)を指定する(S21)。次いで、基
本文字データP3を読み出し(S22)、基点Sを開始
点として縦方向に所定割合(1/2)でビットデータを
間引いて第1の縦縮小文字データP11(図16)を生
成する(S23)。基点Sから1ビット分縦方向(下
方)にずれたビットを開始点として同様に第2の縦縮小
文字データP12(図17)を生成する(S24)。次
いで、これら2つの文字データの論理和をとって縦縮小
文字データP13(図18)を生成する(S25)。
(2) Method of generating vertically reduced character data Only 1/2 in the vertical direction from the basic character data P3 shown in FIG.
The procedure for generating the reduced vertically reduced character data is as follows. As shown in the flowchart of FIG. 15, first, the reduction direction (vertical direction) is designated (S20). next,
The reduction ratio (1/2) is designated (S21). Next, the basic character data P3 is read (S22), and the first vertical reduced character data P11 (FIG. 16) is generated by thinning out the bit data in the vertical direction at a predetermined ratio (1/2) with the base point S as the starting point. S23). Similarly, the second vertically reduced character data P12 (FIG. 17) is generated with the bit shifted vertically by one bit (downward) from the base point S as the starting point (S24). Next, the logical reduction of these two character data is taken to generate vertically reduced character data P13 (FIG. 18) (S25).

【0019】(3)横縮小文字データの生成方法 図5に示す基本文字データP3から横方向にのみ1/2
縮小した横縮小文字データを生成する手順は、次のとお
りである。図19のフローチャートに示すように、ま
ず、縮小方向(縦方向)を指定する(S30)。次に、
縮小割合(1/2)を指定する(S31)。次いで、基
本文字データP3を読み出し(S32)、基点Sを開始
点として横方向に所定割合(1/2)でビットデータを
間引いて第1の横縮小文字データP14(図20)を生
成する(S33)。基点Sから1ビット分横方向(右
方)にずれたビットを開始点として同様に第2の横縮小
文字データP15(図21)を生成する(S34)。次
いで、これら2つの文字データの論理和をとって横縮小
文字データP16(図22)を生成する(S35)。
(3) Horizontally reduced character data generation method From the basic character data P3 shown in FIG.
The procedure for generating the reduced horizontally reduced character data is as follows. As shown in the flowchart of FIG. 19, first, the reduction direction (vertical direction) is designated (S30). next,
The reduction ratio (1/2) is designated (S31). Next, the basic character data P3 is read (S32), and the first horizontal reduced character data P14 (FIG. 20) is generated by thinning out the bit data at a predetermined ratio (1/2) in the horizontal direction with the base point S as a starting point. S33). Similarly, the second horizontally reduced character data P15 (FIG. 21) is generated with the bit shifted from the base point S by one bit in the horizontal direction (to the right) as the starting point (S34). Next, the logical sum of these two character data is taken to generate the horizontally reduced character data P16 (FIG. 22) (S35).

【0020】上記(1)〜(3)の方法によれば、縮小
方向と、縮小割合と、ビットデータを間引く際の開始点
とを指定すれば、後は、共通の処理となり、次いで、2
つ又は3つの縮小文字データの論理和をとって縮小文字
データを生成すればよい。したがって、処理をそれぞれ
の文字データの縮小方向に応じて変える必要がなく、処
理が簡素化される。
According to the above methods (1) to (3), if the reduction direction, the reduction ratio, and the start point when thinning out the bit data are designated, the common processing will be performed thereafter, and then 2
The reduced character data may be generated by taking the logical sum of three or three reduced character data. Therefore, it is not necessary to change the processing according to the reduction direction of each character data, and the processing is simplified.

【0021】上記(1)〜(3)の手順によって、明朝
体等の縦線と横線との太さが異なる文字データを縮小し
た場合には、基本文字データから生成した縮小文字デー
タと、基本文字データを縮小方向にずらして生成した縮
小文字データとの論理和をとっているので、縦線又は横
線が消失されることなく文字データの品質を保った縮小
文字データを得ることができる。
In the case where character data such as Mincho typeface whose vertical and horizontal lines have different thicknesses is reduced by the steps (1) to (3), reduced character data generated from basic character data, Since the logical sum is obtained with the reduced character data generated by shifting the basic character data in the reduction direction, it is possible to obtain the reduced character data which maintains the quality of the character data without losing the vertical line or the horizontal line.

【0022】上述した本実施例によって得た縮小文字デ
ータは、縮小文字データを個々の文字毎に設計する場合
に比較して若干品質が劣るが、縦線及び横線の消失がな
く、実用的には、必要十分な可読性を有したものを得る
ことができる。
The reduced character data obtained by this embodiment described above is slightly inferior in quality to the case where the reduced character data is designed for each character, but there is no loss of vertical and horizontal lines, and it is practical. Can be obtained with necessary and sufficient readability.

【0023】なお、上述した図7及び上記(1)〜
(3)の方法において、縦方向及び横方向のいずれか一
方を縮小し、かつ、他方を周知の方法で拡大することに
より、縮小及び拡大を任意に組み合わせた文字データを
生成することも可能である。さらに、上述した文字デー
タの生成方法を、太文字、細文字、修飾文字等の変形文
字データの周知の生成手順と組み合わせることにより、
任意の変形文字データを生成することができる。
The above-mentioned FIG. 7 and the above (1) to
In the method (3), it is possible to generate character data by arbitrarily reducing or expanding by reducing one of the vertical direction and the horizontal direction and enlarging the other by a known method. is there. Furthermore, by combining the method for generating character data described above with a well-known generation procedure for deformed character data such as bold characters, thin characters, and modified characters,
Any modified character data can be generated.

【0024】なお、本実施例では、一例として、本発明
をプリンタに適用した場合について説明したが、本発明
は、ディスプレイ装置等において、画面に表示する文字
データを生成する際に適用することもできる。
In the present embodiment, the case where the present invention is applied to a printer has been described as an example, but the present invention may also be applied when generating character data to be displayed on a screen in a display device or the like. it can.

【0025】[0025]

【発明の効果】以上詳述したように、本発明の文字デー
タの生成方法によれば、下記のように縮小方向の種類に
関わらず手順が共通であるため、処理を簡素化すること
ができる。 (1)縮小方向が縦又は横の一方向のみのときは、基点
ビットを開始点として第1の縮小文字データを生成し、
基点ビットから所定ビット分だけ所定方向にずれた点を
開始点として第2の縮小文字データを生成し、第1及び
第2の縮小文字データとの論理和から縦又は横方向の縮
小文字データを生成する。 (2)縮小方向が縦及び横両方向のときは、基点ビット
を開始点として第1の縮小文字データを生成し、基点ビ
ットから所定ビット分だけ縦方向にずれた点を開始点と
して第2の縮小文字データを生成し、基点ビットから所
定ビット分だけ横方向にずれた点を開始点として第3の
縮小文字データを生成し、第1〜第3の縮小文字データ
の論理和から縦横両方向の縮小文字データを生成するこ
とができる。 上記(1)及び(2)の手順によって、
明朝体等の縦線と横線との太さが異なる基本文字データ
を縮小する場合においても、基本文字データから生成し
た縮小文字データと、基本文字データを縮小方向にずら
して生成した縮小文字データとの論理和をとっているの
で、縦線又は横線を消失させることなく文字データの品
質を保った縮小文字データを得ることができる。
As described above in detail, according to the character data generating method of the present invention, the procedure is common regardless of the type of the reduction direction as described below, so that the processing can be simplified. . (1) When the reduction direction is only one of the vertical or horizontal direction, the first reduced character data is generated with the base point bit as a starting point,
Second reduced character data is generated with a point deviated from the base point bit by a predetermined amount in a predetermined direction as a start point, and vertical or horizontal reduced character data is obtained from a logical sum of the first and second reduced character data. To generate. (2) When the reduction direction is both the vertical and horizontal directions, the first reduced character data is generated with the base point bit as a start point, and the second shifted character is generated with a point vertically displaced from the base point bit by a predetermined bit as the start point. The reduced character data is generated, the third reduced character data is generated by using a point laterally displaced from the base point bit by a predetermined number of bits as a start point, and the logical sum of the first to third reduced character data is used to determine the vertical and horizontal directions. Reduced character data can be generated. By the procedure of (1) and (2) above,
Even when shrinking basic character data such as Mincho type with vertical and horizontal lines having different thicknesses, reduced character data generated from basic character data and reduced character data generated by shifting the basic character data in the reduction direction Therefore, the reduced character data with the quality of the character data maintained can be obtained without losing the vertical line or the horizontal line.

【0026】したがって、本発明の文字データの生成方
法によれば、基本文字データから縮小文字データを生成
することができるので、使用頻度の少ない漢字等の縮小
文字データの開発が必要なく、かつ、高価なROMの増
設も不要である。
Therefore, according to the character data generation method of the present invention, it is possible to generate reduced character data from basic character data, so that it is not necessary to develop reduced character data such as Chinese characters which are rarely used, and There is no need to add expensive ROM.

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

【図1】本発明の文字データの生成方法をプリンタに適
用した場合の構成例を示すブロック図である。
FIG. 1 is a block diagram showing a configuration example when a character data generation method of the present invention is applied to a printer.

【図2】基本文字データの一例を示すパターン図であ
る。
FIG. 2 is a pattern diagram showing an example of basic character data.

【図3】図2のパターンを縮小した場合の説明図であ
る。
FIG. 3 is an explanatory diagram when the pattern of FIG. 2 is reduced.

【図4】文字データの縮小方法の説明図である。FIG. 4 is an explanatory diagram of a character data reduction method.

【図5】基本文字データの一例を示すパターン図であ
る。
FIG. 5 is a pattern diagram showing an example of basic character data.

【図6】図5の基本文字データを基点Qを開始点として
縮小した場合のパターン図である。
FIG. 6 is a pattern diagram when the basic character data of FIG. 5 is reduced with a base point Q as a starting point.

【図7】図5の基本文字データから縮小文字データを生
成する手順を示すフローチャートである。
FIG. 7 is a flowchart showing a procedure for generating reduced character data from the basic character data of FIG.

【図8】二次基本文字データを示すパターン図である。FIG. 8 is a pattern diagram showing secondary basic character data.

【図9】図8の二次基本文字データを縮小した場合のパ
ターン図である。
FIG. 9 is a pattern diagram when the secondary basic character data of FIG. 8 is reduced.

【図10】基本文字データから縦横縮小文字データを生
成する手順を示すフローチャートである。
FIG. 10 is a flowchart showing a procedure for generating vertical and horizontal reduced character data from basic character data.

【図11】図5の基本文字データを基点Qを開始点とし
て縮小して得た第1の縮小文字データのパターン図であ
る。
FIG. 11 is a pattern diagram of first reduced character data obtained by reducing the basic character data of FIG. 5 with a base point Q as a starting point.

【図12】図5の基本文字データを基点Qから1ビット
縦方向にずらした点を開始点として縮小して得た第2の
縮小文字データのパターン図である。
FIG. 12 is a pattern diagram of second reduced character data obtained by reducing the basic character data of FIG. 5 from the base point Q by 1 bit in the vertical direction as a start point.

【図13】図5の基本文字データを基点Qから1ビット
横方向にずらした点を開始点として縮小して得た第3の
縮小文字データのパターン図である。
FIG. 13 is a pattern diagram of third reduced character data obtained by reducing the basic character data of FIG. 5 from the base point Q by 1 bit in the horizontal direction as a start point.

【図14】図11〜図14のデータの論理和から生成さ
れた縦横縮小文字データを示すパターン図である。
FIG. 14 is a pattern diagram showing vertical and horizontal reduced character data generated from a logical sum of the data of FIGS. 11 to 14;

【図15】図5の基本文字データから縦縮小文字データ
を生成する手順を示すフローチャートである。
FIG. 15 is a flowchart showing a procedure for generating vertically reduced character data from the basic character data of FIG.

【図16】図5の基本文字データを基点Qを開始点とし
て縮小して得た第1の縮小文字データのパターン図であ
る。
16 is a pattern diagram of first reduced character data obtained by reducing the basic character data of FIG. 5 with a base point Q as a starting point.

【図17】図5の基本文字データを基点Qから1ビット
縦方向にずらした点を開始点として縮小して得た第2の
縮小文字データのパターン図である。
FIG. 17 is a pattern diagram of second reduced character data obtained by reducing the basic character data of FIG. 5 by shifting the base point Q by 1 bit in the vertical direction from a starting point.

【図18】図16及び図17のデータの論理和から生成
された縦縮小文字データを示すパターン図である。
FIG. 18 is a pattern diagram showing vertically reduced character data generated from the logical sum of the data of FIGS. 16 and 17;

【図19】基本文字データから横縮小文字データを生成
する手順を示すフローチャートである。
FIG. 19 is a flowchart showing a procedure for generating horizontally reduced character data from basic character data.

【図20】図5の基本文字データを基点Qを開始点とし
て縮小して得た第1の縮小文字データのパターン図であ
る。
FIG. 20 is a pattern diagram of first reduced character data obtained by reducing the basic character data of FIG. 5 with a base point Q as a starting point.

【図21】図5の基本文字データを基点Qから1ビット
横方向にずらした点を開始点として縮小して得た第2の
縮小文字データのパターン図である。
FIG. 21 is a pattern diagram of second reduced character data obtained by reducing the basic character data of FIG. 5 from the starting point Q by 1 bit in the horizontal direction as a starting point.

【図22】図20及び図21のデータの論理和から生成
された横縮小文字データを示すパターン図である。
22 is a pattern diagram showing horizontal reduced character data generated from the logical sum of the data of FIGS. 20 and 21. FIG.

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

1 CPU 2 文字データ生成手段 3 キャラクタジェネレータ(CG) 4 文字データメモリ P3 基本文字データ P5 二次基本文字データ P6,P10 縦横縮小文字データ P13 縦縮小文字データ P16 横縮小文字データ P7,P11,P14 第1の縮小文字データ P8,P12,P15 第2の縮小文字データ P9 第3の縮小文字データ Q 基点 Q1 基点から1ビット縦方向にずれた点 Q2 基点から1ビット横方向にずれた点 1 CPU 2 Character data generation means 3 Character generator (CG) 4 Character data memory P3 Basic character data P5 Secondary basic character data P6, P10 Vertical reduced horizontal character data P13 Vertical reduced character data P16 Horizontal reduced character data P7, P11, P14 1 reduced character data P8, P12, P15 2nd reduced character data P9 3rd reduced character data Q Base point Q1 Point vertically shifted by 1 bit from point Q2 Point horizontally shifted by 1 bit from base point

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年2月4日[Submission date] February 4, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図20[Name of item to be corrected] Fig. 20

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図20】 FIG. 20

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図21[Name of item to be corrected] Fig. 21

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図21】 FIG. 21

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】ビットパターンで構成される基本文字デー
タの基点ビットを開始点として前記基本文字データから
縦方向に所定割合でビットデータを間引くことにより、
前記基本文字データに対して縦方向に前記所定割合で縮
小された縦縮小文字データを生成する文字データの生成
方法において、 前記基点ビットを開始点として第1の縮小文字データを
生成し、 前記基点ビットから所定ビット分だけ縦方向にずれた点
を前記開始点として第2の縮小文字データを生成し、 前記第1及び第2の縮小文字データの論理和から前記縦
縮小文字データを生成すること、 を特徴とする文字データの生成方法。
1. By thinning out bit data from the basic character data in a vertical direction at a predetermined ratio, starting from a base point bit of the basic character data composed of a bit pattern,
In the character data generation method for generating vertically reduced character data that is vertically reduced at the predetermined ratio with respect to the basic character data, first reduced character data is generated with the base point bit as a start point, and the base point Generating a second reduced character data by using a point vertically shifted from a bit by a predetermined bit as the starting point, and generating the vertically reduced character data from a logical sum of the first and second reduced character data A method for generating character data characterized by.
【請求項2】ビットパターンで構成される基本文字デー
タの基点ビットを開始点として前記基本文字データから
横方向に所定割合でビットデータを間引くことにより、
前記基本文字データに対して横方向に前記所定割合で縮
小された横縮小文字データを生成する文字データの生成
方法において、 前記基点ビットを開始点として第1の縮小文字データを
生成し、 前記基点ビットから所定ビット分だけ横方向にずれた点
を開始点として第2の縮小文字データを生成し、 前記第1及び第2の縮小文字データの論理和から前記横
縮小文字データを生成すること、 を特徴とする文字データの生成方法。
2. By thinning out bit data from the basic character data in a horizontal direction at a predetermined ratio, starting from a base point bit of the basic character data composed of a bit pattern,
In the character data generation method for generating horizontally reduced character data that is laterally reduced by the predetermined ratio with respect to the basic character data, the first reduced character data is generated using the base point bit as a starting point, and the base point Generating second reduced character data starting from a point laterally displaced from the bit by a predetermined number of bits, and generating the horizontally reduced character data from a logical sum of the first and second reduced character data. Character data generation method characterized by.
【請求項3】ビットパターンで構成される基本文字デー
タの基点ビットを開始点として前記基本文字データから
縦方向及び横方向にそれぞれ所定割合でビットデータを
間引くことにより、前記基本文字データに対して縦方向
及び横方向にそれぞれ前記所定割合で縮小された縦横縮
小文字データを生成する文字データの生成方法におい
て、 前記基点ビットを開始点として第1の縮小文字データを
生成し、 前記基点ビットから所定ビット分だけ縦方向にずれた点
を開始点として第2の縮小文字データを生成し、 前記基点ビットから所定ビット分だけ横方向にずれた点
を開始点として第3の縮小文字データを生成し、 前記第1、第2、及び第3の縮小文字データの論理和か
ら前記縦横縮小文字データを生成すること、 を特徴とする文字データの生成方法。
3. The basic character data is thinned out at a predetermined ratio in the vertical direction and the horizontal direction from the base character bit of the basic character data constituted by a bit pattern as a starting point, thereby decompressing the basic character data with respect to the basic character data. A method for generating character data for generating vertical and horizontal reduced character data reduced in the vertical direction and the horizontal direction at a predetermined ratio, respectively, wherein first reduced character data is generated by using the base point bit as a start point, and a predetermined amount is generated from the base point bit. Second reduced character data is generated with a point vertically shifted by a bit amount as a start point, and third reduced character data is generated with a point horizontally shifted from the base point bit by a predetermined bit as a start point. Generating the vertical and horizontal reduced character data from the logical sum of the first, second, and third reduced character data. Forming method.
JP5346197A 1993-12-21 1993-12-21 How to generate character data Expired - Fee Related JP2901860B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5346197A JP2901860B2 (en) 1993-12-21 1993-12-21 How to generate character data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5346197A JP2901860B2 (en) 1993-12-21 1993-12-21 How to generate character data

Publications (2)

Publication Number Publication Date
JPH07181950A true JPH07181950A (en) 1995-07-21
JP2901860B2 JP2901860B2 (en) 1999-06-07

Family

ID=18381774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5346197A Expired - Fee Related JP2901860B2 (en) 1993-12-21 1993-12-21 How to generate character data

Country Status (1)

Country Link
JP (1) JP2901860B2 (en)

Also Published As

Publication number Publication date
JP2901860B2 (en) 1999-06-07

Similar Documents

Publication Publication Date Title
KR100306862B1 (en) Character pattern generator, character generating method, and storage medium therefor
JPH07181950A (en) Generating method for character data
JP3450869B2 (en) Bit image data generation device and bit image data generation method
EP0573262A1 (en) Wordprocessing device
JP4080470B2 (en) Character pattern generator
JPH0216068A (en) Image forming device
JPH08230252A (en) Printer
JP2803746B2 (en) Character processing method and apparatus
JPH11190990A (en) Outline font displaying and printing method
JPH0511737A (en) Outline font generating method
JP2564779B2 (en) Character output device
JP2967861B2 (en) Output device
JP2564778B2 (en) Character output device
JP2592919B2 (en) Character processor
JP2950420B2 (en) Output control device and output control method
JPH04268600A (en) Document preparing device
JPS63242561A (en) Font reducing system
JPH06118934A (en) External character registering method
JPH0511736A (en) Character pattern output device
JPH064063A (en) Character generating device
JPH08202333A (en) Character processor
JPS59214936A (en) Character processor
JPH0825717A (en) Printer
JPH03129394A (en) Document processor
JPS63221043A (en) Two-sided printing image generator

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 10

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 10

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100319

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees