JPH0695647A - Method and device for generating character - Google Patents

Method and device for generating character

Info

Publication number
JPH0695647A
JPH0695647A JP4246248A JP24624892A JPH0695647A JP H0695647 A JPH0695647 A JP H0695647A JP 4246248 A JP4246248 A JP 4246248A JP 24624892 A JP24624892 A JP 24624892A JP H0695647 A JPH0695647 A JP H0695647A
Authority
JP
Japan
Prior art keywords
character
pattern
contour
straight line
character pattern
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
JP4246248A
Other languages
Japanese (ja)
Inventor
Fumiko Fujii
文子 藤井
Hidehiko Morinaga
英彦 森永
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 JP4246248A priority Critical patent/JPH0695647A/en
Publication of JPH0695647A publication Critical patent/JPH0695647A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the occurrence of paintout in a character caused by that a character size is small and to output a character pattern with high readability by moving one side straight line part in a position where outlines are superposed each other to the direction of an inner outline and developping it to the character pattern. CONSTITUTION:A directory table 11 is referred to based on an inputted character code, and the font information is read from a font table 12 and formed in a RAM 15 as the outline shape of the character pattern. In this case the paintout in the character occurs often, and then, the length of the straight line A1-B1 of the outline 21b is compared with that of the straight line C1-D1 of the outline 22b, and the entire of outer outline of longer straight line A1-B1 is moved only by 1 bit to the direction of the inner outline to a position shown by E1-F1 on a coordinate. Thus, the outer outline of the outline 21b is moved and becomes the outline 21C. In such a manner, when bit mapping of one character is ended, the dot pattern is stored in the RAM 15, and is transferred to an output part 104.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字フォントデータを座
標点配列の形で記憶し、入力した文字コードに応じて文
字パターンを発生する文字発生方法及び装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generating method and apparatus for storing character font data in the form of coordinate point array and generating a character pattern according to an input character code.

【0002】[0002]

【従来の技術】ベクタフォント等の文字フォント情報を
記憶しておき、入力された文字コードに対応する文字パ
ターンを発生するプリンタやディスプレイ装置等が知ら
れている。これらベクタフォントを記憶した装置では、
基準となる文字の輪郭を、その輪郭を構成する各座標点
の絶対座標の形で記憶している。そして出力サイズが指
定されると、その指定されたサイズに応じた拡大率或い
は縮小率を求め、それら座標値をその拡大率または縮小
率と乗算することにより、その指定された文字の出力サ
イズに対応する文字輪郭の座標値を算出して、その文字
パターンを求めるようにしていた。
2. Description of the Related Art Printers and display devices are known which store character font information such as vector fonts and generate a character pattern corresponding to an input character code. On devices that store these vector fonts,
The contour of the reference character is stored in the form of absolute coordinates of each coordinate point forming the contour. Then, when the output size is specified, the enlargement ratio or reduction ratio according to the specified size is obtained, and the coordinate value is multiplied by the enlargement ratio or reduction ratio to obtain the output size of the specified character. The coordinate value of the corresponding character outline is calculated to obtain the character pattern.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
例に示す方法は、比較的大きなサイズの文字パターンを
出力する場合には有効であったが、画面表示用などのよ
うに小さなサイズの文字パターンを出力する場合には、
以下のような問題があった。即ち、図7(A)に示すよ
うに、本来ならば空いているはずの空間がなくなってし
まうことにより、出力された文字パターンに「潰れ」た
部分が発生し、文字の可読性が著しく低下することがあ
った。これは、最終的に出力されるべき指定された文字
サイズにおけるドットパターンの格子点に、拡大或いは
縮小された座標値を反映させるときに生ずる量子化誤
差、更には漢字等の複雑な形状の文字パターンに対する
絶対的空間の不足等に起因していると考えられる。
However, the method shown in the above conventional example was effective in outputting a character pattern of a relatively large size, but a character pattern of a small size, such as for screen display, is used. When outputting,
There were the following problems. That is, as shown in FIG. 7 (A), since the space that would otherwise be empty is lost, a "crushed" portion occurs in the output character pattern, and the readability of the character is significantly reduced. There was an occasion. This is the quantization error that occurs when the enlarged or reduced coordinate values are reflected on the grid points of the dot pattern in the specified character size that should be finally output, and also characters with complicated shapes such as Chinese characters. It is considered that this is due to lack of absolute space for the pattern.

【0004】本発明は上記従来例に鑑みてなされたもの
で、文字サイズが小さいために生じる文字の潰れの発生
を防止して可読性の高い文字パターンを出力できる文字
発生方法及び装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional example, and provides a character generation method and device capable of preventing character collapse caused by small character size and outputting a highly readable character pattern. It is in.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明の文字発生装置は以下の様な構成を備える。即
ち、文字パターン情報を点座標の集合による輪郭の形状
で記憶した記憶手段と、前記記憶手段の点座標を変倍す
る座標値変換手段と、前記座標値変換手段により変倍さ
れて生成された文字パターン情報において、独立した個
別の輪郭線の直線部分が重複しているかどうかを判断す
る判断手段と、前記判断手段により重複していると判断
された重複部分の輪郭線の直線部分の少なくとも一方を
内輪郭線の方向へ移動する処理手段と、前記処理手段に
より生成された文字パターンの輪郭情報をビットマップ
情報に変換する変換手段とを有する。
In order to achieve the above object, the character generator of the present invention has the following structure. That is, the memory means stores character pattern information in the shape of an outline based on a set of point coordinates, the coordinate value conversion means for scaling the point coordinates of the storage means, and the coordinate value conversion means for scaling the generated value. In the character pattern information, at least one of a judgment means for judging whether or not the straight line portions of the independent individual contour lines overlap, and a straight line portion of the contour line of the overlapping portion judged to overlap by the judgment means. Has a processing means for moving in the direction of the inner contour line, and a conversion means for converting the contour information of the character pattern generated by the processing means into bitmap information.

【0006】上記目的を達成するために本発明の文字発
生方法は以下のような工程を備える。即ち、文字パター
ン情報を点座標の集合による輪郭の形状で記憶してお
き、指定された文字コード及び文字サイズに応じて点座
標を変倍する工程と、前記座標値変換手段により変倍さ
れて生成された文字パターン情報において、独立した個
別の輪郭線の直線部分が重複しているかどうかを判断す
る工程と、重複していると判断された重複部分の輪郭線
の直線部分の少なくとも一方を内輪郭線の方向へ移動す
る工程と、生成された文字パターンの輪郭情報をビット
マップ情報に変換する工程とを有する。
In order to achieve the above object, the character generating method of the present invention comprises the following steps. That is, the step of storing the character pattern information in the shape of the contour based on the set of point coordinates, scaling the point coordinates in accordance with the designated character code and character size, and scaling by the coordinate value conversion means. In the generated character pattern information, at least one of the step of determining whether or not the straight line portions of the individual contour lines that are independent of each other and the straight line portion of the contour line of the overlapping portion that is determined to overlap are included. The method includes a step of moving in the direction of the contour line and a step of converting the contour information of the generated character pattern into bitmap information.

【0007】[0007]

【作用】以上の構成により、文字コードを入力し、その
入力された文字コードを基に、文字フォントメモリより
その文字コードに対応するフォント情報を読出し、その
フォント情報よりその入力された文字コードに対応する
ビットマップ文字パターンを作成する際に、輪郭線同士
の重複している箇所の少なくとも一方の直線部分を内輪
郭線方向へ移動して文字パターンに展開することによ
り、文字の潰れを防止できる。
With the above configuration, a character code is input, the font information corresponding to the character code is read from the character font memory based on the input character code, and the input character code is read from the font information. When creating a corresponding bitmap character pattern, character collapse can be prevented by moving at least one straight line portion of the overlapping contour lines in the inner contour line direction and developing it into a character pattern. .

【0008】[0008]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。 [文字パターン発生装置の説明(図1)]図1は、本発
明の第1実施例の文字パターン発生装置の概略構成を示
すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings. [Description of Character Pattern Generator (FIG. 1)] FIG. 1 is a block diagram showing a schematic configuration of the character pattern generator of the first embodiment of the present invention.

【0009】図1において、101は入力部で、例えば
図示しない外部機器等より出力対象の文字コード信号や
パターン発生命令等を入力する。この入力部101は、
バッファやフリップフロップ等の信号保持回路などを含
んでいる。102は入力部101から入力された文字コ
ード信号やパターン発生命令等に従って、指定されたサ
イズ或いは書体の文字パターンを発生させるための処理
部であり、例えばマイクロプロセッサ等の中央演算処理
装置(CPU)13、CPU13の制御プログラムや各
種データを記憶しているROM14及びCPU13のワ
ークエリアとして使用されるRAM15等を備えてい
る。
In FIG. 1, reference numeral 101 denotes an input unit for inputting a character code signal to be output, a pattern generation command, etc. from an external device (not shown) or the like. This input unit 101 is
It includes signal holding circuits such as buffers and flip-flops. Reference numeral 102 denotes a processing unit for generating a character pattern of a designated size or typeface according to a character code signal input from the input unit 101, a pattern generation command, or the like. For example, a central processing unit (CPU) such as a microprocessor. 13, a ROM 14 storing a control program of the CPU 13 and various data, a RAM 15 used as a work area of the CPU 13, and the like.

【0010】103はパターン情報記憶部で、文字コー
ドに対応するメモリアドレスに、点座標の集合であるそ
の文字の輪郭形状からなる文字パターン情報及び文字属
性情報を予め記憶している。この記憶部103は、例え
ばディスクやリードオンメモリ等の不揮発性メモリで構
成されている。104は処理部102により処理された
文字パターンを表示・出力する出力部であり、信号保持
回路や並直列信号変換回路、更にはプリンタやディスプ
レイ等の印刷部或は表示部を備えている。なお、これら
入力部101、パターン情報記憶部103及び出力部1
04は、処理部102の制御の下に動作している。 [パターン情報の説明(図2、図3)]図2は、本実施
例のパターン情報記憶部103のディレクトリテーブル
11の記憶内容例を示す図である。
A pattern information storage unit 103 stores in advance, at a memory address corresponding to a character code, character pattern information and character attribute information consisting of a contour shape of the character which is a set of point coordinates. The storage unit 103 is composed of a nonvolatile memory such as a disk or a read-on memory. An output unit 104 displays and outputs the character pattern processed by the processing unit 102, and includes a signal holding circuit, a parallel-serial signal conversion circuit, and a printing unit such as a printer or a display or a display unit. The input unit 101, the pattern information storage unit 103, and the output unit 1
04 is operating under the control of the processing unit 102. [Explanation of Pattern Information (FIGS. 2 and 3)] FIG. 2 is a diagram showing an example of stored contents of the directory table 11 of the pattern information storage unit 103 of the present embodiment.

【0011】図3(A)及び(B)は、パターン情報記
憶部103のフォントテーブル12の記憶内容例とフォ
ントパターン例との対応関係を示している。
FIGS. 3A and 3B show a correspondence relationship between an example of stored contents of the font table 12 of the pattern information storage unit 103 and an example of a font pattern.

