JPS5816189B2 - Character pattern generation method - Google Patents

Character pattern generation method

Info

Publication number
JPS5816189B2
JPS5816189B2 JP51081997A JP8199776A JPS5816189B2 JP S5816189 B2 JPS5816189 B2 JP S5816189B2 JP 51081997 A JP51081997 A JP 51081997A JP 8199776 A JP8199776 A JP 8199776A JP S5816189 B2 JPS5816189 B2 JP S5816189B2
Authority
JP
Japan
Prior art keywords
character
character pattern
reduction
information
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP51081997A
Other languages
Japanese (ja)
Other versions
JPS538024A (en
Inventor
加藤正男
及川厳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP51081997A priority Critical patent/JPS5816189B2/en
Publication of JPS538024A publication Critical patent/JPS538024A/en
Publication of JPS5816189B2 publication Critical patent/JPS5816189B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明は文字パターン記憶方式に関する。[Detailed description of the invention] The present invention relates to a character pattern storage method.

特に文字パターンを2値情報として記憶するときの記憶
方式の改良に関するものである。
In particular, the present invention relates to an improvement in a storage method for storing character patterns as binary information.

ディジタル技術とメモリ技術の進歩によってプリンタと
ディスプレー装置に於いてドツト式出力方式が採用され
るようになった。
Advances in digital and memory technology have led to the adoption of dot-style output in printers and display devices.

文字、図形の白と黒の部分を2値の0.1に対応させて
ドツトで表わすものである。
The white and black parts of characters and figures are represented by dots in correspondence with the binary value 0.1.

例えば文字を32X32のドツトで表わす。For example, characters are represented by 32x32 dots.

このときある文字を32X32で表をしたときそれより
小さい文字たとえば16×16の文字は32X32の文
字から単純に作成することは難しい。
At this time, when a certain character is expressed in a 32x32 format, it is difficult to create smaller characters, for example, 16x16 characters, simply from 32x32 characters.

例えば第1図においてa図は12X12で表わしたHと
いう字であるがこれを6×6で表わすために、偶数行と
偶数列を機械的に間引くとb図のようになり、Hの横棒
が消失してしまいもはやHとは読めない。
For example, in Figure 1, figure a is the letter H represented by 12 x 12, but in order to represent it in 6 x 6, even numbered rows and even columns are mechanically thinned out, resulting in figure b, where the horizontal bar of H is has disappeared and can no longer be read as H.

このようなことがあるので機械的に間引く方法は巧く行
かない。
Because of this, mechanical thinning methods do not work well.

拡大する場合は消失とい・うことは生じないが細かくい
うと文字のバランスが崩れるということがある。
When enlarging, there is no such thing as disappearing, but to put it more precisely, the balance of the characters may be disrupted.

以上のことがあるので一般に文字のパターンを記憶する
ときは同一種の文字であっても大きさが異ると別の文字
と解釈し複数種の文字パターンとして記憶することが多
い。
Because of the above, generally when storing character patterns, even if the characters are of the same type but have different sizes, they are often interpreted as different characters and stored as character patterns of multiple types.

比較的多くのドツト数をもつ文字パターンを2倍、3倍
するときは文字のバランスの崩れは小さく、そのときは
単一パターンから機械的に拡大し、必要ならば平滑すれ
ば良い。
When a character pattern with a relatively large number of dots is doubled or tripled, the imbalance of the characters is small, and in that case, it is sufficient to mechanically enlarge the single pattern and smooth it if necessary.

しかしながら一般的には文字の大きさ毎に別の文字とし
て文字パターンを記憶する必要があり、これは文字パタ
ーンを記憶するメモリ(フォントメモリ)の必要量を増
しコスト上昇の原因となり望ましくない。
However, it is generally necessary to store character patterns as separate characters for each character size, which is undesirable because it increases the required amount of memory (font memory) for storing character patterns and causes an increase in cost.

本発明の目的は上記の如き従来の問題点を除去するもの
である。
The object of the present invention is to obviate the above-mentioned problems of the prior art.

すなわち一種の文字パターンに比較的小量の付加情報を
加えることによって縮少し拡大を可能ならしめ、よって
必要フォントメモリ量を削減するという効果を与える文
字パターンの発生方式を提供することにある。
That is, the object of the present invention is to provide a character pattern generation method that enables reduction and enlargement by adding a relatively small amount of additional information to a type of character pattern, thereby reducing the required amount of font memory.

この発明の特徴とするところは基準となる大きさの文字
パターンに追加・削除を指示する付加情報を与え、この
付加情報と基本文字パターンとを基にしてより小さな文
字、あるいは大きな文字を作成することである。
The feature of this invention is that additional information instructing addition/deletion is given to a character pattern of a standard size, and smaller or larger characters are created based on this additional information and the basic character pattern. That's true.

以下に実施例を示す。Examples are shown below.

第2図に全体的な構成を示す。Figure 2 shows the overall configuration.

基本パターンメモリは32X32ドツトの文字パターン
を記憶するメモリである。
The basic pattern memory is a memory that stores a 32x32 dot character pattern.

付加情報メモリは上記基本文等パターンに対し拡大縮少
のための挿入間引情報を記憶する。
The additional information memory stores insertion thinning information for enlarging/reducing the basic sentence pattern.

ある文字のパターンはアドレスを上記メモリに加えその
出力を拡大縮小器に加えて得るアドレス情報には文字の
種類と大きさを示す情報を含んでいる。
A certain character pattern is obtained by adding an address to the memory and applying the output to a scaler, and the address information obtained includes information indicating the type and size of the character.

第3図によって縮小原理を示す。ここでは簡単のため第
1図と同じく基本として12XI2を用いている。
The principle of reduction is illustrated in FIG. Here, for simplicity, 12XI2 is used as a base, as in FIG. 1.

第3図aに12X12で表わす■(のパターンを示し、
同時に付加情報を示す。
Figure 3a shows the pattern of 12x12
At the same time, additional information is shown.

付加情報は各行、各列に1ビツトずつあり、1″のたつ
行(列)は間引く行(列)を示す。
The additional information has one bit in each row and column, and rows (columns) with 1'' indicate rows (columns) to be thinned out.

1/2の縮少のため1の数は行、列とも(こ6である。Due to the reduction by 1/2, the number of 1's in both rows and columns is 6.

この間引情報に従って1/2に縮小した文字パターンを
bに示す。
A character pattern reduced to 1/2 according to this thinning information is shown in b.

ここでは第1図で生じた不具合点はない。Here, there are no defects that occurred in FIG.

これは間引情報を人が考えて追加してそれに基いて間引
いたからである。
This is because people thought about and added thinning information and thinned it based on that information.

拡大の場合もほぼ同様に例えば1,5倍の拡大がCで実
現される。
In the case of enlargement, for example, 1.5 times enlargement is achieved with C in almost the same way.

本発明の特徴はこのような原理に基づく付加情報を基本
文字パターンと同時にもっていることである。
A feature of the present invention is that it has additional information based on this principle at the same time as the basic character pattern.

第4図に行線小回路を示す。FIG. 4 shows the row line subcircuit.

実施例に於いては1行32ビツトであるがそのうちの4
ビツトについて示す。
In the example, one line has 32 bits, of which 4
Shows bits.

基本パターンab cdと間引情報0110に関して動
作を述べる。
The operation will be described regarding the basic pattern ab cd and thinning information 0110.

出力最左ビットはabcdのいずれかであるがaが間引
かれないので最左ゲートG。
The leftmost output bit is either abcd, but since a is not thinned out, it is the leftmost gate G.

が開く。第2のビット出力は間引からG:が開くことに
よって” +1が出力される。
opens. The second bit output is ``+1'' when G: is opened from thinning.

第3゜第4のビットは間引かれてないので出力されず零
である。
The third and fourth bits are not thinned out, so they are not output and are zero.

このように間引情報からとのデー1−G。〜G9を開け
ば良いかは解るので論理回路を構成することが可能でこ
れを32ビツトにすることもできることは明らかである
In this way, data 1-G from the thinning information. It is clear that it is possible to construct a logic circuit and to make it 32 bits since it is known what to do by opening ~G9.

また同様のことをもってすれば挿入情報によって文字の
拡大を行なうことも可能であることが理解される。
It is also understood that by doing the same thing, it is also possible to enlarge characters by inserting information.

次に列方向の縮小を述べる。Next, reduction in the column direction will be described.

しかしその前に例えば印刷装置においてどのようにドツ
トが出力されるかを説明する必要がある。
But before that, it is necessary to explain how dots are output, for example in a printing device.

印刷装置に於いては水平にドツトスキャンが行なわれる
In a printing device, dot scanning is performed horizontally.

したがってまずある文字の第1行がスキャンされ次に他
の文字の第1行がスキャンされ、このようにして文字の
第1行スキャンが終了した後に文字の第2行がそして第
3行がスキャンされるのである。
Thus, first the first line of a character is scanned, then the first line of another character, and in this way, after the first line of a character has been scanned, the second line of the character is scanned, and then the third line of the character is scanned. It will be done.

そのために文字パターンを記憶するメモリは1阿のアク
セスで1行分のドツトパターンと出力するように構成さ
れる。
For this purpose, the memory for storing character patterns is configured to output one line of dot patterns with each access.

第5図に文字パターンを記憶するフォントメモリのメモ
リマツプを示す。
FIG. 5 shows a memory map of a font memory that stores character patterns.

このようにAという文字を構成する32X32ドツトは
32ビツトデプスのメモリのaアドレスから32アドレ
スに渡って記憶されその次にBなる文字のフォントとが
bから32番地に渡って記憶されている。
In this way, the 32×32 dots constituting the character A are stored over 32 addresses from address a in a 32-bit depth memory, and then the font for the character B is stored over 32 addresses from b.

印刷制御回路からはA−という文字を示すア;ドレス(
すなわちa)と何行目を印刷しているかといつtW報(
/とする)の2つでこのフォントメモリをアクセスする
From the print control circuit, an address indicating the letter A-; address (
In other words, a), which line is being printed, and when is the tW report (
/ ) to access this font memory.

一方付加情報メモリへは文字種を示す情報と文字の大き
さを示す情報によって列に関する間引情報dを得る。
On the other hand, thinning information d regarding the column is obtained from the additional information memory based on the information indicating the character type and the information indicating the size of the character.

こうして得られた情報a、l、dによってどのようにフ
ォントメモリにアクセスするかを説明する。
How to access the font memory using the information a, l, and d obtained in this way will be explained.

第6図にd(4ビツトを示しである)を与えたときにl
が0,1,2,3のそれぞれの値のときに出力Sの値を
求める表を示す。
In Figure 6, when d (indicates 4 bits) is given, l
A table is shown for determining the value of the output S when the values are 0, 1, 2, and 3.

原丹狛顎こはSとaとを加えた値がフォントメモリのア
ドレスになる。
In Haratankomajiko, the value obtained by adding S and a becomes the address of the font memory.

ただし実施例ではdは32ビツト、Sは6ビツトである
However, in the embodiment, d is 32 bits and S is 6 bits.

第6図を32ビツトに展開すると膨大な表になるが、縮
小比に制限を設けるので相当部分は省略可能である。
Expanding FIG. 6 into 32 bits would result in a huge table, but since a restriction is placed on the reduction ratio, a considerable portion can be omitted.

例えばdが32の場合/=7としたとき縮小比1/2と
仮定し、/=0〜6の間に間引かれるのは3行以下とす
ればSのとる値は4〜7であり、0〜3の項は省略可能
である。
For example, if d is 32 and /=7, assuming the reduction ratio is 1/2 and the number of lines to be thinned out between /=0 and 6 is 3 or less, the value of S will be 4 to 7. , 0 to 3 can be omitted.

上記の如くある文字の第2行を印刷するときは間引行情
報dとlとによって実際の文字の行数Sを求めこれを文
字のフォントメモリ上の先頭アドレスaとを加えてフォ
ノ1〜メモリにアクセスしその読出されたデータを間引
列情報によって第4図の如く間引き、所望の1行パター
ンを得るのである。
When printing the second line of a certain character as described above, calculate the actual number of character lines S using the thinning line information d and l, add this to the starting address a on the font memory of the character, and add The memory is accessed and the read data is thinned out as shown in FIG. 4 using thinning column information to obtain a desired one-row pattern.

以上のようにある大きさの基本文字パターンを基準にし
、縮小用、拡大用に付加情報をもつことによって文字の
縮小、拡大ができることを述べたが、その応用として縮
小と拡大とを同じ付加情報で兼ねることが可能である。
As mentioned above, characters can be reduced or enlarged by using a basic character pattern of a certain size as a standard and having additional information for reduction or enlargement. It is possible to double as

例えば3/4の縮小と3/2の拡大を同じ付加情報で兼
ねることができる。
For example, the same additional information can serve as both 3/4 reduction and 3/2 enlargement.

その考え方は、3/4の縮小をした後にその縮小文字を
2倍すると3Aになる。
The idea is to reduce it by 3/4 and then double the reduced character to get 3A.

但しこのとき3/4で間引いた情報を復活させる。However, at this time, the information thinned out by 3/4 is restored.

そうすれば単に3/4の倍より秀れた品質の3/2の文
字が作成できる。
This will produce 3/2 characters of better quality than just 3/4 times.

また他の応用として行、列単位の間引きの代りにたとえ
ば1//2行単位に付加情報をもつこともできる。
In addition, as another application, instead of thinning out rows and columns, additional information can be provided in units of 1/2 rows, for example.

もちろん、拡大、縮小を要しない場合は付加情報を使用
せずそのままの大きさの文字パターンを発生する。
Of course, if enlargement or reduction is not required, a character pattern of the same size is generated without using the additional information.

以上述べたように本発明にあっては次の如き効果が得ら
れる。
As described above, the present invention provides the following effects.

(1)文字の大きさ毎に別々の文字パターンを持たずに
小量[付加情報をもてば良いのでメモリ必要量を大巾に
削減できる。
(1) Since it is sufficient to have a small amount of additional information without having separate character patterns for each character size, the amount of memory required can be greatly reduced.

(2)付加情報によって縮小拡大をするのでその結果得
られた文字の品質が良好である。
(2) Since the additional information is used to reduce or enlarge the characters, the quality of the resulting characters is good.

(3)予め付加情報が与えられているので文字の縮小拡
大が高速に処理できる。
(3) Since additional information is given in advance, reduction and enlargement of characters can be processed at high speed.

(4)縮小、拡大の付加情報を兼ねれば更にメモリ削減
できる。
(4) Memory can be further reduced if it also serves as additional information for reduction and enlargement.

(5)フォントメモリ上の割付けが基本サイズの文字だ
けで良いのでサイズによる文字間の境界変動がなく、割
付けが簡単である。
(5) Since only characters of the basic size can be allocated on the font memory, there is no boundary variation between characters depending on the size, and the allocation is simple.

(6)付加情報によって自由度の大きな変形が可能。(6) Additional information allows for a large degree of freedom in transformation.

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

第1図は従来方式による縮小例、第2図は本発明の構成
図、第3図は本発明による縮小拡大説明図、第4図は行
方向の縮小説明図、第5図はフォントメモリのメモリマ
ツピング第6図は列方向の縮小説明図。
Fig. 1 is an example of reduction by the conventional method, Fig. 2 is a block diagram of the present invention, Fig. 3 is an illustration of reduction/enlargement according to the invention, Fig. 4 is an illustration of reduction in the row direction, and Fig. 5 is a diagram of the font memory. Memory mapping FIG. 6 is a reduced explanatory diagram in the column direction.

Claims (1)

【特許請求の範囲】[Claims] 1 基本の大きさのドツトマトリクスで表わされる文字
パターンを記憶する記憶手段と、各文字パターンごとに
該文字パターンに従って予じめ設定された該基本文字の
間引きまたは繰り返すべき行および列を指定する縮少−
拡大情報を記憶する記憶手段とを備え、基本文字パター
ンと縮少・拡大情報とを読み出し、該縮少・拡大情報に
従って基本文字パターンが縮少・拡大された文字パター
ンを発生する文字パターン発生方式。
1 A storage means for storing character patterns represented by a dot matrix of basic size, and a reduction means for specifying rows and columns to be thinned out or repeated for each character pattern, which are set in advance according to the character pattern. Small
A character pattern generation method comprising a storage means for storing enlargement information, reads a basic character pattern and reduction/enlargement information, and generates a character pattern in which the basic character pattern is reduced/enlarged according to the reduction/enlargement information. .
JP51081997A 1976-07-12 1976-07-12 Character pattern generation method Expired JPS5816189B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51081997A JPS5816189B2 (en) 1976-07-12 1976-07-12 Character pattern generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51081997A JPS5816189B2 (en) 1976-07-12 1976-07-12 Character pattern generation method

Publications (2)

Publication Number Publication Date
JPS538024A JPS538024A (en) 1978-01-25
JPS5816189B2 true JPS5816189B2 (en) 1983-03-30

Family

ID=13762101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51081997A Expired JPS5816189B2 (en) 1976-07-12 1976-07-12 Character pattern generation method

Country Status (1)

Country Link
JP (1) JPS5816189B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6036762Y2 (en) * 1979-04-20 1985-10-31 トヨタ自動車株式会社 Secondary air supply device for the engine
JPS5657091A (en) * 1979-10-17 1981-05-19 Mitsubishi Electric Corp Character display unit
JPS60100176A (en) * 1983-11-05 1985-06-04 株式会社リコー Character font reduction system
US4573199A (en) * 1984-05-09 1986-02-25 International Business Machines Corp. Kanji/Chinese font generation by scaling
JPH0225894A (en) * 1988-07-15 1990-01-29 Mitsubishi Electric Corp Device and method for generating character pattern
JPH02217897A (en) * 1989-02-20 1990-08-30 Hitachi Ltd Picture element density conversion system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5275230A (en) * 1975-12-19 1977-06-24 Fuji Xerox Co Ltd Character pattern generator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5275230A (en) * 1975-12-19 1977-06-24 Fuji Xerox Co Ltd Character pattern generator

Also Published As

Publication number Publication date
JPS538024A (en) 1978-01-25

Similar Documents

Publication Publication Date Title
JPS61249175A (en) Graphic processor
US3778810A (en) Display device
JPS60172081A (en) Expanded pattern generator
JPH01174463A (en) Dot pattern correction method
US5146554A (en) Page memory control in a raster image processor employed for digital halftoning
JPS5816189B2 (en) Character pattern generation method
JPS594706B2 (en) Print pattern generator
JPH05181454A (en) Display system and its control circuit, and display device
JPH0751370B2 (en) Image forming device
EP0644521A2 (en) Storage and retrieval of data using residual frame buffer memory
JPS61158384A (en) Character processor
JPS6230436B2 (en)
JPS61144688A (en) Character generation system
JPH02287739A (en) Memory access method
JPH03167598A (en) Method for reducing image
JPH0426137B2 (en)
JPS60164794A (en) Image multiplication processing system
JPS602983A (en) Image processor
JPS6346431B2 (en)
JPH0589109A (en) Ruled line character display method
JPS63271292A (en) Character pattern generation system
JPH05100656A (en) Video display method and display controller for character or symbol
JPS592026B2 (en) Moji pattern hatsei sochi
JPS63247795A (en) Character output device for multi-kind character style
JPS6338985A (en) Character expansion system