JPH03210598A - character generator - Google Patents

character generator

Info

Publication number
JPH03210598A
JPH03210598A JP2006882A JP688290A JPH03210598A JP H03210598 A JPH03210598 A JP H03210598A JP 2006882 A JP2006882 A JP 2006882A JP 688290 A JP688290 A JP 688290A JP H03210598 A JPH03210598 A JP H03210598A
Authority
JP
Japan
Prior art keywords
character
line
coordinates
coordinate
lines
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
JP2006882A
Other languages
Japanese (ja)
Inventor
Yuichi Horiuchi
雄一 堀内
Hideko Hiuga
日向 秀子
Kazuko Hasegawa
和子 長谷川
Naoki Nakamura
中村 直喜
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2006882A priority Critical patent/JPH03210598A/en
Publication of JPH03210598A publication Critical patent/JPH03210598A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文字の輪郭線の形状を示すデータを。[Detailed description of the invention] [Industrial application field] The present invention uses data indicating the shape of the outline of a character.

アフィン変換等の変換をした後に、ラスター形式のデー
タに変換して、文字のデータを発生する文字発生装置に
係り、特に、文字の品質を向上することに好適な文字発
生装置に関する。
The present invention relates to a character generation device that generates character data by converting it into raster format data after performing conversion such as affine transformation, and particularly relates to a character generation device suitable for improving the quality of characters.

[従来の技術] 従来、この種の装置は、特開昭63−208899号公
報に記載のように、基準となる文字データを、輪郭線上
の座標データの列として持ち、上記輪郭線座標データ列
の中の連続した2つの輪郭線座標データ間の座標値より
、その2つが水平線または垂直線を構成するか否かを判
定し、水平線または垂直線を構成すると判定された場合
、該当する水平線または垂直線の太さの関係を基準文字
データにおける太さの関係と等しくなるよう拡大または
縮小する演算処理を施すことにより、量子化誤差による
バラツキを補正し、拡大または縮小後も、水平線および
垂直線が均一な太さとして高品位に出力することを可能
としていた。
[Prior Art] Conventionally, as described in Japanese Patent Application Laid-Open No. 63-208899, this type of device has character data serving as a reference as a string of coordinate data on a contour line, and the above-mentioned contour line coordinate data string Based on the coordinate values between two consecutive contour line coordinate data in By applying arithmetic processing to enlarge or reduce the thickness relationship of vertical lines to be equal to the thickness relationship in standard character data, variations due to quantization errors are corrected, and even after expansion or reduction, horizontal and vertical lines This made it possible to output high-quality images with uniform thickness.

上記水平線および垂直線の太さの関係と基準文字データ
における太さの関係とを等しくするということは、具体
的には、基準文字データに外接する矩形の左下隅に基準
点を設け、この基準点から各水平線および垂直線への相
対座標が等しくなるよう座標変換をするということであ
る。
Specifically, making the relationship between the thicknesses of the horizontal and vertical lines equal to the thickness relationship in the reference character data means that a reference point is set at the lower left corner of the rectangle circumscribing the reference character data, and the reference point is set at the lower left corner of the rectangle circumscribing the reference character data. This means that the coordinates are transformed so that the relative coordinates from a point to each horizontal line and vertical line are equal.

[発明が解決しようとする課題] 上記従来技術では、発生しようとする文字サイズにおけ
る理論的線幅が、演算処理の量子化の境界付近に近い場
合には、プリンタの特性等により、必ずしも品質の良い
ドツト数の線幅にはならないことがある。
[Problems to be Solved by the Invention] In the above-mentioned conventional technology, if the theoretical line width at the character size to be generated is close to the boundary of quantization in arithmetic processing, the quality may not necessarily be affected due to the characteristics of the printer, etc. The line width may not have a good number of dots.

例えば、正規現像方式の電子写真式プリンタでは、一般
に、印字されるドツトは理論的ドツトの大きさより小さ
くなり、線幅は細くなる傾向がある。また、反転現像方
式の電子写真式プリンタ。
For example, in an electrophotographic printer using a regular development method, the printed dots generally tend to be smaller than the theoretical dot size, and the line width tends to be thinner. It is also an electrophotographic printer that uses a reversal development method.

ワイヤドツトプリンタ等では、一般に、理論的ドツトの
大きさより大きくなり、線幅は太くなる傾向がある。
In wire dot printers and the like, the dot size is generally larger than the theoretical size, and the line width tends to be thick.

また、基準となる文字の輪郭線座標データにバラツキが
ある場合には、変換後の座標データにもバラツキが出て
くるという問題がある。
Furthermore, if there are variations in the outline coordinate data of the reference characters, there is a problem in that the coordinate data after conversion will also vary.

さらに、線を相対値で変換しているため、変換の誤差が
累積すると、線の間隔で誤差を吸収したとしても、文字
の構成が不均一となったり、大きさが不揃いとなったり
して、文字品質を低下させるという問題があった。
Furthermore, since lines are converted using relative values, if conversion errors accumulate, even if the errors are absorbed by the line spacing, the structure of the characters may become uneven or the sizes may become uneven. , there was a problem of deteriorating character quality.

本発明の目的は1発生しようとする文字サイズに応じて
、最適な線幅に整えることにより、文字の品質を向上す
ることにある。
An object of the present invention is to improve the quality of characters by adjusting the line width to an optimum value according to the character size to be generated.

[課題を解決するための手段] 上記目的を達成するために、本発明は、文字の輪郭の形
状を示すデータを、座標変換した後に、ラスター形式で
表された文字データに変換することにより、文字を発生
する文字発生装置において、文字の大きさに対応する水
平線および/または垂直線の太さを示すテーブルを設け
、上記文字の輪郭の形状を示すデータを指定された大き
さになるように座標変換する際に、上記文字の輪郭の形
状を示すデータから水平線および/または垂直線を検出
し、検出した水平線および/または垂直線を構成する2
本の線のうち、一方の線の座標は、座標値を座標変換し
、もう一方の線の座標は、上記一方の線の座標変換後の
座標値からの太さが上記太さを示すテーブルのうちの上
記指定された大きさに対応する太さになるようにする。
[Means for Solving the Problems] In order to achieve the above object, the present invention converts data indicating the shape of the outline of a character into character data expressed in raster format after coordinate transformation. In a character generating device that generates characters, a table is provided that indicates the thickness of horizontal lines and/or vertical lines corresponding to the size of the character, and data indicating the shape of the outline of the character is set to the specified size. When converting coordinates, horizontal lines and/or vertical lines are detected from the data indicating the shape of the outline of the character, and the detected horizontal lines and/or vertical lines are configured.
Among the lines of the book, the coordinates of one line are determined by coordinate transformation, and the coordinates of the other line are determined by the thickness from the coordinate value after coordinate transformation of one of the lines. The thickness corresponds to the size specified above.

