JPH0546152A - Method and device for enlarging character pattern - Google Patents

Method and device for enlarging character pattern

Info

Publication number
JPH0546152A
JPH0546152A JP3202913A JP20291391A JPH0546152A JP H0546152 A JPH0546152 A JP H0546152A JP 3202913 A JP3202913 A JP 3202913A JP 20291391 A JP20291391 A JP 20291391A JP H0546152 A JPH0546152 A JP H0546152A
Authority
JP
Japan
Prior art keywords
character pattern
dots
enlargement
pattern data
character
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
Application number
JP3202913A
Other languages
Japanese (ja)
Inventor
Hiroshi Yamazaki
博 山崎
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3202913A priority Critical patent/JPH0546152A/en
Publication of JPH0546152A publication Critical patent/JPH0546152A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To enlarge character pattern data with optional scale factor by using a small amount of enlargement data, as to the method and device for enlarging the character pattern data to be displayed or printed. CONSTITUTION:For the enlargement of character pattern data consisting of F dots in one direction into character pattern data consisting of X dots in one direction, values M and I satisfying X=FM+I and 0<=I<F are found and an enlargement table wherein dots to be multiplied by M and dots to be multiplied by M+1 are determined for an optional value M is referred to for the respective values I to determine dots to be multiplied by M and dots to be multiplied by M+1, thereby enlarging the respective dots of the character pattern data to the determined scale factor.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、表示用又は印字用の文
字(記号を含む)のパターンデータを拡大する文字パタ
ーン拡大方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character pattern enlarging method and apparatus for enlarging pattern data of characters (including symbols) for display or printing.

【0002】[0002]

【従来の技術】コンピュータやワープロでの表示用又は
印字用の文字の表現力向上の要求に伴い、様々なサイズ
のパターンデータが要求されている。
2. Description of the Related Art Pattern data of various sizes are required in response to a demand for improving the expressiveness of characters for display or printing on a computer or word processor.

【0003】従来では、各ドットに対し、縦横の一方又
は両方を整数倍することにより、文字パターンを拡大し
ていた。
Conventionally, a character pattern is enlarged by multiplying each dot by one or both of the vertical and horizontal directions.

【0004】この方法は、容易であるが、整数倍しか拡
大することができない。
This method is easy, but can be expanded only by an integral multiple.

【0005】そこで、図8に示す如く、各文字の文字パ
ターンデータCに対し行拡大データLR、列拡大データ
LC及び行縮小データSR、列縮小データSCを持って
おき、非整数倍の拡大又は縮小を行っていた。この文字
パターンデータCは16×16ドットであり、行拡大デ
ータLR及び列拡大データLCに示す斜線部分に相当す
る行及び列のみを2倍に拡大することにより、19×1
9ドットの文字パターンデータCを得ることができる。
また、行縮小データSR及び列縮小データSCの斜線部
分に相当する行及び列のみを省略することにより14×
14ドットの文字パターンデータCを得ることができ
る。
Therefore, as shown in FIG. 8, line enlargement data LR, column enlargement data LC, line reduction data SR, and column reduction data SC are held for the character pattern data C of each character, and a non-integer multiple enlargement or It was shrinking. This character pattern data C is 16 × 16 dots, and by only doubling the rows and columns corresponding to the shaded portions in the row enlarged data LR and the column enlarged data LC, 19 × 1
It is possible to obtain character pattern data C of 9 dots.
Further, by omitting only the rows and columns corresponding to the shaded portions of the row reduced data SR and the column reduced data SC, 14 ×
14-dot character pattern data C can be obtained.

【0006】この方法は、各文字に対し適切な拡大又は
縮小を行うことができる。しかし、各文字毎に行拡大デ
ータLR、列拡大データLC及び行縮小データSR、列
縮小データSCを持っておく必要があるため、拡縮デー
タ量が多過ぎる。また、拡大倍率が固定されており、任
意の倍率で文字を拡大することができない。
This method can appropriately enlarge or reduce each character. However, since it is necessary to hold the line expansion data LR, the column expansion data LC, the line contraction data SR, and the column contraction data SC for each character, the expansion / contraction data amount is too large. In addition, since the enlargement ratio is fixed, it is not possible to enlarge the character at an arbitrary ratio.

【0007】[0007]

【発明が解決しようとする課題】本発明の目的は、この
ような問題点に鑑み、少量の拡大データを用いて文字パ
ターンデータを任意の倍率に拡大することができる文字
パターン拡大方法及び装置を提供することにある。
SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a character pattern enlarging method and apparatus capable of enlarging character pattern data to an arbitrary magnification using a small amount of enlarging data. To provide.

