JP4594809B2 - Outline font output device, outline font output method, and computer program - Google Patents

Outline font output device, outline font output method, and computer program Download PDF

Info

Publication number
JP4594809B2
JP4594809B2 JP2005183469A JP2005183469A JP4594809B2 JP 4594809 B2 JP4594809 B2 JP 4594809B2 JP 2005183469 A JP2005183469 A JP 2005183469A JP 2005183469 A JP2005183469 A JP 2005183469A JP 4594809 B2 JP4594809 B2 JP 4594809B2
Authority
JP
Japan
Prior art keywords
area
font
polygonal line
unit
outline
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
Application number
JP2005183469A
Other languages
Japanese (ja)
Other versions
JP2007003801A (en
Inventor
肇 日下
正司 武市
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.)
MORISAWA INC.
Original Assignee
MORISAWA INC.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MORISAWA INC. filed Critical MORISAWA INC.
Priority to JP2005183469A priority Critical patent/JP4594809B2/en
Publication of JP2007003801A publication Critical patent/JP2007003801A/en
Application granted granted Critical
Publication of JP4594809B2 publication Critical patent/JP4594809B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、アウトラインフォントの角部を含む輪郭部分のグレイ濃度を、計算機資源の消費を抑制しつつ特定し、滑らかなフォントで表示出力することができるアウトラインフォント出力装置、アウトラインフォント出力方法及びコンピュータプログラムに関する。   The present invention relates to an outline font output device, an outline font output method, and a computer that can specify a gray density of a contour portion including a corner portion of an outline font and display and output the same with a smooth font while suppressing consumption of computer resources. Regarding the program.

近年のDTP技術の急速な進展に伴い、ワードプロセッサ、パーソナルコンピュータ等で利用されるフォントは、より鮮明に、より滑らかに表示又は印字することが要求される。ワードプロセッサ、パーソナルコンピュータ等で利用されるフォントは、ビットマップフォント、及びアウトラインフォントに大別することができる。   With the rapid development of DTP technology in recent years, fonts used in word processors, personal computers, and the like are required to be displayed or printed more clearly and smoothly. Fonts used in word processors, personal computers, and the like can be broadly classified into bitmap fonts and outline fonts.

アウトラインフォントは、輪郭線を形成し、該輪郭線で囲まれた領域を塗りつぶすことによって描画する。したがって、文字の大きさを変えた場合、回転させた場合であっても、ジャギーの少ない高品質な文字を表示又は印字することができる。   The outline font is drawn by forming an outline and painting a region surrounded by the outline. Therefore, even when the character size is changed or rotated, high-quality characters with less jaggy can be displayed or printed.

アウトラインフォントを表すデータは、ハードディスク、ROM等に記憶してあるアウトラインフォント辞書に記憶する。そして、一つの文字を描画する場合、該文字に対応するアウトラインフォントデータがアウトラインフォント辞書から読み出され、所定の処理がなされてから表示装置又は印字装置により描画される。   Data representing the outline font is stored in an outline font dictionary stored in a hard disk, ROM, or the like. When a single character is drawn, outline font data corresponding to the character is read from the outline font dictionary, subjected to a predetermined process, and then drawn by a display device or a printing device.

従来のアウトラインフォントは、例えば輪郭線を右回りに、3次ベジェ曲線関数、Bスプライン関数等を用いて曲線近似して閉領域を生成する。そして、閉領域を形成する輪郭線が通過するピクセルごとに、該ピクセルに含まれている閉領域の面積比を、ピクセルに含まれるドット数等の比率を用いて算出し、算出した面積比に応じてグレイ濃度を変化させている。これにより、輪郭線で生じやすいギザギザ部分を改善することができ、フォントの輪郭線の形状を容易に変更することができる(特許文献1、2参照)。
特許第2774653号公報 特開2002−351451号公報
In the conventional outline font, for example, a closed region is generated by approximating a contour clockwise, using a cubic Bezier curve function, a B-spline function, or the like. Then, for each pixel through which the outline forming the closed region passes, the area ratio of the closed region included in the pixel is calculated using a ratio such as the number of dots included in the pixel, and the calculated area ratio is calculated. The gray density is changed accordingly. Thereby, the jagged part which is likely to occur in the outline can be improved, and the outline of the font can be easily changed (see Patent Documents 1 and 2).
Japanese Patent No. 2774653 JP 2002-351451 A

しかし、上述した従来のアウトラインフォントの表示方法では、輪郭線を短い直線で近似することにより多くの折れ線を生成し、輪郭線を折れ線近似することにより演算処理負荷を軽減することがなされているが、文字の輪郭線の角部分を表示する場合、折れ線に囲まれている領域の面積を求める演算の処理負荷は軽減することができず、アウトラインフォントを表示又は印字するまでに相当の時間を要するおそれがあるという問題点があった。   However, in the conventional outline font display method described above, many broken lines are generated by approximating the outline with short straight lines, and the calculation processing load is reduced by approximating the outline with the broken line. When displaying the corner portion of the outline of a character, the processing load for calculating the area of the area surrounded by the broken line cannot be reduced, and it takes a considerable time to display or print the outline font. There was a problem of fear.

本発明は斯かる事情に鑑みてなされたものであり、輪郭線を折れ線近似するとともに、文字の輪郭線の角部分の面積算出における演算処理負荷を軽減することによりアウトラインフォントを表示又は印字するまでの時間を短縮することができるアウトラインフォント出力装置、アウトラインフォント出力方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and performs contour approximation of a contour line and reduces the calculation processing load in calculating the area of the corner portion of the contour line of a character to display or print an outline font. It is an object of the present invention to provide an outline font output device, an outline font output method, and a computer program that can reduce the time required for the above.

上記目的を達成するために第1発明に係るアウトラインフォント出力装置は、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力装置であって、前記単位領域は矩形状であり、近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断する手段と、長辺又は短辺からの前記角部分への距離及び長辺又は短辺上の交差点までの他辺からの距離を特定する手段と、特定した距離に基づき、前記単位領域内における近似した折れ線の角部分と対向する前記単位領域の一又は複数の辺及び前記折れ線で囲繞された前記フォント領域の面積を算出する手段と、前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段とを備えることを特徴とする。 In order to achieve the above object, an outline font output device according to a first aspect of the present invention approximates a closed curve indicating the outline of an outline font by a polygonal line, and determines a gray density of a pixel having a corner portion of the approximate polygonal line as a predetermined value including the pixel. An outline font output device that outputs an outline font by specifying a ratio of an area occupied by a portion of a font area that is inside the polygonal line in a unit area, wherein the unit area is rectangular, and an approximate polygonal line and Means for determining whether one side of the unit region intersecting is the long side or the short side of the unit region, and the distance from the long side or short side to the corner portion and the intersection on the long side or short side means for identifying a distance from the sides, based on the specified distance, one or of the unit area facing the corner portions of the polygonal line approximating in the unit area Means that to calculate the area of the font area surrounded by the number of sides and the fold lines, characterized in that it comprises a means for obtaining a ratio of the area calculated for the area of the unit area as the percentage.

また、第発明に係るアウトラインフォント出力装置は、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力装置であって、前記単位領域は正方形であり、近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定する手段と、特定した距離に基づいて前記フォント領域の面積を算出する手段と、前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段とを備えることを特徴とする。 In the outline font output device according to the second aspect of the present invention, the closed curve indicating the outline of the outline font is approximated by a polygonal line, and the gray density of the pixel in which the corner portion of the approximate polygonal line exists is determined in a predetermined unit area including the pixel. identified in the ratio of the area occupied by the inner and is font area portion of the polygonal line, a outline font output device for outputting the outline font, the unit region is square, the unit region intersecting with polygonal line approximates distance to the angle portion from one side, and means for identifying the distance from the other side of the intersection on the one side, and means that to calculate the area of the font area based on the distance specified, the unit area Means for determining the ratio of the calculated area to the area as the ratio .

また、第発明に係るアウトラインフォント出力方法は、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力方法であって、前記単位領域は矩形状であり、近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断し、長辺又は短辺からの前記角部分への距離、及び長辺又は短辺上の交差点までの他辺からの距離を特定し、特定した距離に基づき、前記単位領域内における近似した折れ線の角部分とフォント領域を挟み対向する一又は複数の辺及び折れ線で囲繞された前記フォント領域の面積を算出し、前記単位領域の面積に対する算出した面積の比率を前記割合として求めることを特徴とする。 In the outline font output method according to the third aspect of the invention, the closed curve indicating the outline of the outline font is approximated by a polygonal line, and the gray density of the pixel in which the corner portion of the approximated polygonal line exists is determined in a predetermined unit area including the pixel. An outline font output method for specifying an area ratio occupied by a portion of a font area inside the polygonal line and outputting an outline font, wherein the unit area is rectangular and intersects with an approximate polygonal line Determine whether one side is the long side or short side of the unit area, and specify the distance from the long side or short side to the corner and the distance from the other side to the intersection on the long side or short side and, based on the specified distance, surrounded by one or more sides and polygonal faces sandwiching the corner portion and the font region of the polygonal line approximating in the unit area Calculating the area of the font area, and obtains the ratio of the area calculated for the area of the unit area as the percentage.

また、第発明に係るアウトラインフォント出力方法は、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力方法であって、前記単位領域は正方形であり、近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定し、特定した距離に基づいて前記フォント領域の面積を算出し、前記単位領域の面積に対する算出した面積の比率を前記割合として求めることを特徴とする。 In the outline font output method according to the fourth aspect of the present invention, the closed curve indicating the outline of the outline font is approximated by a polygonal line, and the gray density of the pixel in which the corner portion of the approximate polygonal line exists is determined in a predetermined unit region including the pixel. An outline font output method for specifying an area ratio occupied by a portion of a font area inside the polygonal line and outputting an outline font, wherein the unit area is a square and the unit area intersecting the approximate polygonal line Specify the distance from one side to the corner part and the distance from the other side of the intersection on the one side, calculate the area of the font area based on the specified distance , and calculate the area for the area of the unit area The ratio is obtained as the ratio .

また、第発明に係るコンピュータプログラムは、矩形状の単位領域を通過するアウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するコンピュータで実行することが可能なコンピュータプログラムであって、前記コンピュータを、近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断する手段、長辺又は短辺からの前記角部分への距離及び長辺又は短辺上の交差点までの他辺からの距離を特定する手段、特定した距離に基づき、前記単位領域内における近似した折れ線の角部分とフォント領域を挟み対向する前記単位領域の一又は複数の辺及び折れ線で囲繞された前記フォント領域の面積を算出する手段、前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段、及び求めた割合に基づきピクセルのグレイ濃度を特定する濃度特定手段として機能させることを特徴とする。 According to a fifth aspect of the present invention, there is provided a computer program that approximates a closed curve indicating an outline of an outline font that passes through a rectangular unit region by a polygonal line, and includes the gray density of a pixel having a corner portion of the approximate polygonal line. A computer program that can be executed by a computer that outputs an outline font that is specified by a ratio of an area occupied by a portion of a font area that is inside the polygonal line within a predetermined unit area, the computer being approximated Means for determining whether one side of the unit region intersecting with the polygonal line is a long side or a short side of the unit region, a distance from the long side or the short side to the corner portion, and an intersection on the long side or the short side means for identifying a distance from the other side, based on the distance was especially boss, corner portions and font territory of polygonal line approximating in the unit area One or more sides and means to calculate the area of the font area surrounded by broken line of the unit areas sandwiching opposite the means for determining the ratio of the area calculated for the area of the unit area as the percentage, and calculated It functions as a density specifying means for specifying the gray density of the pixel based on the ratio .

また、第発明に係るコンピュータプログラムは、正方形状の単位領域を通過するアウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するコンピュータで実行することが可能なコンピュータプログラムであって、前記コンピュータを、近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定する手段、特定した距離に基づいて前記フォント領域の面積を算出する手段、前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段、及び求めた割合に基づきピクセルのグレイ濃度を特定する濃度特定手段として機能させることを特徴とする。 According to a sixth aspect of the present invention, there is provided a computer program that approximates a closed curve indicating the outline of an outline font that passes through a square unit area by a polygonal line, and includes the gray density of a pixel having a corner portion of the approximate polygonal line. A computer program that can be executed by a computer that outputs an outline font that is specified by a ratio of an area occupied by a portion of a font area that is inside the polygonal line within a predetermined unit area, the computer being approximated Means for specifying a distance from one side of the unit area intersecting the polygonal line to the corner portion, a distance from the other side of the intersection on the one side, and means for calculating the area of the font area based on the specified distance , Means for determining the ratio of the calculated area to the area of the unit region as the ratio, and Characterized in that to function as the concentration specifying means for specifying the gray levels of pixels based on the ratio.

第1発明、第3発明及び第5発明では、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在する矩形状の単位領域内の角部分と対向する一又は複数の辺で囲繞されたフォント領域の面積を算出し、算出した面積に応じて単位領域内のフォント領域のピクセルのグレイ濃度を特定する。これにより、演算処理負荷を軽減することができ、単位領域内に存在する折れ線近似した線分の角部分を囲繞するフォント領域の面積を算出することから、単位領域内のフォント領域のピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。
更に本発明では、近似した折れ線と交差する単位領域の一辺が、単位領域の長辺か短辺かを判断し、長辺又は短辺を基準とした角部分の相対位置即ち前記一辺からの距離及び交差点の長辺又は短辺からの距離に基づいてフォント領域の面積を算出する。これにより、縦横のいずれの辺と交差するかに応じた相対座標で面積を算出することができ、単位領域内のフォント領域のピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。
In the first invention, the third invention, and the fifth invention, the closed curve indicating the outline of the outline font is approximated by a polygonal line, and one or more facing the corner part in the rectangular unit region where the corner part of the approximated polygonal line exists The area of the font region surrounded by the side is calculated, and the gray density of the pixel of the font region in the unit region is specified according to the calculated area. As a result, the processing load can be reduced, and since the area of the font area surrounding the corner portion of the approximated line segment existing in the unit area is calculated, the pixel gray of the font area in the unit area is calculated. It is possible to reduce the calculation processing load related to area calculation for specifying the density, and it is possible to shorten the time until the font is displayed or printed.
Further, in the present invention, it is determined whether one side of the unit region intersecting the approximate polygonal line is the long side or the short side of the unit region, and the relative position of the corner portion with respect to the long side or the short side, that is, the distance from the one side. The area of the font area is calculated based on the distance from the long side or short side of the intersection. As a result, the area can be calculated with relative coordinates according to which side intersects the vertical and horizontal sides, and the calculation processing load related to area calculation for specifying the gray density of the pixel in the font area in the unit area is reduced. It is possible to reduce the time until the font is displayed or printed.

第2発明、第4発明及び第6発明では、アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在する矩形状の単位領域内の角部分と対向する一又は複数の辺で囲繞されたフォント領域の面積を算出し、算出した面積に応じて単位領域内のフォント領域のピクセルのグレイ濃度を特定する。これにより、演算処理負荷を軽減することができ、単位領域内に存在する折れ線近似した線分の角部分を囲繞するフォント領域の面積を算出することから、単位領域内のフォント領域のピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。
更に本発明では、単位領域は正方形であり、近似した折れ線と交差する単位領域の一辺を基準とした相対位置に基づいて、近似した折れ線の角部分と対向する一又は複数の辺で囲繞されたフォント領域の面積を算出する。これにより、単位領域の一辺を基準とした相対座標で面積を算出することができ、単位領域内のフォント領域のピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。
In the second invention, the fourth invention, and the sixth invention, the closed curve indicating the outline of the outline font is approximated by a polygonal line, and one or a plurality of opposing corner parts in a rectangular unit region where the corner part of the approximated polygonal line exists The area of the font region surrounded by the side is calculated, and the gray density of the pixel of the font region in the unit region is specified according to the calculated area. As a result, the processing load can be reduced, and since the area of the font area surrounding the corner portion of the approximated line segment existing in the unit area is calculated, the pixel gray of the font area in the unit area is calculated. It is possible to reduce the calculation processing load related to area calculation for specifying the density, and it is possible to shorten the time until the font is displayed or printed.
Further, in the present invention, the unit region is a square, and is surrounded by one or more sides facing the corner portion of the approximate polygonal line based on the relative position based on one side of the unit region that intersects the approximate polygonal line. The area of the font area is calculated. As a result, the area can be calculated with relative coordinates based on one side of the unit area, and the processing load related to area calculation for specifying the gray density of the pixel of the font area in the unit area can be reduced. It is possible to shorten the time until the font is displayed or printed.

本発明によれば、アウトラインフォントの輪郭線の角部分を表示するための演算処理負荷を軽減することができる。また、角部分のピクセルを含む単位領域の一辺を基準として交差する辺からの相対座標により面積を算出することから、単位領域内のフォント領域のピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。 According to the present invention, it is possible to reduce the processing load for displaying the corner portion of the outline of the outline font. In addition, since the area is calculated based on the relative coordinates from the side intersecting with one side of the unit area including the corner part pixel, the area calculation for specifying the gray density of the pixel of the font area in the unit area is concerned. The calculation processing load can be reduced, and the time until the font is displayed or printed can be shortened.

(実施の形態1)
以下、本発明の実施の形態1に係るアウトラインフォント出力装置について図面に基づいて具体的に説明する。図1は、本発明の実施の形態1に係るアウトラインフォント出力装置10の構成を示すブロック図である。図1に示すように、アウトラインフォント出力装置10は、少なくとも、CPU(中央演算装置)11、記憶手段12、ROM13、RAM14、DVD、CD等の可搬型記憶媒体2を用いる補助記憶手段15、入力手段16、表示データを出力する表示手段17、及び印字データを印字する印刷手段18で構成される。
(Embodiment 1)
Hereinafter, an outline font output apparatus according to Embodiment 1 of the present invention will be specifically described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an outline font output device 10 according to Embodiment 1 of the present invention. As shown in FIG. 1, the outline font output device 10 includes at least a CPU (central processing unit) 11, a storage unit 12, a ROM 13, a RAM 14, a portable storage medium 2 such as a DVD or a CD, an input. It comprises means 16, display means 17 for outputting display data, and printing means 18 for printing print data.

