JP2956705B2 - Data converter - Google Patents
Data converterInfo
- Publication number
- JP2956705B2 JP2956705B2 JP1130933A JP13093389A JP2956705B2 JP 2956705 B2 JP2956705 B2 JP 2956705B2 JP 1130933 A JP1130933 A JP 1130933A JP 13093389 A JP13093389 A JP 13093389A JP 2956705 B2 JP2956705 B2 JP 2956705B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- axis
- outline
- convex
- coordinate
- 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.)
- Expired - Fee Related
Links
- 238000006243 chemical reaction Methods 0.000 claims description 32
- 238000013500 data storage Methods 0.000 claims description 3
- 230000015654 memory Effects 0.000 description 17
- 238000007639 printing Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 11
- 239000000470 constituent Substances 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003936 working memory Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007648 laser printing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、文字・記号等のキャラクタを始めとする図
形の輪郭を表すアウトラインデータをドットデータに変
換するデータ変換装置に関するものであり、特に、図形
の対称性と滑らかさとの保証に関するものである。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device for converting outline data representing outlines of figures including characters such as characters and symbols into dot data, and more particularly to a data conversion apparatus. The assurance of symmetry and smoothness.
従来の技術 文字・記号等の図形を表すデータをコンピュータを用
いて処理し、印字,ディスプレイ表示など何等かの形で
表示する場合、最小処理単位である画素毎にドットデー
タを形成することが広く行われている。この際、表示さ
れる図形の全体について予めドットデータを作成し、メ
モリに記憶させると極めて容量の大きいメモリが必要と
なるため、特公昭53−41017号公報に記載されているよ
うに図形をその輪郭を表すアウトラインデータで記憶さ
せ、印字,ディスプレイ表示等の表示時にドットデータ
変換手段を備えた装置によりドットデータに変換するこ
とが望ましい。2. Description of the Related Art When processing data representing figures such as characters and symbols using a computer and displaying the data in any form such as printing or display, it is widely used to form dot data for each pixel, which is the minimum processing unit. Is being done. At this time, if dot data is created in advance for the entire graphic to be displayed and stored in the memory, an extremely large memory is required, and as shown in JP-B-53-41017, the graphic is It is preferable that the data is stored as outline data representing the outline and converted into dot data by a device having dot data conversion means at the time of printing, display, or the like.
アウトラインデータをドットデータに変換するには画
素スクリーンが用いられる。画素スクリーンは、一平面
内において互に直交するX軸とY軸とにそれぞれ平行な
複数の規定線により画素を規定するものであり、データ
変換手段は、画素スクリーンに図形の輪郭を重ね合わせ
た場合に、輪郭内に一定の基準以上の部分が含まれる画
素に対応するドットデータを図形の存在を表すデータに
設定し、アウトラインデータをドットデータに変換する
のである。A pixel screen is used to convert outline data into dot data. The pixel screen defines pixels by a plurality of definition lines parallel to the X-axis and the Y-axis, which are orthogonal to each other in one plane, and the data conversion unit superimposes the outline of the graphic on the pixel screen. In such a case, the dot data corresponding to the pixel whose outline includes a portion equal to or more than a predetermined reference is set as data representing the presence of a figure, and the outline data is converted into dot data.
しかし、このようにアウトラインデータをドットデー
タに変換し、図形を表示する場合には、キャラクタが表
示される位置によって同じ図形であっても輪郭内に一定
の基準以上含まれる画素の数,位置等が異なり、形状が
異なることがある。特に、図形が画素スクリーンのX軸
あるいはY軸に平行な対称軸を有する対称図形の場合、
対称な部分は同じ形状および大きさで表示されるように
輪郭がデザインされているはずであるが、表示される位
置によって輪郭内に含まれる画素の数・位置が異なれ
ば、対称な部分の形状や大きさが互に異なって対称に表
示されず、見映が悪くなる。However, when the outline data is converted to dot data and a graphic is displayed in this manner, even if the graphic is the same depending on the position where the character is displayed, the number, position, etc. of pixels included in the outline at a certain level or more. And the shape may be different. In particular, if the graphic is a symmetric graphic having an axis of symmetry parallel to the X or Y axis of the pixel screen,
The outline should be designed so that the symmetrical part is displayed with the same shape and size, but if the number and position of the pixels included in the outline differ depending on the displayed position, the shape of the symmetrical part The sizes are different from each other and are not displayed symmetrically.
また、図形には、アルファベットのDのように、画素
スクリーンのX軸の正負両方向のうちの一方向あるいは
Y軸の正負両方向のうちの一方向に滑らかに凸の凸曲部
を有するものがある。このような凸曲部は円弧状の輪郭
線により画定されるが、図形の表示位置によっては、輪
郭線の凸曲部の正方向に最も突出した極大点あるいは負
方向に最も突出した極小点を含む部分が、凸の方向と直
交する方向において1個の画素により表示され、凸曲部
の突出端に突起が形成されて滑らかに湾曲した表示が得
られないことがある。Some graphics have a convex curved portion that is smoothly convex in one of the positive and negative directions of the X-axis or one of the positive and negative directions of the Y-axis, such as the letter D in the alphabet. . Such a convex portion is defined by an arc-shaped contour, but depending on the display position of the figure, the maximum point that projects most in the positive direction or the minimum point that projects most in the negative direction of the convex portion of the contour line is determined. The included portion is displayed by one pixel in a direction perpendicular to the direction of the projection, and a projection may be formed at the protruding end of the protruding portion, so that a smoothly curved display may not be obtained.
そのため、特開昭60−39280号公報に記載のデータ変
換装置においては、図形のアウトラインデータを画素ス
クリーン上において平行移動させるとともに圧縮,引延
ばしを行い、図形のX軸方向の最大値,最小値およびY
軸方向の最大値,最小値がそれぞれ隣接する2本の画素
規定線(画素中心点を結んだ線)の中間に位置するよう
にされている。このデータ変換装置では、画素の中心点
が図形の輪郭内に含まれる画素に対応するドットデータ
が図形の存在を表すデータに設定されるようになってお
り、画素中心点が輪郭線上に位置する画素についても同
様に処理される。X軸あるいはY軸に平行な対称軸を有
する図形の対称な部分を画定する輪郭線中には、その図
形のX座標あるいはY座標の最大値,最小値があり、そ
れらが画素規定線に対して同じ相対位置(中間位置)に
位置させられることにより、対称な部分を表示する画素
は対称軸に対して対称に位置するとともに画素数が同じ
になり、図形を対称に表示するドットデータが得られ
る。また、凸曲部を有する図形の場合、極大点,極小点
がX座標あるいはY座標の最大値,最小値となる場合
に、凸曲部の突出端に突起が形成されると特に見映が悪
くなるのであるが、それらが隣接する2本の画素規定線
の中間に位置させられれば、それら極大点,極小点が輪
郭線のすぐ内側の画素中心点から最も遠い位置と最も近
い位置とのちょうど中央に位置することとなるため、凸
の方向と直交する方向においてちょうど良い数の画素中
心点が輪郭内に含まれることとなり、凸曲部の先端部は
適数の画素により滑らかに表示される。輪郭線のすぐ内
側の画素中心点から最も遠い位置とは、その画素中心点
について凸の方向において隣接する画素中心点を含ま
ず、その画素中心点に最も近い位置であり、その位置に
極大点,極小点が位置させられれば、凸の方向に直交す
る方向において輪郭内に画素中心点が多数個含まれ、凸
曲ではなく平らに表示されることがある。また、輪郭線
のすぐ内側の画素中心点から最も近い位置とは、その画
素中心点上の位置であり、その位置に極大点,極小点が
位置させられれば輪郭内に含まれる画素中心点の数が1
個となって突起が形成される。したがって、輪郭線のす
ぐ内側の画素中心点から最も遠い位置と最も近い位置と
のちょうど中央に極大点,極小点を位置させれば、画素
中心点が輪郭内に過不足ない数含まれることとなって凸
曲部が滑らかに表示されるのである。Therefore, in the data converter disclosed in Japanese Patent Application Laid-Open No. 60-39280, the outline data of a figure is translated and expanded on a pixel screen, and the maximum value and the minimum value of the figure in the X-axis direction are reduced. And Y
The maximum value and the minimum value in the axial direction are respectively located in the middle of two adjacent pixel defining lines (lines connecting the pixel center points). In this data conversion apparatus, dot data corresponding to a pixel whose center point is included in the outline of the figure is set to data representing the presence of the figure, and the pixel center point is located on the outline. The same applies to pixels. In a contour defining a symmetrical portion of a figure having an axis of symmetry parallel to the X axis or the Y axis, there are maximum and minimum values of the X coordinate or Y coordinate of the figure, which are defined with respect to the pixel defining line. By positioning the pixels at the same relative position (intermediate position), the pixels displaying the symmetrical portion are positioned symmetrically with respect to the axis of symmetry and have the same number of pixels, and dot data for displaying the figure symmetrically is obtained. Can be Also, in the case of a figure having a convex curved portion, when the local maximum point and the local minimum point have the maximum value and the minimum value of the X coordinate or the Y coordinate, a projection is formed at the protruding end of the convex curved portion. However, if they are located in the middle between two adjacent pixel defining lines, the maximum point and the minimum point are defined as the positions farthest and nearest from the pixel center point immediately inside the contour line. Since it is located exactly at the center, the right number of pixel center points in the direction orthogonal to the convex direction will be included in the outline, and the tip of the convex curved portion will be displayed smoothly by an appropriate number of pixels. You. The position farthest from the pixel center point immediately inside the contour line is the position closest to the pixel center point, not including the pixel center point adjacent to the pixel center point in the convex direction, and the local maximum point at that position. If the minimum point is located, a large number of pixel center points are included in the contour in a direction orthogonal to the convex direction, and the contour may be displayed flat instead of convex. The position closest to the pixel center point immediately inside the contour line is a position on the pixel center point. If a maximum point or a minimum point is located at that position, the pixel center point included in the contour is determined. Number one
The projections are formed individually. Therefore, if the local maximum point and the local minimum point are located exactly at the center between the farthest position and the closest position from the pixel center point just inside the outline, the number of the pixel center points can be included in the outline without excess or deficiency. That is, the convex curved portion is displayed smoothly.
また、特開昭61−51189号公報に記載のデータ変換装
置においては、図形を縮小,拡大して表示する際におけ
るアウトラインデータの修正方法を指示する修正データ
を図形毎に付し、そのデータに従って縮小,拡大が行わ
れるようになっている。修正データは、図形を規定する
複数の点のうち図形の骨格を規定しているため必ず画素
スクリーンの規定線に整合させるべき骨格点を指定する
データ,それら骨格点間の距離を規定するデータ,傾斜
部を有する場合にはその傾斜角度を規定するデータ等多
数のデータから成り、図形の縮小,拡大がそれらの表示
位置の如何を問わず、常にほぼ同じ形に行われるように
されており、このデータ変換装置によれば、対称性や滑
らかさを保証することができると考えられる。Also, in the data conversion apparatus described in Japanese Patent Application Laid-Open No. 61-51189, correction data indicating a method of correcting outline data when a graphic is reduced or enlarged is added to each graphic, and the data is added in accordance with the data. Reduction and enlargement are performed. The correction data is data that specifies a skeleton point that must be consistent with the specified line of the pixel screen because the skeleton of the figure is specified among a plurality of points that specify the figure, data that specifies the distance between these skeleton points, In the case of having an inclined portion, it is composed of a large number of data such as data defining the inclination angle, and the reduction and enlargement of the figure are always performed in almost the same shape regardless of their display position, According to this data converter, it is considered that symmetry and smoothness can be guaranteed.
発明が解決しようとする課題 しかし、特開昭60−39280号公報に記載のデータ変換
装置では、全部の図形について一律に平行移動および圧
縮,引延ばしが行われるため、データ変換に時間がかか
る問題があった。また、特開昭61−51189号公報に記載
のデータ変換装置の場合、図形毎に多数の修正データが
必要であり、データ量が多くなるとともに処理に時間が
掛かる問題がある。Problems to be Solved by the Invention However, in the data conversion device described in Japanese Patent Application Laid-Open No. 60-39280, the parallel conversion, compression, and enlargement are performed uniformly for all figures, so that the data conversion takes time. was there. Further, in the case of the data conversion device described in Japanese Patent Application Laid-Open No. 61-51189, a large number of correction data are required for each figure, and there is a problem that the data amount increases and the processing takes time.
本発明は、図形のアウトラインデータのドットデータ
への変換を少ないデータ量で迅速に行いながら図形の対
称性や凸曲部の滑らかさをできる限り保証し得る装置を
提供することを課題として為されたものである。SUMMARY OF THE INVENTION It is an object of the present invention to provide an apparatus capable of ensuring the symmetry of a figure and the smoothness of a convex portion as much as possible while rapidly converting outline data of a figure into dot data with a small data amount. It is a thing.
課題を解決するための手段 本発明は、上記の課題を解決するために第1図に示す
ように、複数の座標点の各座標値を表す座標点データ及
び2つの座標点を結ぶ線の種類を表す線素データを含む
アウトラインデータによって表される文字、記号等の図
形の輪郭を、互に直交するX軸とY軸とにそれぞれ平行
な複数の規定線により画素を規定する画素スクリーンに
重ね合わせたと想定した場合に、輪郭内に一定基準を満
たす状態で含まれる画素に対応するドットデータを図形
を存在を表すデータに設定することにより、アウトライ
ンデータをドットデータに変換するデータ変換手段を備
えたデータ変換装置において、 前記図形が前記X軸あるいはY軸に平行な対称軸を有
する場合にその対称軸が平行な軸を指示する軸指示デー
タと、前記図形が前記X軸の正負両方向のうちの一方向
あるいは前記Y軸の正負両方向のうちの一方向に滑らか
に凸の凸曲部を有する場合にその凸の方向を指示する凸
方向指示データとを含む指示データを、図形のアウトラ
インデータと関連付けて記憶する指示データ記憶手段
と、 前記軸指示データと関連付けられたアウトラインデー
タの全ての前記座標点データの前記座標値を、その軸指
示データにより指示された軸に直角な方向において均等
に平行移動させることにより、前記図形の対称軸をその
対称軸と平行な前記規定線の1本またはその対称軸と平
行かつ互に隣接した2本の規定線の中間に位置する1本
の直線に一致させる一方、前記凸方向指示データと関連
付けられたアウトラインデータの全ての前記座標点デー
タの前記座標値を、その凸方向指示データにより指示さ
れた方向と平行な方向に均等に平行移動させることによ
り、前記凸曲部の極大点あるいは極小点を、その凸曲部
のうちの極大点あるいは極小点が位置する位置の近傍に
おいて前記凸方向指示データにより指示された方向と直
交する方向において互に連続する2個以上の画素にそれ
ぞれ対応するドットデータが図形の存在を表すデータに
設定される位置に位置させるアウトラインデータ修正手
段と を設けるとともに、前記データ変換手段を前記アウトラ
インデータ修正手段により修正されたアウトラインデー
タをドットデータに変換するものとしたことを特徴とす
る。Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides, as shown in FIG. 1, a coordinate point data representing each coordinate value of a plurality of coordinate points and a type of a line connecting the two coordinate points. Is superimposed on a pixel screen that defines pixels by a plurality of definition lines parallel to the X-axis and the Y-axis, respectively, which are orthogonal to each other, represented by outline data including outline data including line element data. Data conversion means for converting outline data into dot data by setting dot data corresponding to pixels included in the outline in a state satisfying a certain standard, assuming that they match, by setting the dot data to data representing the presence of a figure. When the figure has a symmetry axis parallel to the X axis or the Y axis, axis designating data indicating an axis parallel to the symmetry axis; An instruction including convex direction instruction data for instructing the direction of the convex when a convex convex portion is smoothly convex in one of the positive and negative directions of the X-axis or the positive and negative directions of the Y-axis; Instruction data storage means for storing data in association with outline data of a graphic; and an axis designated by the axis instruction data, the coordinate values of all the coordinate point data of the outline data associated with the axis instruction data. Is translated equally in the direction perpendicular to the axis, so that the axis of symmetry of the figure is at one of the prescribed lines parallel to the axis of symmetry or at the middle of two prescribed lines parallel to and adjacent to the axis of symmetry. The coordinate values of all the coordinate point data of the outline data associated with the convex direction designating data are matched with the one straight line located, and the convex direction designating is performed. Data, the maximum point or the minimum point of the convex curved portion is located near the position where the maximum point or the minimum point of the convex curved portion is located. An outline data correcting means for setting dot data respectively corresponding to two or more pixels which are continuous with each other in a direction orthogonal to the direction specified by said convex direction designating data at a position set in data representing the presence of a figure; And data conversion means for converting the outline data corrected by the outline data correction means into dot data.
なお、凸曲部の滑らかさを保証する場合、前記特開昭
60−39280号のデータ変換装置におけるように、極大
点,極小点を、画素中心点を結んで成る2本の画素規定
線の中央に位置させれば、凸曲部は凸の方向と直交する
方向において適数個の画素によって表示されることとな
るが、これは必ずしも不可欠ではない。1画素中におい
て凸曲部が1個の画素によって表示される位置を外して
極大点,極小点を位置させれば2個以上の画素によって
表示することができるのであり、凸曲部の曲率半径およ
び画素の大きさによっては、2個の画素によって滑らか
に表示することができる場合もあるのである。In order to guarantee the smoothness of the convexly curved portion, the above-mentioned JP
If the maximum point and the minimum point are located at the center of two pixel defining lines connecting the pixel center points as in the data converter of No. 60-39280, the convex curved portion is orthogonal to the convex direction. It will be displayed by an appropriate number of pixels in the direction, but this is not essential. If the maximum point and the minimum point are located outside the position where the convex curved portion is displayed by one pixel in one pixel, the display can be performed by two or more pixels, and the radius of curvature of the convex curved portion is obtained. Depending on the size of the pixel and the size of the pixel, the display may be smoothly performed by two pixels.
極大点,極小点を画素中心点を結ぶ2本の画素規定線
の中央以外の位置に位置させれば、アウトラインデータ
の移動量を少なくすることができ、そのような位置は予
め定めておくことができる。例えば、表示される図形の
すべての凸曲部の曲率半径および画素の大きさは図形を
デザインする際にわかっているため、それら凸曲部のう
ち最も曲率半径が小さい凸曲部を最も小さいサイズで表
示する場合(表示サイズが1種類の場合はそのサイズ)
の曲率半径に基づき、輪郭内に含まれる画素が1画素と
なる位置から外れた位置であって、輪郭内に含まれる画
素が2画素以上となり、かつ、1画素となる位置に最も
近い位置を凸の方向と逆の方向とにそれぞれ1箇所ずつ
求めておき、表示時には表示サイズ,凸曲部の種類の如
何によらず、それら2位置のうち近い方の位置に極大
点,極小点が位置するようにアウトラインデータを平行
移動させるのである。If the maximum point and the minimum point are located at positions other than the center of the two pixel defining lines connecting the pixel center points, the movement amount of the outline data can be reduced, and such positions must be determined in advance. Can be. For example, since the radii of curvature and the pixel sizes of all the convex curved portions of the displayed graphic are known when designing the graphic, the convex curved portion having the smallest radius of curvature of the convex curved portions is the smallest size. When displaying in (If there is only one type of display size, that size)
Based on the radius of curvature of, the position where the pixels included in the contour are out of the position where the number of pixels is one, and the number of pixels included in the outline is two or more and the position closest to the position where the number of pixels is one One point is obtained for each direction in the direction opposite to the direction of the protrusion, and the maximum point and the minimum point are located at the closest one of the two positions regardless of the display size and the type of the convex part at the time of display. The outline data is translated in such a manner that
作用および効果 図形の対称軸を、その対称軸と平行な1本の規定線ま
たはその対称軸と平行かつ互に隣接した2本の規定線の
中間に位置する1本の直線に一致させれば、図形の対称
軸に対して一方の側を画定する輪郭線と他方の側を画定
する輪郭線とのそれぞれ画素規定線に対する相対位置関
係も対称となり、各輪郭線内に含まれる画素は対称軸に
ついて対称に位置するとともに画素数が同じになり、図
形を対称に表示するドットデータが得られる。また、凸
曲部を有する図形の場合、凸曲部は、アウトラインデー
タの平行移動により凸の方向と直交する方向において連
続する2個以上の画素により表示されるようにされるた
め、凸曲部の先端が1個の画素のみによって表示される
ことがなく、突起のない滑らかな形状で表示されるドッ
トデータが得られる。Action and Effect If the symmetry axis of the figure is made coincident with one specified line parallel to the symmetry axis or one straight line located in the middle of two specified lines parallel to and mutually adjacent to the symmetry axis. The relative positions of the outline defining one side and the outline defining the other side with respect to the pixel defining line with respect to the symmetry axis of the figure are also symmetrical, and the pixels included in each outline are symmetrical axes. , And the number of pixels is the same, and dot data for displaying a figure symmetrically is obtained. In the case of a graphic having a convex curved portion, the convex curved portion is displayed by two or more pixels that are continuous in a direction orthogonal to the convex direction due to the parallel movement of the outline data. Is not displayed by only one pixel, and dot data which is displayed in a smooth shape without protrusions can be obtained.
このように本発明に係るデータ変換装置によれば、対
称性を保証することが必要な図形については軸指示デー
タを付し、対称となるようにアウトラインデータを平行
移動させることにより対称に表示されるドットデータを
得ることができ、凸曲部を有し、滑らかさを保証するこ
とが必要な図形については凸方向指示データを付してア
ウトラインデータを移動させることにより滑らかに表示
されるドットデータを得ることができる。アウトライン
データの修正は、修正の目的に応じた必要な処理のみに
よって行われるのであって、前記特開昭60−39280号公
報に記載のデータ変換装置のように、全部の図形につい
て平行移動および圧縮,引延ばし処理を画一的に行うわ
けではないため、データの変換に要する時間を短縮する
ことができる。As described above, according to the data conversion device according to the present invention, a figure for which it is necessary to guarantee the symmetry is displayed symmetrically by attaching the axis designation data and translating the outline data so as to be symmetrical. Dot data that can be obtained and that has a convex curved portion and for which smoothness needs to be guaranteed is displayed smoothly by moving the outline data with convex direction designation data attached Can be obtained. Correction of the outline data is performed only by necessary processing according to the purpose of the correction, and the translation and compression of all the figures are performed as in the data conversion device described in JP-A-60-39280. Since the enlargement process is not performed uniformly, the time required for data conversion can be reduced.
なお、表示される図形の対称性は、その図形の形状の
如何を問わず、アウトラインデータの平行移動のみによ
って必ず保証することができる。これに対し、表示され
る図形の凸曲部の滑らかさは、必ずしも保証することが
できるとは限らない。例えばアルファベットのOの如
く、対称でかつ対称軸の両側にそれぞれ滑らかな凸曲部
を有する図形については、アウトラインデータの平行移
動のみでは、2個の凸曲部の両方について同時に、その
図形の輪郭内に連続した2個以上の画素が含まれるよう
に図形を平行移動させることができない場合があるから
である。そこで、対称でかつ滑らかな凸曲部を有する図
形については、滑らかさより対称性を重視する方が見映
がよくなるため、本発明においては、少なくとも図形を
対称に表示するドットデータが得られるようにアウトラ
インデータを平行移動させることとしたものである。し
かし、本発明においても、滑らかさの保証を排除するわ
けではなく、対称でかつ対称軸の両側にそれぞれ滑らか
な凸曲部を有する図形については、そのことを指示する
データを予め付しておき、その指示データに基づいてア
ウトラインデータの圧縮,引延ばしを行うことにより、
対称性と滑らかさとの両方が保証された表示のドットデ
ータを得ることができる。It should be noted that the symmetry of the displayed graphic can always be guaranteed by only the parallel movement of the outline data, regardless of the shape of the graphic. On the other hand, the smoothness of the convex portion of the displayed graphic cannot always be guaranteed. For example, for a figure such as the letter O, which is symmetric and has smooth convex parts on both sides of the axis of symmetry, the outline of the figure is simultaneously obtained for both of the two convex parts only by parallel movement of the outline data. This is because it may not be possible to translate the figure so that two or more consecutive pixels are included in the figure. Therefore, with respect to a graphic having a symmetrical and smooth convex portion, the emphasis is placed on the symmetry rather than the smoothness, so that the appearance is improved.In the present invention, at least dot data for displaying the graphic symmetrically is obtained. The outline data is translated. However, also in the present invention, the guarantee of smoothness is not excluded. For a symmetrical figure having smooth convex portions on both sides of the axis of symmetry, data indicating the fact is attached in advance. , By compressing and extending the outline data based on the instruction data,
It is possible to obtain display dot data in which both symmetry and smoothness are guaranteed.
さらに、アウトラインデータの修正が行われる図形に
ついては指示データが付されるが、このデータは対称軸
の方向あるいは凸の方向を指示する簡単なデータであ
り、特開昭61−51189号公報に記載のデータ変換装置に
おけるように図形毎に多数の修正データを付する場合に
比較してデータ量が少なくて済み、少ないデータ量で対
称性,滑らかさを保証することができるドットデータを
迅速に得ることができる。Further, instruction data is added to a figure whose outline data is to be corrected, and this data is simple data indicating the direction of the symmetry axis or the direction of the convexity, and is described in JP-A-61-51189. As compared with the case where a large number of correction data are added to each figure as in the data conversion device of the above, the amount of data can be reduced, and dot data that can guarantee symmetry and smoothness with a small amount of data can be obtained quickly. be able to.
実施例 以下、文字・記号等キャラクタを印字するレーザプリ
ンタにおいてアウトラインデータをドットデータに変換
する装置に本発明を適用した場合を例に取り、図面に基
づいて詳細に説明する。Embodiment Hereinafter, a case where the present invention is applied to a device that converts outline data into dot data in a laser printer that prints characters such as characters and symbols will be described in detail with reference to the drawings.
第2図はレーザプリンタの制御回路のうち、データ変
換に関する部分を主として示す図である。この制御回路
の主体を成すマイクロコンピュータ部10は、CPU12,キャ
ラクタROM14,プログラムROM16,テキストメモリ18,ワー
キングメモリ20,修正データメモリ22,交点座標メモリ2
4,ドットデータメモリ26を備えている。これらCPU12等
はバス28により接続されており、バス28には入力装置30
および印字部32が接続されている。入力装置30は必要な
データをマイクロコンピュータ部10に入力するものであ
り、印字部32はマイクロコンピュータ部10からの指令に
基づいてレーザプリント方式により印字を行う部分であ
る。なお、本レーザプリンタの解像度は300ドット/イ
ンチとする。FIG. 2 is a diagram mainly showing a part related to data conversion in a control circuit of the laser printer. The microcomputer unit 10, which forms the main part of the control circuit, includes a CPU 12, a character ROM 14, a program ROM 16, a text memory 18, a working memory 20, a correction data memory 22, and an intersection coordinate memory 2.
4, a dot data memory 26 is provided. These CPUs 12 and the like are connected by a bus 28, and an input device 30 is connected to the bus 28.
And the printing unit 32 are connected. The input device 30 inputs necessary data to the microcomputer unit 10, and the printing unit 32 is a unit that performs printing by a laser printing method based on a command from the microcomputer unit 10. The resolution of this laser printer is 300 dots / inch.
CPU12には、第3図に概念的に示すようにデータ読出
部34,アウトラインデータを修正するデータ修正部36,キ
ャラクタの輪郭線と後述する画素スクリーン上のx方向
規定線xとの交点のx座標を求める交点算出部38,ドッ
トデータの設定を行うデータ設定部40等が設けられてい
る。テキストメモリ18は、入力装置30から入力されるコ
ードデータから成る印字データを記憶するものであり、
ワーキングメモリ20は、プログラム実行時に必要なデー
タを記憶するものである。また、交点座標メモリ24に
は、交点算出部38により求められた交点のx座標が記憶
され、ドットデータメモリ26には、交点座標メモリ24に
記憶されたx座標に基づいて設定されるドットデータが
記憶される。As shown conceptually in FIG. 3, the CPU 12 includes a data reading section 34, a data correcting section 36 for correcting outline data, and an x at an intersection of a character outline and an x-direction defining line x on a pixel screen described later. An intersection calculation unit 38 for obtaining coordinates, a data setting unit 40 for setting dot data, and the like are provided. The text memory 18 stores print data composed of code data input from the input device 30,
The working memory 20 stores data necessary for executing a program. The intersection coordinate memory 24 stores the x coordinate of the intersection obtained by the intersection calculation unit 38, and the dot data memory 26 stores the dot data set based on the x coordinate stored in the intersection coordinate memory 24. Is stored.
キャラクタROM14には、アルファベットその他の文字
や記号等キャラクタのアウトラインデータと、そのアウ
トラインデータの平行移動を指示する指示データとが記
憶されている。キャラクタの輪郭を決定する座標面は、
第4図に示すように、縦(Y軸)横(X軸)がそれぞれ
1000×1000の大きさとされており、アルファベットの大
文字はY軸の座標値の200から1000までの間で描かれ小
文字は0から200の間も使って描かれる。X軸方向に関
しては座標面の中央と文字の中心とが一致させられる。
このような座標面上においてキャラクタの輪郭がデザイ
ンされるとき、凸曲線44を例に取って示すように、キャ
ラクタを構成するキャラクタ構成線は幅を有し、輪郭線
46によって囲まれる。アウトラインデータはキャラクタ
の輪郭を形成する複数の線素毎に作成され、その線素の
種類および両端の点毎の座標等を含んでいる。これら各
点の座標は輪郭線46上に定められた一定の方向(図中矢
印で示されている)に沿って順番に記憶され、各線素の
両端の2点のうち、先に記憶される点が始点であり、後
に記憶される点が終点である。アウトラインデータは、
線素が直線の場合には直線データおよび始点,終点の各
座標を含み、曲線の場合には曲線データ,曲線の関数式
および始点,終点,補助点の各座標を含み、円弧の場合
には円弧データおよび始点,終点,円の中心点の各座標
を含むものとされる。アウトラインデータは、各キャラ
クタを構成する線素の数Nも含んでいる。指示データに
ついては後に説明する。The character ROM 14 stores outline data of characters such as alphabets and other characters and symbols, and instruction data for instructing parallel movement of the outline data. The coordinate plane that determines the outline of the character is
As shown in FIG. 4, the vertical (Y axis) and horizontal (X axis)
It has a size of 1000 × 1000. Uppercase letters of the alphabet are drawn using the Y-axis coordinate values between 200 and 1000, and lowercase letters are drawn using the values between 0 and 200. In the X-axis direction, the center of the coordinate plane is matched with the center of the character.
When the outline of the character is designed on such a coordinate plane, as shown by taking the convex curve 44 as an example, the character constituent line constituting the character has a width,
Surrounded by 46. The outline data is created for each of a plurality of line elements forming the outline of the character, and includes the type of the line element, the coordinates of each end point, and the like. The coordinates of these points are sequentially stored along a fixed direction (indicated by an arrow in the figure) defined on the outline 46, and the two points at both ends of each line element are stored first. The point is the start point, and the point stored later is the end point. Outline data is
If the line element is a straight line, it contains the straight line data and the coordinates of the start and end points; if it is a curve, it contains the curve data, the function formula of the curve and the coordinates of the start point, end point, and auxiliary points; It includes the arc data and the coordinates of the start point, end point, and center point of the circle. The outline data also includes the number N of line elements constituting each character. The instruction data will be described later.
本レーザプリンタにおいてアウトラインデータのドッ
トデータへの変換は、第5図に示す画素スクリーン50を
使用し、キャラクタの輪郭を画素スクリーン50に重ね合
わせたと想定して行われる。画素スクリーン50はアウト
ラインデータをドットデータに変換するための計算上の
ものであるが、ここでは理解を容易にするために実在す
るものとして図示することとする。また、ここにおいて
画素とは、レーザにより印字が行われる際の最小印字単
位であり、画素スクリーン50は、一平面内において互に
直交し、X軸とY軸とにそれぞれ平行であって、等間隔
に設けられた複数の画素区画線p(図中、実線で示され
ている)により画素を規定しており、本実施例において
画素は正方形とされている。また、画素中心点を通り、
X軸とY軸とにそれぞれ平行なx方向規定線xとy方向
規定線y(図中破線で示されている。)とが設定されて
いる。画素区画線pには画素スクリーン50における位置
を示す座標値が付され、x方向規定線x,y方向規定線y
の位置はそれぞれx座標値,y座標値で表すことができ
る。印字を行うか否かのドットデータは画素毎に形成さ
れるが、本レーザプリンタではキャラクタの輪郭内に画
素中心点が含まれる画素にドットが形成されるようにな
っており、その画素のドットデータが1とされる。な
お、画素は矩形その他の形状とすることも可能である。In this laser printer, the conversion of outline data into dot data is performed using the pixel screen 50 shown in FIG. 5 and assuming that the outline of the character is superimposed on the pixel screen 50. The pixel screen 50 is a computational one for converting outline data into dot data, but is shown here as an actual one for easy understanding. The pixel here is a minimum printing unit when printing is performed by the laser, and the pixel screens 50 are orthogonal to each other in one plane, are parallel to the X axis and the Y axis, and the like. Pixels are defined by a plurality of pixel dividing lines p (shown by solid lines in the figure) provided at intervals, and in the present embodiment, the pixels are square. Also, passing through the pixel center point,
An x-direction defining line x and a y-direction defining line y (shown by broken lines in the figure) are set in parallel with the X axis and the Y axis, respectively. A coordinate value indicating a position on the pixel screen 50 is attached to the pixel dividing line p, and an x-direction defining line x and a y-direction defining line y
Can be represented by an x coordinate value and a y coordinate value, respectively. The dot data for printing or not is formed for each pixel, but in this laser printer, a dot is formed at a pixel including the pixel center point within the outline of the character. The data is set to 1. Note that the pixel may have a rectangular shape or another shape.
画素スクリーン50は印字用紙の印字面に対応して想定
されるものであるが、第5図にはその原点近傍の部分の
みが示してある。したがって、画素スクリーン50上の任
意の位置にキャラクタの輪郭が重ね合わされる場合に
は、画素区画線pの座標値は、第5図において画素区画
線pに付されている値に適宜の整数をそれぞれ加えた値
となる。The pixel screen 50 is assumed to correspond to the printing surface of the printing paper, but FIG. 5 shows only a portion near the origin. Therefore, when the outline of the character is superimposed at an arbitrary position on the pixel screen 50, the coordinate value of the pixel division line p is an appropriate integer for the value assigned to the pixel division line p in FIG. Each value is added.
また、本レーザプリンタは、キャラクタを4.8ポイン
ト,10ポイント,12ポイント,20ポイント,24ポイント,30
ポイント等任意のサイズで印字することができ、印字サ
イズに合わせて前記1000×1000の座標面で作られた輪郭
の座標値が換算される。1画素の1辺の長さを1で表す
座標面を画素スクリーン50上に想定して座標値の換算が
行われるのであり、あるポイントのキャラクタがC×C
画素で表されるとすれば、1000×1000の座標面上におい
て輪郭を決定する点の座標値にC/1000を掛ければ上記画
素スクリーン50上に想定した座標面上の座標値が得られ
るのである。ここでは1個のキャラクタが20×20画素で
表される4.8ポイントで印字を行う場合について説明す
る。第5図の画素スクリーン50の画素区画線pに付され
た数字はこの場合の座標値である。また、かっこ付の数
字は、各画素の画素スクリーン50全体における位置を指
定する番号であり、1画素分を1として付されており、
X軸方向の位置を指定する番号とy軸方向の位置を指定
する番号との組合わせにより、画素の画素スクリーン50
上における位置を指定することができる。例えば、x座
標値がそれぞれ3,4の画素区画線pおよびy座標値がそ
れぞれ2,3の画素区画線pによって画定される画素は
(3,2)で指定することができる。なお、キャラクタの
輪郭を画素スクリーン50に重ね合わせる際には、印字位
置データに基づいて各キャラクタの基準点の画素スクリ
ーン50上における座標値の決定も行われ、得られた基準
点の座標値と上記換算された座標値とを用いて重ね合わ
せが行われる。In addition, this laser printer can display characters of 4.8 points, 10 points, 12 points, 20 points, 24 points, and 30 points.
It can be printed in any size such as points, and the coordinate values of the contour created on the 1000 × 1000 coordinate plane are converted according to the print size. The conversion of coordinate values is performed by assuming a coordinate plane representing the length of one side of one pixel as 1 on the pixel screen 50, and the character at a certain point is C × C
If represented by pixels, multiplying C / 1000 by the coordinate value of the point that determines the contour on the 1000 × 1000 coordinate plane will give the coordinate value on the coordinate plane assumed on the pixel screen 50. is there. Here, a case in which one character performs printing at 4.8 points represented by 20 × 20 pixels will be described. The numbers attached to the pixel division lines p of the pixel screen 50 in FIG. 5 are the coordinate values in this case. The number in parentheses is a number that designates the position of each pixel on the entire pixel screen 50, and is assigned to one pixel as 1.
The combination of the number specifying the position in the X-axis direction and the number specifying the position in the y-axis direction allows the pixel screen 50 of the pixel to be displayed.
The position on the top can be specified. For example, a pixel defined by a pixel division line p having an x coordinate value of 3,4 and a pixel division line p having a y coordinate value of 2,3 can be designated by (3,2). When the outline of the character is superimposed on the pixel screen 50, the coordinate value of the reference point of each character on the pixel screen 50 is also determined based on the print position data, and the coordinate value of the obtained reference point is determined. Superposition is performed using the converted coordinate values.
凸曲線44は、第4図に示すようにX軸に平行な対称軸
54を有するとともに、X軸の正方向に凸のキャラクタで
ある。このような凸曲線44を画素スクリーン50に重ね合
わせた場合、第6図(a)に示すように重ね合わされた
とする。この場合、第6図(b)に斜線付の丸で示すよ
うにドットが形成されるが、この図から明らかなよう
に、ドットは対称軸54に対して非対称に形成され、ま
た、凸曲線44の凸の方向に直交する方向においてドット
が1個のみ突出しており、見映が悪い。そのため、本デ
ータ変換装置では、アウトラインデータの修正の有無を
指示する指示データがキャラクタROM14にアウトライン
に対にして記憶されているのである。そして、プログラ
ムROM16には、印字に必要な種々のプログラムと共に、
第7図および第8図にフローチャートで示すアウトライ
ンデータの修正機能を有するデータ変換用のプログラム
が記憶され、キャラクタの対称性あるいは滑らかさが確
保されるようになっている。The convex curve 44 is a symmetry axis parallel to the X axis as shown in FIG.
The character has 54 and is convex in the positive direction of the X-axis. When such convex curves 44 are superimposed on the pixel screen 50, it is assumed that they are superimposed as shown in FIG. In this case, dots are formed as shown by hatched circles in FIG. 6 (b). As is clear from this figure, the dots are formed asymmetrically with respect to the axis of symmetry 54 and have a convex curve. Only one dot protrudes in the direction orthogonal to the direction of the 44 protrusions, and the appearance is poor. Therefore, in the present data conversion apparatus, the instruction data indicating whether or not the outline data is corrected is stored in the character ROM 14 in a pair with the outline. And, in the program ROM 16, along with various programs necessary for printing,
A data conversion program having a function of correcting outline data, which is shown in the flowcharts of FIGS. 7 and 8, is stored to ensure the symmetry or smoothness of the character.
指示データには、アウトラインデータの修正を指示す
るデータと、修正なしを指示するデータとがある。修正
を指示するデータは、キャラクタのx座標,y座標の各最
大値x max,y max,最小値x min,y minと、対称軸の方向
あるいは凸曲部の凸の方向を指示するデータとから成
る。対称軸の方向を指示するデータは、キャラクタがX
軸に平行な対称軸を有する場合にはX軸指示データとさ
れ、Y軸に平行な対称軸を有する場合にはY軸指示デー
タとされる。また、凸曲部の凸の方向を指示するデータ
は、キャラクタがX軸の正方向に凸の凸曲部を有する場
合には右方向データ,X軸の負方向に凸の凸曲部を有する
場合には左方向データ,Y軸の正方向に凸の凸曲部を有す
る場合には上方向データ,Y軸の負方向に凸の凸曲部を有
する場合には下方向データとされる。したがって、凸曲
線44の場合には、x座標,y座標の最大値,最小値とX軸
指示データと右方向データとを含む指示データが、キャ
ラクタROM14に凸曲線44のアウトラインデータと対にし
て記憶されていることとなる。The instruction data includes data instructing correction of outline data and data instructing no correction. The data for instructing the correction include the maximum value x max, y max, minimum value x min, y min of the x coordinate and y coordinate of the character, and the data indicating the direction of the symmetry axis or the convex direction of the convex curved part. Consists of The data indicating the direction of the symmetry axis is X
If it has a symmetry axis parallel to the axis, it is X-axis instruction data, and if it has a symmetry axis parallel to the Y-axis, it is Y-axis instruction data. In addition, the data indicating the convex direction of the convex curved portion has rightward data when the character has a convex curved portion convex in the positive direction of the X axis, and has a convex curved portion convex in the negative direction of the X axis. In this case, the data is leftward data, when there is a convex curved portion that is convex in the positive direction of the Y axis, it is upward data, and when it has a convex curved portion that is convex in the negative direction of the Y axis, it is downward data. Accordingly, in the case of the convex curve 44, the instruction data including the maximum value and the minimum value of the x-coordinate and the y-coordinate, the X-axis instruction data, and the rightward data are paired with the outline data of the convex curve 44 in the character ROM 14. It will be remembered.
以下、凸曲線44を例に取り、アウトラインデータのド
ットデータへの変換について説明する。この変換は、キ
ャラクタの輪郭とx方向規定線xとの交点の座標を1本
のキャラクタ構成線毎に2個ずつ求め、それら2個の交
点間(その交点を含む。)のドットデータを一挙に1に
設定することにより行われる。なお、印字については本
発明を理解する上で不可欠ではないため詳細な説明は省
略するが、本レーザプリンタにおいては印字が1頁毎に
行われる。テキストメモリ18に記憶された文書データの
うち1頁分のデータが読み出され、そのデータを構成す
るキャラクタのアウトラインデータがドットデータに変
換されて印字が行われるのである。Hereinafter, the conversion of outline data to dot data will be described using the convex curve 44 as an example. In this conversion, two coordinates of intersections between the outline of the character and the x-direction defining line x are obtained for each character constituent line, and dot data between the two intersections (including the intersections) is displayed at once. Is set to 1. Since the printing is not essential for understanding the present invention, a detailed description thereof will be omitted. However, in this laser printer, printing is performed for each page. Data of one page is read out of the document data stored in the text memory 18, and outline data of characters constituting the data is converted into dot data and printing is performed.
まず、第7図のステップS1(以下、S1と略記する。他
のステップについても同じ。)において処理されるキャ
ラクタのアウトラインデータが読み出された後、S2にお
いてそのアウトラインデータと対を成す指示データが読
み出され、S3において読み出された指示データがアウト
ラインデータの修正なしを指示するデータであるか否か
の判定が行われる。凸曲線44についてはX軸指示データ
および右方向データが記憶されているためS3の判定はNO
となり、S4が実行される。S4では読み出された指示デー
タがX軸指示データを含むか否かの判定が行われるが、
この判定はYESであり、S5においてアウトラインデータ
の修正量が算出される。X軸に平行な対称軸を有するキ
ャラクタは、第9図(a),(b)に示すように、対称
軸がx方向規定線xと一致すれば、対称軸に対して対称
軸から離れるに従ってy座標値が大きくなる側の部分と
y座標値が小さくなる側の部分とをそれぞれ画定する輪
郭線の画素スクリーン50に対する相対位置関係が同じに
なり、それら輪郭線内に含まれる画素の位置が対称軸に
対して対称になるとともに画素数が等しくなり、これら
画素に対応するドットデータをキャラクタの存在を表す
データに設定することにより、キャラクタを対称軸に対
して対称に表示することができる。したがって、アウト
ラインデータの修正は対称軸がx方向規定線xと一致す
るようにアウトラインデータを構成する座標のy座標値
を修正することにより行えばよく、S5では第6図(a)
に示すように、対称軸54に対してy座標値が増大する側
に隣接するx方向規定線x(図中破線で示される)のy
座標値から対称軸54のy座標値を引くことにより修正量
l1が算出される。なお、対称軸54のy座標値はy座標の
最大値と最小値との中間値である。S6では、凸曲線44を
規定するアウトラインデータの全部の座標のy座標値に
l1が加算され、修正されたy座標値はx座標値と共に修
正データメモリ22に格納される。この修正により凸曲線
44は、画素スクリーン50上に第9図(a)に示す位置に
重ね合わされ、第9図(b)に示すようにドットが対称
軸54に対称に形成される状態となる。なお、対称軸54と
x方向規定線xとが一致している場合には修正量は0で
あり、S6ではアウトラインデータを構成する座標がその
まま修正データメモリ22に格納される。First, after the outline data of the character to be processed is read in step S1 in FIG. 7 (hereinafter abbreviated as S1; the same applies to other steps), instruction data paired with the outline data is read in S2. Is determined, and it is determined whether or not the instruction data read in S3 is data instructing no correction of the outline data. Since the X-axis instruction data and the rightward data are stored for the convex curve 44, the determination in S3 is NO.
And S4 is executed. In S4, it is determined whether or not the read instruction data includes the X-axis instruction data.
This determination is YES, and the correction amount of the outline data is calculated in S5. As shown in FIGS. 9 (a) and 9 (b), a character having a symmetry axis parallel to the X-axis becomes farther from the symmetry axis with respect to the symmetry axis if the symmetry axis matches the x-direction defining line x. The relative positions of the contour lines that define the portion where the y-coordinate value increases and the portion where the y-coordinate value decreases become the same with respect to the pixel screen 50, and the positions of the pixels included in the contour lines are changed. The character can be displayed symmetrically with respect to the symmetry axis by setting the dot data corresponding to these pixels to be data representing the existence of the character by becoming symmetrical with respect to the symmetry axis and having the same number of pixels. Therefore, the outline data may be modified by modifying the y-coordinate value of the coordinates constituting the outline data so that the symmetry axis coincides with the x-direction defining line x. In S5, FIG.
As shown in the figure, y of the x-direction defining line x (shown by a broken line in the figure) adjacent to the side where the y coordinate value increases with respect to the symmetry axis 54
Correction amount by subtracting the y coordinate value of the symmetry axis 54 from the coordinate value
l 1 is calculated. The y coordinate value of the symmetry axis 54 is an intermediate value between the maximum value and the minimum value of the y coordinate. In S6, the y coordinate values of all coordinates of the outline data defining the convex curve 44 are
l 1 is added, and the corrected y coordinate value is stored in the correction data memory 22 together with the x coordinate value. With this correction the convex curve
The reference numeral 44 is superimposed on the pixel screen 50 at the position shown in FIG. 9A, so that dots are formed symmetrically with respect to the symmetry axis 54 as shown in FIG. 9B. When the symmetry axis 54 and the x-direction defining line x match, the correction amount is 0, and the coordinates forming the outline data are stored in the correction data memory 22 in S6.
次いでS12が実行され、読み出された指示データがY
軸指示のデータを含むか否かの判定が行われる。凸曲線
44はY軸に平行な対称軸を有するキャラクタではないた
めS12はNOとなり、S15において右方向に凸の凸曲部を有
するか否かの判定が行われる。この判定はYESとなり、S
16においてアウトラインデータの修正量が算出される。
右方向の凸の凸曲部を有するアウトラインデータの修正
は、x座標の最大値、すなわち極大点をY軸に平行な画
素区画線pであって、x座標値が増大する側に隣接する
画素区画線pと一致させることにより行われる。第9図
(b)に示すように、凸曲線44の極大点がx方向規定線
xと一致する状態では、凸曲線44の先端は1個の画素に
よって表示される。それに対し、第10図(a)に示すよ
うに極大点を画素区画線pに一致させれば、第10図
(b)に示すように3個の画素によって表示されること
となり、さらに、画素区画線pを越えて次のx方向規定
線xと一致する僅かに前の位置では5個の画素によって
表示されることとなる。しかし、5個の画素では凸曲線
44が却って平らに表示されるとともに、アウトラインデ
ータの移動量が大きくなるため最適ではなく、隣接する
x方向規定線xの中央の画素区画線pと一致させれば、
アウトラインデータの少ない移動量で凸曲線を滑らかに
表示することができるのである。Next, S12 is executed, and the read instruction data is Y
It is determined whether or not the data includes the axis instruction data. Convex curve
Since 44 is not a character having a symmetry axis parallel to the Y axis, S12 is NO, and a determination is made in S15 as to whether or not the character has a rightwardly convex convex portion. This determination is YES and S
At 16, the amount of correction of the outline data is calculated.
Correction of the outline data having the convex convex portion in the rightward direction is performed by correcting the maximum value of the x-coordinate, that is, the pixel adjacent to the pixel division line p parallel to the Y-axis and having the x-coordinate value increasing. This is performed by matching with the division line p. As shown in FIG. 9B, when the local maximum point of the convex curve 44 coincides with the x-direction defining line x, the tip of the convex curve 44 is displayed by one pixel. On the other hand, if the local maximum point coincides with the pixel dividing line p as shown in FIG. 10 (a), the image is displayed by three pixels as shown in FIG. 10 (b). At a position slightly in front of the division line p and coincident with the next x-direction definition line x, the image is displayed by five pixels. However, with 5 pixels, a convex curve
44 is displayed rather flat, and the amount of movement of the outline data is large, which is not optimal. If it is made to coincide with the central pixel division line p of the adjacent x-direction definition line x,
The convex curve can be displayed smoothly with a small movement amount of the outline data.
したがって、S16では第9図(a)に示すように、凸
曲線44のx座標の最大値を、その最大値に対してx座標
値が増大する側に隣接する画素区画線pのx座標値から
引くことにより修正量l2が算出され、S17では修正量l2
が凸曲線44を規定するアウトラインデータの全部の座標
のx座標値に加算されてアウトラインデータが修正され
ることとなる。このようにアウトラインデータが修正さ
れた後、S20以下においてドットデータの設定が行われ
る。Therefore, in S16, as shown in FIG. 9 (a), the maximum value of the x coordinate of the convex curve 44 is determined by the x coordinate value of the pixel division line p adjacent to the side where the x coordinate value increases with respect to the maximum value. correction amount l 2 is calculated by subtracting from step S17 correction amount l 2
Is added to the x-coordinate values of all the coordinates of the outline data defining the convex curve 44, and the outline data is corrected. After the outline data is corrected in this way, the setting of dot data is performed in S20 and subsequent steps.
なお、キャラクタがX軸に平行な対称軸を有するもの
でない場合にはS4がNOとなり、S7においてキャラクタが
上方向に凸の凸曲部を有するか否かの判定が行われ、NO
であればS10において下方向に凸の凸曲部を有するか否
かの判定が行われる。キャラクタがX軸に平行な対称軸
を有するものであれば、上方向あるいは下方向に凸か否
かの判定は行われないが、これはX軸指示データと上方
向データと下方向データとが同じ1個のキャラクタの指
示データとされることがないからである。If the character does not have a symmetry axis parallel to the X axis, S4 becomes NO, and in S7, it is determined whether or not the character has an upwardly convex convex portion.
If it is, a determination is made in S10 as to whether or not there is a downwardly convex portion. If the character has an axis of symmetry parallel to the X-axis, it is not determined whether the character is convex upward or downward, but this is because the X-axis instruction data, the upward data, and the downward data are different. This is because instruction data of the same one character is not used.
第11図(a)に示す凸曲線56のように、Y軸に平行な
対称軸58について対称であって、下方向に凸の凸曲部を
有するキャラクタの場合、第11図(b)にドットを描い
て示すように非対称で突出端に突起のある状態で表示さ
れることがある。この凸曲線56の場合にはS10がYESとな
り、S11,S9が実行され、凸曲線56のy座標の最小値をX
軸に平行な画素区画線pであって、y座標の最小値に対
してy座標値が増大する側に隣接する画素区画線pと一
致させるように修正量l3が算出され、アウトラインデー
タが修正される。それにより凸曲線56は第12図(a)に
示すように画素スクリーン50に重ね合わされ、第12図
(b)に示すように突起のない滑らかな形状に表示され
る状態となる。As in the case of a convex curve 56 shown in FIG. 11 (a), in the case of a character which is symmetric about a symmetry axis 58 parallel to the Y axis and has a downwardly convex convex curved portion, FIG. In some cases, the image is displayed asymmetrically with a protrusion at the protruding end as shown by drawing a dot. In the case of this convex curve 56, S10 becomes YES, S11 and S9 are executed, and the minimum value of the y coordinate of the convex curve 56 is set to X
A shaft parallel pixel partition line p, the correction amount l 3 so as to match the pixel partition line p which is adjacent to the side y-coordinate value increases relative to the minimum value of the y coordinate is calculated, the outline data Will be modified. As a result, the convex curve 56 is superimposed on the pixel screen 50 as shown in FIG. 12 (a), so that a smooth shape without projections is displayed as shown in FIG. 12 (b).
さらに、凸曲線56のようにY軸に平行な対称軸58を有
するキャラクタの場合、S12がYESとなり、S13において
アウトラインデータの修正量が算出される。Y軸に平行
な対称軸を有するキャラクタのアウトラインデータの修
正は、対称軸をx座標値が増大する側に隣接するy方向
規定線yと一致させることにより行われる。したがっ
て、S13では第12図(a)に示す修正量l4が算出された
後、S14においてアウトラインデータが修正され、それ
により凸曲線56の輪郭は第13図(a)に示すように画素
スクリーン50に重ね合わされ、第13図(b)に示すよう
に対称軸58に対称に表示されることとなる。Further, in the case of a character having a symmetry axis 58 parallel to the Y axis, such as the convex curve 56, S12 is YES, and the correction amount of the outline data is calculated in S13. The correction of the outline data of the character having the symmetry axis parallel to the Y axis is performed by matching the symmetry axis with the y direction defining line y adjacent to the side where the x coordinate value increases. Therefore, after the calculated correction amount l 4 shown in Figure 12 in S13 (a), fixes the outline data in S14, the pixel screen as it positive contour curve 56 by shown in Figure 13 (a) It is superimposed on 50 and displayed symmetrically with respect to the axis of symmetry 58 as shown in FIG. 13 (b).
また、図示はしないが、指示データが上方向データを
含む場合にはS7がYESとなり、S8においてアウトライン
データの修正量が算出される。上方向の凸の凸曲部を有
するアウトラインデータの修正は、y座標の最大値(極
大点)をX軸に平行な画素区画線pであって、y座標値
が増大する側に隣接する画素区画線pと一致させること
により行われる。したがって、S7ではその画素区画線p
のy座標値から凸曲部のy座標の最大値を引くことによ
り修正量が算出され、S8においてアウトラインデータを
構成する全部の座標のy座標値に修正量が加算される。Although not shown, if the instruction data includes upward data, S7 becomes YES, and the correction amount of the outline data is calculated in S8. The correction of the outline data having the upwardly convex convex portion is performed by correcting the maximum value (maximum point) of the y-coordinate with a pixel which is adjacent to the pixel division line p parallel to the X-axis and on which the y-coordinate value increases. This is performed by matching with the division line p. Therefore, in S7, the pixel division line p
The correction amount is calculated by subtracting the maximum value of the y-coordinate of the convex portion from the y-coordinate value of, and the correction amount is added to the y-coordinate values of all the coordinates constituting the outline data in S8.
さらに、左方向に凸の凸曲部を有するキャラクタの場
合、S18がYESとなり、S19において修正量が算出されてS
17においてアウトラインデータが修正される。この場合
には、凸曲部のx座標の最小値を、Y軸に平行な画素区
画線pであって、x座標値が増大する側に隣接する画素
区画線pと一致させるように修正量が算出され、アウト
ラインデータが修正される。なお、キャラクタがY軸に
平行な対称軸を有する場合、右方向あるいは左方向に凸
の凸曲部を有するか否かの判定が行われないが、この場
合にはS13,S14のアウトラインデータの修正によりキャ
ラクタの左右方向の位置が決まり、右方向の凸,左方向
の凸に基づくアウトラインデータの修正を行う必要がな
いからである。Further, in the case of a character having a convex curved portion that is convex in the left direction, S18 is YES, the correction amount is calculated in S19, and S
At 17 the outline data is modified. In this case, the correction amount is set so that the minimum value of the x coordinate of the convex portion is made to coincide with the pixel division line p adjacent to the pixel division line p parallel to the Y axis and on the side where the x coordinate value increases. Is calculated, and the outline data is corrected. If the character has an axis of symmetry parallel to the Y axis, it is not determined whether or not the character has a convex curved portion that is convex rightward or leftward. In this case, the outline data of S13 and S14 is not determined. This is because the position of the character in the left-right direction is determined by the correction, and it is not necessary to correct the outline data based on the rightward convexity and the leftward convexity.
指示データが修正なしを指示するデータの場合にはS3
がYESとなり、S4〜S19がスキップされてS20以下におい
てドットデータの設定が行われる。If the instruction data is data indicating no correction, S3
Is YES, S4 to S19 are skipped, and dot data is set in S20 and below.
上記のようにアウトラインデータが修正されたならば
S20が実行され、カウンタのカウント値Cが1増加され
た後、S21においてアウトラインとx方向規定線xとの
交点のx座標が算出される。x方向規定線xの位置は画
素スクリーン50のy座標の値で表すことができ、それら
y座標値に対する交点のx座標値を求めるのである。第
14図に示すように、線素がx方向規定線x,y方向規定線
yのいずれとも交差する直線の場合を例として説明すれ
ば、この線素は始点から終点に至るまで複数のx方向規
定線xと×印で示される位置において交差することとな
るが、交点のx座標としては、x方向規定線xと線素と
の実際の交点のx座標ではなく、その線素が画定するキ
ャラクタ構成線側(図中斜線が施されている部分)にあ
って実際の交点に最も近い位置に画素中心点(図中○印
が付されている点)を有する画素の左側の端のx座標が
採用される。この交点のx座標は第5図にかっこ付で示
す各画素の指定番号と一致する。ここにおいてキャラク
タ構成線側とは輪郭線の内側のことであり、輪郭線の各
線素を指定するデータがキャラクタ構成線を反時計方向
にまわる順序で記憶されている場合は、各線素の始点側
から終点側を見た場合に左側となる領域であり、時計方
向にまわる順序で記憶されている場合は右側となる領域
である。x方向規定線xと線素との実際の交点が画素中
心点と一致する場合には、その画素中心点を有する画素
の左側の端のx座標がx方向規定線xと線素との交点と
される。If the outline data is modified as above
After S20 is performed and the count value C of the counter is increased by 1, the x coordinate of the intersection of the outline and the x-direction defining line x is calculated in S21. The position of the x-direction defining line x can be represented by the y-coordinate value of the pixel screen 50, and the x-coordinate value of the intersection with respect to the y-coordinate value is obtained. No.
As shown in FIG. 14, as an example, a case where a line element is a straight line that intersects both the x-direction defining line x and the y-direction defining line y will be described. Although the specified line x intersects at the position indicated by the x mark, the x-coordinate of the intersection is defined not by the x-coordinate of the actual intersection of the x-direction specified line x and the line element, but by the line element The x at the left end of the pixel having the pixel center point (the point marked with a circle in the figure) at the position closest to the actual intersection on the character constituent line side (the shaded part in the figure) Coordinates are adopted. The x coordinate of this intersection coincides with the designated number of each pixel shown in parentheses in FIG. Here, the character constituent line side is the inside of the contour line, and when data specifying each line element of the contour line is stored in the order of turning the character constituent line counterclockwise, the starting point side of each line element This is the area on the left side when viewing the end point side from, and the area on the right side when stored in the order of turning clockwise. If the actual intersection of the x-direction defining line x and the line element coincides with the pixel center point, the x coordinate of the left end of the pixel having the pixel center point is the intersection of the x-direction defining line x and the line element. It is said.
凸曲線44はアウトラインデータの修正により、第5図
に示すように画素スクリーン50に重ね合わされ、x方向
規定線xとの交点のx座標値が算出される。この算出は
線素毎に行われ、算出された交点のx座標値は、交点座
標メモリ24に第15図に示すようにx方向規定線x毎に記
憶される。1本の線素について交点のx座標が算出され
ればS22が実行されるが判定はNOであり、凸曲線44を構
成する全部の線素について交点のx座標が算出されるま
でS20〜S22が繰り返し実行される。S22がYESになればS2
3においてカウント値Cが0にされた後、S24において交
点座標メモリ24にx方向規定線x毎に記憶されたx座標
が小さい順に並べ変えられ、小さいものから順に2個ず
つがペアになるようにされるとともに、ドットデータの
設定が行われる。1本のキャラクタ構成線についてx方
向規定線x毎に2個ずつ交点座標が求められるため、x
座標を小さい順に並べ変えて2個ずつペアにすれば、そ
れらペアにされた番号の間には必ずキャラクタ構成線が
存在することとなり、それら番号間の画素に対応するド
ットデータを一挙に1に設定することができるのである
が、交点のx座標はS21において線素毎に求められ、x
座標が算出された順にx座標が交点座標メモリ24に記憶
されるため、x座標の値が大きい方の線素について小さ
い方の線素より先に求められることがあり、大きさの順
に記憶されているとは限らないのでこの並べ変えが行わ
れるのである。なお、本実施例においては、交点を画素
中心点とする画素についてもドットデータが1に設定さ
れる。The convex curve 44 is superimposed on the pixel screen 50 as shown in FIG. 5 by correcting the outline data, and the x coordinate value of the intersection with the x direction defining line x is calculated. This calculation is performed for each line element, and the calculated x coordinate value of the intersection is stored in the intersection coordinate memory 24 for each x direction defining line x as shown in FIG. If the x coordinate of the intersection is calculated for one line element, S22 is executed, but the determination is NO, and S20 to S22 are performed until the x coordinate of the intersection is calculated for all the line elements constituting the convex curve 44. Is repeatedly executed. S2 if S22 becomes YES
After the count value C is set to 0 in step 3, the x-coordinates stored in the intersection coordinate memory 24 for each of the x-direction defining lines x are rearranged in ascending order in step S24. And the setting of the dot data is performed. Since two intersection coordinates are determined for each x-direction defining line x for one character constituent line, x
If the coordinates are rearranged in ascending order to form pairs, the character constituent lines always exist between the paired numbers, and the dot data corresponding to the pixels between those numbers is reduced to one at a time. Although it can be set, the x coordinate of the intersection is obtained for each line element in S21, and x
Since the x-coordinate is stored in the intersection coordinate memory 24 in the order in which the coordinates were calculated, the x-coordinate value may be obtained before the smaller line element for the larger line element, and may be stored in the order of the size. This sort is done because it is not always the case. In this embodiment, the dot data is set to 1 also for a pixel whose intersection is the pixel center point.
上記のようにx座標の並べ変えが行われた後、ドット
データの設定が行われる。この設定は、1バイト単位で
まとめて行われる。マイクロコンピュータ部10は1バイ
トのデータを並列に処理し得るものであり、1画素のド
ットデータは1ビットで表されるため、8個の画素のド
ットデータが一挙に設定されることとなる。この設定は
本発明の出願人に係る特願昭63−269074号に記載のデー
タ変換装置におけると同じであり、ペアを成す2個のx
座標を1バイトの区切となるビットの座標(互に隣接す
るバイト間の区切となるビットの座標)に基づいて1バ
イト毎に区切られ、同じバイトに属し、キャラクタが存
在する画素に対応するドットデータがまとめて1に設定
される。After the rearrangement of the x coordinate is performed as described above, the setting of the dot data is performed. This setting is performed collectively in units of one byte. The microcomputer unit 10 can process 1-byte data in parallel. Since dot data of one pixel is represented by one bit, dot data of eight pixels are set at a time. This setting is the same as that in the data conversion apparatus described in Japanese Patent Application No. 63-269074 of the applicant of the present invention.
The coordinates are separated for each byte based on the coordinates of the bits for separating one byte (coordinates of the bits for separating between adjacent bytes), and the dots belong to the same byte and correspond to the pixel where the character exists. Data is collectively set to 1.
y軸方向の位置が2であるx方向規定線xについて求
められたx座標を例に取り、第16図に基づいて説明す
る。x座標ペア(4,5)のうち小さい方のx座標より大
きく、1バイトの区切となるビットの座標7と大きい方
の画素指定番号4とが比較される。区切の座標の方が大
きいため、このx座標ペアによって表されるキャラクタ
構成線は1バイト中に含まれることとなり、x座標値ペ
ア(4,5)にそれぞれ対応するドットデータがまとめて
1に設定される。第16図において斜線付の円は1に設定
されたドットデータを表す。x座標ペアのうち、大きい
方のx座標が1バイトの区切となる座標より大きい場合
には、その区切となるx座標と小さい方のx座標との間
の画素が1バイトに含まれることとなり、それらがまと
めて1に設定された後、区切りとなるx座標と大きい方
のx座標との間に8を1単位とするグループが幾つある
かが算出され、1バイトずつまとめてドットデータが1
に設定される。このように設定されたドットデータはド
ットデータメモリ26に格納される。The x-coordinate obtained for the x-direction defining line x whose position in the y-axis direction is 2 will be described as an example with reference to FIG. The x-coordinate pair (4,5), which is larger than the smaller x-coordinate, is compared with the coordinate 7 of the 1-byte delimiting bit and the larger pixel designation number 4. Since the coordinates of the delimiter are larger, the character constituting line represented by this x coordinate pair is included in one byte, and the dot data respectively corresponding to the x coordinate value pair (4, 5) are combined into one. Is set. In FIG. 16, a hatched circle represents dot data set to 1. If the larger x-coordinate of the pair of x-coordinates is larger than the one-byte delimiting coordinate, the pixel between the delimited x-coordinate and the smaller x-coordinate is included in one byte. After they are collectively set to 1, it is calculated how many groups each having 8 as a unit between the x-coordinate serving as the delimiter and the larger x-coordinate, and the dot data are collectively stored byte by byte. 1
Is set to The dot data set in this way is stored in the dot data memory 26.
このように本実施例のデータ変換装置によれば、アウ
トラインデータが修正された後、ドットデータに変換さ
れることにより、キャラクタの対称性,滑らかさが確保
されるのであり、アウトラインデータの修正が指示デー
タが記憶されたキャラクタについてのみ行われ、また、
平行移動のみによって行われることにより、少ないデー
タで迅速にアウトラインデータのドットデータへの変換
が行われる。As described above, according to the data conversion device of the present embodiment, the outline data is corrected and then converted into dot data, thereby ensuring the symmetry and smoothness of the character. This is performed only for the character in which the instruction data is stored.
By performing only the parallel movement, the outline data is quickly converted to the dot data with a small amount of data.
また、凸曲部を有するキャラクタのアウトラインデー
タの修正は、凸曲部がX軸の正負いずれの側に凸であっ
ても極大点,極小点をx座標値が増大する側に隣接する
画素区画線pと一致させることにより行われ、凸曲部が
Y軸の正負いずれの側に凸であっても極大点,極小点を
y座標値が増大する側に隣接する画素区画線pと一致さ
せることにより行われる。したがって、アウトラインデ
ータが修正されるとき、すべてのキャラクタは右方もし
くは上方に移動させられることとなる。極大点,極小点
を近い他の画素区画線pと一致させてもよい。しかし、
隣接するキャラクタがそれぞれ凸曲部を有するとき、ア
ウトラインデータが互に逆向きに移動させられることが
あり、そのような場合にはキャラクタ間の間隔が広く、
あるいは狭くなって間隔にばらつきが生じて見映が悪く
なる。それに対し、キャラクタを凸曲部の方向に応じて
アウトラインデータの移動方向を同じにすれば、隣接す
るキャラクタがいずれも左右方向あるいは上下方向に凸
の凸曲部を有する場合でもキャラクタ間の間隔が過大と
なり、あるいは過小となることが回避され、表示品質の
低下が回避される。In addition, the outline data of a character having a convex curved portion is corrected by setting the maximum point and the minimum point to a pixel section adjacent to the side where the x-coordinate value increases even if the convex curved portion is convex on either the positive or negative side of the X axis. This is performed by matching with the line p, so that the local maximum point and the local minimum point coincide with the pixel division line p adjacent to the side where the y coordinate value increases, regardless of whether the convex curved portion is convex on either the positive or negative side of the Y axis. This is done by: Therefore, when the outline data is corrected, all the characters are moved rightward or upward. The maximum point and the minimum point may be made to coincide with another pixel division line p that is close. But,
When adjacent characters each have a convex portion, outline data may be moved in opposite directions, and in such a case, the space between characters is wide,
Alternatively, the distance becomes narrow and the interval varies, and the appearance deteriorates. On the other hand, if the moving direction of the outline data is set to the same according to the direction of the convex portion of the character, even if the adjacent character has a convex portion that is convex in the horizontal direction or the vertical direction, the space between the characters is reduced. It is avoided that the size becomes excessively large or too small, and the deterioration of the display quality is avoided.
以上の説明から明らかなように、本実施例において
は、プログラムROM14のS20〜S24を記憶する部分およびC
PU12のそれらステップを実行する部分、すなわち交点算
出部38,データ設定部40がデータ変換手段を構成し、キ
ャラクタROM14が指示データ記憶手段を構成し、プログ
ラム14のS2〜S19を記憶する部分およびCPU12のそれらス
テップを実行する部分、すなわちデータ修正部36がアウ
トラインデータ修正手段を構成しているのである。As is clear from the above description, in the present embodiment, the portion storing S20 to S24 of the program ROM 14 and the C
The part of the PU 12 that executes these steps, that is, the intersection calculation unit 38 and the data setting unit 40 constitute data conversion means, the character ROM 14 constitutes instruction data storage means, and the part that stores S2 to S19 of the program 14 and the CPU 12 That is, the portion that executes those steps, that is, the data correction section 36 constitutes outline data correction means.
なお、上記実施例においては簡単な凸曲線44,56を例
に取って説明したが、アルファベットであっても上記の
ようなアウトラインデータの修正によって対称性,滑ら
かさを確保することができる。例えば、アルファベット
のPのように対称でなく、凸曲部を1方向にのみ有する
キャラクタの場合には、その凸の方向を指示するデータ
に従って平行移動させることにより、突起のない滑らか
な凸曲部の表示を得ることができる。In the above embodiment, simple convex curves 44 and 56 have been described as an example. However, even with alphabets, symmetry and smoothness can be ensured by correcting the outline data as described above. For example, in the case of a character that is not symmetrical, such as the letter P, and has a convex portion only in one direction, the character is translated in parallel in accordance with data indicating the direction of the convex portion, so that a smooth convex portion without protrusions is obtained. Can be obtained.
また、アルファベットのHのようにX軸,Y軸にそれぞ
れ平行な対称軸を有するが、凸曲部のないキャラクタの
場合、2方向への平行移動のみによって対称な表示を得
ることができる。A character having a symmetry axis parallel to the X axis and the Y axis, such as the letter H, but having no convex portion, can obtain a symmetric display only by translation in two directions.
アルファベットのOは、X軸,Y軸にそれぞれ対称な対
称軸を有するとともに、上下方向,左右方向にそれぞれ
凸の凸曲部を有するキャラクタであり、2本の対称軸を
それぞれx方向規定線x,y方向規定線yと一致させるこ
とにより対称に表示することはできるが、凸曲部の先端
が1ドットによって表示されることがある。この場合、
輪郭を圧縮し、あるいは引き延ばして凸曲部の極大点あ
るいは極小点を画素区画線pに一致させ、凸の方向と直
交する方向において連続する2画素以上によって表示さ
れるようにすれば、対称性を維持しつつ滑らかさを確保
することができる。O in the alphabet is a character having a symmetry axis symmetrical about the X axis and the Y axis, and having a convex curved portion that is convex in the vertical direction and the horizontal direction, respectively. , it can be displayed symmetrically by making it coincide with the y-direction defining line y, but the tip of the convex curved portion may be displayed by one dot. in this case,
If the contour is compressed or stretched so that the maximum point or the minimum point of the protruding curved portion coincides with the pixel dividing line p so that it is displayed by two or more pixels continuous in the direction orthogonal to the direction of the convexity, the symmetry is obtained. While maintaining smoothness.
さらに上記実施例では、キャラクタが対称な場合、対
称軸をx座標値あるいはy座標値が増大する側に隣接す
るy方向規定線y,x方向規定線xと一致させるようにさ
れていたが、x座標値あるいはy座標値が減少する側に
隣接するy方向規定線y,x方向規定線xと一致させても
よく、隣接するx方向規定線xあるいはy方向規定線y
のうち、近い方の線と一致させるようにしてもよい。Further, in the above embodiment, when the character is symmetric, the axis of symmetry is made to coincide with the y-direction defining line y, the x-direction defining line x adjacent to the side where the x-coordinate value or the y-coordinate value increases. The y-direction defining line y adjacent to the side where the x-coordinate value or the y-coordinate value decreases or the x-direction defining line x may be matched, or the adjacent x-direction defining line x or y-direction defining line y
May be matched with the closer line.
さらにまた、キャラクタが対称な場合、対称軸を画素
区画線pと一致させてアウトラインデータを修正しても
よい。このようにすれば、対称であり、かつ、対称軸上
に極大点,極小点が位置する凸曲部を有する図形におい
ては、凸曲部の先端に必ず少なくとも2個の画素が含ま
れることとなり、ドットが1個のみ突出することが回避
される。Furthermore, when the character is symmetric, the outline data may be corrected by making the axis of symmetry coincide with the pixel division line p. In this way, in a figure that is symmetric and has a convex curved part where the maximum point and the minimum point are located on the axis of symmetry, at least two pixels are always included at the tip of the convex curved part. , Is prevented from protruding only one dot.
さらに、凸曲部を有するキャラクタのアウトラインデ
ータを修正する場合、極大点,極小点を移動量が少なく
て済む画素区画線pと一致させるようにしてもよく、す
べての場合に凸の方向に隣接する画素区画線pと一致さ
せてもよい。Further, when correcting the outline data of a character having a convex curved portion, the local maximum point and the local minimum point may be made to coincide with the pixel division line p requiring only a small amount of movement. May be matched with the pixel division line p.
さらにまた、上記実施例においては印字サイズに関係
なくアウトラインデータの修正が行われるようになって
いたが、印字が12ポイント以下の大きさで行われる場合
のみにアウトラインデータの修正が行うようにしてもよ
い。Furthermore, in the above embodiment, the outline data is corrected regardless of the print size.However, the outline data is corrected only when printing is performed with a size of 12 points or less. Is also good.
また、上記実施例においてアウトラインデータは線素
毎に作られていたが、座標のみで表すなど、他の手段に
より構成してもよい。座標のみで表す場合、複数の直線
により構成されるキャラクタについては、その輪郭の線
素毎の座標データ群によってアウトラインデータを構成
し、曲線を含むキャラクタについては、その曲線を画定
するのに必要な複数の点の座標データ群を含むようにア
ウトラインデータを構成する。In the above embodiment, the outline data is created for each line element. However, the outline data may be constituted by other means, such as by using only coordinates. When represented only by coordinates, for a character composed of a plurality of straight lines, outline data is composed of a group of coordinate data for each line element of the contour, and for a character including a curve, the outline data is necessary to define the curve. The outline data is configured to include a coordinate data group of a plurality of points.
さらに、図形を印字するレーザプリンタやレーザプリ
ンタ以外のプリンタに本発明を適用し得ることは勿論、
プリンタ以外にも文字,図形等のアウトラインデータを
ドットデータに変換する必要のある装置に一般的に本発
明を適用することができる。Furthermore, it goes without saying that the present invention can be applied to laser printers for printing figures and printers other than laser printers.
In general, the present invention can be applied to a device other than a printer that needs to convert outline data such as characters and graphics into dot data.
その他、特許請求の範囲を逸脱することなく、当業者
の知識に基づいて種々の変形,改良を施した態様で本発
明を実施することができる。In addition, without departing from the scope of the claims, the present invention can be implemented in various modified and improved forms based on the knowledge of those skilled in the art.
第1図は本発明に係るデータ変換装置の構成を概念的に
示すブロック図である。第2図は本発明の一実施例であ
るデータ変換装置を備えたレーザプリンタの制御回路を
示すブロック図である。第3図は上記制御回路を構成す
るCPUを概念的に示す図である。第4図は上記データ変
換装置により変換される凸曲線の輪郭を示す図である。
第5図は上記凸曲線を画素スクリーンに重ねて示す図で
ある。第6図は上記凸曲線を画素スクリーンの対称性,
滑らかさが確保されない位置に重ねた状態を示す図であ
る。第7図および第8図は上記制御回路のプログラムRO
Mに記憶されたプログラムのうち、データ変換用プログ
ラムを示すフローチャートである。第9図,第10図は上
記凸曲線のアウトラインデータの修正を説明する図であ
る。第11図,第12図および第13図は上記凸曲線とは別の
凸曲線のアウトラインデータの修正を説明する図であ
る。第14図は上記データ変換装置により変換されるキャ
ラクタの輪郭を構成する線素とx方向規定線xとの交点
の座標の求め方を説明する図である。第15図は第5図に
示す凸曲線の輪郭とx方向規定線xとの交点のx座標を
x方向規定線x毎に示す図である。第16図は上記交点の
x座標に基づいて行われるドットデータの設定を説明す
る図である。 10:マイクロコンピュータ部、44:凸曲線 46:輪郭線、50:画素スクリーン 54:対称軸、56:凸曲線 58:対称軸FIG. 1 is a block diagram conceptually showing the configuration of a data conversion device according to the present invention. FIG. 2 is a block diagram showing a control circuit of a laser printer having a data converter according to one embodiment of the present invention. FIG. 3 is a diagram conceptually showing a CPU constituting the control circuit. FIG. 4 is a diagram showing a contour of a convex curve converted by the data conversion device.
FIG. 5 is a diagram showing the convex curve superimposed on the pixel screen. FIG. 6 shows the above convex curve as the symmetry of the pixel screen,
It is a figure showing the state where it overlapped on the position where smoothness is not secured. 7 and 8 show a program RO of the above control circuit.
6 is a flowchart showing a data conversion program among programs stored in M. 9 and 10 are diagrams for explaining the correction of the outline data of the convex curve. FIG. 11, FIG. 12, and FIG. 13 are diagrams for explaining the correction of outline data of a convex curve different from the above-mentioned convex curve. FIG. 14 is a diagram for explaining how to obtain the coordinates of the intersection of a line element constituting the outline of the character converted by the data conversion device and the x-direction defining line x. FIG. 15 is a diagram showing, for each x-direction defining line x, the x-coordinate of the intersection of the contour of the convex curve shown in FIG. 5 and the x-direction defining line x. FIG. 16 is a diagram for explaining the setting of dot data performed based on the x coordinate of the intersection. 10: microcomputer part, 44: convex curve 46: outline, 50: pixel screen 54: symmetry axis, 56: convex curve 58: symmetry axis
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−39280(JP,A) 特開 昭61−51189(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-60-39280 (JP, A) JP-A-61-51189 (JP, A)
Claims (1)
タ及び2つの座標点を結ぶ線の種類を表す線素データを
含むアウトラインデータによって表される文字、記号等
の図形の輪郭を、互に直交するX軸とY軸とにそれぞれ
平行な複数の規定線により画素を規定する画素スクリー
ンに重ね合わせたと想定した場合に、輪郭内に一定基準
を満たす状態で含まれる画素に対応するドットデータを
図形の存在を表すデータに設定することにより、アウト
ラインデータをドットデータに変換するデータ変換手段
を備えたデータ変換装置において、 前記図形が前記X軸あるいはY軸に平行な対称軸を有す
る場合にその対称軸が平行な軸を指示する軸指示データ
と、前記図形が前記X軸の正負両方向のうちの一方向あ
るいは前記Y軸の正負両方向のうちの一方向に滑らかに
凸の凸曲部を有する場合にその凸の方向を指示する凸方
向指示データとを含む指示データを、図形のアウトライ
ンデータと関連付けて記憶する指示データ記憶手段と、 前記軸指示データと関連付けられたアウトラインデータ
の全ての前記座標点データの前記座標値を、その軸指示
データにより指示された軸に直角な方向において均等に
平行移動させることにより、前記図形の対称軸をその対
称軸と平行な前記規定線の1本またはその対称軸と平行
かつ互に隣接した2本の規定線の中間に位置する1本の
直線に一致させる一方、前記凸方向指示データと関連付
けられたアウトラインデータの全ての前記座標点データ
の前記座標値を、その凸方向指示データにより指示され
た方向と平行な方向に均等に平行移動させることによ
り、前記凸曲部の極大点あるいは極小点を、その凸曲部
のうちの極大点あるいは極小点が位置する位置の近傍に
おいて前記凸方向指示データにより指示された方向と直
交する方向において互に連続する2個以上の画素にそれ
ぞれ対応するドットデータが図形の存在を表すデータに
設定される位置に位置させるアウトラインデータ修正手
段と を設けるとともに、前記データ変換手段を前記アウトラ
インデータ修正手段により修正されたアウトラインデー
タをドットデータに変換するものとしたことを特徴とす
るデータ変換装置。An outline of a figure such as a character or a symbol represented by outline data including coordinate point data representing coordinate values of a plurality of coordinate points and line element data representing a type of a line connecting two coordinate points. Corresponding to pixels included in the outline in a state satisfying a certain criterion, assuming that the pixels are superimposed on a pixel screen that defines pixels by a plurality of defining lines parallel to the X axis and the Y axis that are orthogonal to each other. A data conversion device comprising data conversion means for converting outline data into dot data by setting dot data to data representing the presence of a graphic, wherein the graphic has an axis of symmetry parallel to the X axis or the Y axis. In the case, the axis designation data indicating the axis whose symmetry axis is parallel to the axis, and the figure is one of the positive and negative directions of the X axis or the positive and negative directions of the Y axis. Instruction data storage means for storing instruction data including convex direction instruction data for instructing the direction of the convexity when having a convex curved portion which is smoothly convex in one direction, in association with outline data of the figure; By moving the coordinate values of all the coordinate point data of the outline data associated with the data equally in a direction perpendicular to the axis designated by the axis designation data, the symmetry axis of the figure is symmetrically set. An outline associated with one of the prescribed lines parallel to the axis or one straight line located in the middle between two prescribed lines parallel to the symmetry axis and adjacent to each other, while being associated with the convex direction indicating data By uniformly translating the coordinate values of all the coordinate point data of the data in a direction parallel to the direction designated by the convex direction designation data, The maximum point or the minimum point of the convex curved portion is mutually continuous in the direction orthogonal to the direction designated by the convex direction designation data in the vicinity of the position where the maximum point or the minimum point of the convex curved portion is located. And outline data correction means for positioning dot data respectively corresponding to two or more pixels to be set in data representing the presence of a figure, and correcting the data conversion means by the outline data correction means. A data conversion device for converting outline data into dot data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1130933A JP2956705B2 (en) | 1989-05-24 | 1989-05-24 | Data converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1130933A JP2956705B2 (en) | 1989-05-24 | 1989-05-24 | Data converter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02309459A JPH02309459A (en) | 1990-12-25 |
| JP2956705B2 true JP2956705B2 (en) | 1999-10-04 |
Family
ID=15046101
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1130933A Expired - Fee Related JP2956705B2 (en) | 1989-05-24 | 1989-05-24 | Data converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2956705B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03245279A (en) * | 1990-02-23 | 1991-10-31 | Fujitsu Ltd | System for developing symmetrical character or graphic |
| JPH06208370A (en) * | 1992-08-28 | 1994-07-26 | Go Corp | Method for character display by raster by coupling aliasing suppression to lattice adaptation |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3479254D1 (en) * | 1983-07-04 | 1989-09-07 | Karow Rubow Weber Gmbh | Method for automatically digitizing the contours of line graphics, e.g. characters |
| US4675830A (en) * | 1984-07-06 | 1987-06-23 | Compugraphic Corporation | Method for producing a scaleable typeface data |
-
1989
- 1989-05-24 JP JP1130933A patent/JP2956705B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02309459A (en) | 1990-12-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6130667A (en) | Character pattern generating apparatus | |
| JP2956705B2 (en) | Data converter | |
| JPH02232690A (en) | Data converting device | |
| KR100433100B1 (en) | Information processing apparatus, method for generating patterns, and recording medium with pattern generation programs recorded thereon | |
| JP3038840B2 (en) | Data converter | |
| JPH08123392A (en) | Data converter | |
| JP2903531B2 (en) | Data converter | |
| JP3169013B2 (en) | Data output device | |
| JPH04280296A (en) | Contour data processing device | |
| JP2861127B2 (en) | Data converter | |
| JP2757411B2 (en) | Data converter | |
| JPH02254491A (en) | Data converter | |
| JP3057978B2 (en) | Character generator | |
| JPH0747339B2 (en) | Data converter | |
| JPH0728449A (en) | Data converter | |
| JP2770331B2 (en) | Data converter | |
| JPH02231166A (en) | data conversion device | |
| JP2559697B2 (en) | Character processor | |
| JP2881863B2 (en) | Data converter | |
| JP3057811B2 (en) | Data converter | |
| JP3077180B2 (en) | Data converter | |
| JPH05341763A (en) | Device for generating character | |
| JP3092172B2 (en) | Data converter | |
| JP2754579B2 (en) | Data converter | |
| JP2861201B2 (en) | Data converter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |