JPH04350897A - Method and device for generating character - Google Patents

Method and device for generating character

Info

Publication number
JPH04350897A
JPH04350897A JP3125880A JP12588091A JPH04350897A JP H04350897 A JPH04350897 A JP H04350897A JP 3125880 A JP3125880 A JP 3125880A JP 12588091 A JP12588091 A JP 12588091A JP H04350897 A JPH04350897 A JP H04350897A
Authority
JP
Japan
Prior art keywords
straight line
contour
line
straight
character
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
JP3125880A
Other languages
Japanese (ja)
Inventor
Kiyoshi Watanabe
清 渡辺
Fumiko Fujii
藤井 文子
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 JP3125880A priority Critical patent/JPH04350897A/en
Publication of JPH04350897A publication Critical patent/JPH04350897A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent blurring which decreases readability at the time of the generation of a dot pattern of small size from an outline font by judging the overlapping of contour lines and controlling the alteration of the contour lines. CONSTITUTION:This device consists of an input part 101, a pattern storage part 103, an output part 104, and a processing part 102. Character pattern information is stored in the shape of a contour formed of a set of point coordinates and it is judged whether or not straight-line parts of individual contour lines independent in the character pattern overlap with each other. Then the lengths of the two straight lines of the overlap part are compared with each other and its is judged whether the contour which has the short straight-line part contains another contour; when so, it is judged whether or not the segment which is closest to the overlap part of one inside contour is a straight line and parallel to the straight-line part. When it is the parallel straight line, the parallel straight line part is moved so that the parallel straight line of the internal contour overlaps with the overlap part more.

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 and apparatus for storing character font data in the form of a coordinate point array and generating a character pattern.

【0002】0002

【従来の技術】この種の文字パターン発生方法を採用し
た装置の代表的なものとしては、多彩な修飾を施した、
或は多種のサイズの文字を出力できるベクターフォント
或はアウトラインフォント、スケーラブルフォントと呼
ばれる文字フォントデータを搭載したプリンタや表示装
置等がある。
[Prior Art] Typical devices that employ this type of character pattern generation method include
There are also printers and display devices equipped with character font data called vector fonts, outline fonts, and scalable fonts that can output characters of various sizes.

【0003】これらの装置では、基準となる文字データ
の輪郭を、その輪郭を構成する各座標点の絶対座標とし
て持ち、それら座標値を指定出力サイズに応じて拡大ま
たは縮小率に基づいて乗算して、その指定された文字の
出力サイズに対応する輪郭の座標値を算出して、その文
字パターンを求めるようにしていた。
[0003] These devices have the outline of character data as a reference as absolute coordinates of each coordinate point that makes up the outline, and multiply these coordinate values based on an enlargement or reduction ratio according to a specified output size. Then, the coordinate values of the contour corresponding to the specified output size of the character are calculated to obtain the character pattern.

【0004】しかしながら上記従来例は、比較的大きな
サイズの文字の出力には有効であったが、画面表示用な
どの小さなサイズの文字の出力には、最終的に出力され
るべき指定された文字サイズでのドットパターンの格子
点に反映させるときに生ずる量子化誤差、漢字等複雑な
形状の文字パターンに対する絶対的空間の不足等に起因
し、図7の(A)に示すように、本来ならば空いている
はずの空間がなくなってしまうことにより、出力された
文字パターンに「潰れ」た部分が発生し、文字の可読性
が著しく低下するという問題点があった。
[0004] However, although the above conventional example is effective for outputting relatively large-sized characters, it is difficult to output small-sized characters such as those for screen display. Due to the quantization error that occurs when reflecting the size to the grid points of the dot pattern, the absolute lack of space for character patterns with complex shapes such as kanji, etc., as shown in Figure 7 (A), As a result, there is a problem in that the output character pattern has "squashed" parts, which significantly reduces the readability of the characters.

【0005】[0005]

