JPH06175637A - Method for generating character - Google Patents

Method for generating character

Info

Publication number
JPH06175637A
JPH06175637A JP4324266A JP32426692A JPH06175637A JP H06175637 A JPH06175637 A JP H06175637A JP 4324266 A JP4324266 A JP 4324266A JP 32426692 A JP32426692 A JP 32426692A JP H06175637 A JPH06175637 A JP H06175637A
Authority
JP
Japan
Prior art keywords
data
character
stroke
outline font
approximate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP4324266A
Other languages
Japanese (ja)
Inventor
Hideki Sekine
秀樹 関根
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4324266A priority Critical patent/JPH06175637A/en
Publication of JPH06175637A publication Critical patent/JPH06175637A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To maintain print quality without deforming a character even if the character is extremely small or the resolution of an output device is low. CONSTITUTION:When a character having a character modification part 34 formed at an end part of a stroke 33 or at the coupling part between strokes is expanded, approximate data A1-A4 corresponding to basic data P1-P20 of the character modification part 34 are added and outline font data are stored in an outline font ROM. Then, the outline font data are read one by one, out of the outline font ROM. At this time, the diameter of pixels at the character modification part 34 is compared with the width of the stroke 33 at the coupling part. When the diameter of the pixels is large and the character is possibly deformed, the approximate data A1-A4 are used and the basic data P1-P20 are skipped over, but when the diameter of the pixels is small and there is no possibility that the character decoration part 34 is deformed, the basic data P1-P20 are used and the approximate data A1-A4 are skipped over.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字の生成方法に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generation method.

【0002】[0002]

【従来の技術】従来、プリンタやディスプレイなどの出
力装置においては、コンピュータやワードプロセッサな
どの上位装置から受信したデータに基づいて文字を生成
する文字生成装置を有している。図2は従来のプリンタ
に適用された文字生成装置のブロック図である。
2. Description of the Related Art Conventionally, an output device such as a printer or a display has a character generation device for generating a character based on data received from a host device such as a computer or a word processor. FIG. 2 is a block diagram of a character generation device applied to a conventional printer.

【0003】図において、1は上位装置、2はインタフ
ェース、3はシステムバス、4はプロセッサ、5はプロ
グラムROM、6はワーキングメモリ、6bはフォント
キャッシュメモリ、7aはアウトラインフォントRO
M、8は画像メモリ、9はプリントエンジンインタフェ
ース、9aは印刷用データ、9bはプリントコントロー
ル信号、10はプリントエンジンである。
In the figure, 1 is a host device, 2 is an interface, 3 is a system bus, 4 is a processor, 5 is a program ROM, 6 is a working memory, 6b is a font cache memory, and 7a is an outline font RO.
M and 8 are image memories, 9 is a print engine interface, 9a is print data, 9b is a print control signal, and 10 is a print engine.

【0004】前記構成の文字生成装置において、上位装
置1にインタフェース2を介して接続されたシステムバ
ス3に対し、プロセッサ4、プログラムROM5、ワー
キングメモリ6、アウトラインフォントROM7a、画
像メモリ8及びプリントエンジンインタフェース9が接
続され、該プリントエンジンインタフェース9には、プ
リントエンジン10が接続される。また、ワーキングメ
モリ6内には、ビットマップフォントデータを格納する
ためのフォントキャッシュメモリ6bが設けられる。
In the character generating apparatus having the above-mentioned structure, the processor 4, the program ROM 5, the working memory 6, the outline font ROM 7a, the image memory 8 and the print engine interface are connected to the system bus 3 connected to the host apparatus 1 via the interface 2. 9 is connected, and the print engine 10 is connected to the print engine interface 9. Further, the working memory 6 is provided with a font cache memory 6b for storing bitmap font data.

【0005】前記上位装置1は、印刷用データを作成す
るコンピュータ、ワードプロセッサ、画像読取装置等の
装置であり、インタフェース2は、いわゆるRS232
Cインタフェースやパラレルインタフェースなどから構
成される回路である。プロセッサ4は、プリンタ全体の
制御を行う回路であり、その実行用プログラムはプログ
ラムROM5に格納されている。また、ワーキングメモ
リ6は、インタフェース2によって送受信されたデータ
などを記憶管理するためのメモリであり、アウトライン
フォントROM7aには輪郭を表現するアウトラインフ
ォントデータが格納されている。
The host device 1 is a device such as a computer, a word processor, and an image reading device that creates print data, and the interface 2 is a so-called RS232.
It is a circuit composed of a C interface and a parallel interface. The processor 4 is a circuit that controls the entire printer, and its execution program is stored in the program ROM 5. The working memory 6 is a memory for storing and managing data and the like transmitted and received by the interface 2, and outline font ROM 7a stores outline font data representing an outline.

【0006】また、画像メモリ8は、編集処理されイメ
ージ化されたイメージデータを例えば1ページ分格納す
るRAMで構成される。そして、前記プリントエンジン
10は、前記画像メモリ8に格納されたイメージデータ
に基づいて、印刷用の用紙に印刷を行う装置であり、用
紙搬送系や電子写真プロセスなどを含む。プリントエン
ジンインタフェース9は、プロセッサ4の指示に従って
画像メモリ8からイメージデータを読み出し、印刷用デ
ータ9aとしてプリントエンジン10に転送し、又はプ
リントエンジン10から出力されるプリントコントロー
ル信号9bを受信し、これをプロセッサ4などに送信す
る。
The image memory 8 is composed of a RAM for storing, for example, one page of image data which has been edited and converted into an image. The print engine 10 is a device that prints on a printing sheet based on the image data stored in the image memory 8, and includes a sheet conveying system and an electrophotographic process. The print engine interface 9 reads image data from the image memory 8 according to an instruction from the processor 4, transfers the image data to the print engine 10 as print data 9a, or receives a print control signal 9b output from the print engine 10, and receives the print control signal 9b. It is transmitted to the processor 4 or the like.

【0007】前記構成のプリンタにおいて、上位装置1
からインタフェース2を介して受信された制御コマンド
や文字キャラクタコード、グラフィックコマンド、ビッ
トイメージデータ等は、必要に応じてワーキングメモリ
6に一時格納され、プロセッサ4の指示に従ってイメー
ジ化されたイメージデータが画像メモリ8に書き込まれ
る。
In the printer having the above structure, the host device 1
The control command, the character character code, the graphic command, the bit image data, etc. received from the interface 2 via the interface 2 are temporarily stored in the working memory 6 when necessary, and the image data imaged according to the instruction of the processor 4 is displayed. It is written in the memory 8.

【0008】また、アウトラインフォントデータからビ
ットマップフォントデータを生成して印刷する場合、ビ
ットマップフォントデータから直接印刷する場合に比べ
て処理時間が長くなるので、アウトラインフォントデー
タを使用して印刷する場合には、印刷するごとにアウト
ラインフォントデータからビットラインフォントデータ
を生成させるのではなく、一度ビットマップフォントデ
ータを生成した時点で、そのビットマップフォントデー
タをワーキングメモリ6内のフォントキャッシュメモリ
6bに格納しておき、2回目以降にその文字を印刷する
ときには、このフォントキャッシュメモリ6b内のビッ
トマップフォントデータを使用して印刷を高速化してい
る。
Further, when the bitmap font data is generated from the outline font data and printed, the processing time becomes longer than that when the bitmap font data is directly printed. Therefore, when the outline font data is used for printing. Does not generate the bit line font data from the outline font data each time it is printed, but once the bit map font data is generated, the bit map font data is stored in the font cache memory 6b in the working memory 6. Incidentally, when printing the character for the second time and thereafter, the bitmap font data in the font cache memory 6b is used to speed up the printing.

【0009】図3は従来のディスプレイに適用された文
字生成装置のブロック図である。図において、1は上位
装置、2はインタフェース、3はシステムバス、4はプ
ロセッサ、5はプログラムROM、6はワーキングメモ
リ、6bはフォントキャッシュメモリ、7aはアウトラ
インフォントROM、18はビデオRAM、20はディ
スプレイである。
FIG. 3 is a block diagram of a character generation device applied to a conventional display. In the figure, 1 is a host device, 2 is an interface, 3 is a system bus, 4 is a processor, 5 is a program ROM, 6 is a working memory, 6b is a font cache memory, 7a is an outline font ROM, 18 is a video RAM, and 20 is a The display.

【0010】この場合も、同様に上位装置1からインタ
フェース2を介して受信された制御コマンドや文字キャ
ラクタコード、グラフィックコマンド、ビットイメージ
データ等は、必要に応じてワーキングメモリ6に一時格
納され、プロセッサ4の指示に従ってイメージ化された
イメージデータがビデオRAM18に格納される。
Also in this case, the control command, the character character code, the graphic command, the bit image data, and the like which are similarly received from the host device 1 through the interface 2 are temporarily stored in the working memory 6 as necessary, and the processor The image data imaged according to the instruction of No. 4 is stored in the video RAM 18.

【0011】そして、前記ディスプレイ20の画面に前
記ビデオRAM18に格納されたイメージデータに基づ
いて、生成された文字が表示されるようになっている。
ところで、前記プリンタやディスプレイ20などの出力
装置においては、文字の輪郭を直線分や曲線分の一部で
表し、そのため、直線分や曲線分の両端点や曲線分上の
代表点などの一連の座標値データをアウトラインフォン
トデータとして前記アウトラインフォントROM7aに
格納している。そして、任意の文字は、始点から各点を
結んで再び始点で閉じた座標値データを1組以上有する
座標値データ群で表すことができる。
Characters generated based on the image data stored in the video RAM 18 are displayed on the screen of the display 20.
By the way, in the output device such as the printer or the display 20, the contour of the character is represented by a part of a straight line or a curved line, and therefore, a series of straight line, both end points of the curved line, representative points on the curved line, etc. The coordinate value data is stored in the outline font ROM 7a as outline font data. Then, an arbitrary character can be represented by a coordinate value data group having one or more sets of coordinate value data that connects each point from the start point and closes again at the start point.

【0012】例えば、アルファベットの大文字の「I」
は1組の閉じた座標値データ群で表すことができ、漢字
の「口」は2組の閉じた座標値データ群で表すことがで
きる。ところで、前記アウトラインフォントデータをビ
ットマップフォントデータに変換して文字を展開する場
合、まず、展開する文字の大きさと出力するプリンタや
ディスプレイ20などの出力装置の解像度に合わせ、文
字の輪郭を表す座標値データについて座標の変換を行
う。この時、輪郭の曲線分は直線で近似する。次に、輪
郭の内部の画素を塗りつぶして文字を生成するようにな
っている。
For example, the capital letter "I" of the alphabet
Can be represented by one set of closed coordinate value data, and the Chinese character “mouth” can be represented by two sets of closed coordinate value data. By the way, when converting the outline font data into bitmap font data to expand a character, first, the coordinates representing the outline of the character are adjusted according to the size of the expanded character and the resolution of the output device such as the printer or the display 20 to be output. Converts the coordinates of value data. At this time, the curved line of the contour is approximated by a straight line. Next, the pixels inside the contour are painted out to generate a character.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、前記従
来の文字の生成方法においては、アウトラインフォント
データを、簡単な計算によって自由に拡大し、縮小し、
回転させることができるが、特に小さい文字を出力する
場合や解像度の低い出力装置で出力する場合には、1文
字当たりの画素数が少ないため、あらかじめそのような
画素数向きにデザインされた文字と比べると印刷品位が
低下してしまう。
However, in the above-described conventional character generation method, outline font data can be freely expanded and reduced by simple calculation,
Although it can be rotated, especially when outputting a small character or when outputting with an output device with a low resolution, the number of pixels per character is small, so it is not possible to use a character designed in advance for such a pixel number. Compared with this, the print quality is degraded.

【0014】具体的には、ストロークの端部や、ストロ
ークとストロークの結合部などにおいて文字の特徴を表
す文字飾り部分がつぶれてしまう。本発明は、前記従来
の文字の生成方法の問題点を解決して、どのような大き
さの文字を出力する場合においても、また、どのような
解像度の出力装置で出力する場合においても印刷品位を
低下させることなく文字を出力することができる文字の
生成方法を提供することを目的とする。
Specifically, the character decoration portion representing the characteristics of the character is crushed at the end of the stroke, the connecting portion of the stroke and the like. The present invention solves the problems of the above-described conventional character generation method, and prints a print quality regardless of the size of a character to be output and the output device of any resolution. An object of the present invention is to provide a character generation method capable of outputting a character without degrading the character.

【0015】[0015]

【課題を解決するための手段】そのために、本発明の文
字の生成方法においては、ストロークの端部及びストロ
ークとストロークの結合部に文字飾り部分を形成した文
字を展開するようになっている。また、文字の輪郭を直
線分及び曲線分で表し、直線分及び曲線分の両端点、曲
線分上の代表点の座標値データを基本データとして有す
るアウトラインフォントデータに、前記文字飾り部分の
基本データに対応する近似データを付加する。
Therefore, in the method for generating a character of the present invention, a character in which a character decoration portion is formed at an end portion of a stroke and a connecting portion between strokes is developed. In addition, the outline of a character is represented by a straight line segment and a curved line segment, and the outline font data having the coordinate value data of the straight line segment and the end points of the curved line segment and the representative points on the curved line segment as basic data is added to the basic data of the character decoration Approximate data corresponding to is added.

【0016】そして、前記文字飾り部分における画素の
径と前記結合部におけるストロークの幅を比較し、比較
結果に基づいて、前記基本データ及び近似データを選択
的に使用する。
Then, the diameter of the pixel in the character decoration portion and the width of the stroke in the connecting portion are compared, and the basic data and the approximate data are selectively used based on the comparison result.

【0017】[0017]

【作用】本発明によれば、前記のように文字の生成方法
においては、ストロークの端部及びストロークとストロ
ークの結合部に文字飾り部分を形成した文字を展開する
ようになっている。また、文字の輪郭を直線分及び曲線
分で表し、直線分及び曲線分の両端点、曲線分上の代表
点の座標値データを基本データとして有するアウトライ
ンフォントデータに、前記文字飾り部分の基本データに
対応する近似データを付加し、前記アウトラインフォン
トデータをアウトラインフォントROMに格納する。
According to the present invention, as described above, in the character generation method, the character having the character decoration portion formed at the end of the stroke and the connecting portion of the stroke is expanded. In addition, the outline of a character is represented by a straight line segment and a curved line segment, and the outline font data having the coordinate value data of the straight line segment and the end points of the curved line segment and the representative points on the curved line segment as basic data is added to the basic data of the character decoration Is added to the outline font data, and the outline font data is stored in the outline font ROM.

【0018】該アウトラインフォントROMから前記ア
ウトラインフォントデータを一つずつ読み出す時に、前
記文字飾り部分における画素の径と前記結合部における
ストロークの幅を比較する。そして、画素の径が大き
く、文字飾り部分のつぶれが発生する可能性のある場合
は、近似データを使用して基本データを読み飛ばし、画
素の径が小さく、文字飾り部分のつぶれが発生する可能
性のない場合は、基本データを使用して近似データを読
み飛ばす。
When reading out the outline font data one by one from the outline font ROM, the diameter of the pixel in the character decoration portion is compared with the stroke width in the connecting portion. Then, if the pixel diameter is large and there is a possibility that the character decoration part may be crushed, the basic data may be skipped using approximate data, and the pixel diameter may be small and the character decoration part may be crushed. If not, skip the fitted data using the basic data.

【0019】[0019]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図4は本発明の実施例における
アウトラインフォントの原理を示す図である。図の
(a)はアウトラインフォントデータの座標位置を示す
図、(b)はアウトラインフォントデータの座標値デー
タを示す図である。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 4 is a diagram showing the principle of the outline font in the embodiment of the present invention. FIG. 7A is a diagram showing coordinate positions of outline font data, and FIG. 8B is a diagram showing coordinate value data of outline font data.

【0020】図(a)において、P1〜P20はアウト
ラインフォントデータの基本データであり、黒丸や白丸
は基本データP1〜P20の座標位置を示す。黒丸は直
線分30や曲線分31の端点となり、白丸は曲線分31
上の代表点となる。図の(a)に示すアルファベットの
大文字「I」は12個の直線分30と4個の曲線分31
から成り、文字の垂直に延びるストローク33の端部に
文字飾り部分34を持っている。
In FIG. 3A, P1 to P20 are basic data of outline font data, and black circles and white circles indicate coordinate positions of the basic data P1 to P20. The black circles are end points of the straight line segment 30 and the curved line segment 31, and the white circles are the curved line segment 31.
It will be the representative point above. The uppercase letter "I" of the alphabet shown in FIG. 3A is 12 straight line segments 30 and 4 curved line segments 31.
And has a character decoration portion 34 at the end of a vertically extending stroke 33 of the character.