【0012】例えば、図3(B)に示すような文字
“L”は、基準点A0の座標値から始まる文字端点の座
標値をベクトル展開した複数の値で表わされる。即ち、
点A0の座標は(0,500)であり、点A1の座標は
(100,500)で、以下同様に、点A2は(10
0,100),点A3(400,100),点A4(4
00,0),点A5(0,0)である。
For example, the letter "L" as shown in FIG. 3B is represented by a plurality of values obtained by vector-expanding the coordinate values of the character end points starting from the coordinate value of the reference point A0. That is,
The coordinate of the point A0 is (0,500), the coordinate of the point A1 is (100,500), and so on.
0,100), point A3 (400,100), point A4 (4
00, 0) and point A5 (0, 0).

【0013】また、図2において、文字コードをアドレ
スとするメモリ領域に、パターン情報を記憶しているメ
モリアドレスが記憶されている。このメモリアドレス
は、図3(A)に示すフォントパターンが格納されたフ
ォントテーブルのメモリアドレスを示している。即ち、
文字コード“1”のフォント情報は、フォントテーブル
12の“1000”番地より記憶されており、文字コー
ド“2”のフォント情報は、フォントテーブル12の
“1350”番地より記憶されていることがわかる。
Further, in FIG. 2, a memory area for storing pattern information is stored in a memory area having a character code as an address. This memory address indicates the memory address of the font table in which the font pattern shown in FIG. That is,
It can be seen that the font information of the character code “1” is stored from the address “1000” of the font table 12, and the font information of the character code “2” is stored from the address “1350” of the font table 12. .

【0014】以上の構成からなる第1実施例の文字パタ
ーン発生装置によるパターン発生動作を図4のフローチ
ャート、及び図5、図6、図7(A),(B)、図8、
図9(A),(B)を参照して説明する。尚、図4に示
す制御手順を示すフローチャートを実行する制御プログ
ラムは、処理部102内のROM14に格納されてお
り、この処理はCPU13により実行される。この処理
は入力部101より文字コード信号やパターン発生命令
などが処理部102に入力されることにより開始され
る。以下、図5に示す文字「高」のパターン発生が指示
された場合を想定して処理を説明する。
A pattern generating operation by the character pattern generating apparatus of the first embodiment having the above-mentioned structure is shown in the flow chart of FIG. 4, and FIGS. 5, 6, 7A, 7B, 8A and 8B.
This will be described with reference to FIGS. 9 (A) and 9 (B). A control program for executing the flowchart showing the control procedure shown in FIG. 4 is stored in the ROM 14 in the processing unit 102, and this processing is executed by the CPU 13. This process is started by inputting a character code signal, a pattern generation command, or the like from the input unit 101 to the processing unit 102. Hereinafter, the processing will be described on the assumption that the pattern generation of the character “high” shown in FIG. 5 is instructed.

【0015】まずステップS1で、入力部101から入
力されたデータを受信する。このとき、次のステップS
2で入力データが文字コードか否かの判定を行い、文字
コードであればステップS3へ進む。一方、文字コード
でない時はステップS12に進み、その入力したデータ
に対応する処理を実行する。
First, in step S1, the data input from the input unit 101 is received. At this time, the next step S
In step 2, it is determined whether the input data is the character code. On the other hand, if it is not a character code, the process proceeds to step S12, and the process corresponding to the input data is executed.

【0016】ステップS3では入力した文字コードを基
に、パターン情報記憶部103より読出したフォント情
報を輪郭線パターンに展開する。即ち、入力した文字コ
ードを基にディレクトリテーブル11を参照し、その文
字コードのフォント情報が記憶されているフォントテー
ブル12のアドレスを読出し、そのフォント情報をフォ
ントテーブル12より読み出す。こうして読み出された
フォント情報は指定されたサイズに基づいて、処理部1
02のRAM15内に任意の大きさの文字パターンの輪
郭形状として形成される。このとき、文字の「潰れ」が
発生する可能性がある、指定されたサイズが所定値より
も小さい場合のみ、次に述べるステップS5〜S9の処
理を行う(ステップS4)。
In step S3, the font information read from the pattern information storage unit 103 is developed into a contour line pattern based on the input character code. That is, the directory table 11 is referred to based on the input character code, the address of the font table 12 in which the font information of the character code is stored is read, and the font information is read from the font table 12. The font information read in this way is processed by the processing unit 1 based on the specified size.
No. 02 RAM 15 is formed as a contour shape of a character pattern of an arbitrary size. At this time, the processes of steps S5 to S9 described below are performed only when the designated size is smaller than a predetermined value, which may cause "blurred" characters (step S4).

【0017】図6は、本実施例における「潰れ」に対す
る処理が必要でないと判断されたサイズの文字をビット
マップ化した例を示す図である。尚、この場合、「潰
れ」に対する処理が必要かどうかを判断する所定値は任
意の値であり、予め決定されていても、或いはそのつど
入力して指示しても構わない。
FIG. 6 is a diagram showing an example in which a character of a size determined that the processing for "crush" in the present embodiment is not necessary is bit-mapped. In this case, the predetermined value for determining whether or not the processing for "crush" is necessary is an arbitrary value, and may be predetermined or may be input and instructed each time.

【0018】文字の「潰れ」が発生する可能性があるサ
イズの場合はステップS5に進み、独立した個別の輪郭
線の直線部分が重なりあっている箇所があるかどうか
を、各輪郭線単位に行う。図6で重複する線分が存在す
る時はステップS7に進み、ない時はステップS10に
進んで、そのままビットマップに展開する。
If the size is such that character "crushing" may occur, the process proceeds to step S5, and it is determined for each contour line whether or not there is a portion where the straight line portions of the independent individual contour lines overlap. To do. If there are overlapping line segments in FIG. 6, the process proceeds to step S7. If not, the process proceeds to step S10 and the bit map is directly expanded.

【0019】図8は、フォントテーブル12に記憶され
ているフォント情報を図式化した例を示す図で、図9
(A)は、それを図4のステップS3で輪郭線パターン
に展開した例である。これらの図を参照すると明らかな
ように、図8において輪郭21aと輪郭22aは本来離
れているものにもかかわらず、図9(A)では展開を行
うエリアの制約上、お互いに接してしまっている。
FIG. 8 is a diagram showing an example in which the font information stored in the font table 12 is shown in FIG.
(A) is an example in which it is developed into a contour line pattern in step S3 of FIG. As apparent from these figures, although the contours 21a and 22a are originally separated from each other in FIG. 8, they are in contact with each other due to the restriction of the area to be developed in FIG. 9A. There is.

【0020】このように線分が重複している箇所を特定
できると次にステップS7に進み、お互いの輪郭線の接
している直線の長さを比較し、比較した結果を基にステ
ップS8でより長い直線を持つ輪郭の外輪郭線を1ビッ
ト分だけ内輪郭線の方向へ移動させる。
When the location where the line segments overlap in this way can be specified, the process proceeds to step S7, the lengths of straight lines where the contour lines are in contact with each other are compared, and in step S8 based on the comparison result. The outer contour line of the contour having a longer straight line is moved in the direction of the inner contour line by one bit.

【0021】これを図9(A)(B)の場合で説明する
と、輪郭21bの直線A1B1と輪郭22bの直線C1
D1の長さを比較し、長いほうの直線A1B1の外輪郭
線全体を、内輪郭線方向へ1ビット分だけE1F1で示
される位置まで座標を移動させる。この処理の結果、図
9(B)に示すように、輪郭線21bの外輪郭線が移動
されて輪郭21cとなる。次にステップS9に進み、ス
テップS8の処理の対象となった線分に、処理が終了し
たことを示すサーチグラフをONにして付加する。この
ようにステップS5〜S9で示す処理を、1文字内で対
象となる線分がなくなるまで繰り返し行われる。1文字
内で対象となる線分がなくなるか、或はステップS4で
指定サイズが所定値以上の場合は、輪郭パターンに展開
されたデータは次のステップS10において、輪郭内部
の塗り潰し処理が行われてビットマップ化される。
This will be described with reference to FIGS. 9A and 9B. The straight line A1B1 of the contour 21b and the straight line C1 of the contour 22b.
The lengths of D1 are compared, and the coordinates of the entire outer contour line of the longer straight line A1B1 are moved in the inner contour line direction by one bit to the position indicated by E1F1. As a result of this processing, as shown in FIG. 9B, the outer contour line of the contour line 21b is moved to become the contour 21c. Next, proceeding to step S9, a search graph indicating that the processing is completed is turned on and added to the line segment targeted for the processing of step S8. In this way, the processes shown in steps S5 to S9 are repeated until there is no target line segment in one character. If there is no target line segment in one character, or if the specified size is greater than or equal to the predetermined value in step S4, the data developed into the contour pattern is subjected to the filling process inside the contour in the next step S10. Is converted into a bitmap.

【0022】図7(A)は、指定されたサイズが所定値
以下の時にステップS5〜S9の処理を行わないでビッ
トマップ化した場合を示す例であり、輪郭が接している
部分が黒く「潰れ」ているのがわかる。それに対して図
7(B)は、ステップS5〜S9の処理を行ってビット
マップ化した、同じ文字でかつ同じサイズの文字パター
ン例を示している。
FIG. 7A is an example showing a case where the designated size is equal to or smaller than a predetermined value and the processing is performed without performing the processing of steps S5 to S9, and a bit map is formed. You can see that it is crushed. On the other hand, FIG. 7B shows an example of a character pattern having the same character and the same size, which has been bit-mapped by performing the processing of steps S5 to S9.

【0023】こうしてステップS10で、1文字のビッ
トマップ化が終了すればステップS11に進み、次の文
字があるかどうかを判断し、次の文字があるならばステ
ップS4へ、無い場合はステップS2へ戻る。更に、ス
テップS2で受信したデータが文字コードでなければス
テップS12へ進み、ビットマップ化したドットパター
ンをRAM15に記憶したり、或は表示部やプリンタ部
等で構成された出力部104に転送したりする通常制御
を行い、処理を終了する。
In step S10, if the conversion of one character into a bitmap is completed, the process proceeds to step S11 to determine whether or not there is a next character. If there is the next character, then proceed to step S4. If not, proceed to step S2. Return to. Furthermore, if the data received in step S2 is not a character code, the process proceeds to step S12, and the dot pattern converted into a bit map is stored in the RAM 15 or transferred to the output unit 104 including a display unit, a printer unit and the like. Then, the normal control is performed, and the process ends.

【0024】以上説明したように本実施例によれば、小
さなサイズの文字であっても、文字パターンが潰れるこ
となく可読性の高い文字を表出/出力することができ
る。 <第2実施例>次に、本発明の第2実施例について説明
する。尚、この第2実施例における装置の構成は前述の
第1実施例の場合と同様であるため、それらの説明を省
略する。この第2実施例では、前述の第1実施例ではス
テップS8で、長い輪郭線を有する外輪郭線を内輪郭線
方向へ座標移動していたのに対し、この第2実施例では
短い輪郭線を有する外輪郭線を内輪郭線方向へ座標移動
させる。
As described above, according to this embodiment, it is possible to display / output a highly readable character even if the character has a small size without crushing the character pattern. <Second Embodiment> Next, a second embodiment of the present invention will be described. Since the structure of the device in the second embodiment is the same as that in the first embodiment, the description thereof will be omitted. In the second embodiment, in step S8 in the above-described first embodiment, the outer contour line having the long contour line is coordinate-shifted in the inner contour line direction, whereas in the second embodiment the short contour line is moved. The outer contour line having is moved in the direction of the inner contour line.

【0025】図10は、第2実施例の文字パターン発生
装置における制御処理を示すフローチャートである。こ
のフローチャートと、図4のフローチャートとを比較す
ると明らかなように、図10のステップS28以外の処
理ステップは、図4のステップS1〜S12(ステップ
S8を除く)と全く同じであるため、その異なる部分の
みを説明する。
FIG. 10 is a flow chart showing the control processing in the character pattern generator of the second embodiment. As is clear from a comparison between this flowchart and the flowchart in FIG. 4, the processing steps other than step S28 in FIG. 10 are exactly the same as steps S1 to S12 (excluding step S8) in FIG. Only the part will be explained.

【0026】図11(A)はステップS23で輪郭線パ
ターンに展開した例を示す図である。ステップS4で、
重複している線分を特定することができたらステップS
27に進み、お互いの輪郭線の接している直線の長さを
比較し、その比較した結果を基にステップS28でより
短い直線を持つ輪郭の外輪郭線を1ビット分だけ内輪郭
線の方向へ移動させる。
FIG. 11A is a diagram showing an example of developing the contour line pattern in step S23. In step S4,
If it is possible to identify the overlapping line segments, step S
Proceeding to step 27, the lengths of straight lines which are in contact with each other are compared, and based on the comparison result, in step S28, the outer contour line of the contour having a shorter straight line is directed toward the inner contour line by one bit. Move to.

【0027】図11(A)で示せば、輪郭21dの直線
A3B3と輪郭22dの直線C3D3との長さを比較
し、短いほうの直線C3D3を有する外輪郭線22dの
全体を内輪郭線方向へ1ビット分のE3F3の位置まで
移動させる。この処理の結果、図11(B)に示すよう
に外輪郭線が22eで示すように座標移動される。
As shown in FIG. 11A, the lengths of the straight line A3B3 of the contour 21d and the straight line C3D3 of the contour 22d are compared, and the entire outer contour line 22d having the shorter straight line C3D3 is directed toward the inner contour line. Move to the position of E3F3 for 1 bit. As a result of this processing, the outer contour line is coordinate-moved as indicated by 22e as shown in FIG.

【0028】以上説明したように第2実施例によれば、
小さなサイズの文字であっても、文字パターンの潰れを
発生することなく、可読性の高い文字を表出/出力する
ことができる。 <第3実施例>次に、重複している輪郭線の線分両方を
内輪郭線方向へ座標移動させる第3実施例について、図
12及び図13を参照して説明する。尚、図12と前述
の図10とを比較すると、図10のステップS27及び
ステップS28の処理が、図12ではステップS47に
置き換えられているだけで、他の処理は全く同じであ
る。
As explained above, according to the second embodiment,
It is possible to display / output a highly readable character even if the character is small in size without causing the character pattern to be destroyed. <Third Embodiment> Next, a third embodiment in which both overlapping line segments of the contour line are moved in the coordinate direction toward the inner contour line will be described with reference to FIGS. 12 and 13. When comparing FIG. 12 and FIG. 10 described above, the processes of steps S27 and S28 of FIG. 10 are replaced by step S47 of FIG. 12, and the other processes are exactly the same.

【0029】図13(A)は、前述の図9(A)、図1
1(A)と同様に、ステップS43において輪郭線パタ
ーンに展開した例を示す図である。従って、ステップS
46で重複する線分を特定することができるとステップ
S47に進み、その重複している両方の線の外輪郭線を
共に1ビット分だけ内輪郭線の方向へ移動させる。
FIG. 13A shows the above-mentioned FIG. 9A and FIG.
It is a figure which shows the example developed into the outline pattern in step S43 similarly to 1 (A). Therefore, step S
If the overlapping line segment can be specified at 46, the process proceeds to step S47, and the outer contour lines of both the overlapping lines are moved by 1 bit in the direction of the inner contour line.

【0030】これを図13(A)で示すと、輪郭線21
fの外輪郭線A5B5を内輪郭線方向へ1ドットの位置
E5F5まで移動し、輪郭線22fの外輪郭線C5D5
を内輪郭線方向へ1ドットの位置G5H5まで座標移動
する。この処理の結果、図13(B)に示すように、外
輪郭線が移動され、各輪郭線は21g,22gで示され
るようになる。
As shown in FIG. 13A, the contour line 21
The outer contour line A5B5 of f is moved to the position E5F5 of one dot in the inner contour line direction, and the outer contour line C5D5 of the contour line 22f is moved.
Is moved in the direction of the inner contour line to the position G5H5 of one dot. As a result of this processing, as shown in FIG. 13B, the outer contour lines are moved, and the respective contour lines are indicated by 21g and 22g.

【0031】以上説明したように第3実施例によれば、
小さなサイズの文字であっても、文字パターンが潰れる
ことなく、可読性の高い文字を表出/出力することがで
きる。 <第4実施例>次に、本発明の第4実施例を説明する。
この第4実施例の装置の構成は、前述の実施例と同様で
あるため、それらの説明を省略する。この第4実施例で
は、重複している線分同士を比較し、長い方の線分の外
輪郭線を短い方の輪郭線の長さ分だけ内輪郭線の方向へ
移動させる。以下、この第4実施例を図14及び図15
を参照して説明する。
As described above, according to the third embodiment,
It is possible to display / output a highly readable character without crushing the character pattern even if the character has a small size. <Fourth Embodiment> Next, a fourth embodiment of the present invention will be described.
The configuration of the device of the fourth embodiment is the same as that of the above-mentioned embodiment, so that the description thereof will be omitted. In the fourth embodiment, overlapping line segments are compared with each other, and the outer contour line of the longer line segment is moved in the direction of the inner contour line by the length of the shorter contour line. Hereinafter, the fourth embodiment will be described with reference to FIGS. 14 and 15.
Will be described with reference to.

【0032】図15(A)は、前述の図9(A)、図1
1(A)、図13(A)と同様に、ステップS63で輪
郭線パターンに展開した例である。この展開されたパタ
ーンにおける重複している線分を特定することができる
とステップS67に進み、お互いの輪郭線の接している
直線の長さを比較する。この比較結果に基づいて、ステ
ップS68で、より長い方の直線を有する輪郭線の外輪
郭線を、(短い方の直線を有する輪郭線と重複している
部分+両端1ビット分)だけ内輪郭線の方向へ1ビット
分移動させる。
FIG. 15A shows the above-mentioned FIG. 9A and FIG.
Similar to FIG. 1A and FIG. 13A, this is an example in which the contour line pattern is developed in step S63. If the overlapping line segments in the developed pattern can be identified, the process proceeds to step S67, and the lengths of straight lines which are in contact with each other are compared. Based on this comparison result, in step S68, the outer contour line of the contour line having the longer straight line is only the inner contour (portion overlapping with the contour line having the shorter straight line + 1 bit at both ends). Move one bit in the direction of the line.

【0033】図15(A)を参照して説明すると、輪郭
21hの直線A7B7と、輪郭22hの直線C7D7の
長さを比較し、長い方の直線A7B7の外輪郭線を(直
線C7D7+両端1ビット)分の長さ(G7H7)だけ
内輪郭線方向へ1ビット分(I7J7)の位置まで移動
する。この処理の結果は図15(B)に示されている。
Explaining with reference to FIG. 15A, the lengths of the straight line A7B7 of the contour 21h and the straight line C7D7 of the contour 22h are compared, and the outer contour line of the longer straight line A7B7 is defined as (straight line C7D7 + one bit at both ends). ) Minutes (G7H7) to the position of 1 bit (I7J7) in the inner contour line direction. The result of this processing is shown in FIG.

【0034】以上説明したように第4実施例によれば、
小さなサイズの文字であっても、文字パターンが潰れる
ことなく、可読性の高い文字を表出/出力することがで
きる。 <レーザビームプリンタの説明(図16)>本実施例の
出力部104に適用可能なレーザビームプリンタ240
の構成を図16を参照して説明する。なお、本発明はレ
ーザビームプリンタ240に限定されるものでなく、イ
ンクジェットプリンタ、熱転写プリンタ等、またCRT
や他の方式の表示装置であっても良いことはいうまでも
ない。
As described above, according to the fourth embodiment,
It is possible to display / output a highly readable character without crushing the character pattern even if the character has a small size. <Description of Laser Beam Printer (FIG. 16)> A laser beam printer 240 applicable to the output unit 104 of this embodiment.
The configuration will be described with reference to FIG. The present invention is not limited to the laser beam printer 240, and may be an inkjet printer, a thermal transfer printer, or a CRT.
It goes without saying that a display device of another type may be used.

【0035】図16は実施例のレーザビームプリンタ2
40(以下、LBPと略す)の内部構造を示す断面図
で、このLBP240は、前述した処理部102からの
文字パターンデータを入力して記録紙に印刷することが
できる。
FIG. 16 shows a laser beam printer 2 of the embodiment.
40 is a cross-sectional view showing the internal structure of 40 (hereinafter abbreviated as LBP), and this LBP 240 can input the character pattern data from the processing unit 102 described above and print it on a recording paper.

【0036】図16において、240はLBP本体であ
り、前述の処理部102から供給される文字パターン等
を基に、記録媒体である記録紙上に像を形成する。30
0は操作のためのスイッチおよびLED表示器などが配
されている操作パネル、201はLBP240全体の制
御および処理部12から供給される文字パターン情報等
を解析するプリンタ制御ユニットである。このプリンタ
制御ユニット201は主に文字パターン情報をビデオ信
号に変換してレーザドライバ202に出力する。
In FIG. 16, reference numeral 240 denotes an LBP main body, which forms an image on a recording paper, which is a recording medium, based on the character pattern and the like supplied from the processing unit 102. Thirty
Reference numeral 0 is an operation panel on which switches for operation and LED displays are arranged, and 201 is a printer control unit for controlling the entire LBP 240 and analyzing character pattern information supplied from the processing unit 12. The printer control unit 201 mainly converts character pattern information into a video signal and outputs it to the laser driver 202.

【0037】レーザドライバ202は半導体レーザ20
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザ203から発射されるレーザ光2
04をオン・オフ切替する。レーザ光204は回転多面
鏡205で左右方向に振られて静電ドラム206上を走
査する。これにより、静電ドラム206上には文字パタ
ーンの静電潜像が形成される。この潜像は静電ドラム2
06周囲の現像ユニット207により現像された後、記
録紙に転写される。この記録紙にはカットシートを用
い、カットシート記録紙はLBP240に装着した用紙
カセット208に収納され、給紙ロ−ラ209及び搬送
ロ−ラ210と211とにより装置内に取り込まれて、
静電ドラム206に供給される。
The laser driver 202 is the semiconductor laser 20.
3 is a circuit for driving the laser beam 3, and the laser beam 2 emitted from the semiconductor laser 203 according to the input video signal.
Switch 04 on / off. The laser beam 204 is swung in the left-right direction by the rotary polygon mirror 205 and scans the electrostatic drum 206. As a result, a character pattern electrostatic latent image is formed on the electrostatic drum 206. This latent image is the electrostatic drum 2.
After being developed by the developing unit 207 around 06, it is transferred to the recording paper. A cut sheet is used as this recording sheet, and the cut sheet recording sheet is stored in a sheet cassette 208 mounted on the LBP 240, and is taken into the apparatus by a sheet feeding roller 209 and conveyance rollers 210 and 211.
It is supplied to the electrostatic drum 206.

【0038】尚、本発明は複数の機器から構成されるシ
ステムに適用しても、1つの機器からなる装置に適用し
ても良い。また、本発明はシステム或は装置に、本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0039】以上説明したように本実施例によれば、ア
ウトライン形式の文字データからドットパターンに変換
する際に、文字を構成する線分間の空間が失われて、線
分同士が接触して発生する「潰れ」を防止し、可読性の
高いドットパターンの文字を出力できる効果がある。
As described above, according to the present embodiment, when converting the character data in the outline format into a dot pattern, the space between the line segments forming the character is lost and the line segments come into contact with each other. This has the effect of preventing "crushing" and outputting characters with a highly readable dot pattern.

【0040】[0040]

【発明の効果】以上説明したように本発明によれば、文
字サイズが小さいために生じる文字の潰れの発生を防止
して可読性の高い文字パターンを出力できる効果があ
る。
As described above, according to the present invention, it is possible to prevent a character from being crushed due to a small character size and to output a highly readable character pattern.

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

【図1】本発明の一実施例の文字パターン発生装置の概
略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a character pattern generator according to an embodiment of the present invention.

【図2】本実施例の文字パターン発生装置におけるディ
レクトリテーブルのデータ例を示す図である。
FIG. 2 is a diagram showing an example of data in a directory table in the character pattern generator of the present embodiment.

【図3】本実施例の文字パターン発生装置におけるフォ
ントテーブル内容例とフォントパターンとの対応関係を
説明するための図である。
FIG. 3 is a diagram for explaining a correspondence relationship between a font table content example and a font pattern in the character pattern generation device of the present embodiment.

【図4】本発明の第1実施例の文字パターン発生装置に
おける文字パターン展開処理を示すフローチャートであ
る。
FIG. 4 is a flowchart showing a character pattern expansion process in the character pattern generator of the first embodiment of the present invention.

【図5】本実施例のパターン情報記憶部に記憶された文
字「高」のフォントパターンを示す図である。
FIG. 5 is a diagram showing a font pattern of a character “high” stored in a pattern information storage unit of the present embodiment.

【図6】本実施例の文字パターン発生装置により、文字
「高」を所定のサイズ以上でドットパターンに変換した
例を示す図である。
FIG. 6 is a diagram showing an example in which the character “high” is converted into a dot pattern of a predetermined size or more by the character pattern generator of the present embodiment.

【図7】従来の文字パターン発生装置により文字「高」
をドットパターンに変換した例と、本実施例における文
字パターン発生装置により文字「高」をドットパターン
に変換した例とを対応付けて示す図である。
FIG. 7: Characters “high” by a conventional character pattern generator
It is a figure which shows the example which converted into a dot pattern, and the example which converted the character "high" into a dot pattern by the character pattern generator in a present Example corresponding.

【図8】本実施例のパターン情報記憶部に記憶されてい
るフォントパターンの一例を示す図である。
FIG. 8 is a diagram showing an example of a font pattern stored in a pattern information storage unit of the present embodiment.

【図9】本発明の第1実施例において、図8に示したフ
ォントパターンを輪郭パターンに展開して処理する例を
示す図である。
FIG. 9 is a diagram showing an example in which the font pattern shown in FIG. 8 is expanded into a contour pattern and processed in the first embodiment of the present invention.

【図10】本発明の第2実施例の文字パターン発生装置
における文字パターン展開処理を示すフローチャートで
ある。
FIG. 10 is a flowchart showing a character pattern expansion process in the character pattern generator of the second embodiment of the present invention.

【図11】本発明の第2実施例において、図8に示した
フォントパターンを輪郭パターンに展開して処理する例
を示す図である。
FIG. 11 is a diagram showing an example in which the font pattern shown in FIG. 8 is expanded into a contour pattern and processed in the second embodiment of the present invention.

【図12】本発明の第3実施例の文字パターン発生装置
における文字パターン展開処理を示すフローチャートで
ある。
FIG. 12 is a flow chart showing a character pattern expansion process in the character pattern generator of the third embodiment of the present invention.

【図13】本発明の第3実施例において、図8に示した
フォントパターンを輪郭パターンに展開して処理する例
を示す図である。
FIG. 13 is a diagram showing an example in which the font pattern shown in FIG. 8 is developed into a contour pattern and processed in the third embodiment of the present invention.

【図14】本発明の第4実施例の文字パターン発生装置
における文字パターン展開処理を示すフローチャートで
ある。
FIG. 14 is a flow chart showing a character pattern expansion process in the character pattern generator of the fourth embodiment of the present invention.

【図15】本発明の第4実施例において、図8に示した
フォントパターンを輪郭パターンに展開して処理する例
を示す図である。
FIG. 15 is a diagram showing an example in which the font pattern shown in FIG. 8 is expanded into a contour pattern and processed in the fourth embodiment of the present invention.

【図16】本実施例の文字パターン発生装置の出力部の
一例であるレーザビームプリンタの内部構造を示す断面
図である。
FIG. 16 is a cross-sectional view showing the internal structure of a laser beam printer which is an example of an output unit of the character pattern generator of this embodiment.

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

11 ディレクトリテーブル 12 フォントテーブル 13 CPU 14 ROM 15 RAM 101 入力部 102 処理部 103 パターン情報記憶部 104 出力部 11 Directory Table 12 Font Table 13 CPU 14 ROM 15 RAM 101 Input Unit 102 Processing Unit 103 Pattern Information Storage Unit 104 Output Unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字パターン情報を点座標の集合による
輪郭の形状で記憶した記憶手段と、 前記記憶手段の点座標を変倍する座標値変換手段と、 前記座標値変換手段により変倍されて生成された文字パ
ターン情報において、独立した個別の輪郭線の直線部分
が重複しているかどうかを判断する判断手段と、 前記判断手段により重複していると判断された重複部分
の輪郭線の直線部分の少なくとも一方を内輪郭線の方向
へ移動する処理手段と、 前記処理手段により生成された文字パターンの輪郭情報
をビットマップ情報に変換する変換手段と、 を有することを特徴とする文字発生装置。
1. A storage unit that stores character pattern information in the shape of an outline based on a set of point coordinates, a coordinate value conversion unit that scales the point coordinates of the storage unit, and a scaling value that is scaled by the coordinate value conversion unit. In the generated character pattern information, a determination unit that determines whether or not the straight line portions of the individual contour lines that are independent of each other overlap, and a straight line portion of the contour line of the overlapping portion that is determined to overlap by the determination unit. A character generation device comprising: a processing unit that moves at least one of the two in the direction of the inner contour line; and a conversion unit that converts the contour information of the character pattern generated by the processing unit into bitmap information.
【請求項2】 文字パターン情報を点座標の集合による
輪郭の形状で記憶しておき、指定された文字コード及び
文字サイズに応じて点座標を変倍する工程と、 前記座標値変換手段により変倍されて生成された文字パ
ターン情報において、独立した個別の輪郭線の直線部分
が重複しているかどうかを判断する工程と、 重複していると判断された重複部分の輪郭線の直線部分
の少なくとも一方を内輪郭線の方向へ移動する工程と、 生成された文字パターンの輪郭情報をビットマップ情報
に変換する工程と、 を有することを特徴とする文字発生方法。
2. A step of storing character pattern information in the form of an outline based on a set of point coordinates and scaling the point coordinates according to a designated character code and character size, and a step of changing the coordinate value conversion means. In the character pattern information generated by the multiplication, a step of determining whether or not the straight line portions of the individual contour lines that are independent of each other overlap, and at least the straight line portions of the contour lines of the overlapping portions that are determined to overlap. A character generating method comprising: a step of moving one in the direction of the inner contour line; and a step of converting the contour information of the generated character pattern into bitmap information.
JP4246248A 1992-09-16 1992-09-16 Method and device for generating character Withdrawn JPH0695647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4246248A JPH0695647A (en) 1992-09-16 1992-09-16 Method and device for generating character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4246248A JPH0695647A (en) 1992-09-16 1992-09-16 Method and device for generating character

Publications (1)

Publication Number Publication Date
JPH0695647A true JPH0695647A (en) 1994-04-08

Family

ID=17145709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4246248A Withdrawn JPH0695647A (en) 1992-09-16 1992-09-16 Method and device for generating character

Country Status (1)

Country Link
JP (1) JPH0695647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8520006B2 (en) 2006-10-25 2013-08-27 Canon Kabushiki Kaisha Image processing apparatus and method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8520006B2 (en) 2006-10-25 2013-08-27 Canon Kabushiki Kaisha Image processing apparatus and method, and program

Similar Documents

Publication Publication Date Title
JP2610993B2 (en) Information processing apparatus and method
EP0447126B1 (en) Method and apparatus for generating pattern
JPH06167963A (en) Method and device for generating character pattern
JP3029136B2 (en) Output method and device
JP3486467B2 (en) Image recording apparatus and control method thereof
JPH0695647A (en) Method and device for generating character
JP2918632B2 (en) Character processing method and apparatus
JPH07177348A (en) Printer device
JPH04350897A (en) Method and device for generating character
JPH0877324A (en) Electronic filing device
JP3231863B2 (en) Character processing method and device
JPS62216029A (en) Graphic print control system
JPH08234949A (en) Image processor and drawing method therefor
JP3177034B2 (en) Output information processing method and output information processing apparatus
JP3143520B2 (en) Character processing apparatus and method
JPH0651747A (en) Method and device for character pattern generation
JP3121103B2 (en) Character processing apparatus and method
JP2790198B2 (en) Output control method and device
JPH051492B2 (en)
JPH09277619A (en) Printer and printing method
JP3171393B2 (en) Character processing method and apparatus
JPH06238860A (en) Character pattern generating method
JPH05318829A (en) Device and method of forming image
JPH03129394A (en) Document processor
JP3100784B2 (en) Character processing method and apparatus

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: 19991130