【発明が解決しようとしている課題】本発明は上記従来
例に鑑みてなされたもので、小さなサイズの文字出力の
際、可読性が著しく低下する「潰れ」の部分の発生を防
止した、可読性の高い文字パターン発生方法/装置を提
供することにある。
[Problems to be Solved by the Invention] The present invention has been made in view of the above-mentioned conventional example, and is highly readable by preventing the occurrence of "collapsed" parts that significantly reduce readability when outputting small-sized characters. An object of the present invention is to provide a character pattern generation method/device.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明の文字発生装置/方法は以下の様な手段をとる
。即ち、文字パターン情報を点座標の集合による輪郭の
形状で記憶し、その文字パターン点座標情報を変倍等の
為演算する際、文字パターン内の独立した個別の輪郭線
の直線部分が重複しているかどうかの判断を行い、それ
らが重複している場合、次に重複部分の2直線の長さの
比較を行い、より短い直線部分を持つ輪郭線の内部に1
以上の別の輪郭線が含まれるかどうかの判断を行い、そ
れが含まれている場合、一つ内側の輪郭線の該重複部分
に最も近い線分が直線であり、なおかつ該直線部分1に
対して平行であるかどうかの判断を行い、それが平行直
線である場合、内輪郭線の平行直線部分2が該重複部分
にさらに重複するように該平行直線部分2を移動する処
理を行い、これにより生成された文字パターン輪郭情報
をビットマップ情報に変換する処理手段を行う文字発生
方法及び装置である。
[Means for Solving the Problems] In order to achieve the above object, the character generation device/method of the present invention takes the following measures. In other words, when character pattern information is stored in the shape of an outline based on a set of point coordinates, and the character pattern point coordinate information is calculated for scaling, etc., the straight line portions of independent individual outlines in the character pattern overlap. If they overlap, then compare the lengths of the two straight lines in the overlapping part, and insert one line inside the contour line that has a shorter straight part.
It is determined whether or not another contour line is included, and if it is included, the line segment closest to the overlapping part of the one inner contour line is a straight line, and the straight line part 1 If it is a parallel straight line, perform processing to move the parallel straight line part 2 of the inner contour line so that it further overlaps the overlapping part, The present invention provides a character generation method and apparatus that performs processing means for converting character pattern outline information generated thereby into bitmap information.

【0007】そして、本発明の文字発生装置/方法は文
字コードを入力し、その入力された文字コードを基に、
文字フォントメモリよりその文字コードに対応するフォ
ント情報を読みだし、そのフォント情報よりその入力さ
れた文字コードに対応するビットマップ文字パターンを
高品位に出力させることが可能となる。
The character generating device/method of the present invention inputs a character code, and based on the input character code,
It becomes possible to read out font information corresponding to the character code from a character font memory, and output a high-quality bitmap character pattern corresponding to the input character code from the font information.

【0008】[0008]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

【0009】(文字パターン発生装置の説明(図1))
図1は本発明の一実施例の文字パターン発生装置の概略
構成を示すブロック図である。尚、本発明は、複数の機
器から成るシステムにおいて達成されても良いし、1つ
の機器から成る装置において達成されてもよく、システ
ム或は装置にプログラムを供給することにより、本発明
が達成される場合にも適用されることは言うまでもない
(Description of character pattern generator (FIG. 1))
FIG. 1 is a block diagram showing a schematic configuration of a character pattern generating device according to an embodiment of the present invention. Note that the present invention may be achieved in a system consisting of a plurality of devices, or in a device consisting of one device, and the present invention may be achieved by supplying a program to the system or device. Needless to say, it also applies to cases where

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

【0011】103はパターン記憶情報部で、文字コー
ドに対応するメモリアドレスに、点座標の集合であるそ
の文字の輪郭形状からなる文字パターン情報及び文字属
性情報を予め記憶している。この記憶部103は、例え
ばディスクやリードオンメモリ等の不揮発性メモリで構
成されている。104は処理部102により処理された
文字パターンを表示・出力する出力部であり、信号保持
回路や並直列信号変換回路、さらにはプリンタやディス
プレィ等の印刷部或は表示部を備えている。
Reference numeral 103 denotes a pattern storage information section, which stores in advance character pattern information and character attribute information consisting of the contour shape of the character, which is a set of point coordinates, at a memory address corresponding to the character code. This storage unit 103 is composed of, for example, a nonvolatile memory such as a disk or read-on memory. An output section 104 displays and outputs the character pattern processed by the processing section 102, and includes a signal holding circuit, a parallel/serial signal conversion circuit, and a printing section or display section such as a printer or a display.

【0012】尚、これら入力部101、パターン情報記
憶部103、及び出力部104は処理部102により動
作制御されている。
The input section 101, pattern information storage section 103, and output section 104 are controlled in operation by a processing section 102.

【0013】(パターン記憶情報部の説明(図2、図3
))図3の(A)及び(B)は図1のパターン情報記憶
部103のフォントテーブル12の記憶内容例とフォン
トパターン例との対応関係を示す。
(Explanation of the pattern storage information section (FIGS. 2 and 3)
)) FIGS. 3A and 3B show the correspondence between an example of the stored contents of the font table 12 of the pattern information storage unit 103 in FIG. 1 and an example of a font pattern.

【0014】例えば、図3の(B)に示すような“L”
という文字は、基準点A0の座標値から始まる文字端点
の座標値をベクトル展開した複数の値で表わされる。
For example, "L" as shown in FIG. 3(B)
The character is expressed by a plurality of values obtained by vector expansion of the coordinate values of the character end points starting from the coordinate values of the reference point A0.

【0015】図2は図1のパターン情報記憶部103の
ディレクトリテーブル11の記憶内容例を示す図である
FIG. 2 is a diagram showing an example of the stored contents of the directory table 11 of the pattern information storage section 103 in FIG. 1.

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

【0017】(実施例の説明(図1〜図10))以上の
構成からなる本実施例の動作を、図4のフローチャート
及び図5、図6、図7(A)、(B)、図8、図9の(
A)、(B)、図10の(A)、(B)、を例にとって
説明する。
(Description of the Embodiment (FIGS. 1 to 10)) The operation of this embodiment having the above configuration will be described with reference to the flowchart of FIG. 4 and FIGS. 8. Figure 9 (
A), (B), and (A) and (B) in FIG. 10 will be explained as examples.

【0018】尚、図4に示す制御手順は処理部102内
のROM14に格納され、CPU13により実行される
The control procedure shown in FIG. 4 is stored in the ROM 14 in the processing section 102 and executed by the CPU 13.

【0019】この処理は入力部101より文字コード信
号やパターン発生命令などが処理部102に入力される
ことにより開始される。以下、図5に示す文字「高」の
パターン発生が指示された場合を想定して処理を説明す
る。
This process is started by inputting a character code signal, a pattern generation command, etc. from the input section 101 to the processing section 102. The processing will be described below assuming that generation of the pattern of the character "HIGH" shown in FIG. 5 is instructed.

【0020】まずステップS1で、入力部101から入
力されたデータを受信する。このとき、次のステップS
2で入力データが文字コードか否かの判定を行い、文字
コードであればステップS3へ進む。ステップS3では
入力文字コードを基に、パターン記憶情報部103より
読み出したフォント情報を輪郭線パターンに展開する。 即ち、入力文字コードを基に、ディレクトリテーブル1
1を参照し、その文字コードのフォント情報が記憶され
ているフォントテーブル12のアドレスを読み出し、そ
のフォント情報をフォントテーブル12より読み出す。 こうして読み出されたフォント情報は指定されたサイズ
に基づき処理部102のRAM15内に任意の大きさの
文字パターンの輪郭形状として形成される。このとき、
文字の「潰れ」が発生する可能性がある指定サイズの場
合(例えば「12P」以下等、使用者により選択的に設
定できる構成としても良い。又、解像度により可変とな
るが文字高のドット数、例えば16ドット等により指定
しても良い。)のみ、次に述べるステップS5〜S11
の処理を行う(ステップS4)。本発明の「潰れ」に対
する処理が必要でないサイズの文字をビットマップ化し
た例を図6に示す。もちろんこの場合の指定サイズは任
意の大きさで、予め決定しておいても、そのつど入力し
ても構わない。
First, in step S1, data input from the input section 101 is received. At this time, the next step S
In step S2, it is determined whether the input data is a character code, and if it is a character code, the process advances to step S3. In step S3, the font information read from the pattern storage information section 103 is developed into an outline pattern based on the input character code. That is, based on the input character code, directory table 1
1, reads the address of the font table 12 where the font information of the character code is stored, and reads the font information from the font table 12. The font information read in this way is formed in the RAM 15 of the processing unit 102 as an outline shape of a character pattern of an arbitrary size based on the specified size. At this time,
In the case of a specified size where there is a possibility that the characters will be "collapsed" (for example, "12P" or less, the configuration can be set selectively by the user.Also, the number of dots in the character height may vary depending on the resolution) , for example, may be specified by 16 dots, etc.) only in steps S5 to S11 described below.
The following processing is performed (step S4). FIG. 6 shows an example in which characters of a size that do not require processing for "squashing" according to the present invention are converted into bitmaps. Of course, the designated size in this case is arbitrary, and may be determined in advance or input each time.