【0008】[0008]

【課題を解決するための手段及びその作用】本発明に係
る文字パターン拡大方法では、一方向がFドットの文字
パターンデータを一方向がXドットの文字パターンデー
タに拡大するために、X=FM+I、0≦I<FなるM
及びIの値を求め、拡大前の該一方向のFドットのう
ち、F−IドットをM倍し、残りのIドットをM+1倍
する。
In the character pattern enlarging method according to the present invention, in order to enlarge the character pattern data of F dots in one direction to the character pattern data of X dots in one direction, X = FM + I , M such that 0 ≦ I <F
And I values are calculated, and among the F dots in the one direction before expansion, the FI dot is multiplied by M, and the remaining I dots are multiplied by M + 1.

【0009】F−IドットをM倍し、IドットをM+1
倍すれば、(F−I)M+I(M+1)=FM+Iであ
るので、FドットがXドットに拡大される。任意の文
字、X>Fなる任意のXかつ任意のMに対し、Fドット
のどれをM倍しどれをM+1倍するかの拡大データは、
0≦I<Fなる各IについてFビットあればよく、1文
字のパターンデータと同一量のデータで足りる。I=0
の場合はFドットの各々をM倍すればよいので、拡大デ
ータは、実質的にはF×(F−1)ビットあればよい。
FI dot is multiplied by M and I dot is increased by M + 1
If multiplied, (F−I) M + I (M + 1) = FM + I, so the F dots are enlarged to X dots. Enlarged data of which of the F dots is multiplied by M and which is multiplied by M + 1 with respect to an arbitrary character, X> F
For each I of 0 ≦ I <F, it is sufficient to have F bits, and the same amount of data as the pattern data of one character is sufficient. I = 0
In this case, each of the F dots has only to be multiplied by M, and therefore the expanded data need only have substantially F × (F−1) bits.

【0010】したがって、少量の拡大データを用いて文
字パターンデータを任意の倍率に拡大することができ
る。
Therefore, the character pattern data can be magnified to an arbitrary magnification using a small amount of magnified data.

【0011】上記拡大データは、毎回計算により求める
こともできるが、各Iの値について、任意の値Mに対し
上記M倍するドットと上記M+1倍するドットを定めた
拡大テーブルを予め作成しておき、この拡大テーブルを
参照して、各ドットの拡大倍率を決定すれば、拡大処理
を速く行うことができる。
The above-mentioned enlargement data can be obtained by calculation every time, but for each value of I, an enlargement table is created in advance that defines a dot M times the arbitrary value M and a dot M times the M + 1. Then, if the enlargement magnification of each dot is determined with reference to this enlargement table, the enlargement processing can be performed quickly.

【0012】図1は、本発明に係る文字パターン拡大装
置の原理構成を示す。
FIG. 1 shows the principle configuration of a character pattern enlarging device according to the present invention.

【0013】この文字パターン拡大装置は、上記方法を
実施するためのものであって、一方向がFドットの文字
パターンデータを一方向がXドットの文字パターンデー
タに拡大するために、X=FM+I、0≦I<FなるM
及びIの値を求める演算手段1と、各Iの値について、
任意の値Mに対しM倍するドットとM+1倍するドット
を定めた拡大テーブルが格納された拡大テーブル記憶手
段2と、該拡大テーブルを参照して、M倍するドットと
M+1倍するドットを決定する拡大倍率決定手段3と、
各文字のパターンデータが格納され、文字コードを文字
パターンデータに変換する文字フォント記憶手段4と、
変換された文字パターンデータの各ドットを、決定され
た該倍率に拡大する拡大手段5とを備えている。
This character pattern enlarging device is for carrying out the above method, and in order to enlarge character pattern data of F dots in one direction to character pattern data of X dots in one direction, X = FM + I , M such that 0 ≦ I <F
And the calculation means 1 for obtaining the value of I, and the value of each I,
An enlargement table storage unit 2 that stores an enlargement table that defines a dot to be multiplied by M and a dot to be multiplied by M + 1 with respect to an arbitrary value M, and a dot to be multiplied by M and a dot to be multiplied by M + 1 are determined by referring to the enlargement table. Enlargement magnification determination means 3 for
Character font storage means 4 for storing pattern data of each character and converting a character code into character pattern data;
Enlarging means 5 for enlarging each dot of the converted character pattern data to the determined magnification.

【0014】[0014]

【実施例】以下、図面に基づいて本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】(1)文字パターン拡大方法の一実施例 図2及び図3は文字パターン拡大方法説明図である。(1) One Embodiment of Character Pattern Enlargement Method FIGS. 2 and 3 are explanatory diagrams of a character pattern enlargement method.