CPU11は、内部バス19を介してアウトラインフォント出力装置10の上述したようなハードウェア各部と接続されており、上述したハードウェア各部を制御するとともに、記憶手段12に記憶されている処理プログラム、例えばワードプロセッサとして機能させるプログラム、アウトラインフォントのラスタライズ処理プログラム等に従って、種々のソフトウェア的機能を実行する。   The CPU 11 is connected to the above-described hardware units of the outline font output device 10 via the internal bus 19, and controls the above-described hardware units and also stores a processing program stored in the storage unit 12, for example, Various software functions are executed in accordance with a program that functions as a word processor, an outline font rasterization processing program, and the like.

記憶手段12は、内蔵される固定型記憶装置(ハードディスク)であり、DVD、CD−ROM等の可搬型記録媒体2から取得した、アウトラインフォント出力装置10として機能させるために必要な処理プログラム、例えばワードプロセッサとして機能させるソフトウェアモジュールを記憶している。記憶手段12は、処理プログラムだけではなく、例えばアウトラインフォントのフォントデータをフォントデータ記憶部121に、単位ピクセルごとのグレイ濃度をグレイ濃度記憶部122に、それぞれ記憶してある。   The storage means 12 is a built-in fixed-type storage device (hard disk), and is a processing program necessary for functioning as the outline font output device 10 obtained from a portable recording medium 2 such as a DVD or CD-ROM, for example A software module that functions as a word processor is stored. The storage unit 12 stores not only the processing program but also font data of an outline font, for example, in the font data storage unit 121 and the gray density for each unit pixel in the gray density storage unit 122, respectively.

ROM13は、フラッシュメモリ、SRAM等で構成され、例えばアウトラインフォントのフォントデータを記憶している。また、文字コード等を記憶しておいても良い。RAM14は、DRAM等で構成され、ソフトウェアの実行時に発生する一時的なデータを記憶する。   The ROM 13 is configured by a flash memory, SRAM, or the like, and stores font data of outline fonts, for example. Further, a character code or the like may be stored. The RAM 14 is composed of a DRAM or the like, and stores temporary data generated when software is executed.

補助記憶手段15は、CD、DVD等の可搬型記録媒体2を用い、記憶手段12へ、CPU11が処理するプログラム、データ等をダウンロードする。また、CPU11が処理したデータをバックアップすべく書き込むことも可能である。   The auxiliary storage unit 15 uses a portable recording medium 2 such as a CD or a DVD, and downloads a program, data, or the like to be processed by the CPU 11 to the storage unit 12. It is also possible to write the data processed by the CPU 11 for backup.

入力手段16は、画面上に表示されたカーソルを移動させるマウス等のポインティングデバイス、又は画面上でテキストデータを打鍵により入力するキーボード等である。   The input means 16 is a pointing device such as a mouse that moves a cursor displayed on the screen, or a keyboard that inputs text data by keystroke on the screen.

表示手段17は、記憶手段12のフォント表示データ記憶部121、又はROM13に記憶してあるアウトラインフォントのフォントデータに基づいて生成された表示データを表示する液晶表示装置(LCD)、表示ディスプレイ(CRT)等の外部の諧調表現が可能な表示装置である。印刷手段18は、記憶手段12のフォントデータ記憶部121、又はROM13に記憶してあるアウトラインフォントのフォントデータに基づいて生成された印字データを印字出力するレーザプリンタ、インクジェットプリンタ等の印刷装置である。   The display unit 17 includes a liquid crystal display (LCD), a display display (CRT) that displays display data generated based on the font data of the outline font stored in the font display data storage unit 121 of the storage unit 12 or the ROM 13. ) And the like. The printing unit 18 is a printing device such as a laser printer or an ink jet printer that prints out print data generated based on the font data of the outline font stored in the font data storage unit 121 of the storage unit 12 or the ROM 13. .

図2は、本発明の実施の形態1に係るアウトラインフォント出力装置10のCPU11の処理手順を示すフローチャートである。アウトラインフォント出力装置10のCPU11は、記憶手段12のフォントデータ記憶部121又はROM13に記憶してあるフォントデータを読出し(ステップS201)、表示又は印字する文字の文字コードをROM13から抽出して、フォントの輪郭を構成するアウトラインデータを算出する(ステップS202)。   FIG. 2 is a flowchart showing a processing procedure of the CPU 11 of the outline font output device 10 according to the first embodiment of the present invention. The CPU 11 of the outline font output device 10 reads the font data stored in the font data storage unit 121 of the storage unit 12 or the ROM 13 (step S201), extracts the character code of the character to be displayed or printed from the ROM 13, Outline data that constitutes the contour is calculated (step S202).

CPU11は、算出したアウトラインデータを短い線分の集合として折れ線近似し(ステップS203)、アウトラインフォントの角部分を構成するピクセルの座標を特定する(ステップS204)。輪郭を構成するピクセルは、短辺8ビット(256ドット)、長辺16ビット(512ドット)の長方形で構成する単位ピクセルであり、短辺を単位長、例えば‘1’として以下の演算を実行する。なお、単位ピクセルの縦横比は、上述した1:2に限定されるものではなく、1:α(αは任意の実数)であれば良い。   The CPU 11 approximates the calculated outline data as a set of short line segments as a polygonal line (step S203), and specifies the coordinates of the pixels constituting the corner portion of the outline font (step S204). The pixel constituting the contour is a unit pixel composed of a rectangle having a short side of 8 bits (256 dots) and a long side of 16 bits (512 dots), and the following calculation is performed with the short side as a unit length, for example, “1”. To do. The aspect ratio of the unit pixel is not limited to 1: 2 as described above, and may be 1: α (α is an arbitrary real number).

図3は、アウトラインデータを折れ線近似する処理の例示図である。本実施の形態1では、256(ドット)×512(ドット)である短辺8ビット、長辺16ビットの長方形で構成された単位ピクセルを用いて輪郭のピクセル座標を特定する。そして、単位ピクセルの短辺の長さを単位長‘1’として以下の演算を実行する。図3のように、特定の単位ピクセルを始点‘0’とし、輪郭を含む単位ピクセルを時計回りに順次特定し、輪郭を示す閉曲線の終点‘m’(mは自然数)まで単位ピクセルの座標を特定する。   FIG. 3 is an exemplary diagram of processing for approximating outline data to a polygonal line. In the first embodiment, the pixel coordinates of the contour are specified using unit pixels composed of a rectangle of 256 (dots) × 512 (dots) having a short side of 8 bits and a long side of 16 bits. Then, the following calculation is executed with the length of the short side of the unit pixel as the unit length ‘1’. As shown in FIG. 3, a specific unit pixel is set as a start point “0”, unit pixels including an outline are sequentially specified clockwise, and the coordinates of the unit pixel are set up to an end point “m” (m is a natural number) of a closed curve indicating the outline. Identify.

CPU11は、フォント表示部分の角部分が含まれている単位ピクセルについて、フォント表示部分の面積を算出する(ステップS205)。図4は、フォント表示部分の面積を算出する対象となる単位ピクセルの例示図である。単位ピクセルの左下の頂点を原点(0、0)とし、短辺の長さを1.0、α=2.0とする。図4に示すように、単位ピクセル内に角部分を含む場合、単位ピクセル内の点(xk、yk)と、該単位ピクセルを通過する前後の点(xp、yp)、(xq、yq)とにより、単位ピクセル内のフォント表示部分の面積を求めることができる。   CPU11 calculates the area of a font display part about the unit pixel in which the corner | angular part of a font display part is contained (step S205). FIG. 4 is an exemplary diagram of unit pixels that are targets for calculating the area of the font display portion. The lower left vertex of the unit pixel is the origin (0, 0), the length of the short side is 1.0, and α = 2.0. As shown in FIG. 4, when a corner portion is included in a unit pixel, a point (xk, yk) in the unit pixel and points (xp, yp), (xq, yq) before and after passing through the unit pixel Thus, the area of the font display portion in the unit pixel can be obtained.

CPU11は、まず各折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を求める。図5(a)乃至(d)は、単位ピクセルの長辺が横である場合の単位ピクセル内の点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。図5では、折れ線近似した線分が単位ピクセルのどの辺で交差しているのかに基づき、リージョン1乃至4に分類する。図5(a)はリージョン1の場合の例示図であり、アウトラインフォントの交差する点は、(α、yf)となる。   The CPU 11 first obtains the coordinates of the point where the line segment approximated by each broken line and the side of the unit pixel intersect. FIGS. 5A to 5D are polygonal line approximations when light is emitted from a point (xk, yk) in a unit pixel toward an external point (xq, yq) when the long side of the unit pixel is horizontal. It is a figure which shows the coordinate of the point which the line segment and the side of a unit pixel crossed. In FIG. 5, regions 1 to 4 are classified based on which side of the unit pixel intersects the line segment approximated by the broken line. FIG. 5A is an exemplary diagram in the case of the region 1, and the point where the outline font intersects is (α, yf).