また、上記指定された大きさに対応する太さを、上記太
さを示すテーブルで調べる際に、上記指定された大きさ
と上記太さを示すテーブルに太さが示された文字の大き
さとの間に、所定の誤差を認めるようにすることが好ま
しい。
Also, when checking the thickness corresponding to the specified size above in the table showing the thickness, check the difference between the specified size above and the size of the character whose thickness is shown in the table showing the thickness above. It is preferable to allow a predetermined error in between.

また、上記2本の線について、座標値の小さい方の線の
座標を、座標変換前の大きさの17 n画素に相当する
座標分大きい方に移動したり、座標値の大きい方の線の
座標を、座標変換前の大きさの1 / n画素に相当す
る座標分小さい方に移動したりすることができる。
In addition, regarding the above two lines, the coordinates of the line with the smaller coordinate value can be moved to the larger one by the coordinates equivalent to 17 n pixels of the size before coordinate conversion, or the coordinates of the line with the larger coordinate value can be moved It is possible to move the coordinates smaller by a coordinate amount corresponding to 1/n pixels of the size before coordinate conversion.

なお、上記文字の輪郭の形状を示すデータに、水平線ま
たは垂直線であることを示すデータが付加されていれば
、上記検出する処理を省くことができる。
Note that if data indicating that the character is a horizontal line or a vertical line is added to the data indicating the shape of the outline of the character, the above-mentioned detection process can be omitted.

なお、上記太さを示すテーブルは1例えば、出力装置に
出力実験した結果に基づいて作成するなど、出力装置の
特性に応じて可変であるか、または、ユーザにより変更
可能であることが好ましい。
Note that it is preferable that the table indicating the thickness is variable depending on the characteristics of the output device, such as created based on the results of an experiment of outputting to the output device, or can be changed by the user.

また、上記指定された大きさが所定の大きさより大きい
場合には、上記2本の線のうち、一方の線の座標は、絶
対値を座標変換し、もう一方の線の座標は、上記一方の
線の座標からの相対座標を座標変換し、上記もう一方の
座標値を座標変換した値に加えるようにすることができ
る。
In addition, if the specified size is larger than the predetermined size, the coordinates of one of the two lines will be converted to the absolute value, and the coordinates of the other line will be changed to one of the two lines. The relative coordinates from the coordinates of the line can be coordinate-transformed, and the other coordinate value can be added to the coordinate-transformed values.

さらに1本発明は1文字の輪郭の形状を示すデータを、
座標変換した後に、ラスター形式で表された文字データ
に変換することにより1文字を発生する文字発生装置に
おいて、上記文字の輪郭の形状を示すデータを指定され
た大きさになるように座標変換する際に、上記文字の輪
郭を示すデータから水平線および/または垂直線を検出
し、検出した水平線および/または垂直線を構成する2
本の線のうち、一方の線の座標は、座標値を座標変換し
、もう一方の線の座標は、上記一方の線の座標からの相
対座標を座標変換し、上記もう一方の座標値を座標変換
した値に加えるようにすることもできる。
Furthermore, the present invention provides data indicating the shape of the outline of one character,
In a character generator that generates one character by converting the coordinates into character data expressed in raster format, the coordinates are converted so that the data indicating the shape of the outline of the character has the specified size. 2, which detects a horizontal line and/or vertical line from the data indicating the outline of the character, and configures the detected horizontal line and/or vertical line.
Among the lines of the book, the coordinates of one line are determined by coordinate transformation, and the coordinates of the other line are determined by coordinate transformation of the relative coordinates from the coordinates of one line, and the coordinates of the other line are transformed. It can also be added to the coordinate transformed values.

なお、水平線および垂直線として検出されなかった線の
座標は、1/n画素に相当する座標分細くなる方向に移
動することが好ましい。
Note that it is preferable that the coordinates of lines that are not detected as horizontal lines or vertical lines move in a direction that becomes thinner by the coordinates corresponding to 1/n pixels.

[作用] 上記太さを示すテーブルは、予め出力装置に出力実験し
た結果に基づいて作成しであるため、品質は、演算によ
るものとは異なり、最適になっている。
[Effect] The table indicating the thickness is created based on the results of experiments in which the thickness is output to the output device in advance, so the quality is optimal, unlike when it is calculated.

また、検出した水平線および/または垂直線を構成する
線のうち、一方の線の座標は、座標値そのものを座標変
換し、さらに、もう一方の線の座標は、上記一方の線の
座標変換後の座標値からの太さが上記太さを示すテーブ
ルに示された太さになるようにするので、従来のように
、基準となる輪郭線座標データと相対的に座標変換を行
う場合に比べ、太さのバラツキをなくし、より品質のよ
い文字を発生することができる。
In addition, among the detected horizontal lines and/or vertical lines, the coordinates of one line are determined by coordinate transformation of the coordinate values themselves, and the coordinates of the other line are determined after the coordinate transformation of the above-mentioned one line. Since the thickness from the coordinate value of is set to the thickness shown in the table showing the thickness above, compared to the conventional case where coordinate conversion is performed relative to the reference outline coordinate data, , it is possible to eliminate variations in thickness and generate characters of better quality.

また、上記2本の線のうち、一方の線の座標は、座標値
そのものを座標変換し、もう一方の座標は、上記一方の
座標からの相対座標を座標変換し、上記もう一方の座標
値を座標変換した値に加えるようにする場合は、太さは
、上記太さを示すテーブルによらず、基準となる文字デ
ータにおける太さと相対的なものとなるが、一方の線の
座標を、座標値そのものを座標変換しているので、相対
的な変換の基準点となる座標値を、この座標変換した線
の座標とすることができる。
Also, among the two lines mentioned above, the coordinates of one line are obtained by converting the coordinate value itself, and the coordinates of the other line are obtained by converting the relative coordinates from one of the above coordinates, and the coordinates of the other line are obtained by converting the relative coordinates from one of the above coordinates. is added to the coordinate-converted value, the thickness will be relative to the thickness in the standard character data, regardless of the table showing the thickness above, but if the coordinates of one line are Since the coordinate values themselves are transformed, the coordinate values that serve as the reference point for relative transformation can be the coordinates of the line that has undergone this coordinate transformation.

従って、従来の場合に比べ、基準点が文字の一部である
ので、より品質のよい文字を発生することができる。ま
た、上記太さを示すテーブルに太さが示されていない文
字の大きさを指定された場合にも、このようにして処理
すれば良いので、任意の文字データを処理することがで
きる。
Therefore, compared to the conventional case, since the reference point is a part of the character, it is possible to generate characters of higher quality. Furthermore, even when a character size whose thickness is not indicated in the thickness table is specified, processing can be performed in this manner, so that arbitrary character data can be processed.

なお、水平線および/または垂直線を構成する2本の線
は、例えば、その太さ、長さ、重なりおよび塗りつぶさ
れる側を調べることにより求めることができる。
Note that the two lines constituting the horizontal line and/or the vertical line can be determined, for example, by checking their thickness, length, overlap, and side to be filled.

[実施例コ 以下、本発明の一実施例を図面により説明する。[Example code] An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例の文字発生装置の構成を示し
たブロック図である。
FIG. 1 is a block diagram showing the configuration of a character generator according to an embodiment of the present invention.

図中、1は文字発生装置、2はプロセッサ、3はホスト
インタフェース、4はホストコンピュータ、5はRAM
、6は文字パターンメモリ、7はプログラムROM、8
はエンジンインタフェース、9はビットマツプメモリ、
10はDMAコントローラ、11はプリンタエンジン、
12はパスである。
In the figure, 1 is a character generator, 2 is a processor, 3 is a host interface, 4 is a host computer, and 5 is a RAM.
, 6 is character pattern memory, 7 is program ROM, 8
is the engine interface, 9 is the bitmap memory,
10 is a DMA controller, 11 is a printer engine,
12 is a pass.

第1図において、ホストコンピュータ4は、印字すべき
文字の文字コードおよび印字に必要な制御コードを、文
字発生装置1に転送する。上記文字コードおよび制御コ
ードは、ホストインタフェース3を介して、バス12に
転送され、プロセッサ2は、プログラムROM7に記憶
されたプログラムのアルゴリズムに従って、ホストコン
ピュータ4から転送された文字コードおよび制御コード
を、解釈して処理を行う。
In FIG. 1, a host computer 4 transfers the character code of the character to be printed and the control code necessary for printing to the character generator 1. The character code and control code are transferred to the bus 12 via the host interface 3, and the processor 2 processes the character code and control code transferred from the host computer 4 according to the algorithm of the program stored in the program ROM 7. Interpret and process.

RAM5は、プロセッサ2が処理を行うために必要なデ
ータを、−時的に記憶させるために使用するメモリであ
る。文字パターンメモリ6は、印字すべき文字の輪郭線
の形状を示す輪郭線座標データが記憶されているメモリ
である。
The RAM 5 is a memory used to temporarily store data necessary for the processor 2 to perform processing. The character pattern memory 6 is a memory in which outline coordinate data indicating the shape of the outline of a character to be printed is stored.

ビットマツプメモリ9は、印字すべき紙の位置に対応す
るドツトのデータを記憶するメモリであり、上記文字パ
ターンメモリ6に記憶された輪郭線座標データを、プロ
グラムROM7に記憶されたプログラムのアルゴリズム
に従って、プロセッサ2が変換したドツトデータを記憶
したり、または、ホストコンピュータ4から図形を印字
するコードが転送された場合には、該図形に対応するド
ツトに変換したデータを記憶するのに使用する。
The bitmap memory 9 is a memory that stores dot data corresponding to the position on the paper to be printed, and processes the outline coordinate data stored in the character pattern memory 6 according to the algorithm of the program stored in the program ROM 7. It is used to store dot data converted by the processor 2, or, when a code for printing a figure is transferred from the host computer 4, to store data converted into dots corresponding to the figure.

DMAコントローラ10は、ビットマツプメモリ9に記
憶されたドツトデータを、プリンタエンジン11が印字
をするのに同期したタイミングで読み出す制御をする。
The DMA controller 10 controls reading out the dot data stored in the bitmap memory 9 at a timing synchronized with the printing by the printer engine 11.

エンジンインタフェース8は、ビットマツプメモリ9か
ら出力されたドツトデータを、プリンタエンジン11に
転送したり、または、プリンタエンジン11に対して、
プロセッサ2の状態を示す情報を受は取ったりするため
の回路である。
The engine interface 8 transfers the dot data output from the bitmap memory 9 to the printer engine 11, or
This is a circuit for receiving information indicating the status of the processor 2.

第2図は文字パターンメモリ6に輪郭線座標データとし
て記憶される文字パターンの一例を示した説明図である
。
FIG. 2 is an explanatory diagram showing an example of a character pattern stored in the character pattern memory 6 as outline coordinate data.

文字パターンは1輪郭線で表されており、その輪郭線は
、PoからP2゜で示す屈曲点の座標値を結ぶ線である
。
The character pattern is represented by one contour line, and the contour line is a line connecting the coordinate values of the bending point indicated by P2° from Po.

第3図は第2図に示す文字パターンの文字パターンメモ
リ6におけるデータ内容を示す説明図である。
FIG. 3 is an explanatory diagram showing the data contents of the character pattern shown in FIG. 2 in the character pattern memory 6.

第3図において1例えば、点P、は、X座標およびX座
標がCxot yo)で表わされ、以下、Plが(Xz
* yx) 、Pgが(Xz* )’i) ”’という
ように、文字の輪郭をたどるような順序で格納されてい
る。
In FIG. 3, for example, the point P is represented by the X coordinate and the X coordinate is Cxot yo), and below Pl is
*yx) and Pg are stored in an order that traces the outline of the character, such as (Xz*)'i)''.

1つの閉じた輪郭のデータの切目は、ループ終了コード
という、座標値と区別できる、例えば。
The data cut of one closed contour can be distinguished from the coordinate value, for example, by the loop end code.

負の値で示されている6また、文字データの最後には、
文字データの終了を示すための文字終了コードが格納さ
れている6 文字パターンデータを印字する場合には、ホストコンピ
ュータ4により指示された大きさに拡大、縮小または斜
体変形などのアフィン変換をした後に、ドツトデータに
変換し、ビットマツプメモリ9へ転送する。
6 shown as a negative value. Also, at the end of the character data,
A character end code is stored to indicate the end of character data.6 When character pattern data is printed, it is printed after performing affine transformation such as enlargement, reduction, or italic transformation to the size specified by the host computer 4. , converted to dot data, and transferred to the bitmap memory 9.

本実施例では、指示された文字の大きさに対応した水平
線および垂直線の太さを示すテーブルを設けており、輪
郭線座標データから検出した水平線または垂直線にアフ
ィン変換を施すときに、この太さを示すテーブルに従っ
た太さになるように変換するようにしている。なお、太
さを示すテーブルは文字パターンメモリ6に記憶される
ものとする。
In this example, a table is provided that shows the thickness of horizontal lines and vertical lines corresponding to the specified character size, and this table is used when performing affine transformation on horizontal lines or vertical lines detected from outline coordinate data. I am trying to convert it so that the thickness follows the table that shows the thickness. It is assumed that the table indicating the thickness is stored in the character pattern memory 6.