【0016】拡大前の文字パターンデータCをF×Fド
ットとし、拡大後の文字パターンデータDをX×Xドッ
トとする。この拡大は、拡大テーブルAを参照して行
う。
Character pattern data C before enlargement is F × F dots, and character pattern data D after enlargement is X × X dots. This expansion is performed by referring to the expansion table A.

【0017】拡大テーブルAは、全ての文字に対しかつ
F<Xなる任意の整数Xに対し、1文字のパターンデー
タと同一量のデータで足りる。例えばF=8の場合、拡
大テーブルAは8バイトで構成される。拡大テーブルA
の、図中の各枡目は、1ビットのデータに対応してお
り、ハッチングの無い枡目はドットを行方向及び列方向
にM倍(Mは整数)することを表しており、ハッチング
を付けた枡目はドットを行方向及び列方向にM+1倍す
ることを表している。
In the expansion table A, the same amount of data as the pattern data for one character is sufficient for all characters and for any integer X such that F <X. For example, when F = 8, the expansion table A is composed of 8 bytes. Expansion table A
The cells in the figure correspond to 1-bit data, and the cells without hatching indicate that the dots are multiplied by M (M is an integer) in the row and column directions. The attached cells represent that the dots are multiplied by M + 1 in the row and column directions.

【0018】以下、文字パターンデータC、D、拡大テ
ーブルA及び拡大倍率データBの構成要素のデータを、 C[i][j]:文字パターンデータCの第i行第j列
のドットデータ(i=0〜F−1、j=0〜F−1) D[i][j]:文字パターンデータDの第i行第j列
のドットデータ(i=0〜X−1、j=0〜X−1) A[i][j]:拡大テーブルAの第i行第j列のビッ
トデータ(i=0〜F−1、j=0〜F−1) B[i]:文字パターンデータCの第i行及び第i列の
ドットの拡大倍率 と表記する。また、*はその変数が取りうる全ての値を
意味するものとする。例えば、A[i][*]は拡大テ
ーブルAの第i行の全データを意味する。
Hereinafter, the data of the constituent elements of the character pattern data C and D, the enlargement table A and the enlargement magnification data B will be described as C [i] [j]: dot data of the i-th row and j-th column of the character pattern data C ( i = 0 to F-1, j = 0 to F-1) D [i] [j]: Dot data (i = 0 to X-1, j = 0) in the i-th row and j-th column of the character pattern data D -X-1) A [i] [j]: Bit data of the i-th row and j-th column of the expansion table A (i = 0 to F-1, j = 0 to F-1) B [i]: Character pattern It is referred to as the enlargement magnification of the dot on the i-th row and the i-th column of the data C. Also, * means all possible values of the variable. For example, A [i] [*] means all data in the i-th row of the expansion table A.

【0019】最初に、X=I+FM、0≦I<FなるM
及びIの値を求める。例えばF=8、X=10の場合、
M=1、I=2となる。
First, M is X = I + FM and 0 ≦ I <F
And I. For example, when F = 8 and X = 10,
M = 1 and I = 2.

【0020】B[j]=M+A[I][j]、j=0〜
7を求める。この例の場合、A[I][*]及びB
[*]はそれぞれ図3(B)及び(C)のようになる。
図3(A)に示すような拡大前の文字パターンデータの
1行は、図3(C)に示す拡大倍率に従って各ドットを
拡大すると、図3(D)に示す如くなる。図3(C)の
拡大倍率は、行方向のみならず列方向の拡大倍率をも表
しており、文字パターンデータCの第3行及び第6行の
列方向拡大倍率は2であり、その他の行の列方向拡大倍
率は1である。
B [j] = M + A [I] [j], j = 0 to
Ask for 7. In this example, A [I] [*] and B
[*] Are as shown in FIGS. 3B and 3C, respectively.
One line of the character pattern data before enlargement as shown in FIG. 3 (A) becomes as shown in FIG. 3 (D) when each dot is enlarged according to the enlargement magnification shown in FIG. 3 (C). The enlargement ratio of FIG. 3C represents not only the enlargement ratio in the row direction but also the enlargement ratio in the column direction. The enlargement ratio in the third and sixth rows of the character pattern data C is 2, and the other enlargement ratios are 2. The magnification in the column direction of the row is 1.

【0021】図2に示す如く、このような拡大倍率に従
ってF×Fドットの文字パターンデータCを拡大する
と、X×Xドットの文字パターンデータDが得られる。
As shown in FIG. 2, when the F × F dot character pattern data C is enlarged according to such an enlargement ratio, the X × X dot character pattern data D is obtained.