【0021】文字の「潰れ」が発生する可能性があるサ
イズの場合、次のステップS5、S6で、独立した個別
の輪郭線の直線部分が重なり合っているかどうかの判断
を各輪郭単位に行う。図8はフォントテーブル12の情
報を図式化した例で、図9の(A)、図10(A)はそ
れをステップS3で輪郭線パターンに展開した例である
。即ち輪郭21aと輪郭22aは本来離れているものに
もかかわらず、ここでは展開を行うエリアの制約上、お
たがいに接してしまっている。このような箇所を特定す
ることができたら、次にステップS7でおたがいの輪郭
線の接している直線の長さを比較し、比較した結果を基
に、ステップS8でより短い直線を持つ輪郭がその内部
に1以上の別の輪郭を包含しているかどうかの判断を行
う。図9(A)で示せば、輪郭21bの直線A1B1と
輪郭22bの直線C1D1の長さを比較し、短いほうの
直線C1D1を含む輪郭22bについて内部に別の輪郭
を含んでいるかどうかを判断する。別の輪郭を含むと判
断された場合、次のステップS9で、重なり合った直線
に最も近い内輪郭線の線分が直線で、なおかつ重なり合
った直線に平行であるかどうかの判断を行う。このとき
内輪郭線の線分がこれら上記の条件を満たしていれば、
その内輪郭線の直線部分を重なり合った直線にさらに重
複するように座標移動を行う。これを処理を図9で示せ
ば、輪郭22bはその内部に輪郭23bを含んでいるの
で、輪郭23bの線分E1F1が前述の重なりの部分A
1B1、C1D1の直線に最も近いので、線分E1F1
が処理の対象となる線分となり、上記条件を満たしてい
るので、図9(B)に示すように直線E2F2は直線A
2B2および直線C2D2に重複するように位置移動さ
れる。図10(A)は図9(A)と同様に処理を行わな
い場合を示しており、輪郭23dが輪郭パターン展開の
結果、輪郭内部の空間がなくなってしまった例を示した
が、処理の結果、同様に図10(B)を得たことを示し
ている。これも、前述と同様の処理により、S8で内包
される他の輪郭線が図10の(A)のE3F3、つまり
輪郭線23dと判断され、それをS10によりC3D3
の方へ移動させ、図10(B)のデータが得られる。
[0021] If the size is such that there is a possibility that the characters will be "squashed", in the next steps S5 and S6, it is determined for each outline whether the straight line portions of independent individual outlines overlap. FIG. 8 is an example in which the information in the font table 12 is diagrammed, and FIGS. 9A and 10A are examples in which it is developed into an outline pattern in step S3. That is, although the outline 21a and the outline 22a are originally separated, they touch each other due to restrictions on the area in which they are developed. Once such a point has been identified, the lengths of the straight lines where the two contours touch each other are compared in step S7, and based on the comparison results, a contour with a shorter straight line is determined in step S8. It is determined whether the contour contains one or more other contours within it. As shown in FIG. 9A, the lengths of the straight line A1B1 of the contour 21b and the straight line C1D1 of the contour 22b are compared, and it is determined whether the contour 22b including the shorter straight line C1D1 contains another contour therein. . If it is determined that another contour is included, in the next step S9, it is determined whether the line segment of the inner contour line closest to the overlapping straight line is a straight line and parallel to the overlapping straight line. At this time, if the line segment of the inner contour line satisfies the above conditions,
The coordinates are moved so that the straight line portion of the inner contour line further overlaps the overlapping straight line. If this process is shown in FIG. 9, the contour 22b includes the contour 23b inside, so the line segment E1F1 of the contour 23b is the overlapping portion A.
Since it is closest to the straight line of 1B1 and C1D1, the line segment E1F1
becomes the line segment to be processed and satisfies the above conditions, so the straight line E2F2 becomes the straight line A as shown in FIG. 9(B).
2B2 and the straight line C2D2. FIG. 10(A) shows a case where no processing is performed as in FIG. 9(A), and an example is shown in which the outline 23d has no space inside the outline as a result of the outline pattern development. As a result, it is shown that FIG. 10(B) was similarly obtained. Also, through the same process as described above, it is determined that the other contour included in S8 is E3F3 in (A) of FIG.
The data shown in FIG. 10(B) is obtained.

【0022】ステップS10終了後、次のステップS1
1に進むが、ステップS8及びステップS9で各々の条
件が満たされていなければ、座標移動の処理は行われず
、ステップS11へ進む。ステップS11ではステップ
S8〜S10の対象となった線分に、処理が終了したこ
とを示すサーチフラグをONにすることを行う。このよ
うにステップS5〜S11は1文字内で対象となる線分
がなくなるまで繰り返し行われる。1文字内で対象とな
る線分がなくなるか、或はステップS4で指定サイズ以
上の場合、輪郭パターンに展開されたデータは次のステ
ップS12において、輪郭内部の塗りつぶし処理が行わ
れ、ビットマップ化される。
After step S10, the next step S1
However, if each condition is not satisfied in step S8 and step S9, the coordinate movement process is not performed and the process advances to step S11. In step S11, a search flag indicating that the processing has been completed is turned on for the line segment targeted in steps S8 to S10. In this way, steps S5 to S11 are repeated until there are no more target line segments within one character. If there are no target line segments within one character, or if the size is greater than or equal to the size specified in step S4, the data developed into the outline pattern is filled in the inside of the outline in the next step S12, and converted into a bitmap. be done.

【0023】図7(A)はステップS5〜S11の処理
を行わないでビットマップ化した文字例であり、輪郭が
接している部分が黒く「潰れ」ているのがわかる。それ
に対して図7(B)はステップS5〜S11の処理を行
ってビットマップ化した同じ文字例である。
FIG. 7A shows an example of a character that has been converted into a bitmap without performing the processing in steps S5 to S11, and it can be seen that the parts where the outlines touch are black and "squashed". On the other hand, FIG. 7(B) shows the same character example converted into a bitmap by performing the processing in steps S5 to S11.

【0024】1文字のビットマップ化が終了すれば、次
のステップS13で次の文字があるかどうかの判断を行
い、次の文字があるならばステップS4へ、ないならば
ステップS2へ戻る。さらにステップS2で受信したデ
ータが文字コードでなければ、ステップS14へ進み、
ビットマップ化したドットパターンをRAM15に記憶
したり、或は表示部や印字部等で構成された出力部10
4に転送したりする通常制御を行い、処理を終了する。
When the bit mapping of one character is completed, it is determined in the next step S13 whether or not there is the next character. If there is the next character, the process goes to step S4; if not, the process returns to step S2. Furthermore, if the data received in step S2 is not a character code, the process advances to step S14;
The bitmap dot pattern is stored in the RAM 15, or the output section 10 consists of a display section, a printing section, etc.
4, and then the process ends.

【0025】以上説明したように当実施例によれば、小
さなサイズの文字であっても、文字パターンが潰れるこ
となく、可読性の高い文字を表示/出力することができ
る。
As explained above, according to this embodiment, even if the characters are small, the characters can be displayed/output with high readability without the character pattern being crushed.

【0026】(レーザビームプリンタの説明(図11)
)本実施例の出力部104に適用可能なレーザビームプ
リンタ240の構成を図11を参照して説明する。 尚、本発明はレーザビームプリンタ240に限定される
ものでなく、バブルジェットプリンタ、インクジェット
プリンタ、熱転写プリンタ等、またCRTや他の方式の
表示装置であっても良いことはいうまでもない。
(Explanation of laser beam printer (FIG. 11)
) The configuration of a laser beam printer 240 applicable to the output unit 104 of this embodiment will be described with reference to FIG. 11. It goes without saying that the present invention is not limited to the laser beam printer 240, and may be applied to bubble jet printers, ink jet printers, thermal transfer printers, etc., as well as CRT and other types of display devices.

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

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

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

【0030】尚、前述した実施例では対象となった線分
のみを座標移動させたが、輪郭全体を座標移動させても
良い。
In the above-described embodiment, only the target line segment was moved in coordinates, but the entire outline may be moved in coordinates.

【0031】[0031]

【発明の効果】以上説明したように、アウトライン形式
の文字データからドットパターンに変換する際に、文字
を構成する線分間の空間が失われて、線分同士が接触し
て発生する「潰れ」を、「潰れ」が発生する輪郭パター
ン上での部分を座標移動することにより「潰れ」の発生
を防止し、可読性の高いドットパターンの文字を出力で
きる効果がある。
[Effects of the Invention] As explained above, when converting character data in outline format to a dot pattern, the space between the line segments that make up the character is lost, and the line segments come into contact with each other, resulting in "collapse". By moving the coordinates of the part on the contour pattern where "collapse" occurs, the occurrence of "collapse" can be prevented and characters with a dot pattern that are highly readable can be output.

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

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

【図2】本実施例のディレクトリテーブル11の内容例
を示す図。
FIG. 2 is a diagram showing an example of the contents of a directory table 11 according to the present embodiment.

【図3】本実施例のフォントテーブル12の内容例とフ
ォントパターンの対応関係を示す説明図。
FIG. 3 is an explanatory diagram showing the correspondence between example contents of the font table 12 and font patterns according to the present embodiment.

【図4】本実施例の文字パターン発生装置の制御を示す
フローチャート。
FIG. 4 is a flowchart showing control of the character pattern generation device of this embodiment.

【図5】本実施例における文字「高」のパターン情報記
憶部103でのフォントパターンを示す図。
FIG. 5 is a diagram showing a font pattern in the pattern information storage unit 103 for the character "high" in this embodiment.

【図6】文字パターン発生装置により文字「高」を本発
明が適用されないサイズでのドットパターンに変換した
例を示す図。
FIG. 6 is a diagram illustrating an example in which the character "taka" is converted into a dot pattern in a size to which the present invention is not applied by a character pattern generator.

【図7】従来の文字パターン発生装置により、文字「高
」をドットパターンに変換した例を示す図、及び本実施
例における文字パターン発生装置により、文字「高」を
ドットパターンに変換した例を示す図。
FIG. 7 is a diagram illustrating an example of converting the character “Ko” into a dot pattern using a conventional character pattern generation device, and a diagram showing an example of converting the character “Ko” into a dot pattern using the character pattern generation device of this embodiment. Figure shown.

【図8】本実施例におけるパターン情報記憶部103で
のフォントパターンの例を示す図。
FIG. 8 is a diagram showing an example of a font pattern in the pattern information storage unit 103 in this embodiment.

【図9】図8に示したフォントパターンを処理部102
において輪郭パターンに展開した際、本発明の実施プロ
セスを示した図。
[FIG. 9] The font pattern shown in FIG. 8 is processed by the processing unit 102.
FIG. 3 is a diagram illustrating the implementation process of the present invention when developed into a contour pattern.

【図10】出力部の一実施例を示すレーザビームプリン
タの内部構造を示す断面図。
FIG. 10 is a sectional view showing the internal structure of a laser beam printer showing an embodiment of the output section.

【図11】出力部の一実施例を示すレーザビームプリン
タの内部構造を示す断面図。
FIG. 11 is a sectional view showing the internal structure of a laser beam printer showing an embodiment of the output section.

【符号の説明】[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 section 102 Processing section 103 Pattern storage information section 104 Output section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  文字パターン情報を点座標の集合によ
る輪郭の形状で記憶した記憶手段と、該記憶手段に記憶
される点座標の変換を行う変換手段と、該変換手段によ
り変換される点座標によって表わされる文字パターン情
報を構成する個別の輪郭線の直線部分が重複しているか
どうかを判断する第1判断手段と、該第1判断手段によ
り重複していると判断された場合、該重複部分の2直線
の長さを比較する比較手段と、該比較手段により、短い
直線部を持つ輪郭線が1以上の輪郭線を包含するか否か
を判断する第2判断手段と、該第2判断手段により、よ
り短い直線部分を持つ輪郭線が1以上の輪郭線を包含す
ると判断された場合、該直線部分にもっとも近い内輪郭
線の線分が直線であり、なおかつ該直線部分に対して平
行であるや否やを判断する第3判断手段と、該第3判断
手段により、該直線部分1にもっとも近い内輪郭線の線
分が直線であり、なおかつ該直線部分1に対して平行で
あると判断された場合、該内輪郭線の該直線部分が該直
線部分に重複するように該直線部分を移動する処理手段
と、を有することを特徴とした文字発生装置。
1. A storage means for storing character pattern information in the shape of a contour based on a set of point coordinates, a conversion means for converting the point coordinates stored in the storage means, and a point coordinate converted by the conversion means. a first determining means for determining whether straight line portions of individual contour lines constituting the character pattern information represented by are overlapping; a comparison means for comparing the lengths of two straight lines; a second determination means for determining, by the comparison means, whether or not a contour line having a short straight line includes one or more contour lines; If it is determined by the means that a contour line with a shorter straight line portion includes one or more contour lines, the line segment of the inner contour line closest to the straight line portion is a straight line and is parallel to the straight line portion. and a third determining means for determining whether the line segment of the inner contour line closest to the straight line portion 1 is a straight line and is parallel to the straight line portion 1. A character generating device comprising processing means for moving the straight line portion of the inner contour line so that the straight line portion overlaps the straight line portion when the inner contour line is determined.
【請求項2】  文字パターン情報を点座標の集合によ
る輪郭の形状で記憶し、該記憶される点座標の変換を行
い、該変換される点座標によって表わされる文字パター
ン情報を構成する個別の輪郭線の直線部分が重複してい
るかどうかを判断し、重複していると判断された場合、
該重複部分の2直線の長さの短い直線部を持つ輪郭線が
1以上の輪郭線を包含するか否かを判断し、その輪郭線
が1以上の輪郭線を包含すると判断された場合、該直線
部分にもっとも近い内輪郭線の線分が直線であり、なお
かつ該直線部分に対して平行であるや否やを判断し、該
直線部分にもっとも近い内輪郭線の線分が直線であり、
なおかつ該直線部分に対して平行であると判断された場
合、該内輪郭線の該直線部分が該直線部分に重複するよ
うに該直線部分を移動することを有することを特徴とし
た文字発生方法。
2. Character pattern information is stored in the shape of a contour based on a set of point coordinates, the stored point coordinates are transformed, and individual contours constituting the character pattern information represented by the transformed point coordinates are stored. Determine whether the straight parts of the lines overlap, and if it is determined that they overlap,
Determine whether a contour line having a short straight line portion in the overlapping portion includes one or more contour lines, and if it is determined that the contour line includes one or more contour lines, determining whether the line segment of the inner contour line closest to the straight line portion is a straight line and parallel to the straight line portion, and determining whether the line segment of the inner contour line closest to the straight line portion is a straight line;
Furthermore, if it is determined that the straight line part is parallel to the straight line part, the straight line part is moved so that the straight line part of the inner contour line overlaps with the straight line part. .
JP3125880A 1991-05-29 1991-05-29 Method and device for generating character Pending JPH04350897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3125880A JPH04350897A (en) 1991-05-29 1991-05-29 Method and device for generating character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3125880A JPH04350897A (en) 1991-05-29 1991-05-29 Method and device for generating character

Publications (1)

Publication Number Publication Date
JPH04350897A true JPH04350897A (en) 1992-12-04

Family

ID=14921213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3125880A Pending JPH04350897A (en) 1991-05-29 1991-05-29 Method and device for generating character

Country Status (1)

Country Link
JP (1) JPH04350897A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526476A (en) * 1992-12-07 1996-06-11 Fujitsu Limited Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
JP2010224514A (en) * 2009-03-24 2010-10-07 Arphic Technology Co Ltd Method for adjusting stroke of font

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526476A (en) * 1992-12-07 1996-06-11 Fujitsu Limited Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
JP2010224514A (en) * 2009-03-24 2010-10-07 Arphic Technology Co Ltd Method for adjusting stroke of font

Similar Documents

Publication Publication Date Title
KR0136735B1 (en) Character generating method
KR970008546B1 (en) Character or graphic processing method
US5537131A (en) Character generating method and apparatus
US5673064A (en) Simplified vector-format pattern generation
JP3486467B2 (en) Image recording apparatus and control method thereof
JPH04350897A (en) Method and device for generating character
JP2935510B2 (en) Output device and output method
JP2918632B2 (en) Character processing method and apparatus
JP3814330B2 (en) Character processing apparatus, character processing method, and memory
JP2771629B2 (en) Character processor
JPH0695647A (en) Method and device for generating character
JP3100784B2 (en) Character processing method and apparatus
JPH0863145A (en) Pattern generating method and device therefor
EP0785523B1 (en) Character pattern generator
JP3143520B2 (en) Character processing apparatus and method
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP3231863B2 (en) Character processing method and device
JPH0651747A (en) Method and device for character pattern generation
JP3320566B2 (en) Character symbol conversion device and printer
JP3171393B2 (en) Character processing method and apparatus
JP3054157B2 (en) Character processing device and character processing method
JP3084817B2 (en) Character output device
JPH08230254A (en) Printer
JPH09230844A (en) Font converting device
JPH051492B2 (en)