JPH0546151A - Method for scaling character pattern and control file used for the same - Google Patents

Method for scaling character pattern and control file used for the same

Info

Publication number
JPH0546151A
JPH0546151A JP3200179A JP20017991A JPH0546151A JP H0546151 A JPH0546151 A JP H0546151A JP 3200179 A JP3200179 A JP 3200179A JP 20017991 A JP20017991 A JP 20017991A JP H0546151 A JPH0546151 A JP H0546151A
Authority
JP
Japan
Prior art keywords
character pattern
file
raster
control
image
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
JP3200179A
Other languages
Japanese (ja)
Inventor
Yoshitsugu Inoue
喜嗣 井上
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3200179A priority Critical patent/JPH0546151A/en
Publication of JPH0546151A publication Critical patent/JPH0546151A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To utilize a general character pattern file by performing variable power processing for character pattern images which are read out of a character pattern file in order according to control file information. CONSTITUTION:This method is provided with the character pattern file 1 containing character patterns and the control file 2 consisting of header parts such as identifiers and enlargement/reduction control records. A display and printing control processor 3 determines the positions of repetition and deletion of a raster and a column in the scaling file 2 according to the difference in dot size between character pattern of output size and patterns in the character pattern file and varies the power of a raster image successively read out from the character pattern file 1 according to control information obtained by above- mentioned processing. Further, the raster image after the processing is written in an image buffer memory 4 at a specific position, read out in order, and outputted on a display device 5 or printer 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字パタ−ンの表示・
印刷を制御する装置において、文字パタ−ンの拡大・縮
小方法およびそれに用いる制御ファイルに関する。
BACKGROUND OF THE INVENTION The present invention relates to the display / display of character patterns.
The present invention relates to a method for enlarging / reducing a character pattern in a device for controlling printing and a control file used therefor.

【0002】[0002]

【従来の技術】従来より、ドット・マトリクス形式で表
わされた文字の文字パタ−ンの変倍、つまり拡大または
縮小を行う方法としては、例えば、特開昭53−144
211号公報に記載されているように、ランレングス符
号のままでm/nの比に線密度変換を行う方法や、特開
昭51−92125号公報に記載されているように、行
(ラスタ−)と列(コラム)において拡大または縮小す
べき行と列の対を予め定めておき、指示によってそれら
の対を挿入・削除する方法等があった。さらに、文字パ
タ−ンの拡大・縮小方法として最も有効なものは、文字
サイズを任意に設定できるアウトラインフォント利用の
方法であると考えられている。しかしながら、アウトラ
インフォントをイメ−ジに展開する過程では、複雑な手
続きが必要であり、漢字(和文)を扱う場合には一般的
に低速であって、これを少しでも高速にするためには、
高価なハ−ドウェアが必要であった。また、原理的に、
小さな文字の品位が低くなるのが通常であって、これを
補うためには複雑な補正方法が必要となるので、現実に
は、大きな文字についてのみ利用されることが多かっ
た。一般的に、高品位が求められる印刷装置において、
アウトラインフォントに対する上述のような問題を補う
ためには、標準的な文字サイズについて、ラスタ−イメ
−ジフォントを文字パタ−ンファイルとして内蔵させる
ことが普通であった。
2. Description of the Related Art Conventionally, as a method for scaling, that is, enlarging or reducing, a character pattern of a character expressed in a dot matrix format, for example, Japanese Patent Laid-Open No. 53-144 is known.
No. 211, there is a method of performing linear density conversion to an m / n ratio with the run-length code as it is, and as described in Japanese Patent Laid-Open No. 51-92125, line (raster) There has been a method in which pairs of rows and columns to be enlarged or reduced are defined in advance in (-) and columns, and the pairs are inserted / deleted according to an instruction. Further, the most effective method for enlarging / reducing the character pattern is considered to be an outline font method in which the character size can be arbitrarily set. However, in the process of expanding the outline font into an image, a complicated procedure is required, and it is generally slow when handling Kanji (Japanese), and in order to make it a little faster,
Expensive hardware was needed. Also, in principle,
In general, the quality of small characters is low, and a complicated correction method is required to compensate for this, so in reality, it is often used only for large characters. Generally, in printing devices that require high quality,
In order to compensate for the above-mentioned problems with outline fonts, it has been customary to incorporate a raster image font as a character pattern file for standard character sizes.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、漢字の
文字パタ−ンファイルは、それ自体が膨大なデ−タ量で
あるため、種々の書体やサイズの組み合わせを内蔵させ
ることは、コストアップを招く原因となる。従って、あ
る書体では1つのサイズのみを内蔵させておき、1つの
サイズの文字パタ−ンから種々のサイズの文字パタ−ン
を発生させる方法が確立されていた。上記方法のうち、
最も簡単で一般的なものは、機械的な規則に基づいてラ
スタ−およびコラムイメ−ジを反復(拡大)、あるいは
削除(縮小)することにより、変倍を行うものであっ
て、この処理を高速に実行するハ−ドウェアが多数存在
している。しかし、機械的な規則に基づく変倍は一般に
低品位であって、利用価値が低いという問題がある。ま
た、変倍される文字パタ−ンを矩形のブロックに分割し
て、イメ−ジ上の補正を行いながら変倍する方法もあ
る。しかし、この方法は、変倍率が固定化されている場
合には有効であるが、多様な変倍率に対応させるには、
処理が複雑すぎるという問題がある。
However, since the character pattern file of Chinese characters itself has a huge amount of data, incorporating a combination of various typefaces and sizes causes an increase in cost. Cause. Therefore, a method has been established in which only one size is incorporated in a certain typeface, and character patterns of various sizes are generated from a character pattern of one size. Of the above methods,
The simplest and most common one is to perform scaling by repeating (enlarging) or deleting (reducing) raster and column images based on mechanical rules. There are many types of hardware that can be run on. However, the scaling based on mechanical rules is generally of low quality and has a low utility value. There is also a method in which a character pattern to be scaled is divided into rectangular blocks and the scale is scaled while performing image correction. However, this method is effective when the scaling ratio is fixed, but in order to accommodate various scaling ratios,
There is a problem that the processing is too complicated.

【0004】さらに、大型計算機で用いられる文字パタ
−ンには、文字パタ−ンの周囲に拡大・縮小制御デ−タ
域を設けて、このデ−タ域の1ビットを1本のラスタ−
またはコラムに対応させ、このビットの値に基づいて変
倍のための反復(拡大)または削除(縮小)を行うよう
に工夫した方法がある。この制御デ−タは、文字パタ−
ン作成時に高品位な変倍となるように作成されているの
で、その点では優れている。しかし、制御デ−タが文字
パタ−ンデ−タに含まれているので、取り扱いが極めて
複雑になるとともに、制御情報がビット情報であるた
め、変倍率が固定されている場合には有効であるが、多
様な変倍率に対応させる場合には、高品位のまま応用で
きないという問題がある。一方、印刷装置においては、
従来のソフトウェアをサポ−トするために、種々の印刷
装置と同等に機能する、いわゆるエミュレ−ションモ−
ドを多数備えるようになっている。エミュレ−ションの
機能の中でハ−ドウェアの分担する部分を多くすれば、
実行速度は上るが融通性は小さくなるのに対して、ソフ
トウェアの分担する部分を多くすれば、速度は遅くなる
が融通性は増大する。従って、性能価格比のよいエミュ
レ−タを得るためには、ハ−ドウェアとソフトウェアと
に効果的に作業を分担させる必要がある。このようなエ
ミュレ−タにおいて、種々の解像度をエミュレ−ション
するためには、より緻密な変倍が必要とされている。本
発明の目的は、このような従来の課題を解決し、一般的
なラスタ−イメ−ジフォントの文字パタ−ンファイルを
そのまま利用でき、かつドット単位の緻密な拡大・縮小
が可能な文字パタ−ンの拡大・縮小方法を提供すること
にある。
Further, a character pattern used in a large-scale computer is provided with an enlargement / reduction control data area around the character pattern, and one bit of this data area is one raster.
Alternatively, there is a method devised so as to correspond to a column and perform repetition (enlargement) or deletion (reduction) for scaling based on the value of this bit. This control data is a character pattern.
It is excellent in that point because it is created so as to have high-quality zooming when created. However, since the control data is included in the character pattern data, the handling becomes extremely complicated, and since the control information is bit information, it is effective when the scaling ratio is fixed. However, there is a problem that it cannot be applied as it is with high quality when it corresponds to various scaling factors. On the other hand, in the printing device,
In order to support conventional software, a so-called emulation mode that functions in the same way as various printing devices.
It is equipped with a large number of cards. If you increase the part of hardware that the emulation functions share,
Execution speed increases, but flexibility decreases, whereas if the portion of software is increased, the speed decreases but flexibility increases. Therefore, in order to obtain an emulator with a good performance-price ratio, it is necessary for hardware and software to effectively share the work. In such an emulator, in order to emulate various resolutions, more precise zooming is required. An object of the present invention is to solve such a conventional problem, to use a character pattern file of a general raster image font as it is, and to perform a character pattern capable of precise enlargement / reduction in dot units. It is to provide a method of enlarging / reducing the size.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明による文字パタ−ンの拡大・縮小方法は、
(イ)表示・印刷制御プロセッサは、先ず描画すべき文
字パタ−ンと文字パタ−ンファイルに格納されている文
字パタ−ンとのドットサイズの差を算出し、算出された
差に基づいて拡大・縮小制御ファイルからラスタ−およ
びコラムの反復または削除の位置を決定し、決定された
制御ファイル情報に基づいて、文字パタ−ンファイルか
ら順次読み出される文字パタ−ンイメ−ジに対して変倍
処理を実行し、変倍処理された文字パタ−ンイメ−ジを
画像バッファメモリの所定の位置に書き込み、画像バッ
ファメモリから表示・印刷装置に文字パタ−ンを出力す
ることに特徴がある。また、本発明の文字表示・印刷制
御装置は、(ロ)文字パタ−ンファイル、文字パタ−ン
ファイルから読み出されたイメ−ジを一時格納する画像
バッファメモリと、表示・印刷を制御するプロセッサを
具備する文字パタ−ン表示・印刷制御装置において、フ
ァイル自体の識別子や制御デ−タを含むヘッダ−部と、
文字パタ−ンファイルに格納された個々の文字パタ−ン
に対応して、拡大制御のための反復コラム位置数列と反
復ラスタ−位置数列、および縮小制御のための削除コラ
ム位置数列と削除ラスタ−位置数列により構成された拡
大・縮小制御レコ−ドの集合とを具備した拡大・縮小制
御ファイルを設けることに特徴がある。さらに、本発明
の拡大・縮小制御ファイルは、(ハ)拡大制御のための
反復コラム位置数列と反復ラスタ−位置数列、および縮
小制御のための削除コラム位置数列と削除ラスタ−位置
数列から構成された拡大・縮小制御レコ−ドを有するフ
ァイルであって、各数列は該当する文字パタ−ンイメ−
ジをラスタ−およびコラムの反復または削除の処理を行
うことにより、変倍した際に生じる数列の要素数に一致
する数の文字パタ−ンイメ−ジが最も高品位になるよう
に配列された数値列であり、数列の各要素は反復または
削除を行うべきラスタ−およびコラムの位置を示す数値
であることに特徴がある。
In order to achieve the above object, the method for enlarging / reducing a character pattern according to the present invention comprises:
(B) The display / print control processor first calculates the difference in dot size between the character pattern to be drawn and the character pattern stored in the character pattern file, and based on the calculated difference. The position of repetition or deletion of rasters and columns is determined from the enlargement / reduction control file, and based on the determined control file information, the scaling is performed for the character pattern image that is sequentially read from the character pattern file. The processing is executed, the scaled character pattern image is written into a predetermined position of the image buffer memory, and the character pattern is output from the image buffer memory to the display / printing device. Further, the character display / printing control device of the present invention controls (b) a character pattern file, an image buffer memory for temporarily storing an image read from the character pattern file, and display / printing. In a character pattern display / printing control device equipped with a processor, a header section including an identifier of the file itself and control data,
Corresponding to each character pattern stored in the character pattern file, the repeat column position sequence and repeat raster position sequence for enlargement control and the delete column position sequence and delete raster sequence for reduction control. It is characterized in that an enlarging / reducing control file having an enlarging / reducing control record set composed of a position sequence is provided. Further, the enlargement / reduction control file of the present invention comprises (c) a repetitive column position sequence and a repetitive raster-position sequence for enlargement control, and a delete column position sequence and a deleted raster-position sequence for reduction control. A file having an enlarging / reducing control record, in which each number sequence is a corresponding character pattern image.
By repeating the raster and column processing or deleting the image, the number of character pattern images of the number that corresponds to the number of elements of the sequence generated when the magnification is changed is the numerical value arranged so as to have the highest quality. It is characterized in that it is a sequence, and each element of the sequence is a numerical value indicating the position of the raster and the column to be repeated or deleted.

【0006】[0006]

【作用】本発明においては、文字パタ−ンが格納される
文字パタ−ンファイル、および識別子等のヘッダ−部と
拡大・縮小制御レコ−ドからなる制御ファイルを備え、
表示・印刷制御プロセッサは、出力サイズの文字パタ−
ンと上記文字パタ−ンファイル中のパタ−ンとのドット
サイズの差に基づいて、拡大・縮小制御ファイルからラ
スタ−およびコラムの反復または削除の位置を決定し、
次に文字パタ−ンファイルから順次読み出されるラスタ
−イメ−ジを上述の処理により得られた制御情報に基づ
いて変倍処理を実行し、次に処理後のラスタ−イメ−ジ
を出力のための画像バッファメモリの所定位置に書き込
み、画像バッファメモリから順次読み出して表示装置ま
たは印刷装置に出力する。これにより、順列化された制
御デ−タを用いるので、文字イメ−ジを1ドットサイズ
の単位で緻密に拡大または縮小することができる。ま
た、本発明による拡大・縮小制御ファイルは、ファイル
の識別子と制御デ−タ等からなるヘッダ−部と、パタ−
ンファイルの個々の文字に対応した拡大・縮小制御レコ
−ドの集合を格納したもので、これらの拡大・縮小制御
レコ−ドは、拡大制御のための反復コラム位置数列と反
復ラスタ−位置数列、および縮小制御のための削除コラ
ム位置数列と削除ラスタ−位置数列からなる。さらに、
これらの位置数列は、文字イメ−ジをラスタ−またはコ
ラムの反復または削除という単純なアルゴリズムにより
変倍した時に生じる数列の要素数に一致する数の文字イ
メ−ジが、最も高品位となるように配列された数値列で
あり、各要素は反復または削除を行うべきラスタ−また
はコラムの位置を示す数値を表わしている。
In the present invention, a character pattern file in which character patterns are stored, and a control file including a header portion such as an identifier and an enlargement / reduction control record are provided.
The display / print control processor displays the character pattern of the output size.
Position of the raster or column from the enlargement / reduction control file based on the difference in dot size between the pattern and the pattern in the character pattern file,
Next, the raster image sequentially read from the character pattern file is subjected to scaling processing based on the control information obtained by the above processing, and then the raster image after processing is output. Of the image buffer memory, sequentially read from the image buffer memory, and output to the display device or the printing device. As a result, since the permuted control data is used, the character image can be finely expanded or reduced in units of one dot size. Further, the enlargement / reduction control file according to the present invention includes a header section including a file identifier and control data, and a pattern.
It stores a set of enlargement / reduction control records corresponding to each character in the file. These enlargement / reduction control records are the repeat column position sequence and the repeat raster position sequence for enlargement control. , And a delete column position sequence for reduction control and a delete raster position sequence. further,
These position sequences have the highest number of character images that correspond to the number of elements in the sequence generated when the character images are scaled by a simple algorithm of repeating or deleting rasters or columns. Is a sequence of numerical values arranged in each element, and each element represents a numerical value indicating the position of the raster or column to be repeated or deleted.

【0007】[0007]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明の一実施例を示す文字パタ−
ン拡大・縮小機能を備えた表示・印刷装置のブロック構
成図である。図1において、1は文字パタ−ンファイ
ル、2は拡大・縮小制御ファイル、3は表示・印刷制御
プロセッサ、4は画像バッファメモリ−、5は表示装
置、6は印刷装置である。すなわち、拡大・縮小制御フ
ァイル2のみが新しく備えられた装置であって、これ以
外の装置は通常の文字パタ−ン表示・印刷装置の構成と
全く同じである。ここで、文字パタ−ンファイル1は、
特別なものである必要はなく、通常の文字パタ−ンを格
納してファイルである。表示・印刷制御プロセッサ3
は、必要に応じて文字パタ−ンファイル1から該当文字
のパタ−ンを読み出し、文字イメ−ジとして認識される
ように、画像バッファメモリ−4に書き込み、表示装置
5または印刷装置6に出力する。拡大・縮小制御ファイ
ル2は、表示・印刷制御プロセッサ3により文字パタ−
ンファイル1の文字パタ−ンが読み出されてから画像バ
ッファメモリ−4にこれが書き込まれるまでの間に、プ
ロセッサ3による変倍処理に使用される。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a character pattern showing an embodiment of the present invention.
FIG. 3 is a block configuration diagram of a display / printing apparatus having an enlarging / reducing function. In FIG. 1, 1 is a character pattern file, 2 is an enlargement / reduction control file, 3 is a display / print control processor, 4 is an image buffer memory, 5 is a display device, and 6 is a printing device. That is, only the enlargement / reduction control file 2 is newly provided, and the other devices are exactly the same as those of the normal character pattern display / printing device. Here, the character pattern file 1 is
It does not have to be special and is a file that stores normal character patterns. Display / print control processor 3
Reads the pattern of the corresponding character from the character pattern file 1 as necessary, writes it in the image buffer memory-4 so that it can be recognized as a character image, and outputs it to the display device 5 or the printing device 6. To do. The enlarging / reducing control file 2 is displayed by the display / print control processor 3 in a character pattern.
It is used for scaling processing by the processor 3 between the time when the character pattern of the file 1 is read and the time when it is written in the image buffer memory-4.

【0008】図2は、図1における拡大・縮小制御ファ
イルの実施例を示すデ−タ部の構成図である。図2にお
いて、7は拡大・縮小制御ファイル2のヘッダ−部、8
は拡大・縮小制御レコ−ドを集合したデ−タ部、9は属
性の異なる複数の拡大・縮小制御レコ−ド、10は反復
コラム位置数列、11は反復ラスタ−位置数列、12は
削除コラム位置数列、13は削除ラスタ−位置数列、1
4〜16は数値1〜3、17〜19も数値1〜3、20
〜22も数値1〜3、23〜25も数値1〜3である。
ファイルのヘッダ−部7は、ファイル自身の識別子とそ
の他の制御情報等、このファイルが組み込まれるシステ
ムに適合させるためのデ−タを格納する。なお、このヘ
ッダ−部7の形式は任意でよく、また後述のデ−タ部を
固定長形式とし、文字パタ−ンファイル1の文字イメ−
ジとの対応を1対1とするときには、このヘッダ−部7
は省略できる。デ−タ部8は、文字パタ−ンファイル1
に含まれる個々の文字に対応した拡大・縮小制御レコ−
ド9の集合である。拡大・縮小制御レコ−ド9は、その
内容に基づいて4種類の属性を持つ数列10〜13に分
類される。これらの数列デ−タは、固定長でもよく、ま
た可変長形式でもよい。反復コラム位置数列10の各要
素の数値は、文字パタ−ンの1コラムイメ−ジに対応す
る。同じように、削除コラム位置数列12の各要素の数
値も、文字パタ−ンの1コラムイメ−ジに対応する。ま
た、反復ラスタ−位置数列11の各要素の数種は、文字
パタ−ンの1ラスタ−イメ−ジに対応する。削除ラスタ
−位置数列13も同じである。
FIG. 2 is a block diagram of the data section showing an embodiment of the enlargement / reduction control file in FIG. In FIG. 2, 7 is a header part of the enlargement / reduction control file 2, 8
Is a data section in which enlargement / reduction control records are collected, 9 is a plurality of enlargement / reduction control records having different attributes, 10 is a repeating column position sequence, 11 is a repeating raster position sequence, and 12 is a delete column. Position sequence, 13 is a deleted raster position sequence, 1
4 to 16 are numerical values 1 to 3 and 17 to 19 are numerical values 1 to 3 and 20.
.About.22 are numerical values 1 to 3, and 23 to 25 are numerical values 1 to 3.
The file header section 7 stores data such as an identifier of the file itself and other control information for adapting to the system in which the file is incorporated. The format of the header section 7 may be arbitrary, and the data section, which will be described later, has a fixed length format, and the character image of the character pattern file 1 is used.
This header-part 7
Can be omitted. The data section 8 is a character pattern file 1
Enlargement / reduction control record corresponding to each character included in
It is a set of do 9. The enlargement / reduction control record 9 is classified into a sequence of numbers 10 to 13 having four types of attributes based on the contents thereof. These sequence data may be fixed length or variable length format. The numerical value of each element of the repeating column position sequence 10 corresponds to one column image of the character pattern. Similarly, the numerical value of each element of the deletion column position sequence 12 also corresponds to one column image of the character pattern. Further, several kinds of each element of the repeated raster position number sequence 11 correspond to one raster image of the character pattern. The same applies to the deleted raster position number sequence 13.

【0009】例えば、56×56ドットの原フォント
(400dpiにおいて10.08ポイント)を、58
×58ドット(同じ解像度において10.44ポイン
ト)に拡大する場合には、反復コラム位置数列10の第
1要素14および第2要素15に示されるコラムイメ−
ジを反復し、かつ反復ラスタ−位置数列11の第1要素
17および第2要素18に示されるラスタ−イメ−ジを
反復することにより拡大を行う。このような数列は、文
字イメ−ジの品位を低下させないように作成されたもの
であって、数列から必要な数の要素を取り出して変倍処
理を行うことにより、数列の最大要素数まで1ドット単
位で拡大・縮小を行うことができる。図3は、表示・印
刷制御プロセッサの拡大・縮小処理のアルゴリズムを示
すフロ−チャ−トである。先ず、プロセッサは、描画す
べき文字パタ−ンと文字パタ−ンファイル中のパタ−ン
とのドットサイズの差を算出する(ステップ101)。
前述の例であれば、描画すべき文字パタ−ンの58×5
8ドットから56×56ドットを差し引き、ラスタ−側
の2ドットとコラム側の2ドットを算出する。次に、算
出された差に基づいて、拡大・縮小ファイルからラスタ
−およびコラムの反復または削除の位置を決定する(ス
テップ102)。前述の例では、コラム側の差の2ドッ
トのために、反復コラム位置数列10の値数1と数値2
を決定し、ラスタ−側の差の2ドットのために、反復ラ
スタ−位置数列11の数値1と数値2を決定する。次
に、文字パタ−ンファイル1から読み出されたラスタ−
イメ−ジを、上述の制御情報に基づいて変倍処理を実行
する(ステップ103)。そして、画像バッファメモリ
4に、上記変倍処理されたラスタ−イメ−ジを書き込む
(ステップ104)。このようにして、1つの文字の変
倍処理が終了したならば、再びステップ103に戻っ
て、文字パタ−ンファイルから読み出されたラスタ−イ
メ−ジに対して変倍処理を続行し、描画すべき文字パタ
−ンの全てが終了したならば(ステップ105)、処理
を終了する。
For example, the original font of 56 × 56 dots (10.08 points at 400 dpi) is set to 58
When expanding to x58 dots (10.44 points at the same resolution), the column image shown in the first element 14 and the second element 15 of the repeating column position sequence 10
Enlargement is performed by repeating the raster image and repeating the raster image shown in the first element 17 and the second element 18 of the repeating raster position sequence 11. Such a sequence is created so as not to deteriorate the quality of the character image, and a necessary number of elements are taken out from the sequence and the scaling process is performed, so that the maximum number of elements in the sequence becomes 1 Enlargement / reduction can be performed in dot units. FIG. 3 is a flow chart showing the algorithm of the enlargement / reduction processing of the display / print control processor. First, the processor calculates the difference in dot size between the character pattern to be drawn and the pattern in the character pattern file (step 101).
In the above example, the character pattern to be drawn is 58 × 5.
By subtracting 56 × 56 dots from 8 dots, 2 dots on the raster side and 2 dots on the column side are calculated. Next, based on the calculated difference, the position of raster or column repetition or deletion is determined from the scaling file (step 102). In the above example, because of the difference of 2 dots on the column side, the value number 1 and the number 2 of the repeating column position sequence 10
And for the difference of 2 dots on the raster side, the number 1 and the number 2 of the repeating raster position sequence 11 are determined. Next, the raster read from the character pattern file 1
The image is scaled based on the above control information (step 103). Then, the raster image subjected to the scaling processing is written in the image buffer memory 4 (step 104). In this way, when the scaling process for one character is completed, the process returns to step 103 to continue the scaling process for the raster image read from the character pattern file. When all the character patterns to be drawn are completed (step 105), the process is ended.

【0010】[0010]

【発明の効果】以上説明したように、本発明によれば、
カラムとラスタ−イメ−ジの反復または削除という単純
なアルゴリズムにより、順列化された制御デ−タを用い
て文字イメ−ジを1ドットサイズで緻密に拡大または縮
小することが可能である。また、新たに、拡大・縮小制
御ファイルを組み込むだけで、従来の文字パタ−ンファ
イルを変更することなく、文字パタ−ンの変倍処理が可
能となる。さらに、種々の表示・印刷装置のエミュレ−
ション動作に対して、より正確な文字サイズによる表示
および印刷が可能となる。
As described above, according to the present invention,
With a simple algorithm of repeating or deleting columns and raster images, it is possible to precisely scale up or down a character image with a dot size using permuted control data. Further, by simply incorporating a new enlargement / reduction control file, it becomes possible to perform variable magnification processing of the character pattern without changing the conventional character pattern file. In addition, the emulation of various display and printing devices
It is possible to display and print with a more accurate character size in response to the operation.

【0011】[0011]

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

【図1】本発明の一実施例を示す表示・印刷装置のブロ
ック図である。
FIG. 1 is a block diagram of a display / printing device showing an embodiment of the present invention.

【図2】図1における拡大・縮小制御ファイルの内部構
成図である。
FIG. 2 is an internal configuration diagram of an enlargement / reduction control file in FIG.

【図3】本発明におけるプロセッサの拡大・縮小処理ア
ルゴリズムを示すフロ−チャ−トである。
FIG. 3 is a flowchart showing an enlarging / reducing algorithm of a processor according to the present invention.

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

1 文字パタ−ンファイル 2 拡大・縮小制御ファイル 3 表示・印刷制御プロセッサ 4 画像バッファメモリ− 5 表示装置 6 印刷装置 7 ヘッダ−部 8 デ−タ部 9 拡大・縮小制御レコ−ド 10 反復コラム位置数列 11 反復ラスタ−位置数列 12 削除コラム位置数列 13 削除ラスタ−位置数列 14〜16,17〜19,20〜22,23〜25 数
1 Character pattern file 2 Enlargement / reduction control file 3 Display / printing control processor 4 Image buffer memory-5 Display device 6 Printing device 7 Header part 8 Data part 9 Enlargement / reduction control record 10 Repeated column position Sequence 11 Repeated raster position sequence 12 Deleted column position sequence 13 Deleted raster position sequence 14-16, 17-19, 20-22, 23-25 Numerical value

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 // H04N 1/393 8839−5C ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location // H04N 1/393 8839-5C

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 文字パタ−ン表示・印刷制御装置により
文字パタ−ンの拡大・縮小を制御する方法において、表
示・印刷制御プロセッサは、先ず描画すべき文字パタ−
ンと文字パタ−ンファイルに格納されている文字パタ−
ンとのドットサイズの差を算出し、算出された差に基づ
いて拡大・縮小制御ファイルからラスタ−およびコラム
の反復または削除の位置を決定し、決定された制御ファ
イル情報に基づいて、文字パタ−ンファイルから順次読
み出される文字パタ−ンイメ−ジに対して変倍処理を実
行し、変倍処理された文字パタ−ンイメ−ジを画像バッ
ファメモリの所定の位置に書き込み、該画像バッファメ
モリから表示・印刷装置に文字パタ−ンを出力すること
を特徴とする文字パタ−ンの拡大・縮小方法。
1. A method of controlling enlargement / reduction of a character pattern by a character pattern display / print control device, wherein a display / print control processor first draws a character pattern to be drawn.
And the character patterns stored in the file.
The dot size difference with the image size is calculated, the position of raster or column repetition or deletion is determined from the enlargement / reduction control file based on the calculated difference, and the character pattern is determined based on the determined control file information. Scales the character pattern images that are sequentially read from the image file, writes the scaled character pattern image to a predetermined position in the image buffer memory, and writes the image from the image buffer memory. A character pattern enlarging / reducing method characterized by outputting a character pattern to a display / printing device.
【請求項2】 文字パタ−ンファイル、該文字パタ−ン
ファイルから読み出されたイメ−ジを一時格納する画像
バッファメモリと、表示・印刷を制御するプロセッサを
具備する文字パタ−ン表示・印刷制御装置において、フ
ァイル自体の識別子や制御デ−タを含むヘッダ−部と、
上記文字パタ−ンファイルに格納された個々の文字パタ
−ンに対応して、拡大制御のための反復コラム位置数列
と反復ラスタ−位置数列、および縮小制御のための削除
コラム位置数列と削除ラスタ−位置数列により構成され
た拡大・縮小制御レコ−ドの集合とを具備した拡大・縮
小制御ファイルを設けることを特徴とする文字表示・印
刷制御装置。
2. A character pattern display including a character pattern file, an image buffer memory for temporarily storing an image read from the character pattern file, and a processor for controlling display / printing. In the print control device, a header section including an identifier of the file itself and control data,
Corresponding to the individual character patterns stored in the character pattern file, the repeat column position sequence and repeat raster position sequence for enlargement control and the delete column position sequence and delete raster for reduction control are provided. A character display / print control device, characterized in that an enlarging / reducing control file having an enlarging / reducing control record set constituted by a position sequence is provided.
【請求項3】 拡大制御のための反復コラム位置数列と
反復ラスタ−位置数列、および縮小制御のための削除コ
ラム位置数列と削除ラスタ−位置数列から構成された拡
大・縮小制御レコ−ドを有するファイルであって、上記
各数列は該当する文字パタ−ンイメ−ジをラスタ−およ
びコラムの反復または削除の処理を行うことにより、変
倍した際に生じる数列の要素数に一致する数の文字パタ
−ンイメ−ジが最も高品位になるように配列された数値
列であり、数列の各要素は反復または削除を行うべきラ
スタ−およびコラムの位置を示す数値であることを特徴
とする拡大・縮小制御ファイル。
3. An enlargement / reduction control record comprising a repetitive column position sequence and a repetitive raster position sequence for enlargement control, and a delete column position sequence and a delete raster position sequence for reduction control. Each of the above-mentioned number sequences is a file, and the number of character patterns corresponding to the number of elements of the number sequence generated when scaling is performed by repeating or deleting the corresponding character pattern image in the raster and column. -A scaling, characterized in that the image is a sequence of numbers arranged in the highest quality, with each element of the sequence being a number indicating the position of the raster and column at which iteration or deletion should be performed. Control file.
JP3200179A 1991-08-09 1991-08-09 Method for scaling character pattern and control file used for the same Pending JPH0546151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3200179A JPH0546151A (en) 1991-08-09 1991-08-09 Method for scaling character pattern and control file used for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3200179A JPH0546151A (en) 1991-08-09 1991-08-09 Method for scaling character pattern and control file used for the same

Publications (1)

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

Family

ID=16420111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3200179A Pending JPH0546151A (en) 1991-08-09 1991-08-09 Method for scaling character pattern and control file used for the same

Country Status (1)

Country Link
JP (1) JPH0546151A (en)

Similar Documents

Publication Publication Date Title
EP0298446B1 (en) Full page graphics image display data reduction
JP2845380B2 (en) Printing apparatus and control method thereof
JPH0546151A (en) Method for scaling character pattern and control file used for the same
JPH06222747A (en) Font compression device and font restoration device
JP2887928B2 (en) Image data output device
EP0981106A2 (en) Method and apparatus for image scaling
JP2727667B2 (en) Drawing equipment
JPH03281363A (en) Document output device
JP3033152B2 (en) Outline data processing device
JP3109727B2 (en) Character processing method and character processing device
JPH03184182A (en) Character output layout determination system
JPS6189861A (en) Printing controller
JP2764944B2 (en) Character output device
JP2698348B2 (en) Character processor
JPS63136083A (en) Character processor
JPH04284272A (en) Printing controller
JPH06110444A (en) Character processor and character output method
JPS6218275A (en) Printing control apparatus
JPH0784739A (en) Data converter
JPS63242561A (en) Font reducing system
JPH081554B2 (en) Character processor
JPS6128995A (en) Repetition processing system
JPH0325495A (en) Printer
JPS5858673B2 (en) Variable size character display method
JPH08161333A (en) Character string output device