JP2558254B2 - Pattern generation method - Google Patents

Pattern generation method

Info

Publication number
JP2558254B2
JP2558254B2 JP61071346A JP7134686A JP2558254B2 JP 2558254 B2 JP2558254 B2 JP 2558254B2 JP 61071346 A JP61071346 A JP 61071346A JP 7134686 A JP7134686 A JP 7134686A JP 2558254 B2 JP2558254 B2 JP 2558254B2
Authority
JP
Japan
Prior art keywords
pattern
character
dots
font
dot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61071346A
Other languages
Japanese (ja)
Other versions
JPS62229293A (en
Inventor
ゆかり 谷口
高裕 加藤
正基 浜田
洋 高倉
喜久雄 瀧瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61071346A priority Critical patent/JP2558254B2/en
Publication of JPS62229293A publication Critical patent/JPS62229293A/en
Application granted granted Critical
Publication of JP2558254B2 publication Critical patent/JP2558254B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は複数種の中から変倍すべきドットパターンを
選択することにより、変倍後の所望のサイズの高品位な
パターンを発生することができるパターン発生方法に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention generates a high-quality pattern of a desired size after scaling by selecting a dot pattern to be scaled from a plurality of types. The present invention relates to a pattern generation method capable of performing.

[従来の技術] 従来、パターン発生方式の応用として例えば文字、或
いは記号(以下、単に文字と称する。)等のフオントパ
ターンを内蔵した文書処理装置において、文字フオント
パターンの拡大(又は、ドツト密度を上げる)及び縮小
(又は、ドツト密度を下げる)処理は予め内蔵してある
1種類の文字フオントパターンを基準にして、それを1/
4,1/2,2,4倍といつた単純な変倍処理で処理していた。
[Prior Art] Conventionally, as an application of a pattern generation method, for example, in a document processing apparatus that incorporates a font pattern such as a character or a symbol (hereinafter, simply referred to as a character), the character font pattern is enlarged (or the dot density is reduced). The process of increasing) and reducing (or decreasing the dot density) is based on one type of character font pattern built in beforehand
It was processed by simple scaling processing such as 4,1 / 2,2,4 times.

ところが、最近になつて既存の文字パターンサイズの
フオントパターンを基に、ある範囲(例えば6ポイント
〜16ポイント)で連続したポイント数に拡大、或いは縮
小処理を施すことにより、所望のドット密度の文字パタ
ーンを発生させたいという要求が出てきた。
However, recently, based on a font pattern of an existing character pattern size, by enlarging or reducing the number of consecutive points in a certain range (for example, 6 points to 16 points), a character having a desired dot density can be obtained. There has been a demand to generate patterns.

[発明が解決しようとする問題点] そのためには基準となる文字フオントパターンに対す
る複雑な拡大縮小(例えば15/16や7/6倍等)等の変倍処
理が必要となり、かつ拡大縮小処理後に生成された文字
フオントパターンの文字品位を保つためにも、いかに誤
差の少ない拡大縮小といつた変倍処理を行うかが問題で
あつた。
[Problems to be solved by the invention] For that purpose, a scaling process such as complicated scaling (for example, 15/16 or 7/6 times) for the reference character font pattern is required, and after the scaling process, In order to maintain the character quality of the generated character font pattern, the problem was how to perform the scaling with a small error and the scaling process.

本発明は上記従来技術に鑑みなされたものであり、複
数種のサイズの異なるパターン群の中から最適なパター
ンを選択し、その選択パターンに基づいて、指定された
サイズであって高品位なパターンを発生するパターン発
生方法を提供しようとするものである。
The present invention has been made in view of the above-mentioned conventional technique, and selects an optimum pattern from a plurality of types of different size pattern groups, and based on the selected pattern, a high-quality pattern of a specified size. It is intended to provide a pattern generation method for generating

[課題を解決するための手段] この課題を解決するため、本発明のパターン発生方法
は以下の工程を備える。
[Means for Solving the Problem] In order to solve this problem, the pattern generating method of the present invention includes the following steps.

すなわち、 出力すべきパターンのサイズを指定し、 記憶部に記憶されたドット構成数の異なる数種のパタ
ーン群の中から、指定された出力すべきパターンのサイ
ズと一致するものがない場合に、 前記パターン群のうち、変倍処理に伴い、ドット行の
間引き数或いは挿入数が少ないパターンを選択し、 前記選択されたパターンに対して、前記間引き或いは
挿入処理を含む変倍処理を行ない、 前記変倍処理後のパターンを出力するために格納す
る。
In other words, if the size of the pattern to be output is specified, and there is no pattern that matches the specified size of the pattern to be output from among several types of pattern groups stored in the storage unit that differ in the number of dots In the pattern group, with scaling processing, a pattern with a small number of thinned-out or inserted dot rows is selected, and for the selected pattern, scaling processing including the thinning-out or insertion processing is performed, Stored to output the pattern after scaling processing.

[作用] かかる本発明の構成において、所望とするサイズのパ
ターンがない場合、記憶部に記憶されたパターン群の中
における、変倍処理に伴うドット行の間引き数或いは挿
入数が少ないパターンを選択し、そのパターンを基礎に
して間引き或いは挿入処理を行うことで、出力すべきサ
イズのパターンを格納する。
[Operation] In the configuration of the present invention, when there is no pattern of a desired size, a pattern having a small number of thinned-out dot rows or a small number of inserted dot rows in the scaling process is selected from the pattern group stored in the storage unit. Then, the pattern of the size to be output is stored by performing thinning-out or insertion processing based on the pattern.

[実施例] 以下、添付図面に従つて本発明に係る実施例を詳細に
説明する。
Embodiments Embodiments according to the present invention will be described in detail below with reference to the accompanying drawings.

また、本実施例では文書処理装置に応用した例につい
て説明する。
Further, in this embodiment, an example applied to a document processing device will be described.

第1図は本実施例の文書処理装置の全体ブロック図で
ある。
FIG. 1 is an overall block diagram of the document processing apparatus of this embodiment.

図中、1は装置全体の制御を司るCPUであり、内部に
後述する第3図のフローチヤートに係るプログラムが格
納されているROM1aと、CPU1のワークエリアとして使用
するRAM1bとを備える。2は文書編集時に使用するキー
ボードであり、文字サイズを決定する各種パラメータ等
を入力するときにも使用する。3は表示装置に表示する
データを格納するビデオRAM(以下、単にVRAMと称す
る。)である。5は文書編集中に文書データを格納する
文書RAMである。6は文字記号パターン記憶部であり、
第2図に示す様な32×32のドツトパターンの文字フオン
ト6aと、以下44×44,48×48,56×56,64×64,88×88のド
ツトパターンの文字フオント6b〜6fにより構成されてい
る。7はCPU1からの指示パラメータにより、文字記号パ
ターン記憶部6から出力される文字パターンを変倍処理
するための間引き数或いは挿入数の値を設定して新たな
ドツトサイズの文字パターンを発生して出力するパター
ン発生部である。
In the figure, reference numeral 1 is a CPU that controls the entire apparatus, and includes a ROM 1a in which a program relating to the flow chart of FIG. 3 to be described later is stored, and a RAM 1b used as a work area of the CPU 1. A keyboard 2 is used when editing a document, and is also used when inputting various parameters for determining the character size. A video RAM 3 (hereinafter, simply referred to as VRAM) stores data to be displayed on the display device. Reference numeral 5 is a document RAM for storing document data during document editing. 6 is a character symbol pattern storage unit,
Character font 6a of 32 × 32 dot pattern as shown in Fig. 2 and character fonts 6b to 6f of 44 × 44, 48 × 48, 56 × 56, 64 × 64, 88 × 88 dot pattern Has been done. Reference numeral 7 designates a value of a thinning number or an insertion number for scaling processing of a character pattern output from the character / symbol pattern storage unit 6 according to an instruction parameter from the CPU 1 to generate and output a new dot size character pattern. This is a pattern generation unit.

尚、文字記号パターン記憶部から出力される文字パタ
ーンの大きさはCPU1により選択された文字フオントから
の文字パターンである。8はプリンタ9に出力する画像
を蓄える出力画像バツフアメモリである。尚、本実施例
では、プリンタ9をレーザビームプリンタとする。
The size of the character pattern output from the character / symbol pattern storage unit is the character pattern from the character font selected by the CPU 1. An output image buffer memory 8 stores an image to be output to the printer 9. In this embodiment, the printer 9 is a laser beam printer.

また本実施例では、作成する文字サイズを6ポイント
〜16ポイント数について説明するが、各ポイント数に対
しての文字パターンのドツト数を示す関数を次表に示
す。
In the present embodiment, the character size to be created will be described with respect to the number of 6 points to 16 points. The following table shows a function indicating the number of dots of the character pattern for each number of points.

この表からもわかる様に、“原付”と記入してあるポ
イント数に対しては既にその文字フオントが存在するわ
けであるから、新たに発生しなくとも構わないが、“発
生”と記入してあるものについては、既在の文字フオン
トより新たに発生することになるわけである。
As you can see from this table, since the character font already exists for the number of points for which "Moped" has been entered, it is not necessary to newly generate it, but "Occurred" is entered. Some of the existing characters will be newly generated from the existing fonts.

以上の様な本実施例の構成において、文書編集された
文書データをプリンタ9に出力するまでの処理を第3図
のフローチヤートに従つて説明する。
In the configuration of the present embodiment as described above, the process of outputting the document data in which the document is edited to the printer 9 will be described according to the flow chart of FIG.

ステップS1では、入力されたキーが不図示のプリント
アウトキーであるかどうかを判断する。プリントアウト
キー以外のときには通常の文書編集作業に係るキーが入
力されたものとみなしてステツプS2で各種文書編集処理
が行われる。尚、文書編集に係る文字コードや各種編集
に係るパラメータは順次文書RAM5に格納されていく。
In step S1, it is determined whether the input key is a printout key (not shown). If the key is other than the printout key, it is considered that a key related to the normal document editing work is input, and various document editing processes are performed in step S2. The character code relating to document editing and the parameters relating to various editing are sequentially stored in the document RAM 5.

さて、ステツプS1でプリントアウトキーが挿下された
ときには、ステツプS3に移り、出力文字サイズを決定す
るポイント数をキーボード2より入力することになる。
When the printout key is inserted at step S1, the process proceeds to step S3, and the number of points for determining the output character size is input from the keyboard 2.

次に入力されたポイント数に該当する文字フオントパ
ターンが文字記号パターン記憶部6内にあるかどうかを
判断する。もしあればステツプS5で該当する文字パター
ンを文字フオント6a〜6fの中から選んで出力画像バツフ
アメモリに書き込み、ステツプS6でプリンタ9に出力し
て処理を終える。
Next, it is determined whether or not the character font pattern corresponding to the input point number is in the character / symbol pattern storage unit 6. If there is, the corresponding character pattern is selected from the character fonts 6a to 6f in step S5, written in the output image buffer memory, and output to the printer 9 in step S6 to finish the processing.

また、ステツプS4で指定されたポイント数に該当する
文字フオントがないと判断したなら、ステツプS7に移
り、指定されたポイント数に対応する文字パターンを発
生するための基準となる文字フオントを文字フオント6a
〜6fの中から選び出し、拡大縮小の割合を決定する。
If it is determined that there is no character font corresponding to the number of points specified in step S4, the process proceeds to step S7, and the character font that is the reference for generating the character pattern corresponding to the number of points specified is set to the character font. 6a
Select from ~ 6f and decide the scaling ratio.

次にステツプS8で拡大、或いは縮小処理してパターン
発生部7からのパターンを出力画像バツフアメモリ8に
展開し、ステツプS6でプリンタ9に出力して処理を終え
る。
Next, in step S8, the pattern from the pattern generating unit 7 is expanded or reduced to be developed in the output image buffer memory 8, and in step S6 the printer 9 outputs the pattern to complete the process.

さて、以上の様な処理手順において、指定されたポイ
ント数に対応する文字フオントがない場合に、該当する
文字フオントを発生することになるが、新たに発生する
パターンをどの文字フオントを基準に、且つ変倍率をい
くつにするかが問題となるわけである。
By the way, in the above processing procedure, if there is no character font corresponding to the specified number of points, the corresponding character font will be generated, but the newly generated pattern is based on which character font, And the problem is how to set the scaling factor.

以下、本実施例での変倍処理(拡大及び縮小処理)の
内容を以下に説明しつつ、ステツプS6,S7内での動作説
明も同様に説明する。
The contents of the scaling processing (enlargement and reduction processing) in this embodiment will be described below, and the operation description in steps S6 and S7 will be similarly described.

[拡大処理] 拡大(文字フオントパターンのドツト密度を上げる)
処理については、例えば本実施例では文字フオントパタ
ーンを(n+1)/n倍に拡大する。すなわち、CPU1は文
字記号パターン記憶部6内の基準となる文字フオントを
1つ、即ち文書RAM5に格納されている文字コードに対応
する文字パターンを抽出し、先ず横方向(主走査方向)
のn列毎にその直前(もしくは直後)の列パターンを挿
入していき、次に縦方向(副走査方向)にも同様にn行
毎にその直前(もしくは直後)の行パターンを挿入して
いくことにより拡大処理を達成する。
[Enlargement processing] Enlargement (Increase the dot density of character font patterns)
Regarding the processing, for example, in the present embodiment, the character font pattern is enlarged by (n + 1) / n times. That is, the CPU 1 extracts one reference character font in the character / symbol pattern storage unit 6, that is, a character pattern corresponding to the character code stored in the document RAM 5, and first extracts it in the horizontal direction (main scanning direction).
Insert the column pattern immediately before (or immediately after) every n columns of, then similarly insert the row pattern immediately before (or immediately after) every n rows in the vertical direction (sub-scanning direction) as well. The expansion process is achieved by going.

具体的に説明すると、仮に32×32ドツトの文字フオン
トから抽出された文字パターンを6/5(n=5)倍に拡
大(38×38ドツト)するときには基準となる文字のドツ
ト数(この場合は32ドツト)割る分母のn(n=5)の
商と余りを求める。このとき、商は6となり、余りは2
となる。
More specifically, if the character pattern extracted from the character font of 32 × 32 dots is enlarged 6/5 (n = 5) times (38 × 38 dots), the dot number of the reference character (in this case, Calculates the quotient and the remainder of n (n = 5) of the denominator divided by 32 dots. At this time, the quotient is 6 and the remainder is 2
Becomes

即ち、32×32ドツトの文字フオントパターンの横方向
の5列毎にその直前(或いは直後)の列パターンを挿入
していき(全部で6列挿入することになる)、同様に縦
方向にも5行毎にその直前(或いは直後)の行パターン
を挿入する(全部で6行挿入することになる)ことによ
り、36+6=38ドツトの文字パターンが発生するわけで
あるが、余りの2ドツト分には挿入を行わない。
That is, the row pattern immediately before (or immediately after) every 5 rows in the horizontal direction of the character font pattern of 32 × 32 dots is inserted (6 rows in total), and similarly in the vertical direction. By inserting the line pattern immediately before (or immediately after) every 5 lines (that is, inserting 6 lines in total), a character pattern of 36 + 6 = 38 dots is generated, but the remaining 2 dots are used. Is not inserted into.

[縮小処理] 次に、縮小(文字フオントパターンのドツト密度を下
げる)処理については、例えば本実施例では文字フオン
トパターンをn/(n+1)倍に縮小する。すなわち、CP
U1は文字記号パターン記憶部6内の基準となる文字フオ
ントを1つ、即ち文書RAMに格納されている文字コード
に対応する文字パターンを抽出し、先ず横方向(主走査
方向)のn列毎に間引いていき、次に縦方向(副走査方
向)にも同様にn行毎に間引いていくことにより達成さ
れる。
[Reduction Processing] Next, for the reduction processing (reducing the dot density of the character font pattern), for example, the character font pattern is reduced to n / (n + 1) times in this embodiment. That is, CP
U1 extracts one reference character font in the character / symbol pattern storage unit 6, that is, a character pattern corresponding to the character code stored in the document RAM, and first extracts every n columns in the horizontal direction (main scanning direction). This is achieved by thinning out every n rows in the vertical direction (sub-scanning direction).

具体的に説明すると、仮に64×64ドツトの文字フオン
トパターンを12/13(n=12)倍に縮小(60×60ドツ
ト)するときには、基準となる文字のドツト数(この場
合は64)割る分母のn+1(12+1=13)の商と余りを
求める。このとき、商は4となり、余りは12となる。
More specifically, if the character font pattern of 64 × 64 dots is reduced to 12/13 (n = 12) times (60 × 60 dots), the dot number of the reference character (64 in this case) is divided. Find the quotient and remainder of n + 1 (12 + 1 = 13) of the denominator. At this time, the quotient becomes 4 and the remainder becomes 12.

即ち、64×64ドツトの文字フオントパターンの横方向
の13(=12+1)列毎に間引いていき(全部で4列間引
くことになる)、同様に縦方向にも13行毎に間引く(全
部で4行間引くことになる)ことにより、64−4=60ド
ツトの文字パターンが発生するわけであるが、余りの12
ドツト分については間引きは行なわない。
That is, thinning out every 13 (= 12 + 1) columns in the horizontal direction of a 64 × 64 dot character font pattern (totally thinning out four columns), and similarly thinning out every 13 lines in the vertical direction (totally). By thinning out four lines), a character pattern of 64-4 = 60 dots is generated, but the remaining 12
Dot thinning is not done for dots.

以上述べた様な処理で、既存の文字フオントパターン
あら新たに異なるドツト密度のパターンが発生すること
になる。
By the processing described above, an existing character font pattern and a pattern having a different dot density are newly generated.

以上説明した拡大率の(n+1)/n、及び縮小率n/
(n+1)で、それぞれの文字フオントに対して新たに
発生する文字パターンのドツト数との関係を示したの
が、第6図(a)〜(f)である。(n=1〜15とし
た) 尚、第6図(a)は、基準となる文字フオント6a(32
×32ドツト)の変倍処理を示し、それにともない発生す
る文字パターンのドツト数との関係を示した図である。
以下、第6図(b)は文字フオント6b(44×44ドツト)
を、第6図(c)は文字フオント6c(48×48ドツト)
を、第6図(d)は文字フオント6d(56×56ドツト)
を、第6図(e)は文字フオント6e(64×64ドツト)
を、第6図(f)は文字フオント6f(88×88ドツト)の
変倍処理でそれぞれ発生する文字パターンのドツト数の
関係を示している。
The enlargement ratio (n + 1) / n and the reduction ratio n /
FIG. 6A to FIG. 6F show the relationship between the number of dots of a newly generated character pattern for each character font at (n + 1). (N = 1 to 15) Incidentally, FIG. 6 (a) shows the reference character font 6a (32
FIG. 6 is a diagram showing a scaling process of (× 32 dots) and a relationship with the dot number of a character pattern generated with the scaling process.
Below, FIG. 6 (b) is the character font 6b (44 × 44 dots).
Fig. 6 (c) shows the font font 6c (48 x 48 dots).
Fig. 6 (d) shows the font font 6d (56 x 56 dots).
Fig. 6 (e) shows the font font 6e (64 x 64 dots).
FIG. 6 (f) shows the relationship between the dot numbers of the character patterns generated in the scaling process of the character font 6f (88 × 88 dots).

この第6図(a)〜(f)を見ると明らかな様に、例
えば、60×60ドツトの文字パターンを発生させるために
は、基準となる文字フオントを先に説明した64×64ドツ
トの文字フオント6eに限定し、更にその変倍率も12×13
に特定されるものでないことがわかる。なぜなら、60×
60ドツトの文字パターンを新たに発生させるための一候
補である48×48ドツトの文字フオント6cを基準にして、
変倍率を5/4倍とした場合にも同様に60×60ドツトの文
字パターンを発生させることが可能だからである。
As is apparent from FIGS. 6 (a) to 6 (f), for example, in order to generate a character pattern of 60 × 60 dots, the reference character font is the 64 × 64 dots described above. Limited to the font font 6e, and the scaling factor is 12 × 13
You can see that it is not specified in. Because 60x
Based on the character font 6c of 48 × 48 dots, which is one candidate for newly generating a 60-dot character pattern,
This is because it is possible to generate a character pattern of 60 × 60 dots in the same manner even when the scaling factor is set to 5/4.

そこで、本実施例では先に示した表に従って新たに発
生する必要がある文字パターンのドツト数(縦横のドツ
ト数)である38,60,72,77,82の5つの文字パターンにつ
いてのそれぞれの候補を列挙して示すために第4図
(a)〜(e)を用意した。
Therefore, in the present embodiment, according to the table shown above, the number of dots of the character patterns newly generated (horizontal and vertical dots) 38, 60, 72, 77, 82 for each of the five character patterns 4 (a) to 4 (e) were prepared to list and show candidates.

第4図(a)は38×38ドツトの文字パターンを発生す
る候補を示しており、例えば基準となる文字フオントが
32×32ドツトの文字フオント6aの6/5倍処理で達成され
ることを示していて、他にその候補として2つあること
がわかる。
FIG. 4 (a) shows candidates for generating a 38 × 38 dot character pattern. For example, the reference character font is
It is shown that this can be achieved by 6/5 times processing of the character font 6a of 32 × 32 dots, and it can be seen that there are two other candidates.

以下、第4図(b)の60×60ドツトの文字パターンを
発生する候補は全部で8通りあり、第4図(c)の72×
72ドツトの文字パターンを発生する候補は2通り、第4
図(d)の77×77ドツトの文字パターンを発生する候補
は1通り、第4図(e)の82×82ドツトの文字パターン
を発生する候補は2通りあることがわかる。
Hereinafter, there are a total of eight candidates for generating the 60 × 60 dot character pattern in FIG. 4 (b), and 72 × in FIG. 4 (c).
There are two candidates for generating 72-dot character patterns, the fourth.
It can be seen that there is one candidate for generating the 77 × 77 dot character pattern in FIG. 4D and two candidates for generating the 82 × 82 dot character pattern in FIG. 4E.

そこで、新たに文字パターンを発生させるとき、どの
候補を選択するかが問題となる。
Therefore, when newly generating a character pattern, which candidate should be selected becomes a problem.

これを説明するために、先に述べた[拡大処理]にお
ける60×60ドツトの文字パターンを発生するときの基準
を文字フオント6e(64×64ドツト)にして、倍率を12/1
3にした場合について再び考えてみる。
To explain this, the character font 6e (64 × 64 dots) is used as the reference for generating the 60 × 60 dots character pattern in the above-mentioned [enlargement processing], and the magnification is 12/1.
Consider again the case of setting 3.

この場合、既に述べた様に12/13倍することにより、6
0×60ドツトの文字パターン発生を達成していたが、64/
13で余りが12となり、この部分に対しては間引きが行わ
れないことになりバランスという観点から見ると不充分
であることがわかる。
In this case, by multiplying by 12/13 as already mentioned, 6
A character pattern of 0x60 dots was achieved, but 64 /
At 13, the remainder becomes 12, which means that thinning is not performed for this part, which is insufficient from the viewpoint of balance.

このことから、各変倍処理においての割算での余りが
小さければ小さい候補ほど(一番良いのは余り数が
“0")良いことになる。
From this, the smaller the remainder in the division in each scaling process, the smaller the candidate (the best is the number of remainders is “0”).

そこで、複数の候補がある場合のその選択の基準とな
る条件を以下に示す様にする。
Therefore, when there are a plurality of candidates, the conditions that serve as the basis for selection are set as follows.

[拡大処理]及び[縮小処理]で述べた処理中におけ
る、余りドツト数が小さいものを優先する。
Among the processes described in the [enlargement process] and the [reduction process], the one having a small residual dot number is prioritized.

[縮小処理]では間引きドツト数が小さいものを優先
する。
In the [reduction processing], the one having a smaller thinning dot number is given priority.

[拡大処理]における処理中の商と余りが[縮小処
理]における商と余りと同じである場合には、当然のこ
とながら縮小処理の方が文字品位が保たれることから
[縮小処理]の方を優先する。
If the quotient and the remainder in the process of [enlargement processing] are the same as the quotient and the remainder in [reduction processing], the character quality is naturally kept in the reduction processing, so Give priority to one.

以上の各条件から、新たに発生する文字パターンにお
ける最適の候補を抽出し、整理して示したのが第5図で
ある。
FIG. 5 shows the optimum candidates for newly generated character patterns extracted from each of the above conditions and arranged.

即ち、38×38ドツトの文字パターン発生のときには、
44×44ドツトの文字フオント6bの6/7倍の縮小を選択す
ることになる。
That is, when a character pattern of 38 × 38 dots is generated,
A reduction of 6/7 times the font font 6b of 44 × 44 dots will be selected.

以下、60×60ドツトの文字パターン発生時においては
64×64ドツトの文字フオント6eの15/16倍の縮小を、72
×72ドツトの文字パターン発生のときには64×64ドツト
の文字フオント6eの9/8倍の拡大を、77×77ドツトの文
字パターン発生のときには88×88ドツトの文字フオント
6fの7/8倍の縮小を、82×82ドツトの文字パターン発生
のときにおいては88×88ドツトの文字フオント6fの13/1
4倍の縮小により、夫々発生させることにより、誤差を
最小限に抑え、ポイント数6〜16に至る範囲の文字サイ
ズが網羅することが可能になる。
Below, when a 60 × 60 dot character pattern is generated,
A 64x64 dot character font 6e is reduced by 15/16 times to 72
When a character pattern of × 72 dots is generated, the character font of 64 × 64 dots is enlarged 9/8 times that of the font 6e, and when a character pattern of 77 × 77 dots is generated, a character font of 88 × 88 dots is generated.
Reduction of 7/8 times of 6f is performed when a character pattern of 82 × 82 dots is generated, and a character font of 88 × 88 dots is 13/1 of 6f.
By reducing the number of times by 4 times, it is possible to minimize the error and to cover the character size in the range of 6 to 16 points.

例えば60×60ドツトの文字パターンを発生させる場合
には64×64ドツトの文字フオント6eを選択し、変倍率を
15/16にする間引き数は4であり、余りも0となるか
ら、先に示した64×64ドツトのフオント6eの12/13倍の
縮小処理に比べると、“誤差”が小さくなる。
For example, to generate a 60x60 dot character pattern, select the 64x64 dot font 6e and change the scaling factor.
Since the thinning-out number for 15/16 is 4, and the remainder is also 0, the “error” is smaller than that of the above-described reduction processing of 12/13 times the font 6e of 64 × 64 dots.

以上説明した様に、本実施例によれば数種の文字フオ
ントを用意することにより、連続した文字パターンサイ
ズのパターンを発生することが可能となり、かつ、パタ
ーンを発生するときの誤差を最小限にすることができる
様になる。
As described above, according to the present embodiment, by preparing several kinds of character fonts, it becomes possible to generate a pattern having a continuous character pattern size, and the error when generating the pattern is minimized. Will be able to.

また本実施例では、ポイント数を6〜16とし、実装し
た文字フオントの数を6個としたが、これに限定される
ものではなく、また基準となる各文字フオントのドツト
数もこれに限定されるものではない。更に、本実施例に
おいて新たに発生した文字パターンは5種類であつた
が、実際は第6図(a)〜(f)に示されているサイズ
の文字パターンは発生可能であり、更に基準となる文字
フオントを追加することにより、より多くの文字パター
ンを発生することができることは明らかである。
In this embodiment, the number of points is set to 6 to 16 and the number of installed character fonts is set to 6. However, the number of character fonts is not limited to this, and the number of dots of each character font as a reference is also limited to this. It is not something that will be done. Further, although there are five types of newly generated character patterns in the present embodiment, in reality, character patterns of the sizes shown in FIGS. 6A to 6F can be generated and serve as a reference. It is clear that more character patterns can be generated by adding character fonts.

更にまた、本実施例では文書処理装置に応用して、プ
リンタに出力する例を説明したが、例えば表示装置にも
応用できることは言うまでもない。
Furthermore, in the present embodiment, an example of applying to a document processing device and outputting to a printer has been described, but it goes without saying that it can also be applied to, for example, a display device.

また、本実施例の第5図に示される様なテーブルを内
蔵することにより、外部からの指定されたドツト密度の
パターンを発生するときにこのテーブルを参照にして変
倍率を決定し、基準となる最も良いフオントを選択する
ようにすると、所望とするドツト密度のパターンを発生
するまでに係る計算が省略することができ、処理スピー
ドを上げることが可能となる。
Further, by incorporating a table as shown in FIG. 5 of the present embodiment, the scaling factor is determined by referring to this table when a pattern having a specified dot density from the outside is generated, By selecting the best font, it is possible to omit the calculation related to the generation of the desired dot density pattern, and it is possible to increase the processing speed.

更に本実施例では文字パターンに対して説明したが図
形パターンに対しても所望とするドツト密度のパターン
を得ることができることは明らかである。
Furthermore, although the present embodiment has been described with respect to a character pattern, it is clear that a pattern having a desired dot density can be obtained also for a graphic pattern.

[発明の効果] 以上説明したように本発明によれば、複数種のサイズ
の異なるパターン群の中から最適なパターンを選択し、
その選択パターンに基づいて、指定されたサイズであっ
て高品位なパターンを発生することが可能になる。
As described above, according to the present invention, an optimum pattern is selected from a plurality of types of pattern groups having different sizes,
Based on the selection pattern, it becomes possible to generate a high-quality pattern having a designated size.

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

第1図は本実施例のブロツク構成図、 第2図は文字記号パターン記憶部の内容を示す図、 第3図は文書処理に係るフローチヤート、 第4図は(a)〜(e)は文字パターン発生のための候
補を示す図、 第5図は各ポイント数に対する基準となる文字フオント
とその変倍処理を示す図、 第6図は(a)〜(f)は各文字フオントで変倍処理に
より発生し得る文字パターンを示した図である。 図中、1…CPU、1a…ROM、1b…RAM、2…キーボード、
3…VRAM、4…表示装置、5…文書RAM、6…文字記号
パターン記憶部、6a〜6f…文字フオント、7…パターン
発生部、8…出力画像バツフアメモリ、9…プリンタで
ある。
FIG. 1 is a block configuration diagram of this embodiment, FIG. 2 is a diagram showing contents of a character / symbol pattern storage unit, FIG. 3 is a flow chart relating to document processing, and FIG. 4 shows (a) to (e). FIG. 5 is a diagram showing candidates for generating a character pattern, FIG. 5 is a diagram showing a reference character font for each point number and its scaling process, and FIG. 6 is a diagram showing (a) to (f) being changed for each character font. It is the figure which showed the character pattern which can be generated by the double processing. In the figure, 1 ... CPU, 1a ... ROM, 1b ... RAM, 2 ... Keyboard,
3 ... VRAM, 4 ... Display device, 5 ... Document RAM, 6 ... Character / symbol pattern storage section, 6a-6f ... Character font, 7 ... Pattern generating section, 8 ... Output image buffer memory, 9 ... Printer.

フロントページの続き (72)発明者 高倉 洋 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 瀧瀬 喜久雄 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 昭60−80895(JP,A)Front page continued (72) Inventor Hiroshi Takakura 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Kikuo Takise 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (56) References JP-A-60-80895 (JP, A)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】出力すべきパターンのサイズを指定し、 記憶部に記憶されたドット構成数の異なる数種のパター
ン群の中から、指定された出力すべきパターンのサイズ
と一致するものがない場合に、 前記パターン群のうち、変倍処理に伴い、ドット行の間
引き数或いは挿入数が少ないパターンを選択し、 前記選択されたパターンに対して、前記間引き或いは挿
入処理を含む変倍処理を行ない、 前記変倍処理後のパターンを出力するために格納する ことを特徴とするパターン発生方法。
1. A size of a pattern to be output is designated, and from among several kinds of pattern groups stored in the storage unit, which have different dot configurations, there is no match with the designated size of the pattern to be output. In this case, in the pattern group, a pattern with a small number of thinned-out dots or the number of inserted dots is selected along with the scaling process, and a scaling process including the thinning-out or insertion process is performed on the selected pattern. And a pattern generating method for storing the pattern after the scaling process to output the pattern.
【請求項2】前記パターンの選択は、指定された出力す
べきパターンのサイズを得るために縮小処理を拡大処理
より優先して選択することを特徴とする特許請求の範囲
第1項に記載のパターン発生方法。
2. The pattern selecting method according to claim 1, wherein the reduction processing is selected prior to the enlargement processing in order to obtain the size of the designated pattern to be output. Pattern generation method.
JP61071346A 1986-03-31 1986-03-31 Pattern generation method Expired - Lifetime JP2558254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61071346A JP2558254B2 (en) 1986-03-31 1986-03-31 Pattern generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61071346A JP2558254B2 (en) 1986-03-31 1986-03-31 Pattern generation method

Publications (2)

Publication Number Publication Date
JPS62229293A JPS62229293A (en) 1987-10-08
JP2558254B2 true JP2558254B2 (en) 1996-11-27

Family

ID=13457841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61071346A Expired - Lifetime JP2558254B2 (en) 1986-03-31 1986-03-31 Pattern generation method

Country Status (1)

Country Link
JP (1) JP2558254B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57158887A (en) * 1981-03-27 1982-09-30 Fujitsu Ltd Code/image converter
JPS58160981A (en) * 1982-03-18 1983-09-24 富士通株式会社 Character display control system
JPH0640257B2 (en) * 1983-10-11 1994-05-25 キヤノン株式会社 Information output device
JPS6090383A (en) * 1983-10-24 1985-05-21 富士通株式会社 Graphic display/print apparatus

Also Published As

Publication number Publication date
JPS62229293A (en) 1987-10-08

Similar Documents

Publication Publication Date Title
US4962465A (en) Character processor provided with dot pattern correcting function
JPH0926778A (en) Kerning process method
EP0537030B1 (en) Character or graphic processing method
KR100306862B1 (en) Character pattern generator, character generating method, and storage medium therefor
EP0461811B1 (en) Pattern processing method
JP2558254B2 (en) Pattern generation method
JP3408685B2 (en) Kerning treatment method
JP3055187B2 (en) Contour data processing device
JP3192915B2 (en) Character image composite data display printing method and apparatus
JP3239045B2 (en) String output device
JP3037023B2 (en) Character generator
KR900004892B1 (en) Dot inter polation system
KR100254659B1 (en) Character forming apparatus
JP2803746B2 (en) Character processing method and apparatus
EP0542316B1 (en) Bit map data generation apparatus
JP2776347B2 (en) Drawing device for printer
JP2737845B2 (en) Character processing method and apparatus
JP4080470B2 (en) Character pattern generator
JP2967861B2 (en) Output device
JPH1063871A (en) Method for deforming graphic
JP3102979B2 (en) Document information processing device with ruled line conversion function
JPH0736434A (en) Character output device
JPH05204362A (en) Dot pattern generator
JP2000148734A (en) Document modifying method
JPH0321990A (en) Pattern genertaing system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term