図5(b)はリージョン2の場合の例示図であり、交差する点は、(α−xf、1)となる。なお、xfは交差する点のx座標のαによる剰余部分である。図5(c)はリージョン3の場合の例示図であり、交差する点は、(0、1−yf)となる。図5(d)はリージョン4の場合の例示図であり、交差する点は、(xf、0)となる。なお、図5は、単位ピクセル内の角部分を構成する頂点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標につき説明しているが、外部の点(xp、yp)から単位ピクセル内の角部分を構成する頂点(xk、yk)に向かって入射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標についても同様にリージョン分類を行うことができる。   FIG. 5B is an exemplary diagram in the case of the region 2, and the intersecting point is (α−xf, 1). Note that xf is a remainder portion of α at the intersecting point by α. FIG. 5C is an exemplary diagram in the case of the region 3, and the intersecting point is (0, 1-yf). FIG. 5D is an exemplary diagram in the case of the region 4, and the intersecting point is (xf, 0). In FIG. 5, the line segment approximated by a polygonal line and the side of the unit pixel intersect when emitted from the vertex (xk, yk) constituting the corner portion in the unit pixel toward the external point (xq, yq). Although the coordinates of the point to be described are explained, a line segment and unit pixel approximated by a polygonal line when incident from an external point (xp, yp) toward a vertex (xk, yk) constituting a corner portion in the unit pixel Region classification can also be performed in the same manner for the coordinates of the point where the side of the line intersects.

図6(a)乃至(d)は、単位ピクセルの長辺が縦である場合の単位ピクセル内の点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。図6では、折れ線近似した線分が単位ピクセルのどの辺で交差しているのかに基づき、リージョン1乃至4に分類する。図6(a)はリージョン1の場合の例示図であり、アウトラインフォントの交差する点は、(α、yf)となる。   6A to 6D show broken line approximations when light is emitted from a point (xk, yk) in a unit pixel toward an external point (xq, yq) when the long side of the unit pixel is vertical. It is a figure which shows the coordinate of the point which the line segment and the side of a unit pixel crossed. In FIG. 6, regions 1 to 4 are classified based on which side of the unit pixel intersects the line segment approximated by the broken line. FIG. 6A is an exemplary diagram in the case of the region 1, and the point where the outline font intersects is (α, yf).

図6(b)はリージョン2の場合の例示図であり、交差する点は、(1−xf、α)となる。なお、xfは交差する点のx座標の1.0による剰余部分である。図6(c)はリージョン3の場合の例示図であり、交差する点は、(0、1.0−yf)となる。図6(d)はリージョン4の場合の例示図であり、交差する点は、(xf、0)となる。なお、図5は、単位ピクセル内の角部分を構成する頂点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標につき説明しているが、外部の点(xp、yp)から単位ピクセル内の角部分を構成する頂点(xk、yk)に向かって入射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標についても同様にリージョン分類を行うことができる。   FIG. 6B is an exemplary diagram in the case of the region 2, and the intersecting point is (1-xf, α). Note that xf is a remainder portion of the intersecting point with an x coordinate of 1.0. FIG. 6C is an exemplary diagram in the case of the region 3, and the intersecting point is (0, 1.0-yf). FIG. 6D is an exemplary diagram in the case of the region 4, and the intersecting point is (xf, 0). In FIG. 5, the line segment approximated by a polygonal line and the side of the unit pixel intersect when emitted from the vertex (xk, yk) constituting the corner portion in the unit pixel toward the external point (xq, yq). Although the coordinates of the point to be described are explained, a line segment and unit pixel approximated by a polygonal line when incident from an external point (xp, yp) toward a vertex (xk, yk) constituting a corner portion in the unit pixel Region classification can also be performed in the same manner for the coordinates of the point where the side of the line intersects.

リージョン分類を行った後、CPU11は、単位ピクセル内で角部分を構成する頂点(xk、yk)に対向する一又は複数の辺で囲繞された部分の面積を算出し(ステップS205)、算出した面積に基づいて単位ピクセルごとの面積比を算出して(ステップS206)、単位ピクセルごとのグレイ濃度を算出する(ステップS207)。   After performing the region classification, the CPU 11 calculates the area of the part surrounded by one or more sides facing the vertex (xk, yk) constituting the corner part in the unit pixel (step S205). An area ratio for each unit pixel is calculated based on the area (step S206), and a gray density for each unit pixel is calculated (step S207).

具体的には、図7又は図8に示す処理を実行することにより、単位ピクセル内の角部分を構成する頂点(xk、yk)に対向する一又は複数の辺で囲繞された部分の面積を算出する。CPU11は、単位ピクセルへ折れ線近似した線分が入射するリージョンと、単位ピクセルから折れ線近似した線分が出射するリージョンとの差を算出し、角部分を構成する頂点(xk、yk)を挟む2つの線分が、単位ピクセルのどの辺を通過するのか特定する。図7(a)乃至(e)は、単位ピクセルへ折れ線近似した線分が入射するリージョンが、長方形の長辺側である場合の、入射するリージョンと単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値ΔRに応じて、フォント表示部分の面積を求める方法を示す図である。なお、差分値ΔRは、単位ピクセルから折れ線近似した線分が出射するリージョンから、単位ピクセルへ折れ線近似した線分が入射するリージョンを減算することにより算出し、算出結果が負の値となった場合、ΔR=‘−3’の場合はΔR=‘1’に、ΔR=‘−2’の場合はΔR=‘2’に、ΔR=‘−1’の場合はΔR=‘3’に、それぞれ変換する。   Specifically, by executing the processing shown in FIG. 7 or FIG. 8, the area of the part surrounded by one or more sides facing the vertex (xk, yk) constituting the corner part in the unit pixel is determined. calculate. The CPU 11 calculates a difference between a region where a line segment approximated to a polygonal line enters a unit pixel and a region where a line segment approximated to a polygonal line exits from the unit pixel, and sandwiches the vertices (xk, yk) constituting the corner portion 2 Specify which side of a unit pixel a line segment passes through. 7A to 7E, when a region where a line segment approximated to a unit pixel is incident on a polygonal line is on the long side of the rectangle, a line segment approximated to a polygonal line is emitted from the incident region and the unit pixel. It is a figure which shows the method of calculating | requiring the area of a font display part according to difference value (DELTA) R with a region. The difference value ΔR is calculated by subtracting the region where the line segment approximating the polygonal line enters the unit pixel from the region where the line segment approximating the polygonal line is emitted from the unit pixel, and the calculation result becomes a negative value. When ΔR = '-3', ΔR = '1', when ΔR = '-2', ΔR = '2', when ΔR = '-1', ΔR = '3' Convert each one.

図7(a)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x1より、単位ピクセルから折れ線近似した線分が出射する点のx座標x2の方が大きいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数1)により算出する。   FIG. 7A shows a case where the difference value ΔR is “0”, and a line segment approximating the polygonal line is emitted from the unit pixel from the x coordinate x1 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x2 of a point is larger. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 1).

(数1)
A=D2×(x2−x1)/2
(Equation 1)
A = D2 × (x2−x1) / 2

図7(b)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x2より、単位ピクセルから折れ線近似した線分が出射する点のx座標x1の方が小さいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数2)により算出する。   FIG. 7B shows a case where the difference value ΔR is “0”, and a line segment approximating a polygonal line is emitted from the unit pixel from the x coordinate x2 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x1 of a point is smaller. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 2).

(数2)
A=α−D2×(x2−x1)/2
(Equation 2)
A = α−D2 × (x2−x1) / 2

図7(c)は、差分値ΔRが‘1’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数3)により算出する。   FIG. 7C is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “1”. Since the right side of the moving direction of the broken line is displayed in gray, the area A of the font display portion (hatched portion) is calculated by (Equation 3).

(数3)
A=(D2×(α−x1)+D1×y1)/2
(Equation 3)
A = (D2 × (α−x1) + D1 × y1) / 2

図7(d)は、差分値ΔRが‘2’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数4)により算出する。なおx3は、単位ピクセルから折れ線近似した線分が出射する点のx座標x2をαから減じた値である。   FIG. 7D is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “2”. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 4). Note that x3 is a value obtained by subtracting from x the x coordinate x2 of a point where a line segment approximated by a broken line is emitted from a unit pixel.

(数4)
A=((D2×(α−x1)+D1+(1.0−D2)×x3))/2
(Equation 4)
A = ((D2 × (α−x1) + D1 + (1.0−D2) × x3)) / 2

図7(e)は、差分値ΔRが‘3’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数5)により算出する。なおy3は、単位ピクセルから折れ線近似した線分が出射する点のy座標y1を1.0から減じた値である。   FIG. 7E is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “3”. Since the right side in the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 5). Note that y3 is a value obtained by subtracting from 1.0 the y coordinate y1 of the point where a line segment approximating a polygonal line from the unit pixel is emitted.

(数5)
A=α−(D2×x1+(α−D1)×(1.0−y3))/2
(Equation 5)
A = α− (D2 × x1 + (α−D1) × (1.0−y3)) / 2

図8(a)乃至(e)は、単位ピクセルへ折れ線近似した線分が入射するリージョンが、長方形の短辺側である場合の、入射するリージョンと単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値ΔRに応じて、フォント表示部分の面積を求める方法を示す図である。   In FIGS. 8A to 8E, when a region where a line segment approximated to a unit pixel is incident on a polygonal line is on the short side of the rectangle, a line segment approximated to a polygonal line is emitted from the incident region and the unit pixel. It is a figure which shows the method of calculating | requiring the area of a font display part according to difference value (DELTA) R with a region.