第4図は文字パターンメモリ6に記憶されている太さテ
ーブルの一部を示す説明図である。
FIG. 4 is an explanatory diagram showing a part of the thickness table stored in the character pattern memory 6.

テーブルの先頭には、文字データをデザインするときに
用いる線幅の種類数30が記憶されている。文字は、こ
のテーブルで規定する幅のみを使用し、それ以外の幅の
線を文字のデザインに使用しない。それに続くデータ列
の数は種類数30に等しい。
At the top of the table, 30 types of line widths used when designing character data are stored. For characters, use only the width specified in this table, and do not use lines of other widths in the character design. The number of data strings that follow is equal to the number of types (30).

第5図は文字パターンデータから水平線および垂直線デ
ータを検出し、線幅を補正しながら縮小処理する部分の
フローチャートである。
FIG. 5 is a flowchart of the part in which horizontal line and vertical line data are detected from character pattern data and reduction processing is performed while correcting the line width.

以下、第5図を中心に、本実施例の処理内容を説明する
。
The processing contents of this embodiment will be explained below with reference to FIG.

なお、処理は、水平線に関しても垂直線に関しても、座
標が入れ代わるのみで全く同様であるので、以下は、水
平線の処理についてのみ説明する。
Note that the processing is exactly the same for horizontal lines and vertical lines, only the coordinates are interchanged, so only the processing for horizontal lines will be described below.

まず、プロセッサ2は、ホストコンピュータ4から指示
された文字コードに従って、文字パターンメモリ6から
文字パターンデータを読み出す。
First, the processor 2 reads character pattern data from the character pattern memory 6 according to the character code instructed by the host computer 4.

ここで、文字パターンデータを読み出す際に、プロセッ
サ2は、次の2条件により、水平線を検出し、検出した
水平線の座標値と文字パターンメモリ6に記憶されてい
る位置とを、RAM5に一時的に記憶する(ステップ5
01)。
Here, when reading the character pattern data, the processor 2 detects a horizontal line under the following two conditions, and temporarily stores the coordinate value of the detected horizontal line and the position stored in the character pattern memory 6 in the RAM 5. (Step 5)
01).

条件1:隣合うy座標と値が等しい。Condition 1: Adjacent y coordinates and values are equal.

条件2:条件1を満たす場合、X座標値の差が第4図に
示す太さテーブルに示されて いる太さの最大値より大きい。
Condition 2: When condition 1 is satisfied, the difference in the X coordinate values is greater than the maximum thickness value shown in the thickness table shown in FIG.

第2図の文字の場合、PlP、、 P3P、、 P、P
、。
In the case of the characters in Figure 2, PlP,, P3P,, P, P
,.

P工、P□as PL@P2Qe pasptsが検出
される。
P engineering, P□as PL@P2Qe paspts are detected.

次に、プロセッサ2は、検出されRAM5に記憶された
水平線の中から、2本の線のペアを、次の3条件より求
める(ステップ502)。
Next, the processor 2 finds a pair of two lines from among the horizontal lines detected and stored in the RAM 5 based on the following three conditions (step 502).

条件1:2本の線の距離(座標値の差)は、太さテーブ
ルに示す太さの±5の範囲に 入っている。
Condition 1: The distance between the two lines (difference in coordinate values) is within ±5 of the thickness shown in the thickness table.

ここで、5ドツトの許容値を設けたのは、本実施例では
、文字パターンのデザインに数メツシュの誤差がある場
合にも、線幅を正しく処理できるようにするためである
。
Here, the reason why the tolerance value of 5 dots is provided is that in this embodiment, even if there is an error of several meshes in the design of the character pattern, the line width can be processed correctly.

なお、太さテーブルに示す太さとは、第4図の線幅(元
データ)31,42.53である。
Note that the thickness shown in the thickness table is the line width (original data) of 31, 42.53 in FIG. 4.

条件2:2本の線のX座標値に共通の部分がある。言い
替えると、一方の線のX座標 の最小値が他方のX座標の最大値より 小さい。
Condition 2: There is a common part in the X coordinate values of the two lines. In other words, the minimum value of the X coordinate of one line is smaller than the maximum value of the other X coordinate.

条件3:2本の線のX座標値が大きい方の座標の文字パ
ターンメモリ6内の記憶順序 が、右から左、すなわち、X座標が大 きい方が先でX座標の小さい方が後に なる順序に格納されている。逆に、X 座標値が小さい方の線の文字パターン メモリ6内の記憶順序が左から右であ る。
Condition 3: The storage order in the character pattern memory 6 of the coordinates of the two lines with the larger X coordinate value is from right to left, that is, the one with the larger X coordinate is first and the one with the smaller X coordinate is later. is stored in. Conversely, lines with smaller X coordinate values are stored in the character pattern memory 6 in the order from left to right.

この条件3により、本実施例では、文字パターンの塗り
つぶすべき部分の外側の輪郭は半時針目り、内側の輪郭
は時計回りに記憶されているため、2本線の上下の関係
が正しく認識できる。
According to this condition 3, in this embodiment, the outer outline of the part to be filled in in the character pattern is stored in the half-hour mark, and the inner outline is stored in the clockwise direction, so that the vertical relationship between the two lines can be correctly recognized.

プロセッサ2は、このようにして求めた水平線を構成す
る2本線のペアを、RAM5に記憶する。
The processor 2 stores in the RAM 5 the pair of two lines forming the horizontal line determined in this manner.

第2図の文字の場合、P、 P、とplp、、 p□P
4とP IP x −P 2 @ P x。とP工、P
工st PisPzeとP17P1.が、それぞれ、水
平線を構成する2本の線のペアとして検出される。
In the case of the characters in Figure 2, P, P, and plp,, p□P
4 and P IP x −P 2 @ P x. and P. Eng., P.
Engineering st PisPze and P17P1. are detected as a pair of two lines, each forming a horizontal line.

なお、予め、輪郭線座標データと共に、線のペアである
ことを示す情報を格納しておくと、上述した線のペアを
検出をする処理を省くことができ、処理の高速化を図る
ことができる。
Note that if information indicating that the line is a pair is stored in advance along with the contour line coordinate data, the process of detecting the line pair described above can be omitted and the processing speed can be increased. can.

次に、プロセッサ2は、再び、文字パターンメモリ6の
印字しようとしている文字の先頭から輪郭線座標データ
を読み出しながら、縮小処理をしていく。
Next, the processor 2 again performs the reduction process while reading the outline coordinate data from the beginning of the character to be printed in the character pattern memory 6.

すなわち、1つの点の座標値を読み出して、予め求めた
水平線であるかを判定し、水平線の下側の場合には、座
標値に1 / n画素分の値を加算し、加算された値を
縮小処理する(ステップ503゜504.505)。
That is, read the coordinate value of one point, determine whether it is a previously determined horizontal line, and if it is below the horizontal line, add the value of 1 / n pixels to the coordinate value, and calculate the added value. is reduced (steps 503, 504, and 505).

ここで、nの値が2のときは、理論的ドツトの大きさと
プリンタで印字されたドツトの大きさとが同じ場合であ
り、例えば、反転現像方式の電子写真式プリンタ、ワイ
ヤドツトプリンタ等のドツトの大きさが理論的ドツトの
大きさより大きくなるプリンタでは、nの値を1.5等
の2より小さい値とすることにより、線幅を元のデザイ
ンされた太さに近付けることができる。本実施例では、
nの値を2であるとして説明する。
Here, when the value of n is 2, it means that the theoretical dot size and the dot size printed by the printer are the same. For printers whose dot size is larger than the theoretical dot size, by setting the value of n to a value smaller than 2, such as 1.5, the line width can be brought closer to the original designed thickness. In this example,
The following explanation assumes that the value of n is 2.

本実施例で、座標値に1/2画素分の値を加算するのは
、全縮小処理が終了した後に行うラスター変換処理にお
いて、1/2画素分多く塗りつぶされるのを防ぐためで
ある。
In this embodiment, the reason why the value of 1/2 pixel is added to the coordinate value is to prevent 1/2 pixel from being filled in more than 1/2 pixel in the raster conversion process performed after the full reduction process is completed.

また、水平線の上側である場合には、ペアとなる線の下
側の座標に1/2画素分の値を加算し、加算された値を
縮小処理した値に、第4図に示す太さテーブルから第6
図のフローチャートに示す処理により得た値を加えて処
理を終了する(ステップ506,507)。
In addition, if it is above the horizontal line, add the value of 1/2 pixel to the coordinates below the paired line, and reduce the added value to the value shown in Figure 4. 6th from the table
The value obtained by the process shown in the flowchart is added and the process ends (steps 506 and 507).

なお、水平線および垂直線以外の線の座標については、
例えば、第711に示すように、1/2画素分内側に移
動する処理や曲線を滑らかにする処理を行ったり、また
は、単に縮小処理を行うだけでも良い(ステップ508
)。
Regarding the coordinates of lines other than horizontal lines and vertical lines,
For example, as shown in step 711, processing to move inward by 1/2 pixel, processing to smooth the curve, or simply reduction processing may be performed (step 508).
).

水平線以外の線の座標について、上述のような1/2画
素分内側に移動する処理や曲線を滑らかにする処理を行
えば、より高品位な文字を発生することができる。また
、水平線以外の線は、水平線および垂直線より線幅のバ
ラツキが目立たないので、単に縮小処理を行うだけでも
良く、この場合には、処理の高速化を優先することがで
きる。
By performing processing for moving the coordinates of lines other than the horizontal line inward by 1/2 pixel or smoothing the curves as described above, higher quality characters can be generated. Furthermore, since variations in line width for lines other than horizontal lines are less noticeable than for horizontal lines and vertical lines, it is sufficient to simply perform reduction processing, and in this case, priority can be given to speeding up the processing.

これらの処理された値を記憶する(ステップ509)と
共に、以上の処理を文字終了コードまで繰返したら、ラ
スター変換処理を行う(ステップ510)。
After storing these processed values (step 509) and repeating the above process up to the character end code, raster conversion processing is performed (step 510).

第6図は太さテーブルから線の太さを得る処理のフロー
チャートを示したものである。
FIG. 6 shows a flowchart of the process of obtaining the line thickness from the thickness table.

まず、カウンタiを初期値1に設定しくステップ611
)、次に、カウンタiに対応した線幅(元データ)と検
出した線幅とを比較する(ステップ602)、差が±5
以内でない場合には、カウンタiに1加算して、再び比
較処理を行う(ステップ603,604)。
First, step 611 sets the counter i to an initial value of 1.
), then the line width (original data) corresponding to counter i is compared with the detected line width (step 602), and the difference is ±5.
If it is not within the range, 1 is added to the counter i and the comparison process is performed again (steps 603 and 604).

第4図に示す場合には、線幅(元データ)31゜42.
53の順序で比較をしていく。
In the case shown in FIG. 4, the line width (original data) is 31°42.
The comparison will be made in the order of 53.

差が±5以内である場合には、カウンタjを初期値1に
設定する(ステップ6o5)。次に、印字する文字のサ
イズと、カウンタjに対応した太さテーブルの文字サイ
ズとを比較する(ステップ606)、太さテーブルの文
字サイズの方が小さい場合には、カウンタjに1加算し
て、再び比較処理を行う(ステップ607,608)。
If the difference is within ±5, counter j is set to an initial value of 1 (step 6o5). Next, the size of the character to be printed is compared with the character size in the thickness table corresponding to counter j (step 606). If the character size in the thickness table is smaller, 1 is added to counter j. Then, the comparison process is performed again (steps 607 and 608).

第4図の場合は、例えば、i=2、すなわち、線幅(元
データ)42に示す太さに対しては、文字サイズ43,
45,47,49の順序で比較をしていく。
In the case of FIG. 4, for example, i=2, that is, for the thickness shown in line width (original data) 42, the character size is 43,
Comparisons are made in the order of 45, 47, and 49.

印字する文字サイズより太さテーブルの文字サイズの方
が大きい場合には、太さテーブルから。
If the font size in the thickness table is larger than the font size to be printed, use the thickness table.

該太さテーブルの文字サイズに対応する線幅を得る(ス
テップ609)。
The line width corresponding to the character size in the thickness table is obtained (step 609).

太さテーブルは、印字する最大の文字サイズまでの全て
の線幅に対応するテーブルが必要であるが、100ドツ
ト程度以上の文字サイズにおいては、丸めの誤差による
1ドツトの差は目立ちにくくなるため、線幅補正の必要
は無く、テーブルには100ドツト程度までの線幅に関
する情報が格納されていれば良い。
A thickness table that corresponds to all line widths up to the maximum font size to be printed is required, but for font sizes of approximately 100 dots or more, the difference of 1 dot due to rounding errors becomes less noticeable. , there is no need for line width correction, and the table only needs to store information regarding line widths up to about 100 dots.

第4図において、例えば、線IN(変換後)52には、
負の数が格納されており、線幅の値として負の数が得ら
れた場合には、線幅は、テーブルの値ではなく演算によ
り求める(ステップ610゜611)。
In FIG. 4, for example, the line IN (after conversion) 52 has
If a negative number is stored and a negative number is obtained as the value of the line width, the line width is determined by calculation instead of the table value (steps 610 and 611).