【0022】図4は、24×24ドット文字に対する拡
大テーブルをパターンで示す。
FIG. 4 shows a pattern of the expansion table for 24 × 24 dot characters.

【0023】(2)文字パターン拡大装置の第1実施例 図5は、文字パターン拡大装置のハードウエア概略構成
図である。
(2) First Embodiment of Character Pattern Enlarging Device FIG. 5 is a schematic hardware configuration diagram of the character pattern enlarging device.

【0024】この装置は、CPU10がバス11を介し
て、プログラムメモリ12、テキストメモリ13、文字
フォントメモリ14、拡大テーブルメモリ15、ビット
マップバッファメモリ16及びプリンタインタフェース
17と接続され、プリンタインタフェース17にプリン
タ18が接続されている。テキストメモリ13には、印
字対象の文字コード列及び拡大後の一辺のドット数Xが
格納されている。文字フォントメモリ14には各文字の
F×Fドットのパターンデータが格納されている。拡大
テーブルメモリ15には、例えば図2に示すような拡大
テーブルAが格納されている。CPU10は、プログラ
ムメモリ12に格納されたプログラムに従って、テキス
トメモリ13から文字コード及び一辺のドット数Xを読
み出し、この文字コードで文字フォントメモリ14をア
ドレス指定して文字パターンデータCを読み出し、拡大
テーブルメモリ15を参照して文字パターンデータCを
拡大し、拡大された文字パターンデータDをビットマッ
プバッファメモリ16に格納する。また、ビットマップ
バッファメモリ16に格納されたデータを、プリンタイ
ンタフェース17を介してプリンタ18に供給し、テキ
ストを印字させる。
In this apparatus, a CPU 10 is connected to a program memory 12, a text memory 13, a character font memory 14, an expansion table memory 15, a bit map buffer memory 16 and a printer interface 17 via a bus 11, and a printer interface 17 is provided. A printer 18 is connected. The text memory 13 stores a character code string to be printed and the number of dots X on one side after enlargement. The character font memory 14 stores F × F dot pattern data of each character. The expansion table memory 15 stores an expansion table A as shown in FIG. 2, for example. The CPU 10 reads a character code and the number of dots X on one side from the text memory 13 according to a program stored in the program memory 12, addresses the character font memory 14 with this character code, reads the character pattern data C, and expands the table. The character pattern data C is expanded with reference to the memory 15, and the expanded character pattern data D is stored in the bitmap buffer memory 16. Further, the data stored in the bitmap buffer memory 16 is supplied to the printer 18 via the printer interface 17 to print the text.

【0025】次に、図6に基づいて文字パターン拡大処
理手順を説明する。以下、括弧()内の数値はステップ
識別番号を示す。
Next, the character pattern enlargement processing procedure will be described with reference to FIG. Hereinafter, the numerical value in parentheses () indicates the step identification number.

【0026】(20)X=I+FM、0≦I<FなるM
及びIの値を求める。
(20) M = X = I + FM, 0 ≦ I <F
And I.

【0027】(21)配列要素識別変数iを0に初期設
定する。
(21) The array element identification variable i is initialized to 0.

【0028】(22)i<Fの間、以下のステップ23
〜26の処理を繰り返し行って、拡大倍率B[*]を決
定する。
(22) When i <F, the following step 23
The processing of up to 26 is repeated to determine the enlargement ratio B [*].

【0029】(23、24)A[I][i]=0であれ
ば、B[I]=Mとする。
(23, 24) If A [I] [i] = 0, then B [I] = M.

【0030】(23、25)A[I][i]=1であれ
ば、B[I]=M+1とする。
(23, 25) If A [I] [i] = 1, then B [I] = M + 1.

【0031】(26)iをインクリメントする。(26) Increment i.

【0032】(27、28)上記ステップ22でI=F
となった場合には、配列要素識別変数j及びyを共に0
に初期設定し、j<Fの間、以下の処理を行い、j=F
となれば文字パターン拡大処理を終了する。
(27, 28) I = F in step 22
If both of the array element identification variables j and y are 0,
Initial setting to j, and the following processing is performed while j <F, and j = F
If so, the character pattern enlargement processing ends.

【0033】(29)D[Y][*]=0とする。ま
た、配列要素識別変数i及びxを共に0に初期設定す
る。
(29) D [Y] [*] = 0. Further, the array element identification variables i and x are both initialized to 0.

【0034】(30)i<Fの間、以下のステップ31
〜36の処理を繰り返して、行方向の拡大処理を行う。
(30) When i <F, the following step 31
The process of up to 36 is repeated to perform the enlarging process in the row direction.

【0035】(31〜33)C[j][i]=1であれ
ば、繰り返し回数k=0とし、k<B[i]の間、以下
のステップ34及び35の処理を繰り返して、ドットデ
ータC[j][i]の行方向拡大処理をする。
(31 to 33) If C [j] [i] = 1, the number of repetitions is set to k = 0, and while k <B [i], the following steps 34 and 35 are repeated to make dots The data C [j] [i] is expanded in the row direction.

【0036】(34)D[y][x+k]=1とする。(34) D [y] [x + k] = 1.

【0037】(35)kをインクリメントする。(35) Increment k.

【0038】(36)ドットデータC[j][i]の行
方向拡大処理を終了すると、x+B[i]を新たなxと
し、i+1を新たなiとして、次のドットデータC
[j][i]の行方向拡大処理の準備をする。
(36) When the row-direction expansion processing of the dot data C [j] [i] is completed, x + B [i] is set as a new x, i + 1 is set as a new i, and the next dot data C is set.
Prepare for [j] [i] row-direction enlargement processing.

【0039】ステップ30でi=Fとなった場合には、
以下のステップ37〜40の処理を行って、第y行ドッ
トデータD[y][*]の列方向拡大処理を行う。
If i = F in step 30,
The y-th row dot data D [y] [*] is expanded in the column direction by performing the following steps 37 to 40.

【0040】(37、38)繰り返し回数k=1とし、
k<B[j]の間、以下のステップ39及び40の処理
を繰り返す。
(37, 38) The number of repetitions k = 1,
While k <B [j], the processes of steps 39 and 40 below are repeated.

【0041】(39)D[y+k][*]=D[y]
[*]とする。
(39) D [y + k] [*] = D [y]
[*]

【0042】(40)kをインクリメントする。(40) Increment k.

【0043】(38、41)k=B[j]となった場合
には、y+B[j]を新たなyとし、jをインクリメン
トして、次のドットデータC[j][i]の行方向拡大
処理の準備をし、上記ステップ28へ戻る。
When (38, 41) k = B [j], y + B [j] is set to a new y, j is incremented, and the row of the next dot data C [j] [i] is incremented. Preparation for the direction expansion processing is performed, and the process returns to step 28.

【0044】以上の処理により、任意の1文字のパター
ンが(X/F)×(X/F)倍に拡大される。
By the above processing, the pattern of any one character is enlarged by (X / F) × (X / F) times.

【0045】なお、本実施例の変形例として種々のもの
が考えられる。例えば、この実施例では行方向拡大処理
を行った後に列方向拡大処理を行っているが、逆に、列
方向拡大処理を行った後に行方向拡大処理を行ってもよ
く、両結果は同一になる。しかし、本実施例のようにす
れば、列方向拡大処理をバイト単位又はワード単位で行
うことができるので、処理が速くなる。また、縦横の一
方のみを拡大したり、縦拡大倍率と横拡大倍率を異なら
せてもよい。さらに、文字パターン拡大処理後に文字パ
ターンのスムージング処理を行ってもよいことは勿論で
ある。
Various modifications of the present embodiment are possible. For example, in this embodiment, the column direction enlargement process is performed after performing the row direction enlargement process, but conversely, the row direction enlargement process may be performed after performing the column direction enlargement process, and both results are the same. Become. However, according to the present embodiment, the column-direction enlargement processing can be performed in byte units or word units, so the processing becomes faster. Further, only one of the vertical and horizontal directions may be enlarged, or the vertical enlargement ratio and the horizontal enlargement ratio may be different. Further, it goes without saying that the character pattern smoothing process may be performed after the character pattern enlargement process.

【0046】(3)文字パターン拡大装置の第2実施例 上記実施例では、拡大処理をソフトウエア構成で行う場
合を説明したが、ハードウエア構成により文字パターン
拡大処理を行うことも可能であり、以下にその例を示
す。図7は、この文字パターン拡大装置の構成図であ
る。なお、処理内容は上記実施例と実質的に同一であ
り、動作のタイミングは上記実施例から容易に理解でき
るので、動作のタイミングに関しては概略を説明する。
(3) Second Embodiment of Character Pattern Enlarging Device In the above embodiment, the case where the enlarging process is performed by the software configuration has been described, but it is also possible to perform the character pattern enlarging process by the hardware configuration. An example is shown below. FIG. 7 is a configuration diagram of the character pattern enlarging device. The processing content is substantially the same as that of the above-described embodiment, and the operation timing can be easily understood from the above-mentioned embodiment. Therefore, the operation timing will be briefly described.

【0047】文字コードはカウンタ45にロードされ、
カウンタ45の内容で文字フォントメモリ14がアドレ
ス指定されて、文字フォントメモリ14から第i行ドッ
トデータC[i][*]が読み出され、シフトレジスタ
46に保持される。このiは、初期値0で、カウンタ4
5のクロック入力端子CKにクロックφ1を供給するこ
とによりインクリメントされる。
The character code is loaded into the counter 45,
The character font memory 14 is addressed by the content of the counter 45, and the i-th row dot data C [i] [*] is read from the character font memory 14 and held in the shift register 46. This i has an initial value of 0 and the counter 4
It is incremented by supplying the clock φ1 to the clock input terminal CK of No. 5.

【0048】一方、レジスタ51及び52にはそれぞれ
F及びXが保持される。演算回路53は、これらF及び
Xから、X=I+FM、0≦I<FなるM及びIの値を
求め、それぞれレジスタ54及び55に保持させる。レ
ジスタ55の内容Iはデコーダ56を介して拡大テーブ
ルメモリ15に供給され、拡大テーブルメモリ15がア
ドレス指定される。拡大テーブルメモリ15から拡大デ
ータA[I][*]が読み出されて、シフトレジスタ5
7に保持される。
On the other hand, F and X are held in the registers 51 and 52, respectively. The arithmetic circuit 53 obtains the values of M and I such that X = I + FM and 0 ≦ I <F from these F and X, and stores them in the registers 54 and 55, respectively. The content I of the register 55 is supplied to the expansion table memory 15 via the decoder 56, and the expansion table memory 15 is addressed. The enlargement data A [I] [*] is read from the enlargement table memory 15, and the shift register 5
Held at 7.

【0049】レジスタ54の内容Mはアップダウンカウ
ンタ61にロードされ、このMにシフトレジスタ57の
最上位ビットA[I][j]がアンドゲート58を通っ
て加算されて、アップダウンカウンタ61の内容はB
[j]=M+A[I][j]となる。このjは、シフト
レジスタ57にクロックφ2を供給して上位方向へ1ビ
ットシフトさせることによりインクリメントされる。
The content M of the register 54 is loaded into the up / down counter 61, the most significant bit A [I] [j] of the shift register 57 is added to this M through the AND gate 58, and the up / down counter 61 is loaded. Content is B
[J] = M + A [I] [j]. This j is incremented by supplying the clock φ2 to the shift register 57 and shifting it by 1 bit in the upper direction.

【0050】アップダウンカウンタ61の内容は、以下
の行方向1ドット拡大処理又は列方向1ドット拡大処理
を行う毎に、クロックφ3によりデクリメントされる。
The contents of the up / down counter 61 are decremented by the clock φ3 every time the following 1 dot enlargement processing in the row direction or 1 dot enlargement processing in the column direction is performed.

【0051】ノンゼロ検出回路62は、アップダウンカ
ウンタ61の内容が0であるかどうかを調べ、0でなけ
れば1を、0であれば0をアンドゲート63の一方の入
力端に供給する。アンドゲート63の他方の入力端には
クロックφ4が供給され、アップダウンカウンタ61の
内容が正である間、クロックφ4がアンドゲート63及
び切換回路64を通り、シフトパルスとしてシフトレジ
スタ65に供給される。シフトレジスタ65には、シフ
トレジスタ46の内容の最上位ビットC[i][k]が
供給され、このビットがクロックφ4により拡大されて
シフトレジスタ65に保持される。kは、クロックφ6
がアンドゲート66を介しシフトパルスとしてシフトレ
ジスタ46に供給されることにより、インクリメントさ
れる。アンドゲート66は、ノンゼロ検出回路62の出
力をインバータ67で反転した信号により開閉される。
したがって、アップダウンカウンタ61の計数値が0に
なると、シフトレジスタ46が上位方向に1ビットシフ
トされる。
The non-zero detection circuit 62 checks whether or not the content of the up / down counter 61 is 0, and supplies 1 to the one input terminal of the AND gate 63 if not 0 and 0 if 0. The clock φ4 is supplied to the other input terminal of the AND gate 63, and while the content of the up / down counter 61 is positive, the clock φ4 is supplied to the shift register 65 as a shift pulse through the AND gate 63 and the switching circuit 64. It The most significant bit C [i] [k] of the contents of the shift register 46 is supplied to the shift register 65, and this bit is expanded by the clock φ4 and held in the shift register 65. k is the clock φ6
Is supplied to the shift register 46 as a shift pulse via the AND gate 66, and is incremented. The AND gate 66 is opened / closed by a signal obtained by inverting the output of the non-zero detection circuit 62 by the inverter 67.
Therefore, when the count value of the up / down counter 61 becomes 0, the shift register 46 is shifted by 1 bit in the upper direction.

【0052】このようにして、C[i][*]が行方向
拡大処理され、D[i][*]としてシフトレジスタ6
5に保持される。
In this way, C [i] [*] is expanded in the row direction, and the shift register 6 is obtained as D [i] [*].
Held at 5.

【0053】次に、上記同様にしてアップダウンカウン
タ61にB[i]が保持された後、クロックφ5により
切換回路64が切り換えられて、クロックφ4が行シフ
ト制御回路68に供給される。行シフト制御回路68
は、クロックφ4が供給される毎に、拡大文字パターン
メモリ60の内容を1行単位で列方向にシフトさせ、シ
フトレジスタ65の内容を拡大文字パターンメモリ60
の初行に保持させることにより、シフトレジスタ65の
内容を列方向拡大処理する。
Next, after B [i] is held in the up / down counter 61 in the same manner as described above, the switching circuit 64 is switched by the clock φ5 and the clock φ4 is supplied to the row shift control circuit 68. Row shift control circuit 68
Shifts the contents of the enlarged character pattern memory 60 in the column direction row by row every time the clock φ4 is supplied, and shifts the contents of the shift register 65 to the enlarged character pattern memory 60.
The contents of the shift register 65 are expanded in the column direction by holding the contents of the shift register 65 in the first row.

【0054】このような処理をC[i][*]、i=0
〜F−1について繰り返し行うことにより、一辺がX/
M倍に拡大された文字パターンデータDが拡大文字パタ
ーンメモリ60に得られる。
Such processing is performed by C [i] [*], i = 0
Repeatedly for ~ F-1, one side is X /
The character pattern data D enlarged M times is obtained in the enlarged character pattern memory 60.

【0055】なお、このハードウエア構成についても、
上記文字パターン拡大装置の第1実施例の後段で述べた
ソフトウエア構成の変形例と同様の変形例が考えられ、
本装置発明に含まれる。
Note that this hardware configuration also
A modification similar to the modification of the software configuration described in the latter part of the first embodiment of the character pattern enlarging device is considered,
This device is included in the invention.

【0056】[0056]

【発明の効果】以上説明した如く、本発明に係る文字パ
ターン拡大方法及び装置によれば、少量の拡大データを
用いて文字パターンデータを任意の倍率に拡大すること
ができるという優れた効果を奏し、コンピュータやワー
プロでの表示用又は印字用の文字の表現力向上に寄与す
るところが大きい。
As described above, the method and apparatus for enlarging a character pattern according to the present invention has an excellent effect that the character pattern data can be enlarged to an arbitrary magnification using a small amount of enlargement data. It greatly contributes to improving the expressiveness of characters for display or printing on a computer or word processor.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】文字パターン拡大方法の一実施例説明図であ
る。
FIG. 2 is an explanatory diagram of an embodiment of a character pattern enlarging method.

【図3】文字パターンの一行の行方向拡大説明図であ
る。
FIG. 3 is a line direction enlarged explanatory diagram of one line of a character pattern.

【図4】24×24ドット文字に対する拡大テーブルの
パターン図である。
FIG. 4 is a pattern diagram of an expansion table for 24 × 24 dot characters.

【図5】文字パターン拡大装置が適用された第1実施例
のハードウエア概略構成図である。
FIG. 5 is a hardware schematic configuration diagram of a first embodiment to which a character pattern enlarging device is applied.

【図6】文字パターン拡大処理手順を示すフローチャー
トである。
FIG. 6 is a flowchart showing a character pattern enlargement processing procedure.

【図7】文字パターン拡大装置の第2実施例の構成図で
ある。
FIG. 7 is a configuration diagram of a second embodiment of a character pattern enlarging device.

【図8】従来の文字パターン拡大方法説明図である。FIG. 8 is an explanatory diagram of a conventional character pattern enlarging method.

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

A 拡大テーブル B 拡大倍率データ C、D 文字パターンデータ 14 文字フォントメモリ 15 拡大テーブル 45 カウンタ 46、57、65 シフトレジスタ 51、52、54、55 レジスタ 53 演算回路 56 デコーダ 60 拡大文字パターンメモリ 61 アップダウンカウンタ 68 行シフト制御回路 A enlargement table B enlargement ratio data C, D character pattern data 14 character font memory 15 enlargement table 45 counter 46, 57, 65 shift register 51, 52, 54, 55 register 53 arithmetic circuit 56 decoder 60 enlarged character pattern memory 61 up / down Counter 68 line shift control circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 一方向がFドットの文字パターンデータ
を一方向がXドットの文字パターンデータに拡大するた
めに、X=FM+I、0≦I<FなるM及びIの値を求
め、 拡大前の該一方向のFドットのうち、F−IドットをM
倍し、残りのIドットをM+1倍することを特徴とする
文字パターン拡大方法。
1. To expand character pattern data of F dots in one direction to character pattern data of X dots in one direction, values of M and I such that X = FM + I, 0 ≦ I <F are obtained, and before expansion. Of the F dots in the one direction of
A character pattern enlarging method characterized by multiplying and multiplying the remaining I dots by M + 1.
【請求項2】 前記各Iの値について、任意の値Mに対
し前記M倍するドットと前記M+1倍するドットを定め
た拡大テーブルを予め作成しておき、該拡大テーブルを
参照して、各ドットの拡大倍率を決定することを特徴と
する請求項1記載の文字パターン拡大方法。
2. For each value of I, an enlargement table is created in advance that defines dots for multiplying M times and dots for multiplying M + 1 with respect to an arbitrary value M, and referring to the enlargement table, The method of enlarging a character pattern according to claim 1, wherein the enlarging magnification of the dots is determined.
【請求項3】 一方向がFドットの文字パターンデータ
を一方向がXドットの文字パターンデータに拡大するた
めに、X=FM+I、0≦I<FなるM及びIの値を求
める演算手段(1)と、 各Iの値について、任意の値Mに対しM倍するドットと
M+1倍するドットを定めた拡大テーブルが格納された
拡大テーブル記憶手段(2)と、 該拡大テーブルを参照して、M倍するドットとM+1倍
するドットを決定する拡大倍率決定手段(3)と、 各文字のパターンデータが格納され、文字コードを文字
パターンデータに変換する文字フォント記憶手段(4)
と、 変換された文字パターンデータの各ドットを、決定され
た該倍率に拡大する拡大手段(5)と、 を有することを特徴とする文字パターン拡大装置。
3. An arithmetic means for obtaining the values of M and I such that X = FM + I, 0 ≦ I <F, in order to expand the character pattern data of F dots in one direction to the character pattern data of X dots in one direction. 1) and enlargement table storage means (2) in which an enlargement table defining a dot to be multiplied by M and a dot to be multiplied by M + 1 with respect to an arbitrary value M is stored, and the enlargement table is referred to. , Enlargement factor determining means (3) for determining dots to be multiplied by M and dots to be multiplied by M + 1, and character font storage means (4) for storing pattern data of each character and converting a character code into character pattern data.
And a magnifying means (5) for magnifying each dot of the converted character pattern data to the determined magnification, the character pattern magnifying device.
JP3202913A 1991-08-13 1991-08-13 Method and device for enlarging character pattern Withdrawn JPH0546152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3202913A JPH0546152A (en) 1991-08-13 1991-08-13 Method and device for enlarging character pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3202913A JPH0546152A (en) 1991-08-13 1991-08-13 Method and device for enlarging character pattern

Publications (1)

Publication Number Publication Date
JPH0546152A true JPH0546152A (en) 1993-02-26

Family

ID=16465247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3202913A Withdrawn JPH0546152A (en) 1991-08-13 1991-08-13 Method and device for enlarging character pattern

Country Status (1)

Country Link
JP (1) JPH0546152A (en)

Similar Documents

Publication Publication Date Title
EP0258825B1 (en) Display control apparatus with improved attribute function
JPH0546152A (en) Method and device for enlarging character pattern
JP3006946B2 (en) Printing equipment
JP2903565B2 (en) Character display device
JPH081554B2 (en) Character processor
JP3710208B2 (en) Image processing method and apparatus
JPS60188981A (en) Scale factor conversion system for character data
JP4080470B2 (en) Character pattern generator
JPH0610393Y2 (en) Cursor width control circuit in charactor display device
JP2817848B2 (en) Display control device
JP2803746B2 (en) Character processing method and apparatus
JP2824708B2 (en) Graphic drawing device
JPH0863595A (en) Method and device for rotation processing of image
JPH09218947A (en) Image data converter
JPS61148487A (en) Expander/reducer
JPS61279888A (en) Character generator
JPH08115072A (en) Dot display device
JPH05160641A (en) Arbitrary waveform edition method
JPH0385596A (en) Front memory device
JPS6183585A (en) Display unit
JPS62116996A (en) Fine drawing of dot graphic
JPS62271011A (en) System for mapping lcd memory to printer memory
JPH05108056A (en) Variable power display device
JPS6132990B2 (en)
JPH07322058A (en) Picture processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981112