図8(a)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x1より、単位ピクセルから折れ線近似した線分が出射する点のx座標x2の方が大きいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数6)により算出する。   FIG. 8A shows a case where the difference value ΔR is “0”, and a line segment approximating a polygonal line is emitted from the unit pixel from the x coordinate x1 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x2 of a point is larger. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (hatched portion) is calculated by (Equation 6).

(数6)
A=D2×(x2−x1)/2
(Equation 6)
A = D2 × (x2−x1) / 2

図8(b)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x2より、単位ピクセルから折れ線近似した線分が出射する点のx座標x1の方が小さいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数7)により算出する。   FIG. 8B shows a case where the difference value ΔR is “0”, and a line segment approximating the polygonal line is emitted from the unit pixel from the x coordinate x2 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x1 of a point is smaller. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 7).

(数7)
A=α−D2×(x2−x1)/2
(Equation 7)
A = α−D2 × (x2−x1) / 2

図8(c)は、差分値ΔRが‘1’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数8)により算出する。   FIG. 8C is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “1”. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 8).

(数8)
A=(D2×(1.0−x1)+D1×y1)/2
(Equation 8)
A = (D2 × (1.0−x1) + D1 × y1) / 2

図8(d)は、差分値ΔRが‘2’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数9)により算出する。なおx3は、単位ピクセルから折れ線近似した線分が出射する点のx座標x2を1.0から減じた値である。   FIG. 8D is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “2”. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 9). Note that x3 is a value obtained by subtracting x coordinate x2 of a point where a line segment approximated by a broken line from a unit pixel is emitted from 1.0.

(数9)
A=((D2×(1.0−x1)+α×D1+(α−D2)×x3))/2
(Equation 9)
A = ((D2 × (1.0−x1) + α × D1 + (α−D2) × x3)) / 2

図8(e)は、差分値ΔRが‘3’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数10)により算出する。なおy3は、単位ピクセルから折れ線近似した線分が出射する点のy座標y1をαから減じた値である。   FIG. 8E is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “3”. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (hatched portion) is calculated by (Equation 10). Note that y3 is a value obtained by subtracting the y coordinate y1 of the point where a line segment approximated by a broken line from the unit pixel is emitted from α.

(数10)
A=α−(D2×x1+(1.0−D1)×(α−y3))/2
(Equation 10)
A = α− (D2 × x1 + (1.0−D1) × (α−y3)) / 2

このように、単位ピクセルの4辺のうち一長辺又は一短辺を基準として角部分で囲繞されたフォント領域の面積を算出することにより、算出した面積をαで除した面積比に基づいて、単位ピクセル内のグレイ濃度を定めることができる。したがって、単位ピクセル内のフォント表示部分の占める面積が算出された場合、CPU11は、角部分を構成する単位ピクセルを、算出された面積の面積比と同値であるグレイ濃度でピクセルに対する塗りつぶし処理を実行し(ステップS208)、生成した文字画像を表示手段17へ表示出力、又は印刷手段18へ印字出力する(ステップS209)。   In this way, by calculating the area of the font area surrounded by the corner portion with respect to one long side or one short side of the four sides of the unit pixel, the calculated area is divided based on the area ratio by α. The gray density within the unit pixel can be determined. Therefore, when the area occupied by the font display portion in the unit pixel is calculated, the CPU 11 performs a fill process on the pixel with the gray density equal to the calculated area ratio of the unit pixel constituting the corner portion. Then, the generated character image is displayed and output to the display means 17 or printed to the printing means 18 (step S209).

CPU11は、m個の単位ピクセルにつき、所定位置を原点としたx座標値及びy座標値を求め、角部分を含む単位ピクセル夫々についてグレイ濃度を算出する。CPU11は、フォント表示部分の面積比を該単位ピクセルのグレイ濃度として、他にピクセルの位置を示す座標位置とともに、記憶手段12のグレイ濃度記憶部122に記憶する。図9は、グレイ濃度記憶部122に記憶するデータ構成の例示図である。   The CPU 11 obtains an x coordinate value and ay coordinate value with a predetermined position as an origin for m unit pixels, and calculates a gray density for each unit pixel including a corner portion. The CPU 11 stores the area ratio of the font display portion as the gray density of the unit pixel in the gray density storage unit 122 of the storage unit 12 together with the coordinate position indicating the pixel position. FIG. 9 is an exemplary diagram of a data configuration stored in the gray density storage unit 122.

1つのフォントにつき、輪郭に相当する部分の単位ピクセル数nGray を0〜m(mは自然数)とし、各単位ピクセルごとにx座標xGray(0)乃至xGray(m)、y座標yGray(0)乃至yGray(m)、グレイ濃度shadeGray(0) 乃至shadeGray(m)を記憶する。所定の単位ピクセルにつき、上述した方法で該単位ピクセルのグレイ濃度を算出し、記憶手段12に記憶した後、次の単位ピクセルへ移動し、上述した方法で該単位ピクセルのグレイ濃度を算出し、記憶手段12に記憶する。斯かる処理を単位ピクセル数nGray =‘m’となるまで繰り返し実行し、輪郭を構成するすべての単位ピクセルについてグレイ濃度を算出する。   For each font, the number of unit pixels nGray corresponding to the outline is set to 0 to m (m is a natural number), and x coordinates xGray (0) to xGray (m), y coordinates yGray (0) to yGray (m) and gray density shadeGray (0) to shadeGray (m) are stored. For a predetermined unit pixel, the gray density of the unit pixel is calculated by the above-described method, stored in the storage unit 12, and then moved to the next unit pixel. The gray density of the unit pixel is calculated by the above-described method, Store in the storage means 12. Such a process is repeated until the number of unit pixels nGray = 'm', and the gray density is calculated for all unit pixels constituting the contour.

上述したように、リージョンの差分値ΔRに応じて、角部分を含むフォント表示部分の面積を算出し、算出した面積をそのまま記憶手段12にグレイ濃度として記憶することにより、アウトラインフォントの角部分のグレイ濃度を複雑な演算処理を行うことなく定めることができる。CPU11は、角部分を含む単位ピクセルを、記憶手段12に記憶してあるグレイ濃度で塗りつぶし処理することにより、滑らかな表示出力又は印字出力を行うことができる。   As described above, the area of the font display portion including the corner portion is calculated in accordance with the region difference value ΔR, and the calculated area is stored as the gray density in the storage unit 12 as it is. The gray density can be determined without performing complicated arithmetic processing. The CPU 11 can perform smooth display output or print output by painting the unit pixel including the corner portion with the gray density stored in the storage unit 12.

以上のように本実施の形態1によれば、単位ピクセル内に折れ線近似した線分で構成された角部分が存在する場合、縦横のいずれの辺と交差するかに応じた相対座標で面積を算出することができ、単位ピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。   As described above, according to the first embodiment, when a corner portion composed of a line segment approximated by a polygonal line exists in a unit pixel, the area is determined by relative coordinates according to which side intersects the vertical and horizontal sides. It is possible to reduce the calculation processing load related to area calculation for specifying the gray density of the unit pixel, and it is possible to shorten the time until the font is displayed or printed.

(実施の形態2)
以下、本発明の実施の形態2に係るアウトラインフォント出力装置について図面に基づいて具体的に説明する。実施の形態2に係るアウトラインフォント出力装置10の構成は実施の形態1と同様であることから、同一の符号を付することで詳細な説明を省略する。
(Embodiment 2)
Hereinafter, an outline font output apparatus according to Embodiment 2 of the present invention will be specifically described with reference to the drawings. Since the configuration of the outline font output device 10 according to the second embodiment is the same as that of the first embodiment, detailed description thereof will be omitted by attaching the same reference numerals.

図10は、本発明の実施の形態2に係るアウトラインフォント出力装置10のCPU11の処理手順を示すフローチャートである。アウトラインフォント出力装置10のCPU11は、記憶手段12のフォントデータ記憶部121又はROM13に記憶してあるフォントデータを読出し(ステップS1001)、表示又は印字する文字の文字コードをROM13から抽出して、フォントの輪郭を構成するアウトラインデータを算出する(ステップS1002)。   FIG. 10 is a flowchart showing a processing procedure of the CPU 11 of the outline font output apparatus 10 according to the second embodiment of the present invention. The CPU 11 of the outline font output device 10 reads the font data stored in the font data storage unit 121 of the storage unit 12 or the ROM 13 (step S1001), extracts the character code of the character to be displayed or printed from the ROM 13, Outline data that constitutes the contour is calculated (step S1002).

CPU11は、算出したアウトラインデータを短い線分の集合として折れ線近似し(ステップS1003)、アウトラインフォントの角部分を構成するピクセルの座標を特定する(ステップS1004)。角部分を構成するピクセルは、1辺8ビット(256ドット×256ドット)の正方形で構成する単位ピクセルであり、1辺を単位長、例えば‘1’として以下の演算を実行する。   The CPU 11 approximates the calculated outline data as a polyline as a set of short line segments (step S1003), and specifies the coordinates of pixels constituting the corner portion of the outline font (step S1004). The pixels constituting the corner portion are unit pixels composed of squares each having 8 bits (256 dots × 256 dots), and the following calculation is performed with one side as a unit length, for example, “1”.