また、1つの文字発生装置に複数の印字特性の異なるプ
リンタが接続されている場合には、そのプリンタの特性
に合わせてテーブルを書き換えることにより、最適の印
字品質を得ることができる。
Further, when a plurality of printers with different printing characteristics are connected to one character generating device, optimal printing quality can be obtained by rewriting the table according to the characteristics of the printer.

例えば、印字するドツトが細くなる傾向のプリンタにお
いては、線幅が太くなるようにテーブルを書き換える。
For example, in a printer that prints dots that tend to become thinner, the table is rewritten so that the line width becomes thicker.

さらに、テーブルの書き換えデータを数種類の中から選
択できるような制御コードを設けて、ホストコンピュー
タ4から転送された制御コードに従って、テーブルを書
き換えることにより、ホストコンピュータ4を操作する
ユーザの好みに合わせた太さの文字を印刷することがで
きる。
Furthermore, a control code is provided that allows the user to select table rewriting data from among several types, and by rewriting the table according to the control code transferred from the host computer 4, the host computer 4 can be adjusted to suit the user's preference. You can print text of different thickness.

(以下余白) 第8図は本発明の他の実施例の文字発生装置の構成を示
したブロック図である。
(The following is a blank space.) FIG. 8 is a block diagram showing the configuration of a character generator according to another embodiment of the present invention.

第1の実施例では、プリンタ等の印字装置に適用した例
を説明したが、本実施例では、CRT等の表示装置に適
用した実施例を説明する。
In the first embodiment, an example in which the present invention is applied to a printing device such as a printer has been described, but in this embodiment, an example in which the present invention is applied to a display device such as a CRT will be described.

第8図において、81は文字発生装置、82はプロセッ
サ、83はキーボードインタフェース、84はキーボー
ド、85はRAM、86は文字パターンメモリ、87は
バス、88はプログラムROM、89はCRTコントロ
ーラ、9oはCRTデイスプレィ、91はビットマツプ
メモリである。
In FIG. 8, 81 is a character generator, 82 is a processor, 83 is a keyboard interface, 84 is a keyboard, 85 is a RAM, 86 is a character pattern memory, 87 is a bus, 88 is a program ROM, 89 is a CRT controller, and 9o is a CRT display 91 is a bitmap memory.

キーボード84は1表示すべき文字の文字コードおよび
表示文字の大きさ等の表示に必要な制御コードを、文字
発生装置81に転送する。上記文字コードおよび制御コ
ードは、キーボードインタフェース83を介して、バス
87に転送され、プロセッサ82は、プログラムRQM
88に記憶されたプログラムのアルゴリズムに従って、
キーボード84から転送された文字コードおよび制御コ
ードを、解釈して処理を行う。
The keyboard 84 transfers the character code of the character to be displayed and the control code necessary for displaying the size of the displayed character, etc. to the character generator 81. The character code and control code are transferred to the bus 87 via the keyboard interface 83, and the processor 82 executes the program RQM
According to the algorithm of the program stored in 88,
The character code and control code transferred from the keyboard 84 are interpreted and processed.

RAM85は、プロセッサ82が処理を行うために必要
なデータを、−時的に記憶させるために使用するメモリ
である0文字パターンメモリ86は、表示すべき文字の
輪郭線の形状を示す輪郭線座標データが記憶されている
メモリである。
The RAM 85 is a memory used to temporarily store data necessary for the processor 82 to perform processing. The zero character pattern memory 86 stores outline coordinates indicating the shape of the outline of the character to be displayed. A memory in which data is stored.

ビットマツプメモリ91は、表示すべきCRTデイスプ
レィ上の位置に対応するドツトのデータを記憶するメモ
リであり1文字パターンメモリ86に記憶された輪郭線
座標データを、プログラムROM88に記憶されたプロ
グラムのアルゴリズムに従って、プロセッサ82が変換
したドツトデータを記憶させるのに使用する。
The bitmap memory 91 is a memory for storing dot data corresponding to the position on the CRT display to be displayed. It is used to store the dot data converted by processor 82 according to the following.

CRTコントローラ89は、ビットマツプメモリ91に
記憶されたドツトデータをCRTデイスプレィ9oに表
示するために一定の周期のタイミングで読み出す制御、
CRTデイスプレィ90に同期信号を送る制御、プロセ
ッサ82が指定したビットマツプメモリ91のアドレス
にデータを書き込む制御、さらに、CRTデイスプレィ
9oに表示するための読み出しとプロセッサの読み出し
または書き込みとが重なった場合の調停制御を行う。
The CRT controller 89 controls reading out the dot data stored in the bitmap memory 91 at a fixed cycle timing in order to display it on the CRT display 9o.
Control to send a synchronization signal to the CRT display 90, control to write data to the address of the bitmap memory 91 specified by the processor 82, and control to control when reading for display on the CRT display 9o overlaps with reading or writing by the processor. Perform arbitration control.

文字パターンメモリ86からデータを読み出して文字の
ドツトデータを作成する処理は、第1の実施例と同様で
ある。
The process of reading data from the character pattern memory 86 and creating character dot data is the same as in the first embodiment.

以上説明したように、本実施例では、水平線および垂直
線の太さを、文字サイズに応じて規定し。
As explained above, in this embodiment, the thickness of horizontal lines and vertical lines is defined according to the character size.

これを太さテーブルに記憶しておく。そして、輪郭線座
標データから検出した水平線または垂直線にアフィン変
換を施すときに、この太さテーブルから、印字または表
示する文字サイズに対応した線の太さを取出し、この太
さになるように変換するので、品質は、計算によるもの
とは異なり、最適なものとなる。
Store this in the thickness table. When performing affine transformation on horizontal or vertical lines detected from contour line coordinate data, the line thickness corresponding to the character size to be printed or displayed is extracted from this thickness table, and the line thickness is adjusted to this thickness. Because of the conversion, the quality is optimal, unlike calculation.

また、水平線および垂直線は、単に2つの隣り合った座
標値により検出するだけではなく、その太さ、長さ1重
なりおよび塗りつぶされる側を調べることにより、内側
が塗りつぶし領域となるような2本の線のベアを検出し
、このペアごとに処理を行っているので、誤検出するこ
とがなくなる。
In addition, horizontal lines and vertical lines are not only detected by two adjacent coordinate values, but also by checking their thickness, length, overlap, and side to be filled. Since the bare line of the line is detected and processing is performed for each pair, there will be no false detection.

さらに、水平線および垂直線の太さを得る際に、誤差を
考慮して、幅を持たせてから太さテーブルとの対応を持
たせているので、誤った太さを得ることがない。
Furthermore, when obtaining the thicknesses of horizontal and vertical lines, errors are taken into consideration and the widths are given before being matched with the thickness table, so that incorrect thicknesses are not obtained.

上記実施例は、太さテーブルに記憶される線幅データを
用いて、印字または表示する文字サイズに対応した線の
太さを決定している。しかし、本発明は、これに限定さ
れない0例えば、線幅を、太さテーブルを用いずに、演
算により求めることができる。
In the above embodiment, the line width data stored in the thickness table is used to determine the line thickness corresponding to the character size to be printed or displayed. However, the present invention is not limited to this. For example, the line width can be determined by calculation without using a thickness table.

演算により求める例としては1文字の輪郭の形状を示す
データを指定された大きさになるように座標変換する際
に、上記文字の輪郭を示すデータから水平線および/ま
たは垂直線を検出し、検出した水平線および/または垂
直線を構成する2本の線のうち、一方の線の座標は、座
標値を座標変換し、もう一方の線の座標は、上記一方の
線の座標からの相対座標を座標変換し、上記もう一方の
座棚値を座標変換した値に加えることによって行なう文
字発生装置がある。
An example of calculating by calculation is when converting the coordinates of data representing the shape of the outline of a character to a specified size, detecting horizontal lines and/or vertical lines from the data representing the outline of the character. Of the two lines that make up the horizontal and/or vertical lines, the coordinates of one line are converted into coordinates, and the coordinates of the other line are relative coordinates from the coordinates of the above one line. There is a character generating device that performs coordinate transformation and adds the other shelf value to the coordinate transformed value.

この場合にも、水平線および垂直線として検出されなか
った線の座標は、1 / n画素に相当する座標分細く
なる方向に移動することが好ましい。
In this case as well, it is preferable that the coordinates of lines that are not detected as horizontal lines or vertical lines move in a direction that becomes thinner by the coordinates corresponding to 1/n pixels.

なお、上記各実施例では、水平線および垂直線について
太さの調整を行なっているが、いずれか一方のみとして
もよい。
Note that in each of the above embodiments, the thickness of the horizontal line and the vertical line is adjusted, but only one of them may be adjusted.

また、上記各実施例の文字発生装置は、独立の装置とし
て用いることができるが、これに限られず、情報処理装
置の出力部に組み込んで用いる構成としてもよい。
Moreover, although the character generating device of each of the above embodiments can be used as an independent device, the present invention is not limited to this, and may be configured to be used by being incorporated into an output section of an information processing device.

さらに、本発明は、上記各実施例を、文字を元データか
ら縮小する場合に適用して、拡大する場合については、
従来の計算よる方式を適用する構成としてもよい。また
、本発明は、太さを太さテーブルを用いて求める実施例
を文字縮小に適用し、計算により求める実施例を元デー
タからの文字拡大に適用する構成とすることもできる。
Furthermore, the present invention applies the above embodiments to the case where characters are reduced from the original data, and when enlarging the characters,
A configuration may be adopted in which a conventional calculation method is applied. Further, the present invention may be configured such that the embodiment in which the thickness is determined using a thickness table is applied to character reduction, and the embodiment in which thickness is determined by calculation is applied to character enlargement from original data.

[発明の効果] 以上説明したように本発明によれば、発生しようとする
文字サイズにおける論理的線幅が演算処理の量子化の境
界付近に近い場合にも、プリンタの特性等に合った品質
の良いドツト数の線幅にすることができる。
[Effects of the Invention] As explained above, according to the present invention, even when the logical line width in the character size to be generated is close to the boundary of quantization in arithmetic processing, quality that matches the characteristics of the printer can be achieved. It is possible to achieve a line width with a good number of dots.

また、元となる文字の輪郭線座標データにバラツキがあ
る場合にも、変換後の線幅を均一に揃えることができる
。
Further, even if there are variations in the outline coordinate data of the original characters, the line widths after conversion can be made uniform.

このように、本発明は、発生しようとする文字サイズに
応じて、最適な線幅に整え、品質を向上することができ
るという効果がある。
In this way, the present invention has the advantage that it is possible to adjust the line width to the optimum line width according to the character size to be generated and to improve quality.

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

第1図は本発明の一実施例の文字発生装置の構成を示し
たブロック図、第2図は文字パターンメモリに輪郭線座
標データとして記憶される文字パターンの一例を示した
説明図、第3図は第2図に示す文字パターンの文字パタ
ーンメモリにおけるデータ内容を示す説明図、第4図は
太さテーブルの一部を示す説明図、第5図は線幅補正処
理および縮小処理のフローチャート、第6図は太さテー
ブルから線幅を得る処理のフローチャート、第7図は曲
線補正処理の例を示す説明図、第8図は本発明の他の実
施例の文字発生装置構成を示したブロック図である。 1.81・・・文字発生装置、2,82・・・プロセッ
サ、3・・・ホストインタフェース、4・・・ホストコ
ンピュータ、5,85・・・RAM、6,86・・・文
字パターンメモリ、7.88・・・プログラムROM、
8・・・エンジンインタフェース、9.91・・・ビッ
トマツプメモリ、10・・・DMAコントローラ、11
・・・プリンタエンジン、12.87・・・バス、83
・・・キーボードインタフェース、84・・・キーボー
ド、89・・・CRTコントローラ、90・・・CRT
デイスプレィ。
FIG. 1 is a block diagram showing the configuration of a character generator according to an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of a character pattern stored as outline coordinate data in a character pattern memory, and FIG. FIG. 4 is an explanatory diagram showing the data contents in the character pattern memory of the character pattern shown in FIG. 2, FIG. 4 is an explanatory diagram showing a part of the thickness table, FIG. 5 is a flow chart of line width correction processing and reduction processing, FIG. 6 is a flowchart of the process of obtaining line width from the thickness table, FIG. 7 is an explanatory diagram showing an example of curve correction processing, and FIG. 8 is a block diagram showing the configuration of a character generator according to another embodiment of the present invention. It is a diagram. 1.81...Character generator, 2,82...Processor, 3...Host interface, 4...Host computer, 5,85...RAM, 6,86...Character pattern memory, 7.88...Program ROM,
8... Engine interface, 9.91... Bitmap memory, 10... DMA controller, 11
... Printer engine, 12.87 ... Bus, 83
...keyboard interface, 84...keyboard, 89...CRT controller, 90...CRT
Display.

Claims (1)

【特許請求の範囲】 1、文字の輪郭の形状を示すデータを、座標変換した後
に、ラスター形式で表された文字データに変換すること
により、文字を発生する文字発生装置において、 文字の大きさに対応する水平線および/または垂直線の
太さを示すテーブルを設け、上記文字の輪郭の形状を示
すデータを指定された大きさになるように座標変換する
際に、上記文字の輪郭の形状を示すデータから水平線お
よび/または垂直線を検出し、検出した水平線および/
または垂直線を構成する2本の線のうち、一方の線の座
標は、座標値を座標変換し、もう一方の線の座標は、上
記一方の線の座標変換後の座標値からの太さが上記太さ
を示すテーブルのうちの上記指定された大きさに対応す
る太さになるようにすることを特徴とする文字発生装置
。 2、上記指定された大きさに対応する太さを、上記太さ
を示すテーブルで調べる際に、上記指定された大きさと
、上記太さを示すテーブルに太さが示された文字の大き
さとの間に、所定の誤差を認めることを特徴とする請求
項1記載の文字発生装置。 3、上記2本の線について、座標値の小さい方の線の座
標を、座標変換前の大きさの1/n画素に相当する座標
分大きい方に移動することを特徴とする請求項1記載の
文字発生装置。 4、上記2本の線について、座標値の大きい方の線の座
標を、座標変換前の大きさの1/n画素に相当する座標
分小さい方に移動することを特徴とする請求項1記載の
文字発生装置。 5、上記文字の輪郭の形状を示すデータに、水平線また
は垂直線であることを示すデータが付加されていること
を特徴とする請求項1記載の文字発生装置。 6、上記太さを示すテーブルは、出力装置の特性に応じ
て可変であるか、または、ユーザにより変更可能である
ことを特徴とする請求項1または2記載の文字発生装置
。 7、上記指定された大きさが所定の大きさより大きい場
合には、上記2本の線のうち、一方の線の座標は、絶対
値を座標変換し、もう一方の線の座標は、上記一方の線
の座標からの相対座標を座標変換し、上記もう一方の座
標値を座標変換した値に加えることを特徴とする請求項
1記載の文字発生装置。 8、文字の輪郭の形状を示すデータを、座標変換した後
に、ラスター形式で表された文字データに変換すること
により、文字を発生する文字発生装置において、 上記文字の輪郭の形状を示すデータを指定された大きさ
になるように座標変換する際に、上記文字の輪郭を示す
データから水平線および/または垂直線を検出し、検出
した水平線および/または垂直線を構成する2本の線の
うち、一方の線の座標は、座標値を座標変換し、もう一
方の線の座標は、上記一方の線の座標からの相対座標を
座標変換し、上記もう一方の座標値を座標変換した値に
加えることを特徴とする文字発生装置。 9、水平線および垂直線として検出されなかった線の座
標は、1/n画素に相当する座標分細くなる方向に移動
することを特徴とする請求項1または8記載の文字発生
装置。 10、請求項1、2、3、4、5、6、7、8または9
記載の文字発生装置を出力部に組み込んだ情報処理装置
。
[Claims] 1. In a character generation device that generates characters by converting data indicating the shape of the outline of a character into character data expressed in raster format after coordinate conversion, the size of the character is determined by: A table is provided that indicates the thickness of the horizontal line and/or vertical line corresponding to Detects horizontal lines and/or vertical lines from the data shown and displays the detected horizontal lines and/or vertical lines.
Or, among the two lines that make up the vertical line, the coordinates of one line are obtained by converting the coordinate values, and the coordinates of the other line are the thickness from the coordinate values of the above one line after the coordinate conversion. A character generating device characterized in that the character has a thickness corresponding to the specified size in the table indicating the thickness. 2. When checking the thickness corresponding to the size specified above in the table showing the thickness, check the size specified above and the size of the character whose thickness is shown in the table showing the thickness above. 2. The character generating device according to claim 1, wherein a predetermined error is allowed between the characters. 3. Regarding the two lines, the coordinates of the line with the smaller coordinate value are moved to the larger one by a coordinate amount corresponding to 1/n pixels of the size before coordinate conversion. character generator. 4. The coordinates of the line with the larger coordinate value of the two lines are moved to the smaller one by a coordinate amount corresponding to 1/n pixels of the size before coordinate conversion. character generator. 5. The character generating device according to claim 1, wherein the data indicating the shape of the outline of the character includes data indicating that the character is a horizontal line or a vertical line. 6. The character generating device according to claim 1 or 2, wherein the table indicating the thickness is variable depending on the characteristics of the output device or can be changed by the user. 7. If the specified size is larger than the predetermined size, the absolute value of the coordinates of one of the two lines is transformed, and the coordinates of the other line are converted to the coordinates of the other line. 2. The character generating device according to claim 1, wherein the relative coordinates from the coordinates of the line are coordinate-converted, and the other coordinate value is added to the coordinate-converted value. 8. By converting the data indicating the shape of the outline of the character into character data expressed in raster format after coordinate conversion, the data representing the shape of the outline of the character can be converted into character data in the character generator that generates the character. When converting the coordinates to the specified size, a horizontal line and/or vertical line is detected from the data indicating the outline of the character, and one of the two lines that make up the detected horizontal line and/or vertical line is , the coordinates of one line are obtained by converting the coordinate values, and the coordinates of the other line are the values obtained by converting the relative coordinates from the coordinates of the one line above, and converting the other coordinate value. A character generator characterized by adding. 9. The character generating device according to claim 1, wherein the coordinates of lines that are not detected as horizontal lines or vertical lines move in a direction that becomes thinner by a coordinate corresponding to 1/n pixels. 10.Claim 1, 2, 3, 4, 5, 6, 7, 8 or 9
An information processing device incorporating the character generator described above in an output section.
JP2006882A 1990-01-16 1990-01-16 character generator Pending JPH03210598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006882A JPH03210598A (en) 1990-01-16 1990-01-16 character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006882A JPH03210598A (en) 1990-01-16 1990-01-16 character generator

Publications (1)

Publication Number Publication Date
JPH03210598A true JPH03210598A (en) 1991-09-13

Family

ID=11650607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006882A Pending JPH03210598A (en) 1990-01-16 1990-01-16 character generator

Country Status (1)

Country Link
JP (1) JPH03210598A (en)

Similar Documents

Publication Publication Date Title
JP3238580B2 (en) Thicker text generator
JP2876942B2 (en) Data converter
JP3037854B2 (en) Character generation method and device
JP2634851B2 (en) Image processing device
JP3034140B2 (en) Character generation method and device
JP2910101B2 (en) Vector font data component point correction device
JP3024479B2 (en) Data converter
JPH01303489A (en) Character output system
JP2985275B2 (en) Character generation method of outline font
JP2629098B2 (en) Character arrangement correction method
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
KR940001106B1 (en) Line width correction method and device
JP2841829B2 (en) Data converter
JP2000211204A (en) Image processing device
JP2782752B2 (en) Character pattern output device
JP3055306B2 (en) Data output device
JP3039214B2 (en) Data converter
JPH10336454A (en) Image data processing device
JP2841631B2 (en) Data converter
JP2861201B2 (en) Data converter
JP3055327B2 (en) Data converter
JP3085396B2 (en) Vector font development method and device
JP3567728B2 (en) Image processing method and apparatus
JPH0511736A (en) Character pattern output device
JPH0424689A (en) Image processor