JPH02134263A - Output apparatus - Google Patents

Output apparatus

Info

Publication number
JPH02134263A
JPH02134263A JP63288417A JP28841788A JPH02134263A JP H02134263 A JPH02134263 A JP H02134263A JP 63288417 A JP63288417 A JP 63288417A JP 28841788 A JP28841788 A JP 28841788A JP H02134263 A JPH02134263 A JP H02134263A
Authority
JP
Japan
Prior art keywords
dot
line
dots
contour
correction
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
JP63288417A
Other languages
Japanese (ja)
Inventor
Hiroshi Ishii
弘 石井
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 JP63288417A priority Critical patent/JPH02134263A/en
Publication of JPH02134263A publication Critical patent/JPH02134263A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain a well-balanced character which does not contain an extremely fine line having an one-dot width by correcting the one-dot width of a line to a line width of two or more dots when the line having the one-dot width is present in the development result of an outline font prior to output. CONSTITUTION:A means for correcting the one-dot width of the line in a character wherein an outline font is developed to a two-dot width is provided. By this method, even when the outline font is reduced to a certain number of dots or less, a well-balanced character containing no line having the one-dot width can be obtained. For example, in a character 'T' wherein the line width of a lateral line (L1) becomes the one-dot width by the contraction processing of the outline font, when contour processing with correction is performed, dots DN are newly added as On-dots (black dots) and the width of the lateral line L1 becomes the two-dot width and a well-balanced character shape is obtained.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分封) 本発明はアウトラインフォントを修飾情報に従いドツト
パターン展開し出力する装置に係り、特にアウトライン
フォントを縮小したときに生ずる1ドツト幅の極細線部
分を補正してバランスの良い文字パターンを生成し出力
できるようにしたアウトラインフォントの出力装置に関
する。
[Detailed Description of the Invention] [Purpose of the Invention (Industrial Application Separation) The present invention relates to a device that develops and outputs a dot pattern of an outline font according to modification information, and particularly relates to a device that develops and outputs a dot pattern of an outline font according to modification information. The present invention relates to an outline font output device that can generate and output a well-balanced character pattern by correcting extremely thin line parts.

(従来の技術) 従来、アウトラインフォントを扱う文書作成装置等に於
いて、アウトラインフォントを修飾情報に従いドツトパ
ターン展開し出力する際、第30図に示す処理手順によ
り行なわれていた。即ち、出力すべき1文字分のアウト
ラインフォント(アウトラインフォントデータ)を読み
出しくステップSl)、そのアウトラインフォントと文
字修飾情報とにより、修飾を施した後の座標を計算して
(ステップS2)  その座標値に従いフォント展開処
理を行なっていた(ステップS3〜S5)。
(Prior Art) Conventionally, in a document creation device that handles outline fonts, when an outline font is developed into a dot pattern according to modification information and outputted, the processing procedure shown in FIG. 30 is used. That is, read out the outline font (outline font data) for one character to be output (Step S1), calculate the modified coordinates using the outline font and character modification information (Step S2), and calculate the coordinates. Font development processing was performed according to the value (steps S3 to S5).

(発明が解決しようとする課題) しかしながら、上記した従来のアウトラインフォント展
開処理手段に於いては、アウトラインフォントを成るド
ツト数以下に縮小すると、その一部の線幅が1ドツト幅
の目立たない極細線となってしまい、非常にバランスの
悪い文字になってしまうという不都合な問題が生じる。
(Problem to be Solved by the Invention) However, in the above-mentioned conventional outline font development processing means, when an outline font is reduced to less than the number of dots that it consists of, the line width of a part of the outline font becomes inconspicuous and ultra-fine. An inconvenient problem arises in that the characters become lines and the characters become very unbalanced.

本発明は上記実情に鑑みなされたもので、アウトライン
フォントをあるドツト数以下に縮小することによって発
生する1ドツト幅の線に補正を加えてバランスのとれた
・見易いアウトラインフォントを出力することのできる
出力装置を提供することを目的とする。
The present invention was developed in view of the above-mentioned circumstances, and is capable of outputting a balanced and easy-to-read outline font by correcting the 1-dot width lines that occur when an outline font is reduced to a certain number of dots or less. The purpose is to provide an output device.

〔発明の構成j (課題を解決するための手段及び作用)本発明は、アウ
トラインフォントを展開した文字の中の1ドツト幅の線
を2ドツト幅に補正する手段を設けてなる構成としたも
ので、これによりアウトラインフォントをあるドツト数
以下に縮小しても、1ドツト幅の線を含まないバランス
の良い文字を得ることができる。
[Structure of the Invention j (Means and Effects for Solving the Problems) The present invention has a structure in which means is provided for correcting a 1-dot width line in a character developed by an outline font to a 2-dot width. As a result, even if the outline font is reduced to a certain number of dots or less, it is possible to obtain well-balanced characters that do not contain lines of one dot width.

ここで、本発明の実施例に於ける特徴点を関連図番を付
して列記しておく。
Here, the feature points in the embodiments of the present invention will be listed with related figure numbers.

1)1文字修飾情報及びフォント種等の条件により輪郭
描画手段を切換える判別手段を有し、補正要判断時に補
正付輪郭描画手段を起動するアウトラインフォント展開
手段をもつ(第1図参照)。
1) It has a discrimination means that switches the outline drawing means according to conditions such as single character modification information and font type, and has an outline font development means that activates the outline drawing means with correction when it is determined that correction is necessary (see FIG. 1).

2)、アウトラインフォントを展開した結果に1ドツト
幅の線が生じないようにセットドツト(オンドツト)を
付加するアウトラインフォント展開手段をもつ(第6図
参照)。
2) It has an outline font development means that adds set dots (on dots) so that lines with a width of one dot do not occur as a result of developing the outline font (see FIG. 6).

3)、アウトラインフォントを展開した結果に生じた1
ドツト幅の線を2ドツト以上の幅に補正するアウトライ
ンフォント展開補正手段をもつ(第29図参照)。
3), 1 that occurred as a result of expanding the outline font
It has an outline font expansion correction means for correcting a dot-width line to a width of two or more dots (see FIG. 29).

4)、傾きが特定の範囲にある輪郭構成線分を描画する
際に、輪郭の内側方向にさらにセットドツトを付加して
描画するアウトラインフォント輪郭描画手段をもつ(第
6図、第8図、第12図〜第14図参照)。
4) It has an outline font contour drawing means that adds set dots to the inner side of the contour when drawing contour line segments whose slopes are within a specific range (Figs. 6, 8, and 8). (See Figures 12 to 14).

5)、傾きが特定の範囲にある輪郭構成線分の輪郭の内
側方向にセットドツトを付加するアウトラインフォント
展開補正手段をもつ(第29図、第8図、第12図〜第
14図参照)。
5) An outline font expansion correction means is provided for adding set dots to the inner side of the contour of contour line segments whose inclinations are within a specific range (see FIGS. 29, 8, and 12 to 14).

6)、上記4)項の構成に於いて、傾きが特定の範囲に
なく、かつ輪郭の内側方向に1つ以上のリセットドツト
を有する輪郭構成線分を描画する際に、輪郭の外側方向
にさらにセットドツトを付加して描画するアウトライン
フォント輪郭描画手段をもつ(第6図、第15図、第1
8図〜第21図参照)。
6) In the configuration of item 4) above, when drawing a contour line segment whose slope is not within a specific range and has one or more reset dots toward the inside of the contour, Furthermore, it has an outline font contour drawing means that adds and draws set dots (Fig. 6, Fig. 15, Fig. 1).
(See Figures 8 to 21).

7)、上記5)項の構成に於いて、傾きが特定の範囲に
なく、かつ輪郭の内側方向に1つ以上のリセットドツト
を有する輪郭構成線分の外側の方向に更にセットドツト
を付加するアウトラインフォント展開補正手段をもつ(
第29図、第15図。
7) In the configuration of item 5) above, an outline in which set dots are further added to the outer side of the contour constituent line segment whose slope is not within a specific range and has one or more reset dots in the inner direction of the contour. Has font expansion correction means (
Figures 29 and 15.

第18図〜第21図参照)。(See Figures 18 to 21).

8)、上記4)項の構成に於いて、傾きが特定の範囲に
なく、かつ始点以外の輪郭の内側方向に1つ以上のリセ
ットドツトを有する輪郭構成線分を描画する際に輪郭の
外側方向にさらにセットドツトを付加して描画するアウ
トラインフォント輪郭描画手段をもつ(第6図、第16
図、第22図〜M24図参照)。
8) In the configuration of item 4) above, when drawing a contour constituent line segment whose slope is not within a specific range and has one or more reset dots inward of the contour other than the starting point, It has an outline font contour drawing means that adds set dots in the direction (Fig. 6, 16).
22 to M24).

9)、上記5)項の構成に於いて、傾きが特定の範囲に
なく、かつ始点以外の輪郭の内側方向に1つ以上のリセ
ットドツトを有する輪郭構成線分の外側の方向にセット
ドツトを付加するアウトラインフォント展開補正手段を
もつ(第29図、第16図、第22図〜第24図参照)
9) In the configuration described in item 5) above, set dots are added in the outer direction of the contour constituent line segment whose slope is not within a specific range and has one or more reset dots in the inner direction of the contour other than the starting point. (See Figures 29, 16, and 22 to 24)
.

10)、上記6)項、及び8)項の構成に於いて、輪郭
の外側方向にセットドツトを付加して描画する範囲を、
輪郭の内側方向にリセットドツトを有する輪郭構成線分
上のドツトと同一の行または列上にある輪郭構成線分上
のドツトに限定するアウトラインフォント輪郭描画手段
をもつ(第6図。
10), 6) and 8) above, the range in which set dots are added to the outside of the contour and drawn is
It has an outline font contour drawing means that limits the dots on the contour line segment that are on the same row or column as the dot on the contour line segment that has the reset dot toward the inside of the contour (FIG. 6).

第17図、第26図〜第29図参照)。(See FIGS. 17 and 26 to 29).

11)、上記7)項、及び9)項の構成に於いて、輪郭
の外側方向にセットドツトを付加する範囲を、輪郭の内
側方向にリセットドツトを存する輪郭構成線分上のドツ
トと同一の行または列上にある輪郭構成線分上のドツト
に限定するアウトラインフォント展開補正手段をもつ(
第29図、第17図。
11) In the configurations of 7) and 9) above, the range in which set dots are added to the outside of the contour is set to the same line as the dot on the contour line segment where the reset dot is placed in the inside direction of the contour. Or, it has an outline font development correction means that limits the dots on the outline constituent line segments on the column (
Figures 29 and 17.

第26図〜第29図参照)。(See Figures 26 to 29).

(実施例) 以下図面を参照して本発明の詳細な説明する。(Example) The present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例による装置の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention.

第1図に於いて、■は装置全体の制御を司るCPUであ
る。2はCPUIの制御の下に、出力対象となる文字コ
ードを記憶する文字コードレジスタである。3はCPU
Iの制御の下に、出力すべきアウトラインフォントのフ
ォント種(明朝体。
In FIG. 1, ``■'' is a CPU that controls the entire device. 2 is a character code register that stores character codes to be output under the control of the CPUI. 3 is CPU
Under the control of I, the font type of the outline font to be output (Mincho typeface.

ゴシック体等)を貯えるフォント種レジスタである。4
はCPUIの制御の下に、フォント種レジスタ3に貯え
られたフォント種と文字コードレジスタ2に貯えられた
文字コードとに従うアウトラインフォントを出力するア
ウトラインフォント発生手段である。5はアウトライン
フォント発生手段4で発生された1文字分のアウトライ
ンフォントを記憶するフォントバッファである。6はC
PUIの制御の下に出力すべきアウトラインフォントの
文字修飾情報を記憶する文字修飾情報レジスタである。
This is a font type register that stores fonts (such as Gothic). 4
is an outline font generating means that outputs an outline font according to the font type stored in the font type register 3 and the character code stored in the character code register 2 under the control of the CPUI. A font buffer 5 stores an outline font for one character generated by the outline font generating means 4. 6 is C
This is a character modification information register that stores character modification information of an outline font to be output under the control of the PUI.

7はCPUIの制御の下に文字修飾情報レジスタ6に貯
えられた文字修飾情報に従ってフォントバッファ5に貯
えられたアウトラインフォントをドツト座標に展開する
文字修飾座標計算手段である。8は文字修飾座標計算手
段7で得られた1文字分の座標データ(第4図及び第5
図参照)を記憶する座標バッファである。9はCPUI
の制御の下に座標バッファ8に貯えられた座標データ内
容から、文字の内容を塗潰すための判別点を描画する判
別点描画手段である。lOはCPUIの制御の下に文字
の内部を塗潰すためのぬりつぶし手段である。11はフ
ォント種レジスタ3に貯えられたフォント種と文字修飾
情報レジスタ6に貯えられた文字修飾情報からドツト補
正が必要か否かを判別する補正要/不要判別手段である
。12は補正要/不要判別手段11で補正不要の判別が
なされたとき、ドツト補正を行なわない輪郭描画を行な
う輪郭描画手段である。13はドツト補正骨の輪郭描画
を行なう補正付輪郭描画手段である。14は輪郭描画手
段12.又は補正付輪郭描画手段13の描画制御の下に
1文字分のドツトパターンを記憶するドツトパターン展
開バッファである。
Reference numeral 7 denotes a character modification coordinate calculation means which develops the outline font stored in the font buffer 5 into dot coordinates according to the character modification information stored in the character modification information register 6 under the control of the CPUI. 8 is the coordinate data for one character obtained by the character modification coordinate calculation means 7 (Figs. 4 and 5).
This is a coordinate buffer that stores the coordinates (see figure). 9 is CPUI
This is a discriminant point drawing means for drawing a discriminant point for filling out the contents of a character from the coordinate data contents stored in the coordinate buffer 8 under the control of the coordinate buffer 8. 1O is a coloring means for coloring the inside of a character under the control of the CPUI. Reference numeral 11 denotes correction necessary/unnecessary determining means for determining whether dot correction is necessary based on the font type stored in the font type register 3 and the character modification information stored in the character modification information register 6. Reference numeral 12 denotes a contour drawing means for drawing a contour without performing dot correction when the correction necessary/unnecessary determining means 11 determines that no correction is necessary. Reference numeral 13 denotes a contour drawing means with correction for drawing a dot-corrected bone contour. 14 is a contour drawing means 12. Alternatively, it is a dot pattern development buffer that stores a dot pattern for one character under the drawing control of the contour drawing means 13 with correction.

15は1頁分のドツトパターンを記憶するページメモリ
である。16はページメモリの内容を出力制御する出力
制御装置である。
A page memory 15 stores dot patterns for one page. 16 is an output control device that controls the output of the contents of the page memory.

第2図はアウトラインフォント発生手段4により発生さ
れるアウトラインフォントを説明するための図であり、
ここでは文字の輪郭を時計回りの方向になぞり、線分で
近似したものである。したがって、−線分の進行方向に
向かって左側が常に文字の内側′になるようになってい
る。
FIG. 2 is a diagram for explaining an outline font generated by the outline font generating means 4,
Here, the outline of the character is traced in a clockwise direction and approximated by a line segment. Therefore, the left side of the − line segment in the direction of movement is always inside the character.

第3図はドツトパターン展開バッファ14の構成を説明
するための図であり、ここでは、左上を原点として、横
方向がX、縦方向がy、各ドツトがP (x、y)の形
で表される。
FIG. 3 is a diagram for explaining the structure of the dot pattern expansion buffer 14. Here, the upper left is the origin, the horizontal direction is X, the vertical direction is y, and each dot is in the form of P (x, y). expressed.

第4図及び第5図は座標バッファ8の構造を説明するた
めのもので、第4図はアウトラインフォントの1つが文
字修飾座標計算手段7によってドツト座標に展開された
結果の一パターン例を示す図、第5図は上記第4図に示
すパターンが座標バッファ8にどのようにセットされる
かを示した図である。
4 and 5 are for explaining the structure of the coordinate buffer 8, and FIG. 4 shows an example of a pattern resulting from one of the outline fonts being developed into dot coordinates by the character modification coordinate calculation means 7. FIG. 5 shows how the pattern shown in FIG. 4 is set in the coordinate buffer 8.

第6図乃至第9図はそれぞれ上記一実施例に於けるアウ
トラインフォントの展開出力処理手順を示すもので、第
6図は全体の処理動作を説明するためのフローチャート
、第7図は第6図のステップS7に於ける補正付輪郭描
画処理動作を説明するためのフローチャート、第8図は
第7図のステップS19に於ける補正付輪郭描画処理動
作を説明するためのフローチャート、第9図は第8図の
ステップS31に於ける線分の傾き分類処理動作を説明
するためのフローチャートである。
6 to 9 each show the outline font development output processing procedure in the above embodiment, FIG. 6 is a flowchart for explaining the overall processing operation, and FIG. 7 is a flowchart for explaining the overall processing operation. FIG. 8 is a flowchart for explaining the corrected contour drawing processing operation in step S7 of FIG. 7, FIG. 9 is a flowchart for explaining the corrected contour drawing processing operation in step S19 of FIG. 8 is a flowchart for explaining the line segment slope classification processing operation in step S31 of FIG. 8. FIG.

第10図は上記第9図の線分の傾きを計算し分類するス
テップ31に於ける、線分の傾きとその分類データとの
対応関係を示す図であり、ここでは矢印の方向が線分の
描画方向を示している。
FIG. 10 is a diagram showing the correspondence between the slope of the line segment and its classification data in step 31 of calculating and classifying the slope of the line segment in FIG. indicates the drawing direction.

第11図は上記第8図のステップ38に於ける次ドツト
計算処理動作を説明するためのフローチャートである。
FIG. 11 is a flowchart for explaining the next dot calculation processing operation in step 38 of FIG. 8 above.

第12図乃至第14図はそれぞれ上記一実施例に於ける
ドツト展開動作を説明するための図である。
FIGS. 12 to 14 are diagrams for explaining the dot development operation in the above embodiment, respectively.

ここで本発明の一実施例に於ける動作を第6図乃至第9
図、及び第11図に示すフローチャートに従い説明する
Here, the operation in one embodiment of the present invention is illustrated in FIGS. 6 to 9.
The explanation will be made according to the flowchart shown in FIG.

先ず、アウトラインフォントのパターン展開及び出力処
理に際して、CP U 11の制御の下に、出力対象と
なる文字の文字コードが文字フードレジスタ2に貯えら
れ、フォント種情報がフォント種レジスタ3に貯えられ
、文字修飾情報が文字修飾情報レジスタ6に貯えられる
。このデータセット処理の後、第6図に示す処理が開始
される。
First, during pattern development and output processing of an outline font, under the control of the CPU 11, the character code of the character to be output is stored in the character food register 2, the font type information is stored in the font type register 3, Character modification information is stored in character modification information register 6. After this data set processing, the processing shown in FIG. 6 is started.

先ず第6図のフローに従って全体の動作を説明する。First, the overall operation will be explained according to the flow shown in FIG.

第6図に於いて、ステップS1では、CPUIの制御の
下に、アウトラインフォント発生手段4が文字コードレ
ジスタ2に貯えられた文字コードとフォント種レジスタ
3に貯えられたフォント種とに従って、1文字車位のア
ウトラインフォントを生成し出力して、そのアウトライ
ンフォントをフォントバッファ5記憶する。
6, in step S1, under the control of the CPUI, the outline font generating means 4 generates one character according to the character code stored in the character code register 2 and the font type stored in the font type register 3. An outline font for the vehicle position is generated and output, and the outline font is stored in a font buffer 5.

ステップS2では、文字修飾情報レジスタ6に貯えられ
た文字修飾情報に従って、文字修飾座標計算手段7がフ
ォントバッファ5に記憶されたアウトラインフォントを
座標データに変換し、その変換した座標データを座標バ
ッファ8に記憶する。
In step S2, the character modification coordinate calculation means 7 converts the outline font stored in the font buffer 5 into coordinate data according to the character modification information stored in the character modification information register 6, and the converted coordinate data is transferred to the coordinate buffer 8. to be memorized.

ステップS3は、座標バッファ8に記憶された座標デー
タに従って、ぬりつぶし用判別点描画手段9が、ぬりつ
ぶし用の判別点をドツトパターン展開バッファ14に描
画する。
In step S3, according to the coordinate data stored in the coordinate buffer 8, the filling discriminating point drawing means 9 draws discriminating points for filling into the dot pattern development buffer 14.

ステップS4では、上記ステップS3にてドツトパター
ン展開バッファ14に描画されたぬりつぶし用の判別点
に従って、文字の内部をぬりつぶす。
In step S4, the inside of the character is filled in according to the discrimination points for filling drawn in the dot pattern development buffer 14 in step S3.

ステップS5では、文字修飾情報レジスタ6に貯えられ
た文字修飾情報とフォント種レジスタ3に貯えられたフ
ォント種をもとに、補正要/不要判別手段11が補正を
必要とするか否かを判断する(例えば、明朝体は50ド
ツト〜30ドツトに縮小する場合に補正が必要であり、
ゴシック体は、もともと線か太いので不要である等々)
In step S5, based on the character modification information stored in the character modification information register 6 and the font type stored in the font type register 3, the correction necessary/unnecessary determining means 11 determines whether or not correction is necessary. (For example, Mincho typeface requires correction when reduced from 50 dots to 30 dots.
Gothic fonts are unnecessary because they are originally lined or thick, etc.)
.

ステップS6では、補正要/不要判別手段11が、補正
不要と判断した場合に、補正を伴わない一般的な輪郭描
画を行なう。
In step S6, when the correction necessary/unnecessary determining means 11 determines that correction is not necessary, general outline drawing without correction is performed.

ステップS7では、補正要/不要判別手段11が、補正
必要と判断した場合に、補正を伴う輪郭描画を伴う。こ
の補正を伴う輪郭描画の処理手順の詳細を第7図に示す
In step S7, when the correction necessary/unnecessary determining means 11 determines that correction is necessary, contour drawing with correction is performed. FIG. 7 shows details of the processing procedure for contour drawing accompanied by this correction.

第7図は、第6図のステップS7  (補正を加えなが
ら輪郭を描画するステップ)の処理を詳細に説明するだ
めのフローチャートである。
FIG. 7 is a flowchart illustrating in detail the process of step S7 (the step of drawing the outline while applying correction) in FIG.

ここでは、座標バッファ8からデータを読み出し、補正
付輪郭描画手段13にて、輪郭を構成する一本一本の線
分の始点をxs、ysにセットしくステップ514)、
終点をxa、yeにセットして(ステップ5113)し
て後、補正付の輪郭描画処理を実行する(ステップ51
9.第8図参照)。尚、図中、C,i、xs、ys、j
、xe、ye、Lはそれぞれ作業用レジスタである。
Here, data is read from the coordinate buffer 8, and the corrected contour drawing means 13 sets the starting points of each line segment forming the contour to xs and ys (step 514).
After setting the end points to xa and ye (step 5113), contour drawing processing with correction is executed (step 51).
9. (See Figure 8). In addition, in the figure, C, i, xs, ys, j
, xe, ye, and L are working registers, respectively.

第8図は、第7図のステップ519(補正付輪郭描画)
の処理を詳細に説明するためのフローチャートである。
Figure 8 shows step 519 (contour drawing with correction) in Figure 7.
3 is a flowchart for explaining the process in detail.

第8図に於いて、ステップ31では、線分の傾き、Δx
 −l xe −xs  l、 Δy−tye−ysΔ
min −1n  (ΔX、Δy)。
In FIG. 8, in step 31, the slope of the line segment, Δx
-l xe -xs l, Δy-tye-ysΔ
min −1n (ΔX, Δy).

Δ1Ilax −wax  (Δx、 Δy)を計算す
る。
Calculate Δ1Ilax - wax (Δx, Δy).

但し、 m1n  (a、 b) =a  1f(a<b) 。however, m1n (a, b) = a 1f (a<b).

ミ b   1f(a  ≧ b ) IIFax  (a、  b)  =a   1r(a
 ≧b)。
Mi b 1f (a ≧ b ) IIFax (a, b) = a 1r (a
≧b).

ミb  If(a<b) とする。Mi b If (a<b) shall be.

このステップ31(傾き分類ステップ)の詳細な処理フ
ローを第9図に示す。又、この際の線分の傾きと、装置
で扱う傾きの対応を第1θ図に示している。ここでは矢
印の方向が描画方向を示しており、線分の傾きを45@
単位で8分類し、0〜7の数値でその傾きを表す。
A detailed processing flow of this step 31 (tilt classification step) is shown in FIG. Further, the correspondence between the slope of the line segment at this time and the slope handled by the device is shown in Fig. 1θ. Here, the direction of the arrow indicates the drawing direction, and the slope of the line segment is 45@
It is classified into 8 units, and its slope is expressed as a value from 0 to 7.

上記第8図ステップS31の傾き分類処理の後、次のス
テップS32では、線分描画のためのパラメータを計算
する。ここで、余りは、線分描画のための少数部を記憶
するレジスタの内容を指定し、初期値にΔmax / 
2をセットしているのは、四捨五入のためである。
After the slope classification process in step S31 in FIG. 8, parameters for drawing line segments are calculated in the next step S32. Here, the remainder specifies the contents of the register that stores the decimal part for line segment drawing, and sets the initial value to Δmax /
The reason why it is set to 2 is for rounding.

ステップS34〜S37の処理を除くと、一般的な線分
描画処理のフローチャートになる。
If steps S34 to S37 are excluded, the flowchart becomes a general line segment drawing process.

ステップS34〜S37では、傾きが、0,1,57.
の線分の進行方向に向かって左側にオンドツト(黒)を
1ドツト付加(−ドツトセット)する。
In steps S34 to S37, the slope is 0, 1, 57, .
Add one on dot (black) to the left side of the line segment in the direction of movement (-dot set).

即ち、ここでは、1ドツトの線幅の有無を認工せず、傾
きが特定の範囲にある輪郭構成線分を描画する際に、輪
郭の内側方向にセットドツトを付加して描画するもので
、これにより1ドツト幅の線が生じないようにしている
That is, here, when drawing contour constituent line segments whose inclinations are within a specific range, without recognizing the presence or absence of a line width of 1 dot, set dots are added to the inner side of the contour and drawn. This prevents lines with a width of one dot from occurring.

ステップ338は余り、Δff1aX 、 Δminか
ら次に描画するドツトの座標(x、y)と新しい余りを
計算する処理ステップであり、その詳細な処理フローを
第11図に示している。
Step 338 is a processing step for calculating the coordinates (x, y) of the next dot to be drawn and a new remainder from the remainders Δff1aX and Δmin, and the detailed processing flow is shown in FIG.

上記したドツト補正処理(補正付輪郭処理)に於ける実
際のパターン補正例について第12図乃至第14図を参
照して説明する。
An example of actual pattern correction in the above-mentioned dot correction processing (contour processing with correction) will be explained with reference to FIGS. 12 to 14.

第12図は、アウトラインフォントを縮小処理したこと
によって、横線(Ll )の線幅が1ドツトになってし
まっ、たrTJの文字である。第12図の円で囲まれた
部分をドツトに拡大して見ると第13図のようになって
いる。第13図のパターンに上記第8図の補正付輪郭処
理を行なうと、第14図に示すように、ドツトDNがオ
ンドツト(黒ドツト)として新たに追加されて、横線L
1の幅が2ドツトになり、バランスの良い文字形に補正
される。
FIG. 12 shows a character rTJ whose horizontal line (Ll) has a line width of one dot due to the outline font being reduced. When the area surrounded by a circle in Fig. 12 is enlarged into dots, it becomes as shown in Fig. 13. When the contour processing with correction shown in FIG. 8 is applied to the pattern shown in FIG. 13, the dot DN is newly added as an on-dot (black dot), and the horizontal line L
The width of 1 becomes 2 dots, and the character shape is corrected to be well-balanced.

次に第15図乃至第28図を参照して、上記第8図の処
理フローに伴う実施例に於ける補正付輪郭処理とは異な
る、他の実施例による補正付輪郭処理動作について説明
する。
Next, with reference to FIGS. 15 to 28, a description will be given of a contour processing operation with correction according to another embodiment, which is different from the contour processing with correction in the embodiment according to the processing flow shown in FIG. 8 above.

第15図乃至第17図は、上記第8図とは異なる補正付
輪郭処理動作を説明するためのフローチャートである。
FIGS. 15 to 17 are flowcharts for explaining the corrected contour processing operation, which is different from that shown in FIG. 8 above.

第15図は、上記第8図のフローチャートに線分の傾き
が2.3.4.6の新しい処理を追加したフローチャー
トである。
FIG. 15 is a flowchart in which a new process with a line segment slope of 2.3.4.6 is added to the flowchart of FIG. 8 above.

ここで新しく追加した処理は、線分の傾きか2゜3.4
.6の場合に、進行方向に向かって左側を見て行って(
ステップ5l13 、 8118 ) 、1ドツトでも
セットされていないドツト(辿っている1ドツトのみし
か存在しないパターン)を見つけるとフラグレジスタF
に「1」をセットして(ステップ5117)、その線分
の最初から、進行方向に向かって右側のドツト(辿って
いる1ドツト幅の線の右ドツト)もセットする(ステッ
プ5112゜5115)。
The newly added process is to change the slope of the line segment to 2°3.4
.. In case 6, look to the left in the direction of travel (
Steps 5l13, 8118), if even one dot is not set (a pattern in which there is only one dot being traced), the flag register F is set.
Set "1" to "1" (step 5117), and also set the dot on the right side in the direction of movement from the beginning of the line segment (the right dot of the 1-dot width line being traced) (steps 5112 to 5115). .

第16図は、上記第15図の処理に更に新たな処理を追
加した処理動作を示すフローチャートである。
FIG. 16 is a flowchart showing a processing operation in which new processing is added to the processing shown in FIG. 15 above.

ここで、新しく追加した処理は、線分の傾きが2.3,
4.6の場合の左側を見る処理に、最初の1ドツト(F
−−1の状態)は、左を見ないようにする処理(ステッ
プ5211 、 321Bの処理)である。
Here, the newly added process is that the slope of the line segment is 2.3,
4. In the process of looking at the left side in case 6, the first 1 dot (F
--1 state) is a process of not looking to the left (steps 5211 and 321B).

第17図は、上記第16図の処理に更に新たな処理を追
加した処理動作を示すフローチャートである。
FIG. 17 is a flowchart showing a processing operation in which new processing is added to the processing shown in FIG. 16 above.

ここで新しく追加した処理は、線分の傾きが2゜3の場
合、左側にセットされていないドツトを見つけた時のX
座標をレジスタSに記憶しておいて(ステップ5315
)、右側にドツトを付加するときに、そのレジスタSの
X座標を見て、x−3のみに右側にドツトを追加(ドツ
トセット)する(ステップ5319)。
The newly added process is that when the slope of the line segment is 2°3, the
Store the coordinates in register S (step 5315
), when adding a dot to the right side, look at the X coordinate of the register S and add a dot (dot set) to the right side only at x-3 (step 5319).

また、線分の傾きが4.6の場合、左側にセットされて
いないドツトを見つけたときのy座標と同じy座標のド
ツトのみに、右側にドツトを付加(ドツトセット)する
(ステップ5330)。
If the slope of the line segment is 4.6, dots are added to the right side (dot set) only to those dots with the same y coordinate as the y coordinate when a dot that is not set on the left side is found (step 5330).

上記した各ドツト補正処理(補正付輪郭処理)に於ける
実際のパターン例について、第18図乃至第28図を参
照して説明する。
Examples of actual patterns in each of the above dot correction processes (contour processing with correction) will be explained with reference to FIGS. 18 to 28.

先ず、第15図のフローチャートに示す処理動作につい
て説明する。
First, the processing operation shown in the flowchart of FIG. 15 will be explained.

第18図は、アウトラインフォントを縮小処理したこと
によって横線(L2)の線幅が1ドツトになってしまっ
た「土」の文字である。
FIG. 18 shows the character "earth" whose horizontal line (L2) has a line width of one dot due to the outline font being reduced.

第18図の円で囲まれた部分をドツトに拡大して見ると
第19図のようになっている。
When the area surrounded by a circle in FIG. 18 is enlarged into dots, it becomes as shown in FIG. 19.

第19図のパターンに上記一実施例による第8図の補正
付輪郭処理を行なうと、第20図のようになってしまう
。つまり、横線(L2)の中央部が凹んでしまう。そこ
で、第19図のパターンに第15図の補正付輪郭処理を
行なうと、第21図のようになる。ここでDN2が上記
第15図の処理で新たに追加されたドツトである。
If the contour processing with correction shown in FIG. 8 according to the above embodiment is applied to the pattern shown in FIG. 19, the result will be as shown in FIG. 20. In other words, the center portion of the horizontal line (L2) is recessed. Therefore, when the contour processing with correction shown in FIG. 15 is applied to the pattern shown in FIG. 19, the pattern shown in FIG. 21 is obtained. Here, DN2 is the dot newly added in the process shown in FIG. 15 above.

次に、第16図のフローチャートに示す処理動作につい
て説明する。
Next, the processing operation shown in the flowchart of FIG. 16 will be explained.

第22図は、左にはねた部分の先(E)が1ドツト幅に
なったものである。
In FIG. 22, the tip (E) of the part that bounced to the left is one dot wide.

第22図の円で囲まれた部分をドツトに拡大して見ると
第23図のようになっている。
When the area surrounded by a circle in FIG. 22 is enlarged into dots, it becomes as shown in FIG. 23.

第23図のパターンに上記第15図の補正付輪郭処理を
行なうと、第24図に示すように、先に(E)にゴミが
付いたようになってしまう。
When the contour processing with correction shown in FIG. 15 is applied to the pattern shown in FIG. 23, as shown in FIG. 24, dust appears to be attached first to (E).

そこで、第23図のパターンに第16図の補正付輪郭処
理を行なうと、全くドツトは付加されることはなく、ゴ
ミは付かない。
Therefore, when the contour processing with correction shown in FIG. 16 is applied to the pattern shown in FIG. 23, no dots are added and no dust is added.

次に第17図のフローチャートに示す処理動作について
説明する。
Next, the processing operation shown in the flowchart of FIG. 17 will be explained.

第25図は、途中に段差のある横線で、その段差の部分
で線幅が1ドツトになっているものである。
FIG. 25 shows a horizontal line with a step in the middle, and the line width is one dot at the step.

第25図の円で囲まれた部分をドツトに拡大して見ると
第26図のようになっている。
When the area surrounded by a circle in Fig. 25 is enlarged into dots, it becomes as shown in Fig. 26.

第26図のパターンに第16図の補正付輪郭処理を行な
うと、第27図のように、1ドツト下方にはみ出してゴ
ミが付いたようになってしまう。
When the contour processing with correction shown in FIG. 16 is applied to the pattern shown in FIG. 26, as shown in FIG. 27, one dot protrudes downward and looks like dust.

そこで、第26図のパターンに、第17図の補正付輪郭
処理を行なうと、第28図のようになる。
Therefore, when the contour processing with correction shown in FIG. 17 is applied to the pattern shown in FIG. 26, the pattern shown in FIG. 28 is obtained.

ここでは、DNが新たに追加されたドツトである。Here, DN is a newly added dot.

これにより1ドツトの゛はみ出し゛はなくなる。This eliminates ``protrusion'' of one dot.

第29図は、本発明によるアウトラインフォントを1文
字、ドツトパターン展開バッファ14に展開する際の他
の実施例による処理フローを示すフローチャートであり
、ここでは輪郭描画を行なって後、補正要/不要を判別
している。
FIG. 29 is a flowchart showing the processing flow according to another embodiment when one character of the outline font according to the present invention is developed into the dot pattern development buffer 14. is determined.

第29図に於いて、ステップS 401− S 404
は、第6図のステップ5l−S4と同様の処理ステップ
である。ステップ5405は、−膜内な輪郭描画を行な
う処理ステップである。ステップ8406は、第6図の
ステップS5と同様に、補正の要/不要を判断する処理
ステップである。
In FIG. 29, steps S401-S404
is a processing step similar to step 5l-S4 in FIG. Step 5405 is a processing step for drawing the outline within the film. Step 8406 is a processing step for determining whether correction is necessary or unnecessary, similar to step S5 in FIG.

ステップ5407は、ステップS 40Bで補正が必要
と判断された場合に補正を行なう処理ステップである。
Step 5407 is a processing step for performing correction when it is determined in step S40B that correction is necessary.

上記第29図のフローチャートに示すように、−膜内な
輪郭描画を行なった後に、必要な場合のみ、補正処理(
1ドツトの線幅を2ドツトの線幅に補正する処理)を行
なうようにしてもよい。
As shown in the flowchart of FIG.
A process of correcting a line width of one dot to a line width of two dots may also be performed.

[発明の効果] 以上詳記したように、本発明によればアウトラインフォ
ントを修飾情報に従いドツトパターン展開し出力する装
置に於いて、アウトラインフォントを展開した結果に、
1ドツト幅の線が存在するとき、同線の幅を2ドツト以
上の線幅に補正し出力する手段を有してなる構成とした
ことにより、アウトラインフォントをあるドツト数以下
に縮小しても、1ドツト幅の極細線を含まないバランス
の良い文字を得ることができる。
[Effects of the Invention] As described in detail above, according to the present invention, in a device that develops and outputs an outline font into a dot pattern according to modification information, the result of developing an outline font is
When a line with a width of 1 dot exists, this configuration has a means for correcting the width of the same line to a line width of 2 dots or more and outputting it, so even if the outline font is reduced to a certain number of dots or less, , it is possible to obtain well-balanced characters that do not include ultra-fine lines with a width of one dot.

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

第1図は本発明の一実施例に於ける装置の構成を示すブ
ロック図、第2図は上記実施例のアウトラインフォント
発生手段により発生されるアウトラインフォントを説明
するための図、第3図は上記実施例に於けるドツトパタ
ーン展開バッファの構成を説明するための図、第4図は
上記実施例に於ける文字修飾座標計算手段により得られ
るドツト座標のパターン展開例を示す図、第5図は上記
第4図のパターンに対する上記実施例の座標バッファ上
でのデータセット例を示す図、第6図は上記実施例に於
ける全体の処理動作を説明するためのフローチャート、
第7図は上記第6図のステップS7に於ける補正付輪郭
描画処理動作を説明するためのフローチャート、第8図
は上記第7図のステップS19に於ける補正付輪郭処理
動作を説明するためのフローチャート、第9図は上記第
8図のステップ531に於ける線分の傾き分類処理動作
を説明するためのフローチャート、第10図は上記第9
図の線分の傾きを計算し分類するステップS31に於け
る、線分の傾きと装置側の分類データ対応との関係を示
す図、第11図は上記第8図のステップ33gに於ける
次ドツト計算処理動作を説明するためのフローチャート
、第12図乃至第14図はそれぞれ上記一実施例に於け
るドツト展開動作を説明するための図、第15図乃至第
17図はそれぞれ本発明の他の実施例による処理フロー
を示すフローチャートであり、第15図は上記第8図に
示す一実施例の処理に、新たな線分の傾き(2,3,4
,6)処理を追加した他の実施例による補正付輪郭処理
フローを示すフローチャート、第16図は上記第15図
の処理に更に新たなドツト付加制御手段を設けた他の実
施例による補正付輪郭処理フローを示すフローチャート
、第17図は上記第16図の処理に更に新たなドツト付
加制御手段を設けた他の実施例による補正付輪郭処理フ
ローを示すフローチャート、第18図乃至第21図は上
記第15図に示す他の実施例に於けるドツト展開動作を
説明するための図、第22図乃至第24図は上記第16
図に示す他の実施例に於けるドツト展開動作を説明する
ための図、第25図乃至第28図は上記第17図に示す
他の実施例に於けるドツト展開動作を説明するための図
、第29図は上記第6図に示す一実施例と一部の処理順
序を違えた本発明の他の実施例に於ける処理フローを示
すフローチャート、第30図は従来のアウトラインフォ
ント展開手順を示すフローチャートである。 l・・・CPU、2・・・文字コードレジスタ、3・・
・フォント種レジスタ、4・・・アウトラインフォント
発生手段、5・・・フォントバッファ、6・・・文字修
飾情報レジスタ、7・・・文字修飾座標計算手段、8・
・・座標バッファ、9・・・判別点描画手段、10・・
・ぬりつぶし手段、11・・・補正要/不要判別手段、
12・・・輪郭描画手段、13・・・補正付輪郭描画手
段、14・・・ドツトパターン展開バッファ、15・・
・ページメモリ、16・・・出力制御装置。 出願人代理人 弁理士 鈴江武彦 X 第 図 第6図 第5 図 第 図 第 図 第9図 第13 図 第19 図 第 図 (’f/)り 第 図 第 図 第 図 第四 図 第 図
FIG. 1 is a block diagram showing the configuration of an apparatus in an embodiment of the present invention, FIG. 2 is a diagram for explaining an outline font generated by the outline font generation means of the above embodiment, and FIG. FIG. 4 is a diagram for explaining the structure of the dot pattern development buffer in the above embodiment. FIG. 4 is a diagram showing an example of pattern development of dot coordinates obtained by the character decoration coordinate calculation means in the above embodiment. FIG. is a diagram showing an example of data set on the coordinate buffer of the above embodiment for the pattern of FIG. 4, FIG. 6 is a flowchart for explaining the overall processing operation in the above embodiment,
FIG. 7 is a flowchart for explaining the contour drawing processing operation with correction in step S7 of FIG. 6 above, and FIG. 8 is a flowchart for explaining the contour drawing processing operation with correction in step S19 of FIG. 7 above. FIG. 9 is a flowchart for explaining the slope classification processing operation of the line segment in step 531 of FIG. 8, and FIG.
A diagram showing the relationship between the slope of the line segment and the classification data correspondence on the device side in step S31 of calculating and classifying the slope of the line segment in the figure, FIG. 11 is the next step in step 33g of FIG. Flowcharts for explaining the dot calculation processing operation, FIGS. 12 to 14 are diagrams for explaining the dot expansion operation in the above-mentioned embodiment, and FIGS. 15 to 17 are for explaining the dot calculation processing operation, respectively. FIG. 15 is a flowchart showing the processing flow according to the embodiment shown in FIG.
, 6) A flowchart showing a contour processing flow with correction according to another embodiment in which processing is added. FIG. 16 shows a contour with correction according to another embodiment in which a new dot addition control means is added to the processing shown in FIG. 15 above. FIG. 17 is a flowchart showing a contour processing flow with correction according to another embodiment in which a new dot addition control means is provided in addition to the processing shown in FIG. FIG. 15 is a diagram for explaining the dot development operation in another embodiment, and FIGS.
25 to 28 are diagrams for explaining the dot development operation in another embodiment shown in FIG. 17 above. , FIG. 29 is a flowchart showing the processing flow in another embodiment of the present invention in which the processing order is partially different from the embodiment shown in FIG. 6, and FIG. 30 shows the conventional outline font development procedure. FIG. l...CPU, 2...Character code register, 3...
- Font type register, 4... Outline font generation means, 5... Font buffer, 6... Character modification information register, 7... Character modification coordinate calculation means, 8.
...Coordinate buffer, 9...Discrimination point drawing means, 10...
・Coloring means, 11... Correction required/unnecessary determining means,
12... Contour drawing means, 13... Contour drawing means with correction, 14... Dot pattern development buffer, 15...
-Page memory, 16...output control device. Applicant's Representative Patent Attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] アウトラインフォントを修飾情報に従いドットパターン
展開し出力する装置に於いて、アウトラインフォントを
展開した結果に1ドット幅の線が存在するとき、同線の
幅を2ドット以上の線幅に補正し出力する手段を具備し
てなることを特徴とするアウトラインフォントの出力装
置。
In a device that develops and outputs a dot pattern of an outline font according to modification information, when a line with a width of 1 dot exists in the result of developing an outline font, the width of the line is corrected to a line width of 2 dots or more and output. 1. An outline font output device comprising: means.
JP63288417A 1988-11-15 1988-11-15 Output apparatus Pending JPH02134263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63288417A JPH02134263A (en) 1988-11-15 1988-11-15 Output apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63288417A JPH02134263A (en) 1988-11-15 1988-11-15 Output apparatus

Publications (1)

Publication Number Publication Date
JPH02134263A true JPH02134263A (en) 1990-05-23

Family

ID=17729945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63288417A Pending JPH02134263A (en) 1988-11-15 1988-11-15 Output apparatus

Country Status (1)

Country Link
JP (1) JPH02134263A (en)

Similar Documents

Publication Publication Date Title
US5959635A (en) Character pattern generator
KR970008546B1 (en) Character or graphic processing method
JP3238580B2 (en) Thicker text generator
JP3344188B2 (en) Character generator
JP2755789B2 (en) Character font memory and character pattern generator using the character font memory
US5388166A (en) Image drawing apparatus
JPH02134263A (en) Output apparatus
JP3416489B2 (en) Font processing device and recording medium recording font processing program
JPH10143134A (en) Method for forming and storing characters and apparatus therefor
JPH04280296A (en) Contour data processing device
JP3170155B2 (en) Font expansion device
JP3039015B2 (en) Character processor
JP2000209434A (en) Image data editor
KR940001106B1 (en) Image processing method and apparatus therefor
JP2782752B2 (en) Character pattern output device
JPH06175639A (en) Method and device for character generation
JP2856704B2 (en) Character generator
JPH0691938A (en) Printing control device
JPH05257450A (en) Character generation device
JP2861201B2 (en) Data converter
JP2000305551A (en) Character generation device with outline font data
JPS62175794A (en) Character generator
JPH05108293A (en) Character processing method
JPH05108292A (en) Character processing method
JPH05108294A (en) Character processing method