【0021】前記直線分30は黒丸と黒丸間を結んだ部
分であり、曲線分31は連続した曲線上の白丸とその両
側の黒丸から成る部分である。すなわち、曲線分31は
P3−P4−P5,P6−P7−P8,P13−P14
−P15,P16−P17−P18を結んだ部分であ
る。図の(b)において、L及びCは各基本データP1
〜P20の属性を示し、Lは座標値データが直線分30
や曲線分31の端点のものであることを、Cは座標値デ
ータが曲線分31上の代表点のものであることを表す。
The straight line segment 30 is a portion connecting black circles to each other, and the curved line segment 31 is a portion composed of continuous white circles on the curve and black circles on both sides thereof. That is, the curve segment 31 is P3-P4-P5, P6-P7-P8, P13-P14.
-P15, P16-P17-P18 is a part connected. In FIG. 6B, L and C are basic data P1
~ P20 indicates an attribute, and L is coordinate value data for a straight line segment 30
And C represents the end point of the curve segment 31, and C represents that the coordinate value data belongs to the representative point on the curve segment 31.

【0022】図5は解像度の異なる出力装置で文字を展
開した場合の比較図である。図の(a)は解像度の高い
出力装置で展開したときの塗りつぶされた画素を示し、
(b)は解像度の低い出力装置で展開したときの塗りつ
ぶされた画素を示す。図において、38〜40は塗りつ
ぶされた画素であり、画素40は文字飾り部分34のつ
ぶれの原因となる。図の(a)では垂直に延びるストロ
ーク33の端部における文字飾り部分34がほぼ文字の
輪郭に沿って塗りつぶされるのに対して、(b)では各
画素39,40が大きいため、画素40が塗りつぶされ
ると、文字の輪郭から大きくはみ出してしまい、文字飾
り部分34のつぶれが発生する。
FIG. 5 is a comparison diagram when characters are developed by output devices having different resolutions. (A) of the figure shows a filled pixel when developed with an output device with high resolution,
(B) shows a filled pixel when developed with an output device having a low resolution. In the figure, 38 to 40 are filled pixels, and the pixel 40 causes the crushing of the character decoration portion 34. In (a) of the figure, the character decoration portion 34 at the end of the vertically extending stroke 33 is painted almost along the outline of the character, whereas in (b) the pixels 39 and 40 are large, the pixel 40 is When the character is painted, it largely protrudes from the outline of the character, and the character decoration portion 34 is crushed.

【0023】そこで、本発明においては、図の(b)に
示すように1文字当たりの画素数が少なくなるような解
像度の出力装置で文字を展開した場合、文字飾り部分3
4のつぶれが発生する可能性のあるストローク33の端
部においては、本来の基本データを使用することなく、
あらかじめ座標値データ群に付加された近似データを使
用するようにしている。
Therefore, in the present invention, when a character is developed by an output device having a resolution such that the number of pixels per character is reduced as shown in FIG.
At the end of the stroke 33 where the collapse of 4 may occur, the original basic data is not used,
The approximate data added to the coordinate value data group in advance is used.

【0024】図1は本発明の実施例におけるアウトライ
ンフォントを示す図である。図の(a)はアウトライン
フォントデータの座標位置を示す図、(b)はアウトラ
インフォントデータの座標値データを示す図である。図
の(a)において、P1〜P20はアウトラインフォン
トデータの基本データであり、黒丸や白丸は基本データ
P1〜P20の座標位置を示す。黒丸は直線分30(図
4)や曲線分31の端点となり、白丸は曲線分31上の
代表点となる。また、A1〜A4はアウトラインフォン
トデータに付加された近似データであり、文字飾り部分
34のつぶれが発生する可能性のあるストローク33の
端部に使用され、基本データP1〜P20と共にアウト
ラインフォントデータを構成する。
FIG. 1 is a diagram showing an outline font in the embodiment of the present invention. FIG. 7A is a diagram showing coordinate positions of outline font data, and FIG. 8B is a diagram showing coordinate value data of outline font data. In (a) of the figure, P1 to P20 are basic data of outline font data, and black circles and white circles indicate coordinate positions of the basic data P1 to P20. The black circles are the end points of the straight line segment 30 (FIG. 4) and the curved line segment 31, and the white circles are the representative points on the curved line segment 31. Further, A1 to A4 are approximate data added to the outline font data, and are used at the end of the stroke 33 where the character decoration portion 34 may be crushed, and the outline font data is used together with the basic data P1 to P20. Constitute.

【0025】そして、図の(b)において、C,L及び
Aは各基本データP1〜P20及び近似データA1〜A
4の属性を示し、Aは座標値データが近似点のものであ
ることを、Lは座標値データが直線分30や曲線分31
の端点のものであることを、Cは座標値データが曲線分
31上の代表点のものであることを表す。垂直に延びる
ストローク33の端部の文字飾り部分34において、直
線分30a,30bの交差する点に近似データA1が、
直線分30a,30cの交差する点に近似データA2
が、直線分30d,30cの交差する点に近似データA
3が、直線分30d,30bの交差する点に近似データ
A4が発生させられる。また、垂直に延びるストローク
33の端部のほか、文字の水平に延びるストロークの端
部、各ストロークの結合部における文字飾り部分におい
ても、直線分の交差する点に近似データが発生させられ
る。例えば、垂直に延びるストロークと水平に延びるス
トロークの結合部に形成された文字飾り部分において
は、それぞれのストロークの直線分の交差する点に近似
データが発生させられる。
In FIG. 7B, C, L and A are basic data P1 to P20 and approximate data A1 to A, respectively.
4 indicates the attribute, A indicates that the coordinate value data is of an approximate point, and L indicates that the coordinate value data is a straight line segment 30 or a curved line segment 31.
C represents that the coordinate value data is that of the representative point on the curve segment 31. In the character decoration portion 34 at the end of the vertically extending stroke 33, the approximate data A1 is obtained at the intersection of the straight line segments 30a and 30b.
Approximate data A2 at the intersection of straight line segments 30a and 30c
Is the approximate data A at the intersection of the straight line segments 30d and 30c.
3, the approximation data A4 is generated at the intersection of the straight line segments 30d and 30b. In addition to the ends of the vertically extending strokes 33, the approximation data is generated at the intersections of the straight lines not only at the ends of the horizontally extending strokes of characters but also at the character decorations at the joints of the strokes. For example, in a character decoration portion formed at a connecting portion of strokes extending vertically and strokes extending horizontally, approximate data is generated at intersections of straight line segments of the strokes.

【0026】そして、基本データP1〜P5が近似デー
タA1で、基本データP6〜P10が近似データA2
で、基本データP11〜P15が近似データA3で、基
本データP16〜P20が近似データA4で近似させら
れる。したがって、前記近似データA1〜A4が近似す
る基本データの数すなわち被近似データ数はいずれも5
個になる。
The basic data P1 to P5 are the approximate data A1 and the basic data P6 to P10 are the approximate data A2.
Then, the basic data P11 to P15 are approximated by the approximate data A3, and the basic data P16 to P20 are approximated by the approximate data A4. Therefore, the number of basic data to which the above-mentioned approximate data A1 to A4 approximate is 5
Become individual.

【0027】図6は近似データ付きのアウトラインフォ
ントデータを解像度の低い出力装置で展開したときの塗
りつぶされた画素を示す図である。図において、A1〜
A4は近似データ、33は垂直に延びるストローク、3
4は文字飾り部分、39は塗りつぶされた画素である。
前記ストローク33の端部における文字飾り部分34
に、つぶれの原因となる画素はない。
FIG. 6 is a diagram showing filled pixels when outline font data with approximate data is developed by an output device having a low resolution. In the figure, A1
A4 is approximate data, 33 is a vertically extending stroke, 3
Reference numeral 4 is a character decoration portion, and 39 is a painted pixel.
Character decoration portion 34 at the end of the stroke 33
, There are no pixels that cause collapse.

【0028】図7は本発明の実施例における他のアウト
ラインフォントの原理を示す図である。図の(a)はア
ウトラインフォントデータの座標位置を示す図、(b)
はアウトラインフォントデータの座標値データを示す図
である。図の(a)において、P1〜P10,P20〜
P22はアウトラインフォントデータの基本データであ
り、黒丸や白丸は基本データP1〜P10,P20〜P
22の座標位置を示す。黒丸は直線分30や曲線分31
の端点となり、白丸は曲線分31上の代表点となる。図
の(a)に示す漢字「口」の右上部分は7個の直線分3
0と1個の曲線分31から成り、ストローク33とスト
ローク35の結合部に文字飾り部分34を持っている。
FIG. 7 is a diagram showing the principle of another outline font in the embodiment of the present invention. The figure (a) is a figure which shows the coordinate position of outline font data, (b)
FIG. 6 is a diagram showing coordinate value data of outline font data. In (a) of the figure, P1-P10, P20-
P22 is basic data of outline font data, and black circles and white circles are basic data P1 to P10 and P20 to P.
22 shows the coordinate position of 22. Black circles are straight line segments 30 and curved line segments 31
And the white circles are the representative points on the curved line segment 31. The upper right part of the Chinese character “mouth” shown in (a) of the figure is 7 straight line segments 3
It is composed of 0 and one curved line segment 31, and has a character decoration portion 34 at the connecting portion of the stroke 33 and the stroke 35.

【0029】そして、図の(b)において、L及びCは
各基本データP1〜P10,P20〜P22の属性を示
し、Lは座標値データが直線分30や曲線分31の端点
のものであることを、Cは座標値データが曲線分31上
の代表点のものであることを表す。図8は解像度の異な
る出力装置で他の文字を展開した場合の比較図である。
図の(a)は解像度の高い出力装置で展開したときの塗
りつぶされた画素を示し、(b)は解像度の低い出力装
置で展開したときの塗りつぶされた画素を示す。
In FIG. 6B, L and C indicate the attributes of the respective basic data P1 to P10 and P20 to P22, and L is the coordinate value data of the end points of the straight line segment 30 and the curved line segment 31. That is, C represents that the coordinate value data is of a representative point on the curve segment 31. FIG. 8 is a comparison diagram when other characters are expanded by output devices having different resolutions.
In the figure, (a) shows the filled pixels when developed by an output device with high resolution, and (b) shows the filled pixels when developed by an output device with low resolution.

【0030】図において、38〜40は塗りつぶされた
画素であり、画素40は文字飾り部分34のつぶれの原
因となる。図の(a)では垂直に延びるストローク33
と水平に延びるストローク35の結合部における文字飾
り部分34がほぼ文字の輪郭に沿って塗りつぶされるの
に対して、(b)では各画素39,40が大きいため、
画素40が塗りつぶされると、文字の輪郭から大きくは
み出してしまい、文字飾り部分34のつぶれが発生す
る。
In the figure, 38 to 40 are filled pixels, and the pixel 40 causes the crushing of the character decoration portion 34. A stroke 33 extending vertically in FIG.
While the character decoration portion 34 in the joint portion of the strokes 35 extending horizontally with is substantially filled along the outline of the character, the pixels 39 and 40 are large in FIG.
When the pixel 40 is filled, the pixel 40 largely protrudes from the outline of the character, and the character decoration portion 34 is crushed.

【0031】そこで、本発明においては、図の(b)に
示すように1文字当たりの画素数が少なくなるような解
像度の出力装置で文字を展開した場合、文字飾り部分3
4で本来の基本データを使用することなく、あらかじめ
座標値データ群に付加された近似データを使用するよう
にしている。図9は本発明の実施例における他のアウト
ラインフォントを示す図である。図の(a)はアウトラ
インフォントデータの座標位置を示す図、(b)はアウ
トラインフォントデータの座標値データを示す図であ
る。
Therefore, in the present invention, when a character is developed by an output device having a resolution such that the number of pixels per character is reduced as shown in FIG.
In 4, the approximate data added in advance to the coordinate value data group is used without using the original basic data. FIG. 9 is a diagram showing another outline font in the embodiment of the present invention. FIG. 7A is a diagram showing coordinate positions of outline font data, and FIG. 8B is a diagram showing coordinate value data of outline font data.

【0032】図の(a)において、P1〜P10,P2
0〜P22はアウトラインフォントデータの基本データ
であり、黒丸や白丸は基本データP1〜P10,P20
〜P22の座標位置を示す。黒丸は直線分30(図7)
や曲線分31の端点となり、白丸は曲線分31上の代表
点となる。また、A1は近似データであり、文字飾り部
分34のつぶれが発生する可能性のある垂直に延びるス
トローク33と水平に延びるストローク35の結合部に
使用される。
In FIG. 3A, P1 to P10, P2
0 to P22 are basic data of outline font data, and black circles and white circles are basic data P1 to P10 and P20.
The coordinate positions of P22 to P22 are shown. Black circle is straight line segment 30 (Fig. 7)
And the end points of the curved line segment 31, and the white circles are representative points on the curved line segment 31. Further, A1 is approximate data, and is used for a connecting portion of a vertically extending stroke 33 and a horizontally extending stroke 35 in which the character decoration portion 34 may be crushed.

【0033】そして、図の(b)において、C,L及び
Aは各基本データP1〜P22及び近似データA1の属
性を示し、Aは座標値データが近似点のものであること
を、Lは座標値データが直線分30や曲線分31の端点
のものであることを、Cは座標値データが曲線分31上
の代表点のものであることを表す。垂直に延びるストロ
ーク33と水平に延びるストローク35の結合部の文字
飾り部分34において、直線分30e,30fの交差す
る点に近似データA1が発生させられる。
In FIG. 6B, C, L and A indicate the attributes of the basic data P1 to P22 and the approximate data A1, A indicates that the coordinate value data is at an approximate point, and L is The coordinate value data is for the end points of the straight line segment 30 and the curve segment 31, and C indicates that the coordinate value data is for the representative point on the curve segment 31. Approximate data A1 is generated at the intersection of the straight line segments 30e and 30f in the character decoration portion 34 of the connecting portion of the stroke 33 extending vertically and the stroke 35 extending horizontally.

【0034】そして、基本データP2〜P9が近似デー
タA1で近似させられる。したがって、該近似データA
1が近似する基本データP2〜P9の数、すなわち被近
似データ数は8個になる。図10は近似データ付きの他
のアウトラインフォントデータを解像度の低い出力装置
で展開したときの塗りつぶされた画素を示す図である。
Then, the basic data P2 to P9 are approximated by the approximate data A1. Therefore, the approximate data A
The number of basic data P2 to P9 that 1 approximates, that is, the number of approximated data becomes 8. FIG. 10 is a diagram showing filled pixels when another outline font data with approximate data is developed by an output device having a low resolution.

【0035】図において、A1は近似データ、33は垂
直に延びるストローク、34は文字飾り部分、35は水
平に延びるストローク、39は塗りつぶされた画素であ
る。前記垂直に延びるストローク33と水平に延びるス
トローク35の結合部における文字飾り部分34に、つ
ぶれの原因となる画素はない。次に、アウトラインフォ
ントデータを使用した文字を展開する際の動作について
説明する。
In the figure, A1 is approximate data, 33 is a vertically extending stroke, 34 is a character decoration portion, 35 is a horizontally extending stroke, and 39 is a painted pixel. The character decoration portion 34 at the joint portion of the vertically extending stroke 33 and the horizontally extending stroke 35 has no pixel that causes collapse. Next, the operation of expanding a character using outline font data will be described.

【0036】図11は本発明の実施例を示す文字の生成
方法のフローチャートである。 ステップS1 まず、展開する文字の大きさと出力装置
の解像度から座標変換値を計算する。 ステップS2 アウトラインフォントデータをアウトラ
インフォントROM7a(図2参照)から一つずつ読み
出す。 ステップS3 アウトラインフォントデータが近似デー
タA1(図1及び9)であるか否かを判断する。近似デ
ータA1である場合はステップS4に、近似データA1
でない場合はステップS7に進む。 ステップS4 近似データA1によって近似される文字
飾り部分34を有するストローク33,35の幅(線
幅)を調べ、該幅が画素の径(高さ)より小さいか否か
を判断する。小さい場合はステップS5に、大きい場合
はステップS6に進む。この場合、垂直に延びるストロ
ーク33と水平に延びるストローク35の結合部に文字
飾り部分34があるため、垂直に延びるストローク33
の幅と水平に延びるストローク35の幅のうち、大きい
方の幅に対して画素の径との比較を行う。したがって、
垂直に延びるストローク33の幅と画素の径が比較され
る。
FIG. 11 is a flow chart of a character generation method showing an embodiment of the present invention. Step S1 First, the coordinate conversion value is calculated from the size of the developed character and the resolution of the output device. Step S2 The outline font data is read from the outline font ROM 7a (see FIG. 2) one by one. Step S3: It is judged whether or not the outline font data is the approximate data A1 (FIGS. 1 and 9). If it is the approximate data A1, the process proceeds to step S4, where the approximate data A1
If not, the process proceeds to step S7. Step S4 The width (line width) of the strokes 33, 35 having the character decoration portion 34 approximated by the approximation data A1 is examined, and it is determined whether or not the width is smaller than the pixel diameter (height). If it is smaller, the process proceeds to step S5, and if it is larger, the process proceeds to step S6. In this case, since there is the character decoration portion 34 at the joint portion of the stroke 33 extending vertically and the stroke 35 extending horizontally, the stroke 33 extending vertically is provided.
And the width of the stroke 35 extending horizontally, the larger one is compared with the pixel diameter. Therefore,
The width of the vertically extending stroke 33 is compared with the pixel diameter.

【0037】例えば、図5及び8に示す画素38のよう
に径が垂直に延びるストローク33の幅より小さい場
合、文字飾り部分34も塗りつぶされ、また、図6及び
10に示す画素39のように径が垂直に延びるストロー
ク33の幅より大きい場合、文字飾り部分34は塗りつ
ぶされない。 ステップS5 近似データA1を使用し、被近似データ
数すなわち8個分の基本データP2〜P9を読み飛ば
し、読出処理を繰り返す。 ステップS6 近似データA1を読み飛ばし、読出処理
を繰り返す。 ステップS7 読出処理が終了したか否かを判断する。
終了した場合はステップS8に進み、終了していない場
合はステップS2に戻る。 ステップS8,S9 読み出されたアウトラインフォン
トデータに対し座標変換(曲線の直線近似を含む。)を
行い、文字の輪郭より内側の画素を塗りつぶして文字を
展開する。
For example, when the diameter is smaller than the width of the vertically extending stroke 33 as in the pixel 38 shown in FIGS. 5 and 8, the character decoration portion 34 is also filled, and as in the pixel 39 shown in FIGS. 6 and 10. If the diameter is larger than the width of the vertically extending stroke 33, the character decoration portion 34 is not filled. Step S5 The approximate data A1 is used, the basic data P2 to P9 corresponding to the number of approximate data, that is, eight basic data are skipped, and the reading process is repeated. Step S6 The approximate data A1 is skipped and the reading process is repeated. In step S7, it is determined whether the reading process is completed.
When it is completed, the process proceeds to step S8, and when it is not completed, the process returns to step S2. Steps S8, S9 Coordinate conversion (including linear approximation of a curve) is performed on the read out outline font data, and pixels inside the outline of the character are painted to develop the character.

【0038】なお、本発明は前記実施例に限定されるも
のではなく、本発明の趣旨に基づいて種々変形すること
が可能であり、これらを本発明の範囲から排除するもの
ではない。
The present invention is not limited to the above-mentioned embodiments, but various modifications can be made based on the spirit of the present invention, and these are not excluded from the scope of the present invention.

【0039】[0039]

【発明の効果】以上詳細に説明したように、本発明によ
れば、文字の生成方法においては、文字の輪郭を直線分
及び曲線分で表し、直線分及び曲線分の両端点、曲線分
上の代表点の座標値データを基本データとして有するア
ウトラインフォントデータに、文字飾り部分の基本デー
タに対応する近似データを付加するようにしている。
As described above in detail, according to the present invention, in the character generation method, the outline of the character is represented by a straight line segment and a curved line segment, and both end points of the straight line segment and the curved line segment and the curved line segment are drawn. The outline font data having the coordinate value data of the representative point as basic data is added with the approximate data corresponding to the basic data of the character decoration portion.

【0040】そして、前記文字飾り部分における画素の
径と前記結合部におけるストロークの幅を比較し、画素
の径が大きく文字飾り部分のつぶれが発生する可能性の
ある場合は、近似データを使用して基本データを読み飛
ばし、画素の径が小さく、文字のつぶれが発生する可能
性のない場合は、基本データを使用して近似データを読
み飛ばす。
Then, the diameter of the pixel in the character decoration portion is compared with the stroke width in the connecting portion. If the diameter of the pixel is large and there is a possibility that the character decoration portion is crushed, approximate data is used. Skip the basic data and skip the approximate data using the basic data when the pixel diameter is small and there is no possibility that the characters are crushed.

【0041】したがって、文字が非常に小さい場合や出
力装置の解像度が低い場合でも、文字のつぶれが発生す
ることなく、印刷品位を維持することができる。さら
に、つぶれが発生する可能性のある文字飾り部分の基本
データを近似データで近似するため、文字の出力時に無
駄な座標変換を行う必要がなく、塗りつぶし処理を削減
することが可能となり、処理の高速化を図ることができ
る。
Therefore, even if the characters are very small or the resolution of the output device is low, the print quality can be maintained without the characters being crushed. Furthermore, since the basic data of the character decoration part that may cause crushing is approximated with approximate data, there is no need to perform unnecessary coordinate conversion when outputting characters, and it is possible to reduce the filling process. The speed can be increased.

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

【図1】本発明の実施例におけるアウトラインフォント
を示す図である。
FIG. 1 is a diagram showing an outline font according to an embodiment of the present invention.

【図2】従来のプリンタに適用された文字生成装置のブ
ロック図である。
FIG. 2 is a block diagram of a character generation device applied to a conventional printer.

【図3】従来のディスプレイに適用された文字生成装置
のブロック図である。
FIG. 3 is a block diagram of a character generation device applied to a conventional display.

【図4】本発明の実施例におけるアウトラインフォント
の原理を示す図である。
FIG. 4 is a diagram showing a principle of an outline font in the embodiment of the present invention.

【図5】解像度の異なる出力装置で文字を展開した場合
の比較図である。
FIG. 5 is a comparison diagram when characters are developed by output devices having different resolutions.

【図6】近似データ付きのアウトラインフォントデータ
を解像度の低い出力装置で展開したときの塗りつぶされ
た画素を示す図である。
FIG. 6 is a diagram showing filled pixels when outline font data with approximate data is expanded by an output device having a low resolution.

【図7】本発明の実施例における他のアウトラインフォ
ントの原理を示す図である。
FIG. 7 is a diagram showing the principle of another outline font in the embodiment of the present invention.

【図8】解像度の異なる出力装置で他の文字を展開した
場合の比較図である。
FIG. 8 is a comparison diagram when other characters are expanded by output devices having different resolutions.

【図9】本発明の実施例における他のアウトラインフォ
ントを示す図である。
FIG. 9 is a diagram showing another outline font in the embodiment of the present invention.

【図10】近似データ付きの他のアウトラインフォント
データを解像度の低い出力装置で展開したときの塗りつ
ぶされた画素を示す図である。
FIG. 10 is a diagram showing filled pixels when another outline font data with approximate data is developed by an output device having a low resolution.

【図11】本発明の実施例を示す文字の生成方法のフロ
ーチャートである。
FIG. 11 is a flowchart of a character generation method according to an embodiment of the present invention.

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

30,30a〜30d 直線分 31 曲線分 33,35 ストローク 34 文字飾り部分 38〜40 画素 P1〜P22 基本データ A1〜A4 近似データ 30, 30a to 30d Straight line segment 31 Curve segment 33, 35 Stroke 34 Character decoration part 38 to 40 pixels P1 to P22 Basic data A1 to A4 Approximate data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ストロークの端部及びストロークとスト
ロークの結合部に文字飾り部分を形成した文字を展開す
る文字の生成方法において、(a)文字の輪郭を直線分
及び曲線分で表し、直線分及び曲線分の両端点、曲線分
上の代表点の座標値データを基本データとして有するア
ウトラインフォントデータに、前記文字飾り部分の基本
データに対応する近似データを付加し、(b)前記文字
飾り部分における画素の径と前記結合部におけるストロ
ークの幅を比較し、(c)比較結果に基づいて、前記基
本データ及び近似データを選択的に使用することを特徴
とする文字の生成方法。
1. A method of generating a character in which a character having a character decoration portion formed at a stroke end portion and a stroke-stroke connecting portion is developed, wherein (a) the contour of the character is represented by a straight line segment and a curved line segment. And outline data having the coordinate value data of the end points of the curved line portion and the representative points on the curved line portion as basic data, and adding approximate data corresponding to the basic data of the character decoration portion, (b) the character decoration portion A method for generating a character, characterized in that the diameter of a pixel in (1) and the width of a stroke in the connecting portion are compared, and (c) the basic data and the approximate data are selectively used based on the comparison result.
JP4324266A 1992-12-03 1992-12-03 Method for generating character Withdrawn JPH06175637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4324266A JPH06175637A (en) 1992-12-03 1992-12-03 Method for generating character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4324266A JPH06175637A (en) 1992-12-03 1992-12-03 Method for generating character

Publications (1)

Publication Number Publication Date
JPH06175637A true JPH06175637A (en) 1994-06-24

Family

ID=18163891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4324266A Withdrawn JPH06175637A (en) 1992-12-03 1992-12-03 Method for generating character

Country Status (1)

Country Link
JP (1) JPH06175637A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202331A (en) * 1995-01-27 1996-08-09 Nec Off Syst Ltd Character generator
JPH09156158A (en) * 1995-12-06 1997-06-17 Nec Corp Printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202331A (en) * 1995-01-27 1996-08-09 Nec Off Syst Ltd Character generator
JPH09156158A (en) * 1995-12-06 1997-06-17 Nec Corp Printer

Similar Documents

Publication Publication Date Title
JPH0281184A (en) Image processor
US6860203B2 (en) Method and apparatus for printing computer generated images
JPH06328785A (en) Method and apparatus for forming character
JP3037854B2 (en) Character generation method and device
JP3009525B2 (en) Vector image drawing equipment
JPH06175637A (en) Method for generating character
JP3211417B2 (en) Page description language processor
JP3146771B2 (en) Font rasterizing apparatus and method
JP3129717B2 (en) Image processing apparatus and image processing method
JPH06175639A (en) Method and device for character generation
JP2854344B2 (en) How to display mixed mode documents
JP3089906B2 (en) Drawing equipment
JP3211591B2 (en) Image processing device
JPH0216068A (en) Image forming device
JP2526004B2 (en) System for incorporating image of graphic system into text processing system and method of incorporating image of graphic system into text processing system
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JPH09277616A (en) Printer and control method therefor
JPH10198333A (en) Outline character drawing device
JP2619931B2 (en) Character processing device and character processing method
JP2715475B2 (en) Graphic output device
JP2710140B2 (en) Output control device
JPH01100590A (en) Display control system
JPS62287371A (en) Graphic output device
JP2000092315A (en) Image processing unit
JPH07239845A (en) External character registering device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307