図11は、アウトラインデータを折れ線近似する処理の例示図である。本実施の形態2では、256(ドット)×256(ドット)である1辺8ビットの正方形で構成された単位ピクセルを用いて輪郭のピクセル座標を特定する。そして、単位ピクセルの1辺の長さを単位長‘1’として以下の演算を実行する。図11のように、特定の単位ピクセルを始点‘0’とし、輪郭を含む単位ピクセルを時計回りに順次特定し、輪郭を示す閉曲線の終点‘m’(mは自然数)まで単位ピクセルの座標を特定する。   FIG. 11 is a diagram illustrating a process for approximating outline data to a polygonal line. In the second embodiment, the pixel coordinates of the contour are specified by using unit pixels formed by a square of 256 bits (dots) × 256 (dots) and 8 bits per side. Then, the following calculation is executed with the length of one side of the unit pixel as the unit length ‘1’. As shown in FIG. 11, a specific unit pixel is set as a starting point “0”, unit pixels including an outline are sequentially specified clockwise, and the coordinates of the unit pixel are set up to an end point “m” (m is a natural number) of a closed curve indicating the outline. Identify.

CPU11は、フォント表示部分の角部分が含まれている単位ピクセルについて、フォント表示部分の面積を算出する。図12は、フォント表示部分の面積を算出する対象となる単位ピクセルの例示図である。単位ピクセルの左下の頂点を原点(0、0)とし、一辺の長さを1.0とする。図12に示すように、単位ピクセル内に角部分を含む場合、単位ピクセル内の点(xk、yk)と、該単位ピクセルを通過する前後の点(xp、yp)、(xq、yq)とにより、単位ピクセル内のフォント表示部分の面積を求めることができる。   CPU11 calculates the area of a font display part about the unit pixel in which the corner | angular part of a font display part is contained. FIG. 12 is an exemplary diagram of a unit pixel that is a target for calculating the area of the font display portion. The vertex at the lower left of the unit pixel is the origin (0, 0), and the length of one side is 1.0. As shown in FIG. 12, when a corner portion is included in a unit pixel, a point (xk, yk) in the unit pixel and points before and after passing through the unit pixel (xp, yp), (xq, yq) Thus, the area of the font display portion in the unit pixel can be obtained.

CPU11は、まず各折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を求める。図13(a)乃至(d)は、単位ピクセル内の点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。図13では、折れ線近似した線分が単位ピクセルのどの辺で交差しているのかに基づき、リージョン1乃至4に分類する。図13(a)はリージョン1の場合の例示図であり、アウトラインフォントの交差する点は、(1、yf)となる。   The CPU 11 first obtains the coordinates of the point where the line segment approximated by each broken line and the side of the unit pixel intersect. In FIGS. 13A to 13D, a line segment approximated by a polygonal line and a side of the unit pixel intersect when exiting from the point (xk, yk) in the unit pixel toward the external point (xq, yq). It is a figure which shows the coordinate of the point to do. In FIG. 13, regions 1 to 4 are classified based on which side of the unit pixel intersects the line segment approximated by the broken line. FIG. 13A is an exemplary diagram in the case of the region 1, and the point where the outline font intersects is (1, yf).

図13(b)はリージョン2の場合の例示図であり、交差する点は、(1−xf、1)となる。なお、xfは交差する点のx座標の小数部分である。図13(c)はリージョン3の場合の例示図であり、交差する点は、(0、1−yf)となる。図13(d)はリージョン4の場合の例示図であり、交差する点は、(xf、0)となる。なお、図13は、単位ピクセル内の角部分を構成する頂点(xk、yk)から外部の点(xq、yq)に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標につき説明しているが、外部の点(xp、yp)から単位ピクセル内の角部分を構成する頂点(xk、yk)に向かって入射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標についても同様にリージョン分類を行うことができる。   FIG. 13B is an exemplary diagram in the case of the region 2, and the intersecting point is (1-xf, 1). Xf is the decimal part of the x coordinate of the intersecting point. FIG. 13C is an exemplary diagram in the case of the region 3, and the intersecting point is (0, 1-yf). FIG. 13D is an exemplary diagram in the case of the region 4, and the intersecting point is (xf, 0). In FIG. 13, the line segment approximated by a broken line and the side of the unit pixel intersect when the light is emitted from the vertex (xk, yk) constituting the corner portion in the unit pixel toward the external point (xq, yq). Although the coordinates of the point to be described are explained, a line segment and unit pixel approximated by a polygonal line when incident from an external point (xp, yp) toward a vertex (xk, yk) constituting a corner portion in the unit pixel Region classification can also be performed in the same manner for the coordinates of the point where the side of the line intersects.

リージョン分類を行った後、CPU11は、単位ピクセル内で角部分を構成する頂点(xk、yk)に対向する一又は複数の辺で囲繞された部分の面積を算出し(ステップS1005)、単位ピクセルごとのグレイ濃度を算出する(ステップS1006)。   After performing the region classification, the CPU 11 calculates the area of the part surrounded by one or more sides facing the vertex (xk, yk) constituting the corner part in the unit pixel (step S1005), and the unit pixel. The gray density for each is calculated (step S1006).

具体的には、図14に示す処理を実行することにより、単位ピクセル内の角部分を構成する頂点(xk、yk)に対向する一又は複数の辺で囲繞された部分の面積を算出する。CPU11は、単位ピクセルへ折れ線近似した線分が入射するリージョンと、単位ピクセルから折れ線近似した線分が出射するリージョンとの差を算出し、角部分を構成する頂点(xk、yk)を挟む2つの線分が、単位ピクセルのどの辺を通過するのか特定する。図14(a)乃至(e)は、単位ピクセルへ折れ線近似した線分が入射するリージョンと、単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値ΔRに応じて、フォント表示部分の面積を求める方法を示す図である。   Specifically, by executing the processing shown in FIG. 14, the area of the part surrounded by one or more sides facing the vertex (xk, yk) constituting the corner part in the unit pixel is calculated. The CPU 11 calculates a difference between a region where a line segment approximated to a polygonal line enters a unit pixel and a region where a line segment approximated to a polygonal line exits from the unit pixel, and sandwiches the vertices (xk, yk) constituting the corner portion 2 Specify which side of a unit pixel a line segment passes through. 14A to 14E show the font display portion according to the difference value ΔR between the region where the line segment approximated to the unit pixel is incident on the unit pixel and the region where the line segment approximated to the unit pixel is emitted from the unit pixel. It is a figure which shows the method of calculating | requiring an area.

図14(a)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x1より、単位ピクセルから折れ線近似した線分が出射する点のx座標x2の方が大きいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数11)により算出する。   FIG. 14A shows a case where the difference value ΔR is “0”, and a line segment approximating the polygonal line is emitted from the unit pixel from the x coordinate x1 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x2 of a point is larger. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (hatched portion) is calculated by (Equation 11).

(数11)
A=D2×(x2−x1)/2
(Equation 11)
A = D2 × (x2−x1) / 2

図14(b)は、差分値ΔRが‘0’である場合であって、単位ピクセルへ折れ線近似した線分が入射する点のx座標x1より、単位ピクセルから折れ線近似した線分が出射する点のx座標x2の方が小さいときのフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数12)により算出する。   FIG. 14B shows a case where the difference value ΔR is “0”, and a line segment approximating the polygonal line is emitted from the unit pixel from the x coordinate x1 of the point where the line segment approximating the polygonal line enters the unit pixel. It is a figure which shows the method of calculating | requiring the area of the font display part when the x coordinate x2 of a point is smaller. Since the right side of the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 12).

(数12)
A=1.0−D2×(x2−x1)/2
(Equation 12)
A = 1.0−D2 × (x2−x1) / 2

図14(c)は、差分値ΔRが‘1’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数13)により算出する。   FIG. 14C is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “1”. Since the right side in the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 13).

(数13)
A=(D2×(1.0−x1)+D1×y1)/2
(Equation 13)
A = (D2 × (1.0−x1) + D1 × y1) / 2

図14(d)は、差分値ΔRが‘2’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数14)により算出する。なおx3は、単位ピクセルから折れ線近似した線分が出射する点のx座標x2を1.0から減じた値である。   FIG. 14D is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “2”. Since the right side in the traveling direction of the broken line is displayed in gray, the area A of the font display portion (hatched portion) is calculated by (Equation 14). Note that x3 is a value obtained by subtracting x coordinate x2 of a point where a line segment approximated by a broken line from a unit pixel is emitted from 1.0.

(数14)
A=((D2×(1.0−x1)+D1+(1.0−D2)×x3))/2
(Equation 14)
A = ((D2 × (1.0−x1) + D1 + (1.0−D2) × x3)) / 2

図14(e)は、差分値ΔRが‘3’である場合のフォント表示部分の面積を求める方法を示す図である。折れ線の進行方向の右側をグレーに表示することから、フォント表示部分(斜線部)の面積Aは(数15)により算出する。なおy3は、単位ピクセルから折れ線近似した線分が出射する点のy座標y1を1.0から減じた値である。   FIG. 14E is a diagram showing a method for obtaining the area of the font display portion when the difference value ΔR is “3”. Since the right side in the traveling direction of the broken line is displayed in gray, the area A of the font display portion (shaded portion) is calculated by (Equation 15). Note that y3 is a value obtained by subtracting from 1.0 the y coordinate y1 of the point where a line segment approximating a polygonal line from the unit pixel is emitted.

