JPH05188914A - Character font scale conversion device - Google Patents

Character font scale conversion device

Info

Publication number
JPH05188914A
JPH05188914A JP4002648A JP264892A JPH05188914A JP H05188914 A JPH05188914 A JP H05188914A JP 4002648 A JP4002648 A JP 4002648A JP 264892 A JP264892 A JP 264892A JP H05188914 A JPH05188914 A JP H05188914A
Authority
JP
Japan
Prior art keywords
scale conversion
dot
data
font
dots
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4002648A
Other languages
Japanese (ja)
Inventor
Yuji Honma
祐士 本間
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4002648A priority Critical patent/JPH05188914A/en
Publication of JPH05188914A publication Critical patent/JPH05188914A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To increase the operation speed of scale conversion by determining plural dots after conversion by single-time memory access. CONSTITUTION:Data nearby four points corresponding to the positions of the dots after the scale conversion are read out of a font work memory 24 by the single-time memory access by a scale conversion control part 25 and sent to plural dot determination control parts 26-1 to 26-n. Then the dot determination control parts 26-1 to 26-n select a scale conversion table corresponding to the dot pattern of the received data nearby the four points among scale conversion tables T11-T16 and the scale conversion table is utilized to determine the dots after the scale conversion. Thus, the dots after the conversion can be determined at a time by gaining access once, and the scale conversion is performed at a high speed.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は文字フォントスケール
変換装置に関し、特に文字フォントの補間機能付きスケ
ール変換を行う文字フォントスケール変換装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character font scale conversion device, and more particularly to a character font scale conversion device for performing scale conversion with a character font interpolation function.

【0002】[0002]

【従来の技術】従来、補間機能付き文字パターンのスケ
ール変換を行う場合には、そのスケール変換のもとにな
る変換対象ドットデータに一番近い4点のデータ(4点
近傍データ)をフォントメモリから読み出し、その4点
近傍データの内容に応じてそのスケール変換のために使
用するスケール変換テーブルを決定していた。図6およ
び図7には、それぞれスケール変換テーブルの一例が示
されている。
2. Description of the Related Art Conventionally, when scale conversion of a character pattern with an interpolation function is performed, four points of data (four-point vicinity data) closest to the conversion target dot data which is the basis of the scale conversion are stored in a font memory. , And the scale conversion table used for the scale conversion is determined according to the contents of the four-point neighborhood data. 6 and 7 each show an example of the scale conversion table.

【0003】図6のスケール変換テーブルT11は、左
上の1ドットだけが“1”(黒)で他の3ドットがすべ
て“0”(白)の4点近傍データBD1に対応するもの
であり、図示のように、8×8ドットのドットパターン
から構成されている。このスケール変換テーブルT11
を使用すると、最大でX,Y方向共に8倍までスケール
変換することができる。
The scale conversion table T11 of FIG. 6 corresponds to 4-point neighborhood data BD1 in which only the upper left one dot is "1" (black) and the other three dots are all "0" (white). As shown, the dot pattern is composed of 8 × 8 dots. This scale conversion table T11
Is used, scale conversion can be performed up to 8 times in both X and Y directions.

【0004】例えば、変換対象の1ドットd1に対応す
るX方向(y=0の時)の変換後データの内容は、1/
8ステップの刻みで、“1”,“1”,“1”,
“1”,“0”,“0”,“0”,“0”となり、Y方
向(x=0の時)の変換後データの内容は、1/8ステ
ップの刻みで、“1”,“1”,“1”,“1”,
“0”,“0”,“0”,“0”となる。
For example, the content of the converted data in the X direction (when y = 0) corresponding to one dot d1 to be converted is 1 /
In steps of 8 steps, "1", "1", "1",
It becomes "1", "0", "0", "0", "0", and the contents of the converted data in the Y direction (when x = 0) are "1", "1", "1", "1",
It becomes "0", "0", "0", "0".

【0005】図7のスケール変換テーブルT12は、上
側の2ドットが“0”(白)で下側の2ドットが“1”
(黒)の4点近傍データBD2に対応するものである。
このスケール変換テーブルT12を使用した場合でも、
最大でX,Y方向共に8倍までスケール変換することが
できる。
In the scale conversion table T12 of FIG. 7, the upper two dots are "0" (white) and the lower two dots are "1".
This corresponds to the 4-point neighborhood data BD2 (black).
Even when using this scale conversion table T12,
Scale conversion can be performed up to 8 times in both X and Y directions.

【0006】例えば、変換対象の1ドットd2に対応す
るX方向の変換後データの内容は、1/8ステップの刻
みで、“0”,“0”,“0”,“0”,“0”,
“0”,“0”,“0”となり、Y方向の変換後データ
の内容は、1/8ステップの刻みで、“0”,“0”,
“0”,“0”,“1”,“1”,“1”,“1”とな
る。
For example, the content of the converted data in the X direction corresponding to one dot d2 to be converted is "0", "0", "0", "0", "0" in steps of 1/8 step. ",
It becomes "0", "0", "0", and the contents of the converted data in the Y direction are "0", "0", in steps of 1/8 step.
It becomes "0", "0", "1", "1", "1", "1".

【0007】ここでは、4点近傍データBD1に対応す
るスケール変換テーブルT11と4点近傍データBD2
に対応するスケール変換テーブルT12についてのみ説
明したが、スケール変換テーブルは4点近傍データの内
容毎にそれぞれ用意されるものであるので、実際には全
部で16個のスケール変換テーブルが使用される。次
に、図8を参照して、この様なスケール変換テーブルを
用いた文字フォントのスケール変換の動作原理を説明す
る。
Here, the scale conversion table T11 corresponding to the 4-point neighborhood data BD1 and the 4-point neighborhood data BD2.
Although only the scale conversion table T12 corresponding to the above has been described, since the scale conversion table is prepared for each content of the 4-point neighborhood data, 16 scale conversion tables in total are actually used. Next, the operation principle of scale conversion of a character font using such a scale conversion table will be described with reference to FIG.

【0008】X方向に8/n倍の変換を行う時、X方向
のステップはn/8である。スケール変換後のDドット
目を決めるとき、INT{n/8×D}、つまり、n/
8×Dの整数部がもとの変換対象ドットを含む4点近傍
データのドット位置を示し、その小数部、DEC{n/
8×D}が4点間の位置(ステップ数)を示している。
When converting 8 / n times in the X direction, the step in the X direction is n / 8. When determining the D dot after scale conversion, INT {n / 8 × D}, that is, n /
The 8 × D integer part indicates the dot position of the 4-point neighborhood data including the original conversion target dot, and its decimal part, DEC {n /
8 × D} indicates the position (the number of steps) between the four points.

【0009】例えば、X方向に8/4倍の変換を行う
時、X方向のステップは4/8である。スケール変換後
の0ドット目の内容を決めるときには、まず、INT
{4/8×0}の演算によって、もとのドットデータの
位置が算出される。ここでは、{4/8×0}の整数部
は“0”なので、変換対象文字フォント内の0ドット目
のデータ“1”がもとのドットデータとなり、そのデー
タ“1”を含む4点近傍データBD1がフォントメモリ
から読み出される。
[0009] For example, when performing a conversion of 8/4 times in the X direction, the step in the X direction is 4/8. When determining the contents of the 0th dot after scale conversion, first INT
The position of the original dot data is calculated by the calculation of {4/8 × 0}. Here, since the integer part of {4/8 × 0} is “0”, the data “1” of the 0th dot in the conversion target character font becomes the original dot data, and 4 points including that data “1” The neighborhood data BD1 is read from the font memory.

【0010】次いで、読み出した4点近傍データBD1
の内容に対応するスケール変換テーブルT11が選択さ
れる。そして、DEC{4/8×0}の演算によって、
スケール変換テーブル11内のどのデータを変換後デー
タとして使用するかが決定される。ここでは、{4/8
×0}の少数部が“0”なので、スケール変換テーブル
T11の“0”ステップ目のデータ“1”が、変換後の
0ドット目のデータとして決定される。
Next, the read four-point neighborhood data BD1
The scale conversion table T11 corresponding to the contents of is selected. Then, by the calculation of DEC {4/8 × 0},
Which data in the scale conversion table 11 is to be used as the converted data is determined. Here, {4/8
Since the minority part of × 0} is “0”, the data “1” at the “0” step of the scale conversion table T11 is determined as the 0th dot data after conversion.

【0011】次いで、スケール変換後の1ドット目の内
容を決めるために、同様の動作が行われる。すなわち、
INT{4/8×1}の演算によって、もとのドットデ
ータの位置が算出される。ここでは、{4/8×1}の
整数部は“0”なので、変換対象文字フォント内の0ド
ット目のデータ“1”がもとのドットデータとなり、そ
のデータ“1”を含む4点近傍データBD1がフォント
メモリから読み出される。
Then, the same operation is performed to determine the contents of the first dot after the scale conversion. That is,
The position of the original dot data is calculated by the calculation of INT {4/8 × 1}. Here, the integer part of {4/8 × 1} is “0”, so the data “1” of the 0th dot in the conversion target character font becomes the original dot data, and 4 points including that data “1” The neighborhood data BD1 is read from the font memory.

【0012】次いで、読み出した4点近傍データBD1
の内容に対応するスケール変換テーブルT11が選択さ
れる。そして、DEC{4/8×1}の演算によって、
スケール変換テーブルT11内のどのデータを変換後デ
ータとして使用するかが決定される。ここでは、{4/
8×1}の少数部が“4/8”なので、スケール変換テ
ーブルT11の“4/8”ステップ目のデータ“0”
が、変換後の1ドット目のデータとして決定される。以
下、同様にして、スケール変換後の2ドット目,3ドッ
ト目、…の内容が順次決められる。
Next, the read out 4-point neighborhood data BD1
The scale conversion table T11 corresponding to the contents of is selected. Then, by the calculation of DEC {4/8 × 1},
Which data in the scale conversion table T11 is used as the converted data is determined. Here, {4 /
Since the decimal part of 8 × 1} is “4/8”, the data “0” at the “4/8” step of the scale conversion table T11.
Is determined as the converted first dot data. Thereafter, similarly, the contents of the second dot, the third dot, ... After scale conversion are sequentially determined.

【0013】このように、従来のスケール変換方式で
は、縦横(X,Y方向)にステップを刻んでいき、1ド
ットづつ、スケール変換後のデータを決めていた。この
方式では、使用するスケール変換テーブルを選択するた
めに、変換後の1ドットを決める度にもとのデータの4
点近傍データをフォントメモリから読み出さなければな
らない。したがって、変換後の1ドットを決める度に1
度のメモリアクセスが必要とされ、スケール変換に多く
の時間が要された。
As described above, in the conventional scale conversion system, steps are divided vertically and horizontally (in the X and Y directions) to determine the scaled data for each dot. In this method, in order to select the scale conversion table to be used, the original data 4
The point neighborhood data must be read from the font memory. Therefore, 1 is set each time one dot after conversion is determined.
Memory access was required and scale conversion took a lot of time.

【0014】[0014]

【発明が解決しようとする課題】従来では、変換後の1
ドットを決める度に1度のメモリアクセスが必要とさ
れ、スケール変換に多くの時間が必要となる欠点があっ
た。
Conventionally, after conversion, 1
There is a drawback that one memory access is required every time a dot is determined and a large amount of time is required for scale conversion.

【0015】この発明はこのような点に鑑みてなされた
もので、1度のメモリアクセスで変換後の複数ドットを
決定できるようにし、スケール変換を高速に行うことが
できる文字フォントスケール変換装置を提供することを
目的とする。
The present invention has been made in view of the above circumstances, and provides a character font scale conversion device capable of determining a plurality of dots after conversion by one memory access and performing scale conversion at high speed. The purpose is to provide.

【0016】[0016]

【課題を解決するための手段および作用】この発明の文
字フォントスケール変換装置は、文字フォントが格納さ
れ、そのフォント内の近接する複数ドットからそれぞれ
成る複数の近傍ドットデータが同一アドレスによって指
定されるように構成されたメモリ手段と、前記近傍ドッ
トデータのドットパターンの内容に対応するスケール変
換用のドットパターンがそれぞれ登録されている複数の
スケール変換テーブルと、スケール変換後の複数のドッ
ト位置に対応する複数の近傍ドットデータを前記メモリ
手段から1度のメモリアクセスで読み出すアクセス手段
と、このアクセス手段によって読み出された複数の近傍
ドットデータをそれぞれ受取り、その受け取った近傍ド
ットデータのドットパターンに対応するスケール変換テ
ーブルを参照することによってスケール変換後のドット
をそれぞれ決定する複数のドット決定手段とを具備する
ことを特徴とする。
In the character font scale conversion device of the present invention, a character font is stored, and a plurality of neighboring dot data each consisting of a plurality of adjacent dots in the font are designated by the same address. Memory means configured as described above, a plurality of scale conversion tables in which dot patterns for scale conversion corresponding to the contents of the dot pattern of the neighboring dot data are respectively registered, and a plurality of dot positions after scale conversion Access means for reading a plurality of neighboring dot data from the memory means by one memory access, and a plurality of neighboring dot data read by the accessing means, respectively, and corresponding to the dot pattern of the received neighboring dot data Refer to the scale conversion table Characterized by comprising a plurality of dots determining means for determining a dot after scaling each by the.

【0017】この文字フォントスケール変換装置におい
ては、スケール変換後の複数のドット位置に対応する複
数の近傍ドットデータが1度のメモリアクセスでメモリ
手段から読み出され、それら読み出された複数の近傍ド
ットデータは複数のドット決定手段にそれぞれ送られ
る。そして、各ドット決定手段では、受け取った近傍ド
ットデータのドットパターンに対応するスケール変換テ
ーブルが参照されることによって、スケール変換後のド
ットが決定される。したがって、1度のメモリアクセス
で変換後の複数ドットを一度に決定できるようになり、
スケール変換を高速に行うことが可能となる。
In this character font scale conversion device, a plurality of neighborhood dot data corresponding to a plurality of scale-converted dot positions are read from the memory means with one memory access, and the read plurality of neighborhoods are read. The dot data is sent to each of the plurality of dot determining means. Then, in each dot determination means, the scale-converted dots are determined by referring to the scale conversion table corresponding to the dot pattern of the received neighboring dot data. Therefore, it becomes possible to determine the converted multiple dots at once with one memory access.
It is possible to perform scale conversion at high speed.

【0018】[0018]

【実施例】以下、図面を参照してこの発明の実施例を説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1にはこの発明の一実施例に係わる補間
機能付き文字フォントスケール変換装置が示されてい
る。この文字フォントスケール変換装置は、図8で説明
した従来の変換装置と同様に、変換対象ドットを含むそ
の4点近傍データに対応する補間用のスケール変換テー
ブルを利用して、変換後のドットを決定する方式のもの
であり、マイクロプロセッサ21、フォント展開制御部
22、フォントメモリ23、フォントワークメモリ2
4、スケール変換制御部25、ドット決定制御部26−
1〜26−n、スケール変換テーブルT11〜T16、
およびデータ出力部27から構成されている。
FIG. 1 shows a character font scale conversion device with an interpolation function according to an embodiment of the present invention. This character font scale conversion device, similar to the conventional conversion device described in FIG. 8, uses the scale conversion table for interpolation corresponding to the four-point neighborhood data including the conversion target dots to convert the converted dots. It is a method of determining, and includes a microprocessor 21, a font expansion control unit 22, a font memory 23, and a font work memory 2.
4, scale conversion control unit 25, dot determination control unit 26-
1 to 26-n, scale conversion tables T11 to T16,
And a data output unit 27.

【0020】マイクロプロセッサ21は、この文字フォ
ントスケール変換装置全体の制御を司るものである。フ
ォント展開制御部22は、マイクロプロセッサ21の制
御の下に、フォントメモリ23から変換対象の所定の1
文字分の文字フォントデータを読み出し、それをフォン
トワークメモリ24に格納する。
The microprocessor 21 controls the entire character font scale conversion device. Under the control of the microprocessor 21, the font expansion control unit 22 extracts from the font memory 23 a predetermined 1 to be converted.
The character font data for the characters is read and stored in the font work memory 24.

【0021】フォントメモリ23には、複数の文字フォ
ントにそれぞれ対応するドットパターンデータが納めら
れている。フォントワークメモリ24には、変換対象文
字フォントのドットパターンが展開される。
The font memory 23 stores dot pattern data respectively corresponding to a plurality of character fonts. The dot pattern of the conversion target character font is developed in the font work memory 24.

【0022】このフォントワークメモリ24は、同一ア
ドレスによってフォント内の複数の4点近傍データが同
時に読み出されるようなメモリバンク構成を有してい
る。このフォントワークメモリ24のメモリバンク構成
の詳細については、図2を参照して後述する。
The font work memory 24 has a memory bank structure in which a plurality of data in the vicinity of four points in the font can be read simultaneously by the same address. Details of the memory bank configuration of the font work memory 24 will be described later with reference to FIG.

【0023】スケール制御変換部25は、マイクロプロ
セッサ21の制御の下に、複数の変換後ドット位置にそ
れぞれ対応するもとのデータの複数のドット位置および
変換時のステップ数をまとめて計算すると共に、フォン
トワークメモリ24から同時に複数の4点近傍データを
読み込む。もとのデータのドット位置は、INT{N/
256×D}の演算によって求められ、また、ステップ
数は、DEC{N/256×D}の演算によって求めら
れる。
Under the control of the microprocessor 21, the scale control converter 25 collectively calculates a plurality of dot positions of the original data respectively corresponding to the plurality of converted dot positions and the number of steps at the time of conversion. , A plurality of 4-point neighborhood data are simultaneously read from the font work memory 24. The dot position of the original data is INT {N /
256 × D}, and the number of steps is calculated by DEC {N / 256 × D}.

【0024】ここでは、X,Y方向ともに、0/256
から255/256までの256ステップからなるスケ
ール変換テーブルを想定しており、Dは変換後ドット位
置を示し、INT{N/256×D}は{N/256×
D}の演算結果の整数部を示し、DEC{N/256×
D}は{N/256×D}の演算結果の少数部を示して
いる。また、N/256は、スケール変換倍率(256
/N)の逆数である。
Here, 0/256 is set in both the X and Y directions.
Assuming a scale conversion table consisting of 256 steps from 1 to 255/256, D indicates a dot position after conversion, and INT {N / 256 × D} is {N / 256 ×.
DEC {N / 256 x indicates the integer part of the operation result of D}
D} indicates the decimal part of the calculation result of {N / 256 × D}. N / 256 is the scale conversion magnification (256
It is the reciprocal of / N).

【0025】4点近傍データは、INT{N/256×
D}で指定されるドットを含む4点データである。フォ
ントワークメモリ24から同時に読み出された複数の4
点近傍データはそれぞれ対応する変換時のステップ数と
組み合わせられて、各組毎にドット決定制御部26−1
〜26−nに分散して供給される。
The 4-point neighborhood data is INT {N / 256 ×
It is 4-point data including dots designated by D}. Multiple 4 read simultaneously from the fontwork memory 24
The point neighborhood data is combined with the corresponding number of steps at the time of conversion, and the dot determination control unit 26-1
26-n are distributed and supplied.

【0026】ドット決定制御部26−1〜26−nの各
々は、スケール変換制御部25から送られきた4点近傍
データとそのドットの小数点以下の距離を表すステップ
数の値とに基づいてスケール変換後のドットを決定する
ものであり、16個のスケール変換テーブルT11〜T
16を備えている。スケール変換テーブルT11〜T1
6は、図6および図7で説明したように4点近傍データ
の内容にそれぞれ対応しており、その各々には補間付き
スケール変換後の256×256ドットのスケール変換
用のドットパターンデータが格納されている。
Each of the dot determination control units 26-1 to 26-n scales on the basis of the four-point neighborhood data sent from the scale conversion control unit 25 and the value of the number of steps representing the distance after the decimal point of the dot. The dots after conversion are determined, and 16 scale conversion tables T11 to T
16 is provided. Scale conversion tables T11 to T1
6 corresponds to the contents of the four-point neighborhood data, as described with reference to FIGS. 6 and 7, and each stores the dot pattern data for scale conversion of 256 × 256 dots after scale conversion with interpolation. Has been done.

【0027】ドット決定制御部26−1〜26−nの各
々は、受け取った4点近傍データの内容に従って使用す
るスケール変換テーブルを選択し、受け取ったステップ
数に対応するドットデータを、その選択したスケール変
換テーブルから読取り、それれを変換後のドットデータ
として決定する。この様にしてドット決定制御部26−
1〜26−nそれぞれによって決定された変換後のドッ
トデータは、データ出力部27に供給される。データ出
力部27は、ドット決定制御部26−1〜26−nでそ
れぞれ決定されたデータ(nドット分)をまとめて出力
する。次に、図2を参照して、図1のフォントワークメ
モリ24のメモリバンク構成を説明する。
Each of the dot determination control units 26-1 to 26-n selects a scale conversion table to be used according to the contents of the received 4-point neighborhood data, and selects the dot data corresponding to the received step number. It is read from the scale conversion table and determined as the converted dot data. In this way, the dot determination control unit 26-
The converted dot data determined by each of 1 to 26-n is supplied to the data output unit 27. The data output unit 27 collectively outputs the data (n dots) respectively determined by the dot determination control units 26-1 to 26-n. Next, the memory bank configuration of the font work memory 24 of FIG. 1 will be described with reference to FIG.

【0028】このフォントワークメモリ24は、2つの
バンクメモリ241,242から構成されており、第1
のバンクメモリ241と第2のバンクメモリ242の対
応するバイトデータは同一アドレスによって同時に読み
出される。すなわち、第1のバンクメモリ241の第1
バイト目(B1)の8ビットデータは、第2のバンクメ
モリ242の第1バイト目(B1)の8ビットデータと
同一アドレスによって指定され、同時に読み出される。
同様に、第1のバンクメモリ241の第2バイト目(B
2),第3バイト目(B3),第4バイト目(B4)
も、第2のバンクメモリ242の第2バイト目(B
2),第3バイト目(B3),第4バイト目(B4)と
それぞれ同時に読み出される。
The fontwork memory 24 is composed of two bank memories 241 and 242.
The corresponding byte data in the bank memory 241 and the second bank memory 242 are simultaneously read by the same address. That is, the first bank of the first bank memory 241
The 8-bit data of the byte (B1) is designated by the same address as the 8-bit data of the first byte (B1) of the second bank memory 242 and is read simultaneously.
Similarly, the second byte of the first bank memory 241 (B
2), 3rd byte (B3), 4th byte (B4)
The second byte of the second bank memory 242 (B
2), the third byte (B3) and the fourth byte (B4) are simultaneously read.

【0029】ここで、簡単のために例えば文字フォント
データが8×8ドットの場合を想定すると、第1のバン
クメモリ241の第1バイト目(B1),第2バイト目
(B2),第3バイト目(B3),第4バイト目(B
4)には、それぞれ文字フォントデータの奇数行のデー
タ、つまり、第1行目のデータ、第3行目のデータ、第
5行目のデータ、第7行目のデータが格納され、また、
第2のバンクメモリ242の第1バイト目(B1),第
2バイト目(B2),第3バイト目(B3),第4バイ
ト目(B4)には、それぞれ文字フォントデータの偶数
行のデータ、つまり、第2行目のデータ、第4行目のデ
ータ、第6行目のデータ、第8行目のデータが格納され
る。
Here, for the sake of simplicity, for example, assuming that the character font data is 8 × 8 dots, the first byte (B1), the second byte (B2), and the third byte of the first bank memory 241 are assumed. Byte (B3), 4th byte (B
In 4), the data of the odd-numbered lines of the character font data, that is, the data of the first line, the data of the third line, the data of the fifth line, and the data of the seventh line are stored.
The first byte (B1), the second byte (B2), the third byte (B3), and the fourth byte (B4) of the second bank memory 242 have even-numbered lines of character font data, respectively. That is, the data of the second line, the data of the fourth line, the data of the sixth line, and the data of the eighth line are stored.

【0030】したがって、第1のバンクメモリ241と
第2バンクメモリ242の第1バイト目(B1)のアク
セスによって、原理的には、図示のように7つの4点近
傍データBD11〜BD16を同時に読み出すことが可
能となる。実際には、スケール変換倍率が256/Nで
設定され、縦横共にN/256のステップが刻まれるの
で、スケール変換後の横方向ドット位置をDとすると、
N/256×Dの整数部分が4点近傍データのビット位
置となり、その小数部が4点近傍間の距離データ、つま
りステップ数となる。
Therefore, in principle, by accessing the first byte (B1) of the first bank memory 241 and the second bank memory 242, seven 4-point neighborhood data BD11 to BD16 are simultaneously read as shown in the figure. It becomes possible. Actually, the scale conversion magnification is set to 256 / N, and N / 256 steps are engraved both vertically and horizontally, so if the horizontal dot position after scale conversion is D,
The integer part of N / 256 × D is the bit position of the 4-point neighborhood data, and the decimal part thereof is the distance data between the 4-point neighborhoods, that is, the number of steps.

【0031】この場合において、フォントワークメモリ
24の読み出しをバイト(8ビット)単位で行うとする
と、N/256×D÷8の整数部がアクセスすべき横方
向のバイト位置となる。
In this case, if the font work memory 24 is read in byte (8 bits) units, the integer part of N / 256 × D ÷ 8 is the horizontal byte position to be accessed.

【0032】スケール変換後のDs 番目のドットを決定
するために必要な4点近傍データとDt 番目のドットを
決定するのに必要な4点近傍データが同じアドレスのフ
ォントワークメモリ24にある場合、つまり[INT
{N/256×Dt ÷8}]=[INT{N/256×
Ds ÷8}]が満たされる場合については、Dt −Ds
個分の4点近傍データをフォントワークメモリ24に対
する1度のアクセスサイクルで読み込む事が出来る。
If the 4-point neighborhood data necessary for determining the Ds-th dot after scale conversion and the 4-point neighborhood data necessary for determining the Dt-th dot are in the font work memory 24 at the same address, In other words, [INT
{N / 256 × Dt ÷ 8}] = [INT {N / 256 ×
Ds ÷ 8}] is satisfied, Dt−Ds
It is possible to read four pieces of near-point data for one piece in one access cycle to the font work memory 24.

【0033】ドット決定制御部が合計で16個の場合に
は、16個分の4点近傍データをフォントワークメモリ
24から一度に読み出すことが好ましい。したがって、
Dt−Ds の数が16より小さい場合には、複数回のフ
ォントワークメモリ24のアクセスを行うことが必要と
なる。この場合、ワークメモリ24に対して、INT
{N/256×D15÷8}−INT{N/256×D0
÷8}回のアクセスサイクルを行えば、16個の4点近
傍データを読み出す事が出来る。
When there are a total of 16 dot determination control units, it is preferable to read 16 4-point neighborhood data from the font work memory 24 at once. Therefore,
If the number of Dt-Ds is smaller than 16, it is necessary to access the font work memory 24 a plurality of times. In this case, INT is set to the work memory 24.
{N / 256 × D15 ÷ 8} -INT {N / 256 × D0
By performing ÷ 8} access cycles, it is possible to read out 16 pieces of 4-point neighborhood data.

【0034】この式から分かるように、Nの値が小さい
程ワークメモリ24のアクセス回数を減らす事が可能と
なる。但し、ここで、D0 は拡大後のD0 番目のドット
位置、D15は拡大後のD15番目のドット位置である。図
3には、スケール変換制御部25からドット決定制御部
26−1〜26−nへのデータ転送の様子が示されてい
る。
As can be seen from this equation, the smaller the value of N, the more the number of accesses to the work memory 24 can be reduced. Here, D0 is the D0th dot position after enlargement, and D15 is the D15th dot position after enlargement. FIG. 3 shows how data is transferred from the scale conversion control unit 25 to the dot determination control units 26-1 to 26-n.

【0035】ドット決定制御部が26−1〜26−16
までの16個ある場合を想定すると、スケール変換制御
部25によってフォントワークメモリ24から読み出さ
れた16個の4点近傍データは、それぞれドット決定制
御部26−1〜26−16に供給される。この場合、各
4点近傍データには、その4点近傍間の距離データ、つ
まり変換後のドット位置に対応したステップ数を示すデ
ータが付加される。
The dot determination control units 26-1 to 26-16
Assuming that there are 16 data items up to 16 points, the fourteen-point neighborhood data read from the font work memory 24 by the scale conversion control unit 25 are supplied to the dot determination control units 26-1 to 26-16, respectively. .. In this case, to each 4-point neighborhood data, distance data between the 4-point neighborhoods, that is, data indicating the number of steps corresponding to the converted dot position is added.

【0036】例えば、変換後の0ドット目に対応するも
とデータの4点近傍データがドット決定制御部が26−
1に送られる場合、DEC{N/256×0}の値もそ
の4点近傍データと一緒にドット決定制御部26−1に
送られる。次に、図4のフローチャートを参照して、ス
ケール変換制御部25によるスケール変換処理のための
動作を説明する。
For example, the dot determination control unit 26 outputs 4-point neighborhood data of the original data corresponding to the converted 0th dot.
When it is sent to 1, the value of DEC {N / 256 × 0} is also sent to the dot determination control unit 26-1 together with the 4-point neighborhood data. Next, the operation for the scale conversion processing by the scale conversion control unit 25 will be described with reference to the flowchart in FIG.

【0037】スケール変換制御部25は、まず、マイク
ロプロセッサ21から複数(例えば16個)の変換後の
ドット位置情報を受取る(ステップS11)。次いで、
スケール変換制御部25は、マイクロプロセッサ21か
ら指定された変換倍率(256/N)に従って、変換後
のドット位置D0,D1,…D15にそれぞれ対応する
もとのデータのドット位置[INT{N/256×
D}]、およびステップ数[DEC{N/256×
D}]を求める(ステップS12)。
The scale conversion control unit 25 first receives a plurality (for example, 16) of converted dot position information from the microprocessor 21 (step S11). Then
The scale conversion control unit 25, according to the conversion magnification (256 / N) designated by the microprocessor 21, converts the dot positions of the original data corresponding to the converted dot positions D0, D1, ... D15 [INT {N / 256x
D}], and the number of steps [DEC {N / 256 ×
D}] is obtained (step S12).

【0038】そして、スケール変換制御部25は、フォ
ントワークメモリ24をアクセスして、例えば16個の
4点近傍データを読み出す(ステップS12)。この
後、スケール変換制御部25は、対応する4点近傍デー
タとステップ数との組み合わせを作成し(ステップS1
4)、その作成した4点近傍データおよびステップ数か
らなる16組みのデータをドット決定制御部26−1〜
26−16にそれぞれ供給する(ステップS15)。次
に、図5のフローチャートを参照して、ドット決定制御
部26−1〜26−16各々のドット決定動作を説明す
る。
Then, the scale conversion control unit 25 accesses the font work memory 24 to read, for example, 16 pieces of 4-point neighborhood data (step S12). After that, the scale conversion control unit 25 creates a combination of the corresponding 4-point neighborhood data and the number of steps (step S1).
4), the dot decision control units 26-1 to 26-1
26 to 16 respectively (step S15). Next, the dot determination operation of each of the dot determination control units 26-1 to 26-16 will be described with reference to the flowchart of FIG.

【0039】ドット決定制御部26−1〜26−16各
々は、まず、16個のスケール変換テーブルT11〜T
16の中から、受信した4点近傍データの内容に対応す
るスケール変換テーブルを選択する(ステップS2
1)。次いで、ドット決定制御部26−1〜26−16
の各々は、選択したスケール変換テーブルから、受信し
たステップ数に対応するドットデータを読取り、それを
変換後のドットとして決定する(ステップS22)。こ
の後、ドット決定制御部26−1〜26−16の各々
は、その決定した変換後のドットをデータ出力部27に
供給する。データ出力部27は、ドット決定制御部26
−1〜26−16から受け取った16ビット分のデータ
をまとめて出力する。
Each of the dot determination control units 26-1 to 26-16 starts with 16 scale conversion tables T11 to T.
The scale conversion table corresponding to the contents of the received 4-point neighborhood data is selected from 16 (step S2).
1). Next, the dot determination control units 26-1 to 26-16
Each reads the dot data corresponding to the received step number from the selected scale conversion table and determines it as the converted dot (step S22). After that, each of the dot determination control units 26-1 to 26-16 supplies the determined converted dots to the data output unit 27. The data output unit 27 includes the dot determination control unit 26.
16-bit data received from -1 to 26-16 are collectively output.

【0040】図4および図5のフローチャートの動作
は、横方向の全てのビットが決定されるまで繰り返さ
れ、そして、横方向の全てのビットが決定されると、今
度は縦方向にステップを刻んで同じ動作が終了まで繰り
返される。
The operations of the flow charts of FIGS. 4 and 5 are repeated until all the bits in the horizontal direction have been determined, and once all the bits in the horizontal direction have been determined, this time step vertically. The same operation is repeated with.

【0041】以上のように、この実施例の文字フォント
スケール変換装置においては、スケール変換後の複数の
ドット位置に対応する複数の4点近傍データがスケール
変換制御部25による1度のメモリアクセスでフォント
ワークメモリ24から読み出され、それら読み出された
複数の4点近傍データは複数のドット決定制御部26−
1〜26−nにそれぞれ送られる。そして、各ドット決
定制御部26−1〜26−nでは、スケール変換テーブ
ルT11〜T16の中で受け取った4点近傍データのド
ットパターンに対応するスケール変換テーブルが選択さ
れ、そのスケール変換テーブルが参照されることによっ
てスケール変換後のドットが決定される。したがって、
1度のメモリアクセスで変換後の複数ドットを一度に決
定できるようになり、スケール変換を高速に行うことが
可能となる。
As described above, in the character font scale conversion device of this embodiment, a plurality of 4-point neighborhood data corresponding to a plurality of scale-converted dot positions can be accessed by the scale conversion control unit 25 once. The plurality of four-point neighborhood data read out from the fontwork memory 24 are read by a plurality of dot determination control units 26-
1 to 26-n, respectively. Then, in each of the dot determination control units 26-1 to 26-n, the scale conversion table corresponding to the dot pattern of the 4-point neighborhood data received in the scale conversion tables T11 to T16 is selected, and the scale conversion table is referred to. By doing so, the dot after scale conversion is determined. Therefore,
A plurality of dots after conversion can be determined at once by one memory access, and scale conversion can be performed at high speed.

【0042】なお、この実施例では、16個のドット決
定制御部26−1〜26−16をすべて一緒に動作させ
るために16個分の4点近傍データを1回乃至複数回の
アクセスによって読み出すようにしたが、1度のアクセ
スで読み出す事ができる4点近傍データの数だけ、ドッ
ト決定制御部を動作させるようにしても良い。また、こ
のスケール変換は、高速印字が要求されるレーザプリン
タ等の各種プリンタや、高速表示が要求されるLCD,
PDP等の表示装置に好適である。
In this embodiment, in order to operate all 16 dot determination control units 26-1 to 26-16 together, 16 4-point neighborhood data are read out by one or more accesses. However, the dot determination control unit may be operated by the number of pieces of 4-point neighborhood data that can be read by one access. In addition, this scale conversion is performed by various printers such as laser printers that require high-speed printing, LCDs that require high-speed display,
It is suitable for a display device such as a PDP.

【0043】[0043]

【発明の効果】以上のように、この発明によれば、1度
のメモリアクセスで変換後の複数ドットを決定できるよ
うになり、スケール変換を高速に行うことが可能とな
る。
As described above, according to the present invention, a plurality of converted dots can be determined by one memory access, and scale conversion can be performed at high speed.

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

【図1】この発明の一実施例に係わるシステム構成を示
すブロック図。
FIG. 1 is a block diagram showing a system configuration according to an embodiment of the present invention.

【図2】同実施例におけるフォントワークメモリの具体
的構成の一例を示すブロック図。
FIG. 2 is a block diagram showing an example of a specific configuration of a font work memory in the same embodiment.

【図3】同実施例のスケール変換制御部から複数のドッ
ト決定制御部へのデータ転送の様子を示す図。
FIG. 3 is a diagram showing how data is transferred from the scale conversion control unit to a plurality of dot determination control units in the embodiment.

【図4】同実施例におけるスケール変換制御部の動作を
説明するフローチャート。
FIG. 4 is a flowchart illustrating an operation of a scale conversion control unit according to the same embodiment.

【図5】同実施例におけるドット決定制御部の動作を説
明するフローチャート。
FIG. 5 is a flowchart illustrating an operation of a dot determination control unit in the embodiment.

【図6】従来のスケール変換装置で使用されるスケール
変換テーブルの内容の一例を示す図。
FIG. 6 is a diagram showing an example of the contents of a scale conversion table used in a conventional scale conversion device.

【図7】従来のスケール変換装置で使用されるスケール
変換テーブルの内容の他の一例を示す図。
FIG. 7 is a diagram showing another example of the contents of a scale conversion table used in a conventional scale conversion device.

【図8】従来のスケール変換装置におけるスケール変換
の動作原理を説明するための図。
FIG. 8 is a diagram for explaining an operation principle of scale conversion in a conventional scale conversion device.

【符号の説明】 21…マイクロプロセッサ、22…フォント展開制御
部、23…フォントメモリ、24…フォントワークメモ
リ、25…スケール変換制御部、26−1〜26−n…
ドット決定制御部、T11〜T16…スケール変換テー
ブル、27…データ出力部。
[Explanation of Codes] 21 ... Microprocessor, 22 ... Font expansion control unit, 23 ... Font memory, 24 ... Font work memory, 25 ... Scale conversion control unit, 26-1 to 26-n ...
Dot determination control unit, T11 to T16 ... Scale conversion table, 27 ... Data output unit.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字フォントが格納され、そのフォント
内の近接する複数ドットからそれぞれ成る複数の近傍ド
ットデータが同一アドレスによって指定されるように構
成されたメモリ手段と、 前記近傍ドットデータのドットパターンの内容に対応す
るスケール変換用のドットパターンがそれぞれ登録され
ている複数のスケール変換テーブルと、 スケール変換後の複数のドット位置に対応する複数の近
傍ドットデータを前記メモリ手段から1度のメモリアク
セスで読み出すアクセス手段と、 このアクセス手段によって読み出された複数の近傍ドッ
トデータをそれぞれ受取り、その受け取った近傍ドット
データのドットパターンに対応するスケール変換テーブ
ルを参照することによってスケール変換後のドットをそ
れぞれ決定する複数のドット決定手段とを具備すること
を特徴とする文字フォントスケール変換装置。
1. A memory means configured to store a character font and to designate a plurality of neighboring dot data each consisting of a plurality of neighboring dots in the font by the same address, and a dot pattern of the neighboring dot data. A plurality of scale conversion tables in which dot patterns for scale conversion corresponding to the contents of the above are registered, and a plurality of neighboring dot data corresponding to a plurality of dot positions after scale conversion are accessed once from the memory means. And the access means for reading out the plurality of neighboring dot data read by the accessing means, respectively, and referring to the scale conversion table corresponding to the dot pattern of the received neighboring dot data, the dots after scale conversion are respectively performed. Multiple dot decisions to determine A character font scale conversion device comprising: a setting means.
【請求項2】 前記メモリ手段は、前記文字フォントの
奇数行のドットパターンデータが格納される第1のメモ
リモジュールと、前記文字フォントの偶数行のドットパ
ターンデータが格納される第2のメモリモジュールとを
含んでいる請求項1記載の文字フォントスケール変換装
置。
2. The memory means includes a first memory module that stores dot pattern data of odd-numbered lines of the character font, and a second memory module that stores dot pattern data of even-numbered lines of the character font. The character font scale conversion device according to claim 1, including:
JP4002648A 1992-01-10 1992-01-10 Character font scale conversion device Pending JPH05188914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4002648A JPH05188914A (en) 1992-01-10 1992-01-10 Character font scale conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4002648A JPH05188914A (en) 1992-01-10 1992-01-10 Character font scale conversion device

Publications (1)

Publication Number Publication Date
JPH05188914A true JPH05188914A (en) 1993-07-30

Family

ID=11535176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4002648A Pending JPH05188914A (en) 1992-01-10 1992-01-10 Character font scale conversion device

Country Status (1)

Country Link
JP (1) JPH05188914A (en)

Similar Documents

Publication Publication Date Title
KR100306862B1 (en) Character pattern generator, character generating method, and storage medium therefor
JPH0883060A (en) Thickish/thinish character generation device
JPH05188914A (en) Character font scale conversion device
KR900004892B1 (en) Dot inter polation system
JP2806679B2 (en) Character generator
JPS60229766A (en) Output control system of interpolation dot pattern
JPS58154885A (en) Character pattern generator
JP3211404B2 (en) String output device
JPH0560598B2 (en)
JP4080470B2 (en) Character pattern generator
JPS61148487A (en) Expander/reducer
JP2713938B2 (en) Display control device
JP2776347B2 (en) Drawing device for printer
JP2861201B2 (en) Data converter
JP3108582B2 (en) Thicker text generator
JPS5950070B2 (en) Character pattern generation method
JPH01166967A (en) Pattern data forming method and pattern generator containing said pattern data
JPS60231267A (en) Intra-character control system
JPS6219982A (en) Image variable power method
JP2000222569A (en) Plotter
JPS63136278A (en) Production system for repetitive pattern
JPH04177296A (en) Pattern generating device
JPH0358091A (en) Pattern signal generating device
JPH04240695A (en) Gradational character generating method
JPH01237690A (en) Method of expressing vector of font