(数15)
A=1.0−(D2×x1+(1.0−D1)×(1.0−y3))/2
(Equation 15)
A = 1.0− (D2 × x1 + (1.0−D1) × (1.0−y3)) / 2

このように、単位ピクセルの4辺のうち一辺を基準として角部分で囲繞されたフォント領域の面積を算出することにより、算出した面積から直接的に単位ピクセル内のグレイ濃度を定めることができる。したがって、単位ピクセル内のフォント表示部分の占める面積が算出された場合、CPU11は、角部分を構成する単位ピクセルを、算出された面積と同値であるグレイ濃度でピクセルに対する塗りつぶし処理を実行し(ステップS1007)、生成した文字画像を表示手段17へ表示出力、又は印刷手段18へ印字出力する(ステップS1008)。   As described above, by calculating the area of the font region surrounded by the corner portion with respect to one of the four sides of the unit pixel, the gray density in the unit pixel can be determined directly from the calculated area. Therefore, when the area occupied by the font display portion in the unit pixel is calculated, the CPU 11 performs a filling process on the unit pixel constituting the corner portion with a gray density equal to the calculated area (step In step S1007), the generated character image is displayed on the display unit 17 or printed on the printing unit 18 (step S1008).

上述したように、リージョンの差分値ΔRに応じて、角部分を含むフォント表示部分の面積を算出し、算出した面積をそのまま記憶手段12にグレイ濃度として記憶することにより、アウトラインフォントの角部分のグレイ濃度を複雑な演算処理を行うことなく定めることができる。CPU11は、角部分を含む単位ピクセルを、記憶手段12に記憶してあるグレイ濃度で塗りつぶし処理することにより、滑らかな表示出力又は印字出力を行うことができる。   As described above, the area of the font display portion including the corner portion is calculated in accordance with the region difference value ΔR, and the calculated area is stored as the gray density in the storage unit 12 as it is. The gray density can be determined without performing complicated arithmetic processing. The CPU 11 can perform smooth display output or print output by painting the unit pixel including the corner portion with the gray density stored in the storage unit 12.

以上のように本実施の形態2によれば、単位ピクセル内に折れ線近似した線分で構成される角部分が存在する場合、単位ピクセルの一辺に基づいた相対座標で面積を算出することができ、単位ピクセルのグレイ濃度を特定するための面積算出に係る演算処理負荷を軽減することができ、フォントを表示又は印字するまでの時間を短縮することが可能となる。   As described above, according to the second embodiment, when a corner portion constituted by a line segment approximated by a polygonal line exists in a unit pixel, the area can be calculated with relative coordinates based on one side of the unit pixel. Thus, it is possible to reduce the processing load related to area calculation for specifying the gray density of the unit pixel, and it is possible to shorten the time until the font is displayed or printed.

本発明の実施の形態1に係るアウトラインフォント出力装置の構成を示すブロック図である。It is a block diagram which shows the structure of the outline font output device which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るアウトラインフォント出力装置のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU of the outline font output device which concerns on Embodiment 1 of this invention. アウトラインデータを折れ線近似する処理の例示図である。It is an illustration figure of the process which approximates outline data to a broken line. フォント表示部分の面積を求める対象となる単位ピクセルの例示図である。It is an illustration figure of the unit pixel used as the object which calculates | requires the area of a font display part. 単位ピクセルの長辺が横である場合の単位ピクセル内の点から外部の点に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。It is a figure which shows the coordinate of the point where the line segment approximated by the broken line at the time of radiate | emitting toward the external point from the point in a unit pixel when the long side of a unit pixel is horizontal, and the side of a unit pixel intersect. 単位ピクセルの長辺が縦である場合の単位ピクセル内の点から外部の点に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。It is a figure which shows the coordinate of the point where the line segment approximated to the broken line at the time of radiate | emitting toward the external point from the point in a unit pixel when the long side of a unit pixel is vertical, and the side of a unit pixel intersect. 単位ピクセルへ折れ線近似した線分が入射するリージョンが、長方形の長辺側である場合の、入射するリージョンと単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値に応じて、フォント表示部分の面積を求める方法を示す図である。Font display according to the difference between the incident region and the region where the line segment approximated from the unit pixel exits when the region where the line segment approximated to the unit pixel is incident on the long side of the rectangle It is a figure which shows the method of calculating | requiring the area of a part. 単位ピクセルへ折れ線近似した線分が入射するリージョンが、長方形の短辺側である場合の、入射するリージョンと単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値に応じて、フォント表示部分の面積を求める方法を示す図である。Font display according to the difference between the incident region and the region where the line segment approximated from the unit pixel exits when the region where the line segment approximated to the unit pixel is incident on the short side of the rectangle It is a figure which shows the method of calculating | requiring the area of a part. グレイ濃度記憶部に記憶するデータ構成の例示図である。It is an illustration figure of the data structure memorize | stored in a gray density memory | storage part. 本発明の実施の形態2に係るアウトラインフォント出力装置のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU of the outline font output apparatus which concerns on Embodiment 2 of this invention. アウトラインデータを折れ線近似する処理の例示図である。It is an illustration figure of the process which approximates outline data to a broken line. フォント表示部分の面積を算出する対象となる単位ピクセルの例示図である。It is an illustration figure of the unit pixel used as the object which calculates the area of a font display part. 単位ピクセル内の点から外部の点に向かって出射する場合の折れ線近似した線分と単位ピクセルの辺とが交差する点の座標を示す図である。It is a figure which shows the coordinate of the point where the line segment approximated to the broken line at the time of radiate | emitting toward the external point from the point in a unit pixel, and the side of a unit pixel cross. 単位ピクセルへ折れ線近似した線分が入射するリージョンと、単位ピクセルから折れ線近似した線分が出射するリージョンとの差分値に応じて、フォント表示部分の面積を求める方法を示す図である。It is a figure which shows the method of calculating | requiring the area of a font display part according to the difference value of the region in which the line segment approximated to the unit pixel injects into the unit pixel, and the region in which the line segment approximated to the unit line from the unit pixel emits.

符号の説明Explanation of symbols

10 アウトラインフォント出力装置
11 CPU
12 記録手段
13 ROM
14 RAM
15 補助記憶手段
16 入力手段
17 表示手段
18 印刷手段
121 フォントデータ記憶部
122 グレイ濃度記憶部
10 Outline font output device 11 CPU
12 recording means 13 ROM
14 RAM
15 Auxiliary storage means 16 Input means 17 Display means 18 Printing means 121 Font data storage section 122 Gray density storage section

Claims (6)

アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力装置であって、
前記単位領域は矩形状であり、
近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断する手段と
長辺又は短辺からの前記角部分への距離及び長辺又は短辺上の交差点までの他辺からの距離を特定する手段と、
特定した距離に基づき、前記単位領域内における近似した折れ線の角部分と対向する前記単位領域の一又は複数の辺及び前記折れ線で囲繞された前記フォント領域の面積を算出する手段と、
前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段と
を備えることを特徴とするアウトラインフォント出力装置。
The area occupied by the portion of the font area inside the polygonal line within the predetermined unit area including the pixel, with a polygonal line approximation of the closed curve indicating the outline of the outline font, and the gray density of the pixel where the corner portion of the approximate polygonal line exists Is an outline font output device that outputs an outline font.
The unit area is rectangular.
Means for determining whether one side of the unit region intersecting the approximate polygonal line is a long side or a short side of the unit region;
Means for identifying the distance from the long side or short side to the corner and the distance from the other side to the intersection on the long side or short side;
Based on the specified distance, and means that to calculate one or area of the font area, which is surrounded by a plurality of sides and the fold line of the unit areas facing the corner portions of the polygonal line approximating in the unit area,
Means for determining a ratio of the calculated area to the area of the unit region as the ratio;
Features and to luer out line font output device that comprises a.
アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力装置であって、
前記単位領域は正方形であり、
近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定する手段と、
特定した距離に基づいて前記フォント領域の面積を算出する手段と、
前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段と
を備えることを特徴とするアウトラインフォント出力装置。
The area occupied by the portion of the font area inside the polygonal line within the predetermined unit area including the pixel, with a polygonal line approximation of the closed curve indicating the outline of the outline font, and the gray density of the pixel where the corner portion of the approximate polygonal line exists Is an outline font output device that outputs an outline font.
The unit area is square;
Means for identifying a distance from one side of the unit region that intersects with the approximate polygonal line, and a distance from the other side of the intersection on the one side;
Means that to calculate the area of the font area based on the specified distance,
Means for determining a ratio of the calculated area to the area of the unit region as the ratio;
Features and to luer out line font output device that comprises a.
アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力方法であって、
前記単位領域は矩形状であり、
近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断し、
長辺又は短辺からの前記角部分への距離、及び長辺又は短辺上の交差点までの他辺からの距離を特定し、
特定した距離に基づき、前記単位領域内における近似した折れ線の角部分とフォント領域を挟み対向する一又は複数の辺及び折れ線で囲繞された前記フォント領域の面積を算出し、
前記単位領域の面積に対する算出した面積の比率を前記割合として求める
ことを特徴とするアウトラインフォント出力方法。
The area occupied by the portion of the font area inside the polygonal line within the predetermined unit area including the pixel, with a polygonal line approximation of the closed curve indicating the outline of the outline font, and the gray density of the pixel where the corner portion of the approximate polygonal line exists Is an outline font output method that outputs an outline font.
The unit area is rectangular.
Determining whether one side of the unit region intersecting the approximate polygonal line is a long side or a short side of the unit region;
Identify the distance from the long side or short side to the corner and the distance from the other side to the intersection on the long side or short side,
Based on the identified distance, calculate the area of the font region surrounded by one or more sides and the polygonal line facing the corner portion of the approximate polygonal line in the unit region and sandwiching the font region ,
Features and to luer out line font output method that determining the ratio of the area calculated for the area of the unit area as the percentage.
アウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するアウトラインフォント出力方法であって、
前記単位領域は正方形であり、
近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定し、
特定した距離に基づいて前記フォント領域の面積を算出し、
前記単位領域の面積に対する算出した面積の比率を前記割合として求める
ことを特徴とするアウトラインフォント出力方法。
The area occupied by the portion of the font area inside the polygonal line within the predetermined unit area including the pixel, with a polygonal line approximation of the closed curve indicating the outline of the outline font, and the gray density of the pixel where the corner portion of the approximate polygonal line exists Is an outline font output method that outputs an outline font.
The unit area is square;
Identify the distance from one side of the unit region intersecting the approximate polygonal line, and the distance from the other side of the intersection on the one side ,
Calculate the area of the font area based on the specified distance ,
Features and to luer out line font output method that determining the ratio of the area calculated for the area of the unit area as the percentage.
矩形状の単位領域を通過するアウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するコンピュータで実行することが可能なコンピュータプログラムであって、
前記コンピュータを、
近似した折れ線と交差する前記単位領域の一辺が、前記単位領域の長辺か短辺かを判断する手段、
長辺又は短辺からの前記角部分への距離及び長辺又は短辺上の交差点までの他辺からの距離を特定する手段
定した距離に基づき、前記単位領域内における近似した折れ線の角部分とフォント領域を挟み対向する前記単位領域の一又は複数の辺及び折れ線で囲繞された前記フォント領域の面積を算出する手段、
前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段、及び
求めた割合に基づきピクセルのグレイ濃度を特定する濃度特定手段
として機能させることを特徴とするコンピュータプログラム。
A closed curve indicating the outline of the outline font that passes through the rectangular unit region is approximated by a polygonal line, and the gray density of the pixel where the corner portion of the approximate polygonal line exists is expressed inside the polygonal line within the predetermined unit region including the pixel. A computer program that can be executed by a computer that outputs an outline font by specifying a ratio of an area occupied by a portion of a font area,
The computer,
Means for determining whether one side of the unit region intersecting the approximate polygonal line is a long side or a short side of the unit region;
It means for identifying a distance from the other side to the distance and the long side or intersection on the short side to the corner portions of the long or short side,
Based on the distance was especially boss, it means to calculate the area of the font area, which is surrounded by one or more sides and polygonal line of the unit region opposed sandwiching the corner portion and the font region of the polygonal line approximating in the unit area ,
Means for determining the ratio of the calculated area to the area of the unit region as the ratio; and
Features and to Turkey computer programs that function as the concentration specifying means for specifying the gray levels of pixels based on the ratio obtained.
正方形状の単位領域を通過するアウトラインフォントの輪郭を示す閉曲線を折れ線近似し、近似した折れ線の角部分が存在するピクセルのグレイ濃度を、前記ピクセルを含む所定単位領域内での前記折れ線の内側であるフォント領域の部分が占める面積の割合で特定し、アウトラインフォントを出力するコンピュータで実行することが可能なコンピュータプログラムであって、
前記コンピュータを、
近似した折れ線と交差する前記単位領域の一辺からの前記角部分への距離、及び前記一辺上の交差点の他辺からの距離を特定する手段、
特定した距離に基づいて前記フォント領域の面積を算出する手段
前記単位領域の面積に対する算出した面積の比率を前記割合として求める手段、及び
求めた割合に基づきピクセルのグレイ濃度を特定する濃度特定手段
として機能させることを特徴とするコンピュータプログラム。
A closed curve indicating the outline of the outline font that passes through the square unit area is approximated by a polygonal line, and the gray density of the pixel where the corner portion of the approximate polygonal line exists is expressed inside the polygonal line within the predetermined unit area including the pixel. A computer program that can be executed by a computer that outputs an outline font by specifying a ratio of an area occupied by a portion of a font area,
The computer,
Means for identifying a distance from one side of the unit region intersecting the approximate polygonal line to the corner portion, and a distance from the other side of the intersection on the one side;
Means for calculating the area of the font region based on the identified distance ;
Means for determining the ratio of the calculated area to the area of the unit region as the ratio; and
Features and to Turkey computer programs that function as the concentration specifying means for specifying the gray levels of pixels based on the ratio obtained.
JP2005183469A 2005-06-23 2005-06-23 Outline font output device, outline font output method, and computer program Expired - Fee Related JP4594809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005183469A JP4594809B2 (en) 2005-06-23 2005-06-23 Outline font output device, outline font output method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005183469A JP4594809B2 (en) 2005-06-23 2005-06-23 Outline font output device, outline font output method, and computer program

Publications (2)

Publication Number Publication Date
JP2007003801A JP2007003801A (en) 2007-01-11
JP4594809B2 true JP4594809B2 (en) 2010-12-08

Family

ID=37689502

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005183469A Expired - Fee Related JP4594809B2 (en) 2005-06-23 2005-06-23 Outline font output device, outline font output method, and computer program

Country Status (1)

Country Link
JP (1) JP4594809B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0540463A (en) * 1991-08-08 1993-02-19 Hitachi Ltd Multi-level character generator
JPH05290177A (en) * 1992-04-08 1993-11-05 Fujitsu Ltd Polygonal anti-aliasing system
JPH07273985A (en) * 1994-03-28 1995-10-20 Toppan Printing Co Ltd Processing method and output device for image data
JPH09245181A (en) * 1996-03-06 1997-09-19 Matsushita Electric Ind Co Ltd Anti-aliasing
JP2774653B2 (en) * 1990-03-14 1998-07-09 キヤノン株式会社 Character processor
JP2002035141A (en) * 2000-07-31 2002-02-05 Yasutake Hichi Bio-electrode, method for manufacturing the same, clothing with bio-electrode, electrocardiograph, low frequency therapeutic instrument and high frequency therapeutic instrument
JP2002351451A (en) * 2001-03-23 2002-12-06 Rise Corp Method for character processing based upon outline font information and computer software program product making computer implement the method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2774653B2 (en) * 1990-03-14 1998-07-09 キヤノン株式会社 Character processor
JPH0540463A (en) * 1991-08-08 1993-02-19 Hitachi Ltd Multi-level character generator
JPH05290177A (en) * 1992-04-08 1993-11-05 Fujitsu Ltd Polygonal anti-aliasing system
JPH07273985A (en) * 1994-03-28 1995-10-20 Toppan Printing Co Ltd Processing method and output device for image data
JPH09245181A (en) * 1996-03-06 1997-09-19 Matsushita Electric Ind Co Ltd Anti-aliasing
JP2002035141A (en) * 2000-07-31 2002-02-05 Yasutake Hichi Bio-electrode, method for manufacturing the same, clothing with bio-electrode, electrocardiograph, low frequency therapeutic instrument and high frequency therapeutic instrument
JP2002351451A (en) * 2001-03-23 2002-12-06 Rise Corp Method for character processing based upon outline font information and computer software program product making computer implement the method

Also Published As

Publication number Publication date
JP2007003801A (en) 2007-01-11

Similar Documents

Publication Publication Date Title
US7257776B2 (en) Systems and methods for scaling a graphical user interface according to display dimensions and using a tiered sizing schema to define display objects
JP4157569B2 (en) Drawing apparatus, drawing method, and drawing program
JP3481136B2 (en) Character font generation method and apparatus therefor, and computer-readable recording medium recording character font generation program
JPH0126072B2 (en)
US20100033487A1 (en) Display device, control method for the same, and information storage medium
KR101159320B1 (en) Iteratively solving constraints in a font-hinting language
US8711184B2 (en) Scalable pixel coverage function-map
US9245361B2 (en) Consolidating glyphs of a font
JP2009092759A (en) Drawing device, image output device, and program
JP3791259B2 (en) Outline smoothing processing method
JP2006171675A (en) Method of generating silhouette-oriented gray font
JP4594809B2 (en) Outline font output device, outline font output method, and computer program
JP2005326756A (en) Character image generation device and its method, display controller, character image generating program and display control program
JP3037854B2 (en) Character generation method and device
US20220366621A1 (en) Systems for Generating Anti-Aliased Vector Objects
JP2007240848A (en) Display program, data structure and display device
JP2770582B2 (en) Figure filling device
JPH06274303A (en) Multiwindow display method
KR100719480B1 (en) Fast anti-aliasing method
JPH06118935A (en) Character data generating device
JP2018019212A (en) Information processing apparatus, drawing processing method, and computer program
JP2017125934A (en) Character drawing apparatus, character drawing method, and computer program
JPH08235362A (en) Method and apparatus for decision of simple convex polygon
JP4320604B2 (en) Image processing method and image processing apparatus
JP3350325B2 (en) Character output device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090902

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100316

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100511

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100914

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100917

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130924

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees