JP6172195B2 - Smoothing processing apparatus and smoothing processing method - Google Patents
Smoothing processing apparatus and smoothing processing method Download PDFInfo
- Publication number
- JP6172195B2 JP6172195B2 JP2015066345A JP2015066345A JP6172195B2 JP 6172195 B2 JP6172195 B2 JP 6172195B2 JP 2015066345 A JP2015066345 A JP 2015066345A JP 2015066345 A JP2015066345 A JP 2015066345A JP 6172195 B2 JP6172195 B2 JP 6172195B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- dot
- jaggy
- bitmap font
- character
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Controls And Circuits For Display Device (AREA)
Description
本発明は、ビットマップフォントをスムージング処理するスムージング処理装置及びスムージング処理装置で実行するスムージング方法に関するものである。 The present invention relates to a smoothing processing apparatus that performs a smoothing process on a bitmap font, and a smoothing method that is executed by the smoothing processing apparatus.
ドットの集合で表される文字をビットマップフォントと呼ぶが、ビットマップフォントの表示サイズを拡大する場合に、例えばm画素×n画素の表示サイズのビットマップフォントを2倍に拡大すると、ビットマップフォントの表示サイズは2m画素×2n画素となる。このとき、拡大前のビットマップフォントの1ドットは、拡大後には4ドットに置き換わるため、拡大後のビットマップフォントにおいて、特に傾斜線の輪郭のドット表示は凹凸が大きくなり、ビットマップフォントは全体的に粗く、表す文字が判別し辛く表示される。ここで、ビットマップフォントでは、文字の湾曲線は傾斜線の集合とみなす。このように、ビットマップフォントを拡大したときに生じる凹凸の大きなドット表示をジャギと呼ぶ。そこで、ビットマップフォントのジャギを目立たなくし、表す文字を判別し易く表示するための代表的な従来技術にフィルタリング手法がある。 A character represented by a set of dots is called a bitmap font. When the display size of the bitmap font is enlarged, for example, if the bitmap font having a display size of m pixels × n pixels is doubled, the bitmap is displayed. The display size of the font is 2m pixels × 2n pixels. At this time, since 1 dot of the bitmap font before enlargement is replaced with 4 dots after enlargement, in the bitmap font after enlargement, the dot display of the outline of the slanted line is particularly uneven, and the bitmap font is entirely The displayed characters are difficult to distinguish. Here, in the bitmap font, the curved line of the character is regarded as a set of inclined lines. In this way, the dot display with large irregularities generated when the bitmap font is enlarged is called a jaggy. Therefore, there is a filtering method as a typical conventional technique for making a bitmap font jaggy inconspicuous and displaying a displayed character easily.
特許文献1では、ビットマップフォントに対しフィルタリング手法を適用する手法を開示している。この手法では、先ず、拡大前のビットマップフォントの窪みの向きを表す、縦横3×3ドットからなるジャギパターンと、当該ジャギパターンの中心の窪み1ドットを拡大した複数ドットに対し、窪みの向きと対応し窪みを均す1ドットを追加した置換パターンとを予め用意する。そして、拡大前のビットマップフォントからジャギパターンを検出するとともに、ジャギパターンの窪みの向きを判定することで、拡大後のビットマップフォントに対し、検出したジャギパターンの中心の1ドットを、窪みを均した置換パターンで置換することによって、スムージング処理を行う。
また、特許文献2でも同様に、拡大したビットマップフォントに対しフィルタリング手法を適用する技術を開示している。この手法では、拡大したビットマップフォントを構成する複数ドットの縦横比を判定して、この複数ドットに対し、ドットの追加を行うポジティブ補間線又はドットの削除を行うネガティブ補間線を引くことによって、スムージング処理を行う。
Similarly,
また、特許文献3では、拡大したビットマップフォントに対しアウトラインスムージングを行う手法を開示している。この手法では、先ず、ビットマップフォントの輪郭を表す輪郭ドットのうち、始点となる始点ドットを決定する。次に、隣接した2つの輪郭ドットが連なる方向を上下左右の4方向の直交ベクトルで表す処理を、始点ドットから開始してビットマップフォントを周回するまで繰り返すことで、一連の直交ベクトルからなる直交ベクトル行列を導出する。次に、導出した直交ベクトル行列の連続する6ベクトルの変化量に基づいて、斜線化判定テーブルと比較し、斜線と判定される直交ベクトルを斜め4方向のいずれかを示す斜線ベクトルに変換する。これにより、直交ベクトル行列は、上下左右の4方向に斜め4方向を加えた、8方向の斜線ベクトル行列となる。次に、変換した斜線ベクトル行列の連続する6ベクトルの変化量に基づいて、補正テーブルと比較し、ビットマップフォントを構成する各ドットを補正する。このようにして補正したビットマップフォントの輪郭ドットの内側を塗りつぶすことで、アウトラインスムージングを完了する。 Patent Document 3 discloses a method for performing outline smoothing on an enlarged bitmap font. In this method, first, the starting point dot that is the starting point is determined from the contour dots that represent the contour of the bitmap font. Next, the process of expressing the direction in which the two adjacent contour dots are connected with the orthogonal vectors in the four directions, up, down, left, and right, is repeated until it starts around the bitmap font and starts around the bitmap font. Deriving a vector matrix. Next, based on the amount of change of 6 consecutive vectors of the derived orthogonal vector matrix, the orthogonal vector determined to be diagonal is converted into a diagonal vector indicating one of the four diagonal directions by comparing with the diagonal determination table. As a result, the orthogonal vector matrix is an eight-direction diagonal line vector matrix in which four diagonal directions are added to four directions, up, down, left, and right. Next, based on the amount of change in six consecutive vectors in the converted diagonal vector matrix, each dot constituting the bitmap font is corrected by comparing with the correction table. Outline smoothing is completed by filling the inside of the outline dot of the bitmap font corrected in this way.
しかしながら、特許文献1の手法は、ビットマップフォントが表す文字の傾斜線の傾き度合いを考慮しておらず、ビットマップフォントから検出したジャギパターンの窪みの向きを判定し、窪みの向きと対応して一律にドットを置き換えた置換パターンによって、拡大後のビットマップフォントのスムージング処理を行っているため、拡大後のビットマップフォントの窪みを滑らかに表すことは出来ても、スムージング処理を行った部分の傾きは傾斜線の全体的な傾きとは異なってしまう。従って、この手法でスムージング処理を行うと、ビットマップフォントが表す傾斜線の輪郭がうねってしまい、所望の傾斜線の輪郭に十分に近づくことができない虞がある。
However, the technique of
本発明は、上述の問題を解決するものであり、ビットマップフォントが表す文字の所望の傾斜線の輪郭により近づけてスムージング処理を行うスムージング処理装置及びそのスムージング処理装置で実行されるスムージング処理方法を提供することを目的とする。 The present invention solves the above-described problem, and provides a smoothing processing device that performs smoothing processing closer to the contour of a desired inclined line of characters represented by a bitmap font, and a smoothing processing method that is executed by the smoothing processing device. The purpose is to provide.
本発明は、文字を表現するビットマップフォントを拡大した拡大ビットマップフォントのジャギをスムージング処理するスムージング処理装置であって、前記拡大ビットマップフォントの拡大倍率と対応したジャギパターン及び前記ジャギパターンと対応した置換パターンを記憶する記憶部と、前記拡大倍率に基づいて前記ジャギパターンを選択し、前記拡大ビットマップフォントから前記ジャギパターンと一致するドットパターンを検索するジャギパターン検索部と、前記ジャギパターン検索部が検出した前記拡大ビットマップフォントの前記ドットパターンを前記置換パターンに置換するジャギパターン置換部と、を備え、前記ビットマップフォントは、前記文字に含まれる文字ドットと前記文字に含まれない非文字ドットとで構成され、前記ジャギパターンは、前記文字の所定の傾斜線の輪郭を表し前記文字ドットからなる輪郭ドット列と、前記輪郭ドット列との境界を辺とする前記非文字ドットからなる外周ドット列と、を合わせて前記拡大倍率で拡大したドット集合のうち、前記境界を辺とする前記文字ドット及び前記非文字ドットからなる、ことを特徴とするスムージング処理装置である。 The present invention is a smoothing processing apparatus for performing smoothing processing on an enlarged bitmap font jail obtained by enlarging a bitmap font representing characters, and a jaggy pattern corresponding to the enlargement magnification of the enlarged bitmap font and the jaggy pattern. A storage unit that stores the replacement pattern, a jaggy pattern search unit that selects the jaggy pattern based on the enlargement magnification, and searches for a dot pattern that matches the jaggy pattern from the enlarged bitmap font; and the jaggy pattern search And a jaggy pattern replacement unit that replaces the dot pattern of the enlarged bitmap font detected by the unit with the replacement pattern, wherein the bitmap font includes character dots included in the characters and non-characters not included in the characters. It consists of a letter dot and The jaggy pattern represents a contour of a predetermined slope line of the character, and includes a contour dot row made up of the character dots and an outer peripheral dot row made up of the non-character dots with the boundary between the contour dot rows as a side. A smoothing processing apparatus comprising the character dots and the non-character dots having the boundary as a side in the dot set enlarged at the enlargement magnification.
また、本発明は、文字を表現するビットマップフォントを拡大した拡大ビットマップフォントのジャギをスムージング処理するスムージング処理方法であって、前記拡大ビットマップフォントの拡大倍率と対応したジャギパターン及び前記ジャギパターンと対応した置換パターンを記憶する記憶工程と、前記拡大倍率に基づいて前記ジャギパターンを選択し、前記拡大ビットマップフォントから前記ジャギパターンと一致するドットパターンを検索するジャギパターン検索工程と、前記ジャギパターン検索工程で検出した前記拡大ビットマップフォントの前記ドットパターンを前記置換パターンに置換するジャギパターン置換工程と、を有し、前記ビットマップフォントは、前記文字に含まれる文字ドットと前記文字に含まれない非文字ドットとで構成され、前記ジャギパターンは、前記文字の所定の傾斜線の輪郭を表し前記文字ドットからなる輪郭ドット列と、前記輪郭ドット列との境界を辺とする前記非文字ドットからなる外周ドット列と、を合わせて前記拡大倍率で拡大したドット集合のうち、前記境界を辺とする前記文字ドット及び前記非文字ドットからなる、ことを特徴とするスムージング処理方法である。 The present invention also relates to a smoothing processing method for smoothing an enlarged bitmap font jaggy obtained by enlarging a bitmap font representing characters, the jaggy pattern corresponding to the enlargement magnification of the enlarged bitmap font and the jaggy pattern. Storing a replacement pattern corresponding to the enlargement magnification, selecting the jaggy pattern based on the magnification, and searching for a dot pattern that matches the jaggy pattern from the enlarged bitmap font; A jaggy pattern replacement step of replacing the dot pattern of the enlarged bitmap font detected in the pattern search step with the replacement pattern, and the bitmap font is included in the character dot and the character included in the character. Non-character dot And the jaggy pattern represents an outline of a predetermined inclined line of the character, and an outer peripheral dot composed of a non-character dot having a boundary between the contour dot string composed of the character dot and the boundary between the contour dot string A smoothing processing method comprising the character dots and the non-character dots having the boundary as a side in the dot set expanded together with the enlargement factor.
本発明によれば、文字の所定の傾斜線の傾きに基づいて構成した輪郭ドット列からジャギパターンを形成し、ジャギパターンと一致するドットパターンをビットマップフォントから検索して、対応する置換パターンで置換することが可能となる。その結果として、表す文字の所望の傾斜線の輪郭により近づけてスムージング処理を行う効果が得られる。 According to the present invention, a jaggy pattern is formed from a contour dot string configured based on the inclination of a predetermined inclination line of a character, a dot pattern that matches the jaggy pattern is searched from a bitmap font, and a corresponding replacement pattern is used. It can be replaced. As a result, the effect of performing the smoothing process closer to the contour of the desired inclined line of the character to be represented can be obtained.
実施の形態1.
図1は、実施の形態1における、システム構成を示すシステム構成図である。図1のシステムは、スムージング処理装置101、インタフェース装置102、データ入力装置103、データ記憶装置104及びデータ出力装置105で構成される。
FIG. 1 is a system configuration diagram showing a system configuration in the first embodiment. The system shown in FIG. 1 includes a smoothing
スムージング処理装置101は、データ入力装置103から入力したビットマップフォントのジャギをスムージング処理しデータ出力装置105に対し出力する装置である。スムージング処理装置101には、スムージング処理に関する操作情報や設定情報を入出力するためのインタフェース装置102が繋がる。
The smoothing
データ入力装置103は、スムージング処理装置101に対しビットマップフォントを入力する装置である。データ入力装置103は、システムが扱う画像データや文字データなどの各種データを記憶したデータ記憶装置104からスムージング処理を行うビットマップフォントを抽出しスムージング処理装置101に対し入力する。
The
データ出力装置105は、スムージング処理装置101がスムージング処理したビットマップフォントを、データ記憶装置104が記憶したビットマップフォントの抽出元のデータに合成を行う装置である。ビットマップフォントを合成したデータは、データ記憶装置104に記憶しても良いし、例えばディスプレイや図示しない外部装置などに出力しても良い。
The
図2は、スムージング処理装置101の機能ブロックを示す機能ブロック図である。スムージング処理装置101は、ビットマップフォント入力部201、ビットマップフォント記憶部202、ドットパターン記憶部203、ジャギパターン検索部204、ジャギドット記憶部205、ジャギパターン置換部206、ビットマップフォント出力部207及びスムージング処理制御部208で構成される。
FIG. 2 is a functional block diagram showing functional blocks of the smoothing
ビットマップフォント入力部201は、データ入力装置103からビットマップフォントを入力する機能部である。ここで入力するビットマップフォントは既に拡大されていても良いし、スムージング処理装置101がビットマップフォント拡大部209を更に備え、ビットマップフォント入力部201が入力するビットマップフォントをビットマップフォント拡大部209で拡大しても良い。
The bitmap
ビットマップフォント記憶部202は、ビットマップフォント入力部201又はビットマップフォント拡大部209から拡大後の拡大ビットマップフォントを受けて記憶する機能部である。また、ビットマップフォント記憶部202は、拡大ビットマップフォントと併せて、ビットマップフォント入力部201、ビットマップフォント拡大部209又はインタフェース装置102から拡大ビットマップフォントの拡大倍率を受けて記憶する。
The bitmap
ドットパターン記憶部203は、拡大ビットマップフォントの拡大倍率と対応した、拡大ビットマップフォントに含まれるジャギを検索するジャギパターンと、ジャギパターンと対応した置換パターンとを予め記憶する機能部である。
The dot
ジャギパターン検索部204は、ビットマップフォント記憶部202に記憶の拡大ビットマップフォントからドットパターン記憶部203に記憶のジャギパターンを検索する機能部である。このときの検索に用いるジャギパターンは、拡大ビットマップフォントの拡大倍率と対応するものを選択する。
The jaggy
ジャギドット記憶部205は、ジャギパターン検索部204が検索した結果を記憶する機能部である。ここでの検索結果とは、ジャギパターンに一致した拡大ビットマップフォントのドットパターンの情報と、検索に用いたジャギパターンとを対応付けた情報である。
The jaggy
ジャギパターン置換部206は、ジャギドット記憶部205に記憶の検索結果に基づいて、ビットマップフォント記憶部202に記憶の拡大ビットマップフォントの一部のドットをドットパターン記憶部203に記憶の置換パターンで置換する機能部である。このときの置換パターンは、ドットパターン記憶部203に記憶のジャギパターンと対応するものを選択する。
Based on the search result stored in the jaggy
尚、拡大ビットマップフォントのドットを置換する要領に関しては、拡大ビットマップフォントからジャギパターンを検索し、ジャギパターンと一致するドットパターンを検出する都度に当該ドットパターンを置換パターンで置換しても良いし、一通りジャギパターンを検索した後に、検出したドットパターンをまとめて置換パターンで置換しても良い。 As for the procedure for replacing the dots in the enlarged bitmap font, each time a jaggy pattern is searched from the enlarged bitmap font and a dot pattern matching the jaggy pattern is detected, the dot pattern may be replaced with the replacement pattern. Then, after searching for a jaggy pattern, the detected dot patterns may be collectively replaced with a replacement pattern.
ビットマップフォント出力部207は、データ出力装置105に対し、ビットマップフォント記憶部202に記憶のスムージング処理が終了した拡大ビットマップフォントを出力する機能部である。
The bitmap
スムージング処理制御部208は、各機能部を管理及び制御して適切にスムージング処理を実行させる機能部である。また、スムージング処理制御部208は、外部装置との間で情報の入出力を行い、その情報に基づいて各機能部の管理及び制御を行っても良い。
The smoothing
図3は、ビットマップフォントを拡大した拡大ビットマップフォントを示す模式図である。図3(a)は、拡大前のビットマップフォントを示す模式図である。図3(b)は、2倍に拡大した拡大ビットマップフォントを示す模式図である。図3(c)は、3倍に拡大した拡大ビットマップフォントを示す模式図である。 FIG. 3 is a schematic diagram showing an enlarged bitmap font obtained by enlarging the bitmap font. FIG. 3A is a schematic diagram showing a bitmap font before enlargement. FIG. 3B is a schematic diagram showing an enlarged bitmap font enlarged twice. FIG. 3C is a schematic diagram showing an enlarged bitmap font enlarged three times.
図3(a)の各ドットは、図3(b)では縦横方向に2倍した4ドットに変換され、図3(c)では縦横方向に3倍の9ドットに変換されるため、ビットマップフォントを拡大すると、ジャギも拡大されて凹凸が顕著となる。 Each dot in FIG. 3A is converted into 4 dots that are doubled in the vertical and horizontal directions in FIG. 3B, and is converted into 9 dots that are three times in the vertical and horizontal directions in FIG. When the font is enlarged, the jaggy is enlarged and the unevenness becomes prominent.
尚、本発明のドットとは、ビットマップフォントを表示する表示領域を、ビットマップフォントが表現する文字の縦方向及び横方向に格子状に分割した、表示の並びの最小単位を指す。従って、ビットマップフォントを表示する形状は、図3(a)〜(c)のような矩形でなくとも、例えば円形などであっても良く、表示の最小単位の並びが図3(a)〜(c)のように格子状のものを本発明の対象とする。ここでの矩形とは、正方形を含む。 The dot of the present invention refers to a minimum unit of display arrangement in which a display area for displaying a bitmap font is divided into a grid shape in the vertical and horizontal directions of characters represented by the bitmap font. Therefore, the shape for displaying the bitmap font may not be a rectangle as shown in FIGS. 3A to 3C but may be a circle, for example, and the arrangement of the minimum units of display is as shown in FIGS. A lattice-shaped object as shown in (c) is an object of the present invention. Here, the rectangle includes a square.
ところで、図3(a)のように、漢という文字をビットマップフォントで表現すると、文字の縦線は縦方向にドットを並べたドット列によって、横線は横方向にドットを並べたドット列によって、傾斜線は縦横方向にドットを組み合わせて並べたドット列によって、近似的に表される。また、図3(a)には無いが、文字の湾曲線は傾斜線を部分的に用いて表される。 By the way, as shown in FIG. 3A, when the character “Kan” is expressed in a bitmap font, the vertical line of the character is represented by a dot sequence in which dots are arranged in the vertical direction, and the horizontal line is represented by a dot sequence in which dots are arranged in the horizontal direction. The inclined line is approximately represented by a dot row in which dots are combined in the vertical and horizontal directions. In addition, although not shown in FIG. 3A, the curved line of the character is expressed by partially using the inclined line.
ここで、図3(a)の漢という文字の傾斜線に着目すると、三水(さんずい)偏の上2つの点301及び右払い302は、図中の基準線305に対して時計回りに45°近傍の角度の傾斜線であり、左払い303は、基準線305に対して−45°つまり135°近傍の角度の傾斜線である。また、三水(さんずい)偏の下の点304は、基準線305に対して−60°つまり120°近傍の角度の傾斜線である。
Here, paying attention to the inclined line of the character “Kan” in FIG. 3A, the upper two
また、漢という文字の他に、例えば更に画数の多い文字では、右払いや左払いに用いられる傾斜線は30°や150°近傍の角度となる。 In addition to the characters of Han, for example, for characters with a larger number of strokes, the slope line used for right or left payment has an angle in the vicinity of 30 ° or 150 °.
このように、文字の傾斜線が取りうる角度は理屈の上では無限であるが、ビットマップフォントにおいては、ドット列のパターンを用いて文字の傾斜線を近似的に表すため、実質的に取りうる角度は有限となる。そして、ドット列が近似的に表す傾斜線の多くは、30°、45°、60°、120°、135°及び150°近傍の角度である。 In this way, the angle that can be taken by the inclined line of a character is theoretically infinite, but in bitmap fonts, since the inclined line of a character is approximately expressed using a pattern of dot rows, it is substantially taken. The possible angle is finite. Many of the inclined lines that the dot rows approximately represent are angles in the vicinity of 30 °, 45 °, 60 °, 120 °, 135 °, and 150 °.
上述のとおり、文字の所定の傾斜線を表すドット列は、角度の数値又は数値範囲によって定義されるものではないが、説明の便宜のために例えば45°近傍のように視覚的に識別しやすいおよその角度と対応付けをする。視覚的に識別しやすいおよその角度とするのは、同じパターンのドット列であっても、ドットの矩形の縦横の幅によっては視覚的に識別しやすい角度が変わり、それに伴って角度との対応付けが変わるためである。本発明では、説明の簡易のためにドットの矩形を正方形として説明する。 As described above, the dot row representing the predetermined inclination line of the character is not defined by the numerical value or numerical value range of the angle, but for the convenience of explanation, it is easy to visually identify, for example, around 45 °. Correlate with the approximate angle. The approximate angle that is easy to visually identify is the same pattern, even if the dot pattern is the same, depending on the vertical and horizontal width of the dot rectangle, the angle that is easy to visually identify changes, and the corresponding angle This is because the attachment changes. In the present invention, a dot rectangle is described as a square for the sake of simplicity.
続いて、文字の傾斜線を表すドット列のパターンを定義する。 Subsequently, a dot row pattern representing a slanted line of characters is defined.
45°及び135°近傍の角度の傾斜線を表すドット列を、各ドットが角で接して並ぶとともに、各ドットの対角線が同じ直線上にあるドットの並びと定義する。このような並びのドット列は、ドットと相似関係にある矩形の対角線上に並べることができる。 A dot row representing an inclined line having an angle of around 45 ° and 135 ° is defined as an arrangement of dots in which the dots are arranged in contact with each other at the corners and the diagonal lines of the dots are on the same straight line. Such a row of dots can be arranged on a diagonal line of a rectangle that is similar to the dots.
また、30°及び150°近傍の角度の傾斜線を表すドット列を、辺で接する2つのドットの対が角で接してなるとともに、ビットマップフォントが表現する文字の縦方向及び横方向に投影したドットの数の比が1:2となる4つのドットの並びと定義する。 In addition, a dot row representing an inclined line with an angle near 30 ° and 150 ° is projected in the vertical and horizontal directions of a character represented by a bitmap font, while a pair of two dots that touch each other at the side touches at a corner. It is defined as an arrangement of four dots in which the ratio of the number of dots formed is 1: 2.
また、60°及び120°近傍の角度の傾斜線を表すドット列を、辺で接する2つのドットの対が角で接してなるとともに、ビットマップフォントが表現する文字の縦方向及び横方向に投影したドットの数の比が2:1となる4つのドットの並びと定義する。 In addition, a dot string representing an inclined line having an angle of 60 ° and 120 ° is projected in the vertical and horizontal directions of a character represented by a bitmap font, while a pair of two dots touching each other at the side touches at a corner. It is defined as an arrangement of four dots in which the ratio of the number of dots formed is 2: 1.
尚、本発明では説明の簡易のためドットの矩形を正方形として扱っているが、それぞれのドット列が表す傾斜線の角度は例えば45°及び135°近傍のように近似的なものであるため、ドットは厳密には正方形でなくとも良い。 In the present invention, the dot rectangle is treated as a square for simplicity of explanation, but the angle of the inclined line represented by each dot row is approximate, for example, around 45 ° and 135 °. Strictly speaking, the dots need not be square.
先ず、45°及び135°近傍の角度の傾斜線を表すドット列について説明する。 First, a description will be given of dot rows representing inclined lines with angles near 45 ° and 135 °.
図4は、ビットマップフォントにおいて45°及び135°近傍の角度の傾斜線を表すドット列を示す模式図である。このときの角度は、図中の基準線405に対し時計回りの値を示している。また、ドット401は文字に含まれるドットである文字ドットを示し、ドット402は文字に含まれないドットである非文字ドットを示し、ドット403はドット401又はドット402のいずれかのドットを示す。
FIG. 4 is a schematic diagram showing dot rows representing inclined lines having angles near 45 ° and 135 ° in the bitmap font. The angle at this time shows a clockwise value with respect to the
尚、ドット402は、ドット表示領域外の本来はドットが存在しない領域も含めることとする。つまり、ドット表示領域に限りがあり、ビットマップフォントがドット表示領域の端にある場合に、ビットマップフォントの周辺の、ドット表示領域外を示す領域をドット402で表すこととする。
The
また、上述のとおり、各文字ドット内の表示の形状は矩形でなくとも良い。 Further, as described above, the display shape in each character dot need not be rectangular.
図4(a)は、45°近傍の角度の傾斜線を表すドット列を示す模式図である。図4(b)は、135°近傍の角度の傾斜線を表すドット列を示す模式図である。図4(c)は、45°近傍の角度の傾斜線を表す、図4(a)とは別のドット列を示す模式図である。 FIG. 4A is a schematic diagram showing a dot row representing an inclined line having an angle near 45 °. FIG. 4B is a schematic diagram showing a dot row representing an inclined line having an angle near 135 °. FIG. 4C is a schematic diagram illustrating a dot line different from that in FIG. 4A, which represents an inclined line having an angle near 45 °.
図4(a)及び(b)では、3つのドット401を正方形の破線枠404の対角線上に並べて傾斜線を表している。一方で、図4(c)では、2つのドット401を正方形の破線枠406の対角線上に並べて傾斜線を表している。
4A and 4B, three
図4(a)と図4(c)を比べると、図4(c)においては、ドット407が文字ドットで、ドット408が非文字ドットの場合に、2つのドット401が45°近傍の角度の傾斜線を表すドット列とはみなし難い。しかしながら、図4(a)においては、3つのドット401の周辺のドットが文字であるかどうかに依らず、3つのドット401が45°近傍の角度の傾斜線を表すドット列とみなすことが出来る。
Comparing FIG. 4A and FIG. 4C, in FIG. 4C, when the
つまり、45°近傍の角度の傾斜線を表すためには、少なくとも3つのドットを正方形枠の対角線上に並べる必要がある。このことは、135°近傍の角度の傾斜線を表す図4(b)のドット列についても同様である。 In other words, in order to represent an inclined line having an angle near 45 °, it is necessary to arrange at least three dots on the diagonal line of the square frame. The same applies to the dot row in FIG. 4B, which represents an inclined line with an angle near 135 °.
ところで、ビットマップフォントは、表現する文字の輪郭を表す輪郭ドットと、輪郭ドットに囲まれた領域を埋める塗り潰しドットとで形成される。輪郭ドットのドット列を輪郭ドット列とする。 By the way, the bitmap font is formed by contour dots that represent the contour of the character to be represented and filled dots that fill the area surrounded by the contour dots. A dot row of contour dots is defined as a contour dot row.
また、文字の傾斜線には、傾斜線の長手方向に平行に対向する一対の輪郭線があり、ビットマップフォントでは、この傾斜線の一対の輪郭線を一対の輪郭ドット列で表す。このときの一対の輪郭ドット列を、表現する文字の上下に合わせて上輪郭ドット列と下輪郭ドット列とする。併せて、輪郭ドット列に沿って配置したドット402のうち、輪郭ドット列のドット401との境界を辺に含むものを外周ドットとし、外周ドットのドット列を外周ドット列とする。
In addition, the character slant lines have a pair of contour lines facing in parallel with the longitudinal direction of the slant lines. In the bitmap font, the pair of contour lines of the slant lines are represented by a pair of contour dot strings. The pair of contour dot rows at this time is defined as an upper contour dot row and a lower contour dot row in accordance with the upper and lower sides of the character to be expressed. In addition, among the
尚、表現する文字の線の太さによっては、塗り潰しドットを配置することなく、上輪郭ドット列と下輪郭ドット列を接するように配置したり、上輪郭ドット列又は下輪郭ドット列のいずれか一方を配置したりする。 In addition, depending on the thickness of the line of the character to be expressed, the upper outline dot row and the lower outline dot row are arranged so as not to touch the upper outline dot row or the lower outline dot row without arranging the filled dots. Or place one.
次に、45°及び135°近傍の角度の傾斜線を表す輪郭ドット列について説明する。 Next, a description will be given of a contour dot row representing an inclined line having an angle near 45 ° and 135 °.
図5は、45°及び135°近傍の角度の輪郭ドット列を示す模式図である。図中のドット401〜403は図4と同様である。
FIG. 5 is a schematic diagram showing contour dot rows with angles near 45 ° and 135 °. The
図5(a)は、45°近傍の角度の上輪郭ドット列を示す模式図である。図5(b)は、45°近傍の角度の下輪郭ドット列を示す模式図である。図5(c)は、135°近傍の角度の上輪郭ドット列を示す模式図である。図5(d)は、135°近傍の角度の下輪郭ドット列を示す模式図である。図5(e)及び(f)は、図5(a)の上輪郭ドット列と図5(b)の下輪郭ドット列を組み合わせたドット列を示す模式図である。 FIG. 5A is a schematic diagram showing an upper contour dot row having an angle of around 45 °. FIG. 5B is a schematic diagram showing a lower outline dot row having an angle near 45 °. FIG. 5C is a schematic diagram showing the upper contour dot row at an angle near 135 °. FIG. 5D is a schematic diagram showing a lower outline dot row having an angle near 135 °. FIGS. 5E and 5F are schematic diagrams showing a dot row in which the upper contour dot row in FIG. 5A and the lower contour dot row in FIG. 5B are combined.
ところで、図5(a)〜(d)のように上輪郭ドット列と下輪郭ドット列を配置すると、例えば図5(a)の上輪郭ドット列と図5(b)の下輪郭ドット列とを組み合わせて傾斜線を表したときに、図5(e)又は(f)のようにドット401のうちドット501又はドット502が正方形の破線枠404の対角線上に並んで収まらない。このことは、図5(c)の上輪郭ドット列と図5(d)の下輪郭ドット列とを組み合わせたときについても同様である。
By the way, when the upper outline dot row and the lower outline dot row are arranged as shown in FIGS. 5A to 5D, for example, the upper outline dot row in FIG. 5A and the lower outline dot row in FIG. When the inclined lines are expressed by combining the dots, the
図6は、45°及び135°近傍の角度の別の輪郭ドット列を示す模式図である。図中のドット401〜403は図4と同様である。
FIG. 6 is a schematic diagram showing another contour dot row having an angle in the vicinity of 45 ° and 135 °. The
図6(a)は、45°近傍の角度の別の上輪郭ドット列を示す模式図である。図6(b)は、図5(b)と同じ45°近傍の角度の下輪郭ドット列を示す模式図である。図6(c)は、135°近傍の角度の別の上輪郭ドット列を示す模式図である。図6(d)は、図5(d)と同じ135°近傍の角度の下輪郭ドット列を示す模式図である。図6(e)は、図6(a)の上輪郭ドット列と図6(b)の下輪郭ドット列を組み合わせたドット列を示す模式図である。 FIG. 6A is a schematic diagram showing another upper contour dot row having an angle near 45 °. FIG. 6B is a schematic diagram showing a lower outline dot row having an angle in the vicinity of 45 ° as in FIG. FIG. 6C is a schematic diagram showing another upper contour dot row having an angle near 135 °. FIG. 6D is a schematic diagram showing a lower outline dot row having an angle near 135 ° as in FIG. FIG. 6E is a schematic diagram showing a dot row in which the upper contour dot row in FIG. 6A and the lower contour dot row in FIG. 6B are combined.
図6(a)では、3つのドット402を正方形の破線枠404の対角線上に並べて収まるように配置しており、これら3つのドット402は45°近傍の角度の傾斜線を表している。そして、これらの3つのドット402に沿って2つのドット401を角で接して配置することにより、2つのドット401からなる上輪郭ドット列は、45°近傍の角度の傾斜線を表すとみなせる。
In FIG. 6A, three
このように、45°近傍の角度の傾斜線を表す外周ドット列と合わせて配置することで、2つのドット401からなる輪郭ドット列が45°近傍の角度の傾斜線を表せるようになる。
In this way, by arranging together with the outer peripheral dot row representing the inclined line having an angle near 45 °, the contour dot row formed of the two
また、図6(a)と同様に、図6(c)の上輪郭ドット列は、3つのドット402に沿って2つのドット401を角で接して配置することにより、135°近傍の角度の傾斜線を表すとみなせる。
Similarly to FIG. 6A, the upper outline dot row in FIG. 6C has an angle of around 135 ° by arranging two
また、図6(b)及び(d)の下輪郭ドット列については、図5(b)及び(d)と同様である。 6B and 6D are the same as those in FIGS. 5B and 5D.
そして、図6(a)〜(d)のように上輪郭ドット列及び下輪郭ドット列を配置すると、例えば図6(a)の上輪郭ドット列と図6(b)の下輪郭ドット列とを組み合わせて傾斜線を表したときに、図6(e)のようにドット401は正方形の破線枠404に収まる。このことは、図6(c)の上輪郭ドット列と図6(d)の下輪郭ドット列とを組み合わせたときについても同様である。
When the upper contour dot row and the lower contour dot row are arranged as shown in FIGS. 6A to 6D, for example, the upper contour dot row in FIG. 6A and the lower contour dot row in FIG. When the inclined lines are represented by combining the
つまり、図5(a)〜(d)の配置に対して、図6(a)〜(d)の配置とすることによって、45°及び135°により近い傾斜線を表すことができる。 That is, with respect to the arrangements of FIGS. 5A to 5D, the inclination lines closer to 45 ° and 135 ° can be represented by the arrangements of FIGS. 6A to 6D.
尚、図6(a)及び(c)のドットの配置は図5のままとし、図6(b)及び図6(d)のドットの配置を上述の要領で変更することによって、45°及び135°近傍の角度の傾斜線を表す輪郭ドット列を形成しても良い。 6 (a) and 6 (c) remain the same as in FIG. 5, and the dot arrangements in FIGS. 6 (b) and 6 (d) are changed in the above-described manner so that 45 ° and You may form the outline dot row | line | column showing the inclination line of the angle of 135 degrees vicinity.
従って、45°及び135°近傍の角度の傾斜線を表す輪郭ドット列は、ドット401で形成され傾斜線の長手方向に対し平行に向かい合う一対のドット列であり、一方のドット列は、少なくとも3つのドット401が角で接して並ぶとともに、各ドット401の対角線が同じ直線上にあるドット401の並びとなり、他方のドット列は、少なくとも3つのドット402が角で接して並ぶとともに各ドット402の対角線が同じ直線上にある外周ドット列に沿った、少なくとも2つのドット401が角で接して並ぶドット401の並びとなる。
Accordingly, the contour dot row representing the inclined lines at angles of 45 ° and 135 ° is a pair of dot rows formed by the
次に、60°及び120°近傍の角度の傾斜線を表す輪郭ドット列について説明する。 Next, a description will be given of a contour dot row representing an inclined line having an angle near 60 ° and 120 °.
図7は、60°及び120°近傍の角度の輪郭ドット列を示す模式図である。このときの角度は、図中の基準線405に対し時計回りの値を示している。図中のドット401〜403は図4と同様である。
FIG. 7 is a schematic diagram showing contour dot rows with angles near 60 ° and 120 °. The angle at this time shows a clockwise value with respect to the
図7(a)は、60°近傍の角度の上輪郭ドット列を示す模式図である。図7(b)は、60°近傍の角度の図7(a)とは別の上輪郭ドット列を示す模式図である。図7(c)は、60°近傍の角度の図7(a)及び図7(b)とは別の上輪郭ドット列を示す模式図である。図7(d)は、60°近傍の角度の下輪郭ドット列を示す模式図である。図7(e)は、120°近傍の角度の上輪郭ドット列を示す模式図である。図7(f)は、120°近傍の角度の下輪郭ドット列を示す模式図である。 FIG. 7A is a schematic diagram showing an upper contour dot row having an angle near 60 °. FIG. 7B is a schematic diagram showing an upper outline dot row different from FIG. 7A at an angle in the vicinity of 60 °. FIG. 7C is a schematic diagram showing an upper outline dot row different from those in FIGS. 7A and 7B at an angle in the vicinity of 60 °. FIG. 7D is a schematic diagram showing a lower outline dot row having an angle near 60 °. FIG. 7E is a schematic diagram showing an upper contour dot row having an angle near 120 °. FIG. 7F is a schematic diagram showing a lower outline dot row having an angle near 120 °.
図7(a)〜(c)の破線枠701〜703に示すとおり、60°近傍の角度の上輪郭ドット列には複数の配置が考えられる。 As shown by the broken line frames 701 to 703 in FIGS. 7A to 7C, a plurality of arrangements can be considered for the upper contour dot row at an angle near 60 °.
しかし、図7(b)では、ドット704が文字ドットで、ドット705が非文字ドットの場合に、3つのドット401が60°近傍の角度の傾斜線を表す輪郭ドット列とはみなし難い。また、図7(c)についても、図7(b)と同様のことが言える。
However, in FIG. 7B, when the
これに対し、図7(a)のドット401の周辺のドットが文字であるかどうかに依らず、4つのドット401は60°近傍の角度の上輪郭ドット列とみなすことが出来る。
On the other hand, regardless of whether the dots around the
従って、60°近傍の角度の上輪郭ドット列としては、図7(a)のように配置するのが適切である。 Therefore, it is appropriate to arrange the upper contour dot row at an angle in the vicinity of 60 ° as shown in FIG.
図7(a)に倣い、図7(d)〜(f)の輪郭ドット列を得る。 Following FIG. 7A, the contour dot rows of FIGS. 7D to 7F are obtained.
従って、上述のとおり60°及び120°近傍の角度の傾斜線を表す輪郭ドット列は、辺で接する2つのドット401の対が角で接してなるとともに、ビットマップフォントが表現する文字の縦方向及び横方向に投影したドットの数の比が2:1となる4つのドット401の並びで表される。
Therefore, as described above, the contour dot string representing the inclined lines having angles near 60 ° and 120 ° is formed by the pair of two
次に、拡大した輪郭ドット列からジャギを検索するジャギパターンについて説明する。ここでは、45°及び135°近傍の角度と60°及び120°近傍の角度の傾斜線を表す輪郭ドット列を対象とする。 Next, a jaggy pattern for searching for a jaggy from the enlarged contour dot row will be described. Here, a contour dot row representing an angle line near 45 ° and 135 ° and an inclined line having an angle near 60 ° and 120 ° is targeted.
図8は、2倍に拡大した45°及び135°近傍の角度の輪郭ドット列のジャギパターンを示す模式図である。図中のドット401〜403は図4と同様である。
FIG. 8 is a schematic diagram showing a jaggy pattern of contour dot rows with angles around 45 ° and 135 ° magnified twice. The
図8(a)は、2倍に拡大した45°近傍の角度の上輪郭ドット列を示す模式図である。図8(b)は、2倍に拡大した45°近傍の角度の下輪郭ドット列を示す模式図である。図8(c)は、2倍に拡大した135°近傍の角度の上輪郭ドット列を示す模式図である。図8(d)は、2倍に拡大した135°近傍の角度の下輪郭ドット列を示す模式図である。 FIG. 8A is a schematic diagram showing the upper contour dot row at an angle in the vicinity of 45 ° magnified twice. FIG. 8B is a schematic diagram showing a lower outline dot row having an angle in the vicinity of 45 ° magnified twice. FIG. 8C is a schematic diagram showing the upper contour dot row at an angle near 135 ° enlarged twice. FIG. 8D is a schematic diagram showing a lower outline dot row having an angle near 135 ° enlarged twice.
また、図8(e)は、2倍に拡大した45°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図8(f)は、2倍に拡大した45°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図8(g)は、2倍に拡大した135°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図8(h)は、2倍に拡大した135°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 8E is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle near 45 ° enlarged twice. FIG. 8F is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle in the vicinity of 45 ° enlarged twice. FIG. 8G is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 135 ° enlarged twice. FIG. 8H is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 135 ° enlarged twice.
図8(a)〜(d)の破線枠801に示す輪郭ドット列はそれぞれ、図6(a)〜(d)の破線枠404の輪郭ドット列を2倍に拡大したものである。
The contour dot row shown in the
図8(a)において、輪郭ドット列であるドット401と外周ドット列であるドット402のうち、ドット401及びドット402の境界を辺とするドットを残し、それ以外のドットをドット403とすると、図8(e)の一点鎖線枠802で囲まれたドットパターンが得られる。
In FIG. 8A, out of the
同様にして、図8(b)からは図8(f)の一点鎖線枠802で囲まれたドットパターンが得られ、図8(c)からは図8(g)の一点鎖線枠802で囲まれたドットパターンが得られ、図8(d)からは図8(h)の一点鎖線枠802で囲まれたドットパターンが得られる。
Similarly, a dot pattern surrounded by a one-
図8(e)〜(h)のドットパターンは、2倍に拡大したビットマップフォントにおける、輪郭ドット列と外周ドット列からなるジャギパターンである。図8(e)〜(h)のジャギパターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The dot patterns in FIGS. 8E to 8H are jaggy patterns composed of a contour dot row and an outer peripheral dot row in a bitmap font enlarged twice. The jaggy patterns in FIGS. 8E to 8H are stored in advance in the dot
図9は、2倍に拡大した60°及び120°近傍の角度の輪郭ドット列のジャギパターンを示す模式図である。図中のドット401〜403は図4と同様である。
FIG. 9 is a schematic diagram showing a jaggy pattern of contour dot rows with angles around 60 ° and 120 ° magnified twice. The
図9(a)は、2倍に拡大した60°近傍の角度の上輪郭ドット列を示す模式図である。図9(b)は、2倍に拡大した60°近傍の角度の下輪郭ドット列を示す模式図である。図9(c)は、2倍に拡大した120°近傍の角度の上輪郭ドット列を示す模式図である。図9(d)は、2倍に拡大した120°近傍の角度の下輪郭ドット列を示す模式図である。 FIG. 9A is a schematic diagram showing the upper contour dot row at an angle in the vicinity of 60 ° magnified twice. FIG. 9B is a schematic diagram showing a lower outline dot row having an angle near 60 ° enlarged twice. FIG. 9C is a schematic diagram showing the upper contour dot row at an angle near 120 ° enlarged twice. FIG. 9D is a schematic diagram showing a lower outline dot row with an angle near 120 ° enlarged twice.
また、図9(e)は、2倍に拡大した60°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図9(f)は、2倍に拡大した60°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図9(g)は、2倍に拡大した120°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図9(h)は、2倍に拡大した120°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 9E is a schematic diagram showing a jaggy pattern of the upper outline dot row at an angle near 60 ° enlarged twice. FIG. 9F is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle near 60 ° enlarged twice. FIG. 9G is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle near 120 ° enlarged twice. FIG. 9H is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 120 ° enlarged twice.
図9(a)〜(d)の破線枠901に示す輪郭ドット列はそれぞれ、図7(a)及び(d)〜(f)の破線枠701の輪郭ドット列を2倍に拡大したものである。
The contour dot rows shown in the
図9(a)において、輪郭ドット列であるドット401と外周ドット列であるドット402のうち、ドット401及びドット402の境界を辺とするドットを残し、それ以外のドットをドット403とすると、図9(e)の一点鎖線枠902で囲まれたドットパターンが得られる。
In FIG. 9A, out of the
同様にして、図9(b)からは図9(f)の一点鎖線枠902で囲まれたドットパターンが得られ、図9(c)からは図9(g)の一点鎖線枠902で囲まれたドットパターンが得られ、図9(d)からは図9(h)の一点鎖線枠902で囲まれたドットパターンが得られる。
Similarly, a dot pattern surrounded by a one-
図9(e)〜(h)のドットパターンは、2倍に拡大したビットマップフォントにおける、輪郭ドット列と外周ドット列からなるジャギパターンである。図9(e)〜(h)のジャギパターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The dot patterns shown in FIGS. 9E to 9H are jaggy patterns composed of a contour dot row and an outer peripheral dot row in a bitmap font enlarged twice. The jaggy patterns in FIGS. 9E to 9H are stored in advance in the dot
ところで、特許文献2の手法では、ビットマップフォントを構成する複数ドットの縦横比を判定してスムージング処理を行うため、例えば草冠のように縦線と横線とが直交する部分に生じる窪みを、縦横比によっては滑らかにスムージング処理してしまう虞がある。しかしながら、上述のように文字の傾斜線の傾きに基づいてジャギパターンを形成することで、ビットマップフォントに対しスムージング処理が不要な部分までスムージング処理を行ってしまうことを抑止できる効果が得られる。
By the way, in the method of
次に、拡大した輪郭ドット列のジャギを置換する、置換パターンについて説明する。ここでは、45°及び135°近傍の角度と60°及び120°近傍の角度の傾斜線を表す輪郭ドット列を対象とする。 Next, a replacement pattern for replacing the jaggy in the enlarged contour dot row will be described. Here, a contour dot row representing an angle line near 45 ° and 135 ° and an inclined line having an angle near 60 ° and 120 ° is targeted.
図10は、2倍に拡大した45°及び135°近傍の角度の輪郭ドット列の置換パターンを示す模式図である。図中のドット401〜403は図4と同様である。また、ドット1001は、ジャギパターンから削除する文字ドットを示し、ドット1002は、ジャギパターンに対して追加する文字ドットを示す。図10の置換パターンを二点鎖線枠1003で囲む。
FIG. 10 is a schematic diagram showing a replacement pattern of contour dot rows with angles near 45 ° and 135 ° magnified twice. The
図10(a)は、2倍に拡大した45°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図10(b)は、2倍に拡大した45°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図10(c)は、2倍に拡大した135°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図10(d)は、2倍に拡大した135°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 10A is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle in the vicinity of 45 ° magnified twice. FIG. 10B is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle in the vicinity of 45 ° enlarged twice. FIG. 10C is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle near 135 ° enlarged twice. FIG. 10D is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 135 ° enlarged twice.
図10(a)〜(d)の置換パターンはそれぞれ、図8(e)〜(h)のジャギパターンと対応する。図10(a)〜(d)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 10A to 10D correspond to the jaggy patterns in FIGS. 8E to 8H, respectively. The replacement patterns in FIGS. 10A to 10D are stored in advance in the dot
このとき、図8(e)及び図8(g)のジャギパターンは上向きのジャギであり、図8(f)及び図8(h)のジャギパターンは下向きのジャギであるため、一方のジャギは突出したドットを削除し、他方のジャギは窪みにドットを追加することで、特許文献1のように窪みに一律にドットを追加する手法に比べて、スムージング処理後においても拡大ビットマップフォントが表現する文字の線の太さのバランスを変えてしまうことを抑止することができる。
At this time, the jaggy pattern in FIGS. 8 (e) and 8 (g) is an upward jaggy, and the jaggy pattern in FIGS. 8 (f) and 8 (h) is a downward jaggy. By removing the protruding dots and adding dots to the other jaggy, the enlarged bitmap font is expressed even after smoothing processing compared to the method of adding dots uniformly to the depression as in
そのため、図10(a)及び(c)の置換パターンでは、図8(e)及び(g)のジャギパターンからドット1001を削除し、図10(b)及び(d)の置換パターンでは、図8(f)及び(h)のジャギパターンに対しドット1002を追加している。
Therefore, in the replacement patterns of FIGS. 10A and 10C, the
尚、図8(e)及び(g)のジャギパターンに対しドット1002を追加し、図8(f)及び(h)のジャギパターンからドット1001を削除することによって置換パターンを形成しても良い。
Note that a replacement pattern may be formed by adding
図11は、2倍に拡大した60°及び120°近傍の角度の輪郭ドット列の置換パターンを示す模式図である。図中のドット401〜403は図4と同様であり、ドット1001及びドット1002は図10と同様である。図11の置換パターンを二点鎖線枠1101で囲む。
FIG. 11 is a schematic diagram showing a replacement pattern of contour dot rows with angles near 60 ° and 120 ° magnified twice. The
図11(a)は、2倍に拡大した60°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図11(b)は、2倍に拡大した60°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図11(c)は、2倍に拡大した120°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図11(d)は、2倍に拡大した120°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 11A is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle in the vicinity of 60 ° enlarged twice. FIG. 11B is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 60 ° enlarged twice. FIG. 11C is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle near 120 ° enlarged twice. FIG. 11D is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 120 ° enlarged twice.
図11(a)〜(d)の置換パターンはそれぞれ、図9(e)〜(h)のジャギパターンと対応する。図11(a)〜(d)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 11A to 11D correspond to the jaggy patterns in FIGS. 9E to 9H, respectively. The replacement patterns in FIGS. 11A to 11D are stored in advance in the dot
このとき、図9(e)及び(g)のジャギパターンは上向きのジャギであり、図9(f)及び(h)のジャギパターンは下向きのジャギであるため、一方のジャギは突出したドットを削除し、他方のジャギは窪みにドットを追加することで、特許文献1のように窪みに一律にドットを追加する手法に比べて、スムージング処理後においても拡大ビットマップフォントが表現する文字の線の太さのバランスを変えてしまうことを抑止することができる。
At this time, the jaggy pattern in FIGS. 9 (e) and 9 (g) is an upward jaggy, and the jaggy pattern in FIGS. 9 (f) and 9 (h) is a downward jaggy. Therefore, one jaggy has protruding dots. By deleting the other jaggy and adding dots to the dents, the lines of characters represented by the enlarged bitmap font even after the smoothing process compared to the technique of adding dots uniformly to the dents as in
そのため、図11(a)及び(c)の置換パターンでは、図9(e)及び(g)のジャギパターンからドット1001を削除し、図11(b)及び(d)の置換パターンでは、図9(f)及び(h)のジャギパターンに対しドット1002を追加している。
Therefore, in the replacement patterns of FIGS. 11A and 11C, the
尚、図9(e)及び(g)のジャギパターンに対しドット1002を追加し、図9(f)及び(h)のジャギパターンからドット1001を削除することによって置換パターンを形成しても良い。
Note that a replacement pattern may be formed by adding
上述の要領に倣って、30°及び150°近傍の角度の傾斜線を表す輪郭ドット列のジャギパターンと置換パターンを説明する。 By following the above-described procedure, a jaggy pattern and a replacement pattern of a contour dot row representing an inclined line having an angle near 30 ° and 150 ° will be described.
図12は、2倍に拡大した30°及び150°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。 FIG. 12 is a schematic diagram showing a jaggy pattern and a replacement pattern of a contour dot row of angles near 30 ° and 150 ° magnified twice.
図12(a)は、2倍に拡大した30°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図12(b)は、2倍に拡大した30°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図12(c)は、2倍に拡大した150°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図12(d)は、2倍に拡大した150°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 12A is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle near 30 ° enlarged twice. FIG. 12B is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle near 30 ° enlarged twice. FIG. 12C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 150 ° enlarged twice. FIG. 12D is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle near 150 ° enlarged twice.
また、図12(e)は、2倍に拡大した30°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図12(f)は、2倍に拡大した30°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図12(g)は、2倍に拡大した150°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図12(h)は、2倍に拡大した150°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 12E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 30 ° enlarged twice. FIG. 12F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 30 ° enlarged twice. FIG. 12G is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 150 ° enlarged twice. FIG. 12H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 150 ° enlarged twice.
図12(a)〜(d)の一点鎖線枠1201で囲まれたジャギパターンを形成する要領は、図9(e)〜(h)と同様である。また、図12(e)〜(h)の二点鎖線枠1202で囲まれた置換パターンを形成する要領は、図11(a)〜(d)と同様である。
The procedure for forming the jaggy pattern surrounded by the alternate long and short
図12(e)〜(h)の置換パターンはそれぞれ、図12(a)〜(d)のジャギパターンと対応する。図12(a)〜(d)のジャギパターン及び図12(e)〜(h)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 12E to 12H correspond to the jaggy patterns in FIGS. 12A to 12D, respectively. The jaggy patterns in FIGS. 12A to 12D and the replacement patterns in FIGS. 12E to 12H are stored in advance in the dot
最後に、3倍に拡大した拡大ビットマップフォントの傾斜線を表す輪郭ドット列のジャギパターンと置換パターンを説明する。 Finally, a jaggy pattern and a replacement pattern of a contour dot string representing an inclined line of an enlarged bitmap font enlarged three times will be described.
図13は、3倍に拡大した45°及び135°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。 FIG. 13 is a schematic diagram showing a jaggy pattern and a replacement pattern of contour dot rows with angles around 45 ° and 135 ° magnified three times.
図13(a)は、3倍に拡大した45°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図13(b)は、3倍に拡大した45°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図13(c)は、3倍に拡大した135°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図13(d)は、3倍に拡大した135°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 13A is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle in the vicinity of 45 ° magnified three times. FIG. 13B is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle in the vicinity of 45 ° enlarged three times. FIG. 13C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 135 ° enlarged three times. FIG. 13D is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 135 ° enlarged three times.
また、図13(e)は、3倍に拡大した45°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図13(f)は、3倍に拡大した45°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図13(g)は、3倍に拡大した135°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図13(h)は、3倍に拡大した135°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 13E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 45 ° enlarged three times. FIG. 13F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 45 ° enlarged three times. FIG. 13G is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 135 ° enlarged three times. FIG. 13H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 135 ° enlarged three times.
図13(a)〜(d)の一点鎖線枠1301で囲まれたジャギパターンを形成する要領は、図8(e)〜(h)と同様である。また、図13(e)〜(h)の二点鎖線枠1302で囲まれた置換ジャギパターンを形成する要領は、図10(a)〜(d)と同様である。
The procedure for forming the jaggy pattern surrounded by the alternate long and short
図13(e)〜(h)の置換パターンはそれぞれ、図13(a)〜(d)のジャギパターンと対応する。図13(a)〜(d)のジャギパターン及び図13(e)〜(h)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 13E to 13H correspond to the jaggy patterns in FIGS. 13A to 13D, respectively. The jaggy patterns of FIGS. 13A to 13D and the replacement patterns of FIGS. 13E to 13H are stored in advance in the dot
図14は、3倍に拡大した60°及び120°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。 FIG. 14 is a schematic diagram showing a jaggy pattern and a replacement pattern of contour dot rows with angles around 60 ° and 120 ° magnified three times.
図14(a)は、3倍に拡大した60°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図14(b)は、3倍に拡大した60°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図14(c)は、3倍に拡大した120°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図14(d)は、3倍に拡大した120°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 14A is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle in the vicinity of 60 ° enlarged three times. FIG. 14B is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle in the vicinity of 60 ° enlarged three times. FIG. 14C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 120 ° enlarged three times. FIG. 14D is a schematic diagram showing a jaggy pattern of a lower outline dot row at an angle near 120 ° enlarged three times.
また、図14(e)は、3倍に拡大した60°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図14(f)は、3倍に拡大した60°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図14(g)は、3倍に拡大した120°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図14(h)は、3倍に拡大した120°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 14E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle in the vicinity of 60 ° enlarged three times. FIG. 14F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle in the vicinity of 60 ° enlarged three times. FIG. 14G is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 120 ° enlarged three times. FIG. 14H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 120 ° enlarged three times.
図14(a)〜(d)の一点鎖線枠1401で囲まれたジャギパターンを形成する要領は、図9(e)〜(h)と同様である。また、図14(e)〜(h)の二点鎖線枠1402で囲まれた置換ジャギパターンを形成する要領は、図11(a)〜(d)と同様である。
The procedure for forming the jaggy pattern surrounded by the one-dot
図14(e)〜(h)の置換パターンはそれぞれ、図14(a)〜(d)のジャギパターンと対応する。図14(a)〜(d)のジャギパターン及び図14(e)〜(h)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 14E to 14H correspond to the jaggy patterns in FIGS. 14A to 14D, respectively. The jaggy patterns in FIGS. 14A to 14D and the replacement patterns in FIGS. 14E to 14H are stored in advance in the dot
図15は、3倍に拡大した30°及び150°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。 FIG. 15 is a schematic diagram showing a jaggy pattern and a replacement pattern of contour dot rows with angles near 30 ° and 150 ° magnified three times.
図15(a)は、3倍に拡大した30°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図15(b)は、3倍に拡大した30°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図15(c)は、3倍に拡大した150°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図15(d)は、3倍に拡大した150°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 15A is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle of about 30 ° enlarged three times. FIG. 15B is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle near 30 ° enlarged three times. FIG. 15C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 150 ° enlarged three times. FIG. 15D is a schematic diagram showing a jaggy pattern of a lower outline dot row at an angle near 150 ° enlarged three times.
また、図15(e)は、3倍に拡大した30°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図15(f)は、3倍に拡大した30°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図15(g)は、3倍に拡大した150°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図15(h)は、3倍に拡大した150°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 15E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 30 ° enlarged three times. FIG. 15F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 30 ° enlarged three times. FIG. 15G is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 150 ° enlarged three times. FIG. 15H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 150 ° enlarged three times.
図15(a)〜(d)の一点鎖線枠1501で囲まれたジャギパターンを形成する要領は、図12(a)〜(d)と同様である。また、図15(e)〜(h)の二点鎖線枠1502で囲まれた置換ジャギパターンを形成する要領は、図12(e)〜(h)と同様である。
The procedure for forming the jaggy pattern surrounded by the alternate long and short
図15(e)〜(h)の置換パターンはそれぞれ、図15(a)〜(d)のジャギパターンと対応する。図15(a)〜(d)のジャギパターン及び図15(e)〜(h)の置換パターンは、拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
The replacement patterns in FIGS. 15E to 15H correspond to the jaggy patterns in FIGS. 15A to 15D, respectively. The jaggy patterns in FIGS. 15A to 15D and the replacement patterns in FIGS. 15E to 15H are stored in advance in the dot
上述の要領と同様にして、必要に応じてその他の拡大倍率と対応するジャギパターンと置換パターンとを形成し、ジャギパターン、置換パターン及び拡大ビットマップフォントの拡大倍率と対応付けて、図2のドットパターン記憶部203に予め記憶しておく。
In the same manner as described above, a jaggy pattern and a replacement pattern corresponding to other enlargement magnifications are formed as necessary, and associated with the enlargement magnifications of the jaggy pattern, the replacement pattern, and the enlarged bitmap font, as shown in FIG. Pre-stored in the dot
このように、拡大ビットマップフォントのジャギパターンと置換パターンは、輪郭ドット列と外周ドット列とからなり、拡大倍率が3倍のときの輪郭ドット列及び外周ドット列は、拡大倍率が2倍のときの輪郭ドット列及び外周ドット列と同じ要領で形成することができる。 Thus, the jaggy pattern and replacement pattern of the enlarged bitmap font are composed of the outline dot row and the outer periphery dot row, and the outline dot row and the outer periphery dot row when the enlargement magnification is 3 times have the enlargement magnification of 2 times. It can be formed in the same manner as the contour dot row and the outer peripheral dot row.
図16は、拡大ビットマップフォントのスムージング処理を示すフロー図である。図2のとおり、ジャギパターン置換部206は、拡大ビットマップフォントからジャギパターンを検出した都度に置換パターンに置換しても良いし、また、一通りジャギパターンを検索した後にまとめて置換パターンに置換しても良い。 FIG. 16 is a flowchart showing the smoothing process of the enlarged bitmap font. As shown in FIG. 2, the jaggy pattern replacement unit 206 may replace a jaggy pattern from the enlarged bitmap font every time a jaggy pattern is detected. Alternatively, after searching for the jaggy pattern, the entire pattern is replaced with the replacement pattern. You may do it.
図16(a)は、ジャギパターンの検出の都度に置換パターンに置換するスムージング処理を示すフロー図である。また、図16(b)は、ジャギパターンの検索後にまとめて置換パターンに置換するスムージング処理を示すフロー図である。 FIG. 16A is a flowchart showing a smoothing process for replacing with a replacement pattern each time a jaggy pattern is detected. FIG. 16B is a flowchart showing a smoothing process for collectively replacing a replacement pattern after searching for a jaggy pattern.
先ず、図16(a)について説明する。処理S1601では、ジャギパターン検索部204は、ビットマップフォント記憶部202からスムージング処理を行う拡大ビットマップフォントの拡大倍率を取得する。その後、処理S1602に進む。
First, FIG. 16A will be described. In step S1601, the jaggy
処理S1602では、ジャギパターン検索部204は、ドットパターン記憶部203に記憶のジャギパターンのうち、未だ選択していないものを1つ選択する。このときのジャギパターンの選択候補は、取得した拡大倍率と対応したものとなる。その後、処理S1603に進む。
In step S1602, the jaggy
処理S1603では、ジャギパターン検索部204は、選択したジャギパターンを用いて、ビットマップフォント記憶部202に記憶の拡大ビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部204が拡大ビットマップフォントからジャギパターンと一致するドットパターンを検出すると、ジャギパターン置換部206は、ドットパターン記憶部203に記憶の、選択中のジャギパターンと対応する置換パターンを用いて、検出したドットパターンを置換する。その後、処理S1604に進む。
In step S1603, the jaggy
処理S1604では、ジャギパターン検索部204は、拡大ビットマップフォントに対するパターンマッチング検索が完了したかどうかを判定する。完了していれば処理S1605に進む。完了していなければ処理S1603に進む。
In step S1604, the jaggy
処理S1605では、ジャギパターン検索部204は、選択候補のジャギパターンを全て選択したかどうかを判定する。全て選択していれば処理を終了する。全て選択していなければ処理S1602に進む。
In step S1605, the jaggy
次に、図16(b)について説明する。処理S1606及び処理S1607はそれぞれ、図16(a)の処理S1601及び処理S1602と同様である。その後、処理S1608に進む。 Next, FIG. 16B will be described. Processing S1606 and processing S1607 are the same as processing S1601 and processing S1602 in FIG. Then, it progresses to process S1608.
処理S1608では、ジャギパターン検索部204は、選択したジャギパターンを用いて、ビットマップフォント記憶部202に記憶の拡大ビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部204は、拡大ビットマップフォントからジャギパターンと一致するドットパターンを検出すると、ジャギドット記憶部205に、検出したドットパターンの情報とジャギパターンとを合わせて記憶する。その後、処理S1609に進む。
In step S1608, the jaggy
処理S1609では、ジャギパターン検索部204は、選択候補のジャギパターンを全て選択したかどうかを判定する。全て選択していれば処理S1610に進む。全て選択していなければ処理S1607に進む。
In step S1609, the jaggy
処理S1610では、ジャギパターン置換部206は、処理S1608でジャギドット記憶部205に記憶した全てのドットパターンの情報と対応するドットを、ドットパターン記憶部203に記憶の、ジャギパターンと対応した置換パターンを用いて置換する。その後、処理を終了する。
In step S1610, the jaggy pattern replacement unit 206 stores the dots corresponding to all the dot pattern information stored in the jaggy
図17は、拡大ビットマップフォントの45°及び135°近傍の角度の輪郭ドット列へのスムージング処理を示す模式図である。図17(a)は、図3(b)に示す2倍に拡大した拡大ビットマップフォントである。図17(b)〜(g)は、図17(a)の点線丸枠1701に囲まれた部分を示す。
FIG. 17 is a schematic diagram showing a smoothing process for contour dot rows with angles near 45 ° and 135 ° of the enlarged bitmap font. FIG. 17A shows an enlarged bitmap font enlarged twice as shown in FIG. FIGS. 17B to 17G show a portion surrounded by a dotted-
図18は、拡大ビットマップフォントの60°及び120°近傍の角度の輪郭ドット列へのスムージング処理を示す模式図である。図18(a)は、図3(b)に示す2倍に拡大した拡大ビットマップフォントである。図18(b)〜(e)は、図18(a)の点線丸枠1801に囲まれた部分を示す。
FIG. 18 is a schematic diagram showing a smoothing process for contour dot rows having angles near 60 ° and 120 ° of the enlarged bitmap font. FIG. 18A shows an enlarged bitmap font enlarged twice as shown in FIG. FIGS. 18B to 18E show a portion surrounded by a
図17及び図18では、図16(b)のスムージング処理を適用して説明する。 17 and 18 will be described by applying the smoothing process of FIG. 16B.
先ず、ビットマップフォント記憶部202から拡大ビットマップフォントの拡大倍率を取得する。このとき取得される拡大倍率は2倍となる。
First, the enlargement magnification of the enlarged bitmap font is acquired from the bitmap
次に、2倍の拡大倍率と対応したジャギパターンをドットパターン記憶部203から選択する。2倍の拡大倍率と対応したジャギパターンの選択候補は、図8(e)〜(h)、図9(e)〜(h)及び図12(a)〜(d)となる。ここでは、図8(e)〜(h)、図9(e)〜(h)及び図12(a)〜(d)の列挙した順にジャギパターンを選択する。
Next, a jaggy pattern corresponding to the double magnification is selected from the dot
次に、図17及び図18の拡大ビットマップフォントから、選択したジャギパターンと一致するドットパターンを検索する。 Next, a dot pattern that matches the selected jaggy pattern is searched from the enlarged bitmap fonts of FIGS.
図8(e)のジャギパターンで検索した結果、図17(a)の二重点線1702、1703及び1704に示すドットパターンを検出する。そして、図8(e)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
As a result of searching with the jaggy pattern in FIG. 8E, the dot patterns indicated by the double
次に、図8(f)のジャギパターンで検索した結果、図17(a)の二重点線1705及び1706、図17(b)の二重点線1707、図17(c)の二重点線1708、並びに図17(d)の二重点線1709に示すドットパターンを検出する。そして、図8(f)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
Next, as a result of searching with the jaggy pattern of FIG. 8F, the double
次に、図8(g)のジャギパターンで検索した結果、図17(a)の二重点線1710に示すドットパターンを検出する。そして、図8(g)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
Next, as a result of searching with the jaggy pattern in FIG. 8G, the dot pattern indicated by the double dotted line 1710 in FIG. 17A is detected. Then, the detected dot pattern information is stored in the jaggy
次に、図8(h)のジャギパターンで検索した結果、図17(e)の二重点線1711、図17(f)の二重点線1712、及び図17(g)の二重点線1713に示すドットパターンを検出する。そして、図8(h)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
Next, as a result of searching with the jaggy pattern of FIG. 8H, the double dotted
次に、図9(e)及び図9(f)のジャギパターンで検索した結果、一致するドットパターンを検出しない。 Next, as a result of searching with the jaggy pattern shown in FIGS. 9E and 9F, a matching dot pattern is not detected.
次に、図9(g)のジャギパターンで検索した結果、図18(b)の二重点線1802及び図18(c)の二重点線1803に示すドットパターンを検出する。そして、図9(g)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
Next, as a result of searching with the jaggy pattern in FIG. 9G, the dot pattern indicated by the double dotted
次に、図9(h)のジャギパターンで検索した結果、図18(d)の二重点線1804及び図18(e)の二重点線1805に示すドットパターンを検出する。そして、図9(h)のジャギパターンと共に、検出したドットパターンの情報をジャギドット記憶部205に記憶する。
Next, as a result of searching with the jaggy pattern of FIG. 9H, the dot pattern indicated by the double dotted line 1804 in FIG. 18D and the double dotted
次に、図12(a)〜(d)のジャギパターンで検索した結果、一致するドットパターンを検出しない。 Next, as a result of searching with the jaggy pattern of FIGS. 12A to 12D, a matching dot pattern is not detected.
最後に、ジャギドット記憶部205に記憶の、ジャギパターン及び検出したドットパターンの情報に基づき、ドットパターン記憶部203に記憶の図10(a)〜(d)、図11(a)〜(d)及び図12(e)〜(h)の置換パターンを用いて、検出したドットパターンを置換する。
Finally, based on the information on the jaggy pattern and the detected dot pattern stored in the jaggy
図19は、スムージング処理後の拡大ビットマップフォントを示す模式図である。 FIG. 19 is a schematic diagram showing an enlarged bitmap font after the smoothing process.
尚、本発明では、文字の30°、45°、60°、120°、135°及び150°近傍の角度の傾斜線を対象とした輪郭ドット列、ジャギパターン及び置換パターンを形成したが、異なる角度の傾斜線を表す輪郭ドット列、ジャギパターン及び置換パターンを形成し、文字の所望の傾斜線の輪郭に更に近づけてスムージング処理を行うことも可能である。 In the present invention, outline dot rows, jaggy patterns, and replacement patterns are formed for inclined lines having angles near 30 °, 45 °, 60 °, 120 °, 135 °, and 150 ° of characters. It is also possible to perform a smoothing process by forming a contour dot row, a jaggy pattern, and a replacement pattern that represent an inclined line of an angle, and further closer to the desired inclined line outline of the character.
ところで、特許文献3の手法では、ビットマップフォントの輪郭を形成する全てのドットをベクトル情報に置き換えて、置き換えたベクトル情報のうちジャギと判断できるものを変換した後に、再びドットへの置き換えを行っているため、スムージング処理の演算量が多くなってしまう問題がある。しかしながら、上述のようにスムージング処理の対象となるジャギパターンと、ジャギパターンを置き換える置換パターンとを予め用意し、パターンマッチング処理を利用してビットマップフォントのジャギを除去するため、スムージング処理の演算を簡易にする効果が得られる。 By the way, in the method of Patent Document 3, all the dots forming the outline of the bitmap font are replaced with vector information, and after replacement of the replaced vector information that can be determined as jaggies, replacement with dots is performed again. Therefore, there is a problem that the amount of calculation of the smoothing process increases. However, as described above, a smoothing process is performed in order to prepare a jaggy pattern to be smoothed and a replacement pattern that replaces the jaggy pattern in advance, and remove the bitmap font jaggy using the pattern matching process. The effect of simplifying is obtained.
実施の形態1によれば、文字の所定の傾斜線の傾きに基づいて構成した輪郭ドット列からジャギパターンを形成し、拡大後のビットマップフォントからジャギパターンと一致するドットパターンを検索して、対応する置換パターンで置換することが可能となる。その結果として、表す文字の所望の傾斜線の輪郭により近づけてスムージング処理を行う効果が得られる。 According to the first embodiment, a jaggy pattern is formed from a contour dot string configured based on the inclination of a predetermined inclination line of a character, a dot pattern that matches the jaggy pattern is searched from an enlarged bitmap font, It becomes possible to replace with a corresponding replacement pattern. As a result, the effect of performing the smoothing process closer to the contour of the desired inclined line of the character to be represented can be obtained.
また、実施の形態1によれば、30°、45°、60°、120°、135°及び150°近傍といった頻出の角度をなす所定の傾斜線を表す輪郭ドット列に特化してスムージング処理することが可能となる。その結果として、従来のように任意の角度の傾斜線に対応して汎用的にスムージング処理するよりも、表す文字を判別し易く傾斜線の輪郭を形成できる効果が得られる。また、スムージング処理の対象となる文字の線を特化しているので、ビットマップフォントのスムージング処理が不要な部分までスムージング処理を行ってしまうことを抑止できる効果が得られる。また、スムージング処理の対象となる文字の線を絞り込んでいるため、スムージング処理の演算を簡易にする効果が得られる。 Further, according to the first embodiment, the smoothing process is performed specifically for contour dot rows representing predetermined inclined lines having frequent angles such as around 30 °, 45 °, 60 °, 120 °, 135 °, and 150 °. It becomes possible. As a result, compared to conventional smoothing processing corresponding to an inclined line of an arbitrary angle, an effect of easily forming a contour of the inclined line can be obtained rather than distinguishing characters to be represented. Further, since the character line to be smoothed is specialized, it is possible to prevent the smoothing process from being performed even on a portion where the bitmap font smoothing process is unnecessary. Further, since the character lines to be smoothed are narrowed down, an effect of simplifying the smoothing processing can be obtained.
また、実施の形態1によれば、文字の傾斜線の輪郭の上下を区別して輪郭ドット列並びにジャギパターン及び置換パターンを形成することが可能となる。その結果として、傾斜線の上下の輪郭と対応して2つの輪郭ドット列を組み合わせたときに、傾斜線の傾きにより近くなるように、上下の輪郭ドット列のドット401を配置できる効果が得られる。また、傾斜線の輪郭の上下を区別してジャギパターンを形成しているので、一方のジャギパターンと対応する置換パターンはドット1001を削除し、他方のジャギパターンと対応する置換パターンはドット1002を追加することで、傾斜線の太さのバランスを変えずにスムージング処理を行う効果が得られる。
Further, according to the first embodiment, it is possible to form the outline dot string, the jaggy pattern, and the replacement pattern by distinguishing the upper and lower sides of the outline of the inclined line of the character. As a result, when two contour dot rows are combined corresponding to the upper and lower contours of the tilt line, the effect is obtained that the
実施の形態2.
実施の形態1のジャギパターンを形成する外周ドット列は、輪郭ドット列のドット401との境界を辺とするドット402を対象としていた。実施の形態2では、ジャギパターンの外周ドット列の対象を広げる。
The outer peripheral dot row that forms the jaggy pattern of the first embodiment targets the
図20は、実施の形態2における、2倍に拡大した45°及び135°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。図中のドット401〜403は図4と同様であり、一点鎖線枠802は図8と同様であり、ドット1001及び1002並びに二点鎖線枠1003は図10と同様である。
FIG. 20 is a schematic diagram showing a jaggy pattern and a replacement pattern of a contour dot row with angles around 45 ° and 135 ° enlarged twice in the second embodiment. The
図20(a)は、2倍に拡大した45°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図20(b)は、2倍に拡大した45°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図20(c)は、2倍に拡大した135°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図20(d)は、2倍に拡大した135°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 20A is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle in the vicinity of 45 ° magnified twice. FIG. 20B is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle in the vicinity of 45 ° magnified twice. FIG. 20C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 135 ° enlarged twice. FIG. 20D is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 135 ° enlarged twice.
また、図20(e)は、2倍に拡大した45°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図20(f)は、2倍に拡大した45°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図20(g)は、2倍に拡大した135°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図20(h)は、2倍に拡大した135°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 20 (e) is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 45 ° enlarged twice. FIG. 20F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle in the vicinity of 45 ° enlarged twice. FIG. 20G is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle near 135 ° enlarged twice. FIG. 20 (h) is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 135 ° enlarged twice.
ここで、図20(a)〜(d)は図8(e)〜(h)と対応し、図20(e)〜(h)は図10(a)〜(d)と対応しているが、ドット2001がドット402である点で異なる。つまり、文字の輪郭線を表す輪郭ドット列のドット401との境界を辺とするドット402を外周ドット列と扱うことに加えて、輪郭ドット列のドット401と角で接し、外周ドット列の2つのドット402と辺で接するドット402も外周ドット列と扱う。
Here, FIGS. 20 (a) to (d) correspond to FIGS. 8 (e) to (h), and FIGS. 20 (e) to (h) correspond to FIGS. 10 (a) to (d). Is different in that the
このようにすることで、輪郭ドット列に沿った途切れのない外周ドット列を形成することができるようになり、ビットマップフォントの文字を表す領域とそれ以外の領域とをより明確に区別できるため、スムージング処理をより正確に行うことが可能となる。 By doing so, it becomes possible to form a continuous outer peripheral dot row along the contour dot row, and it is possible to more clearly distinguish the region representing the character of the bitmap font from the other region. The smoothing process can be performed more accurately.
上述のことは、60°及び120°近傍の角度、並びに30°及び150°近傍の角度の輪郭ドット列に沿った外周ドット列についても同様である。 The same applies to the outer peripheral dot rows along the contour dot rows at angles near 60 ° and 120 ° and angles near 30 ° and 150 °.
図21は、2倍に拡大した60°及び120°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。図中のドット401〜403は図4と同様であり、一点鎖線枠902は図9と同様であり、ドット1001及び1002は図10と同様であり、二点鎖線枠1101は図11と同様である。
FIG. 21 is a schematic diagram showing a jaggy pattern and a replacement pattern of a contour dot row with angles around 60 ° and 120 ° enlarged twice. The
図21(a)は、2倍に拡大した60°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図21(b)は、2倍に拡大した60°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図21(c)は、2倍に拡大した120°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図21(d)は、2倍に拡大した120°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 21A is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 60 ° enlarged twice. FIG. 21B is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle in the vicinity of 60 ° magnified twice. FIG. 21C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 120 ° enlarged twice. FIG. 21D is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 120 ° enlarged twice.
また、図21(e)は、2倍に拡大した60°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図21(f)は、2倍に拡大した60°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図21(g)は、2倍に拡大した120°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図21(h)は、2倍に拡大した120°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 21E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 60 ° enlarged twice. FIG. 21F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 60 ° enlarged twice. FIG. 21G is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle near 120 ° enlarged twice. FIG. 21H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 120 ° enlarged twice.
ここで、図21(a)〜(d)は図9(e)〜(h)と対応し、図21(e)〜(h)は図11(a)〜(d)と対応しているが、ドット2101がドット402である点で異なる。つまり、文字の輪郭線を表す輪郭ドット列のドット401との境界を辺とするドット402を外周ドット列と扱うことに加えて、輪郭ドット列のドット401と角で接し、2つのドット402と辺で接するドット402も外周ドット列と扱う。
Here, FIGS. 21A to 21D correspond to FIGS. 9E to 9H, and FIGS. 21E to 21H correspond to FIGS. 11A to 11D. Is different in that the
図22は、2倍に拡大した30°及び150°近傍の角度の輪郭ドット列のジャギパターンと置換パターンを示す模式図である。図中のドット401〜403は図4と同様であり、ドット1001及び1002は図10と同様であり、一点鎖線枠1201及び二点鎖線枠1202は図12と同様である。
FIG. 22 is a schematic diagram showing a jaggy pattern and a replacement pattern of a contour dot row having an angle in the vicinity of 30 ° and 150 ° magnified twice. The
図22(a)は、2倍に拡大した30°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図22(b)は、2倍に拡大した30°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。図22(c)は、2倍に拡大した150°近傍の角度の上輪郭ドット列のジャギパターンを示す模式図である。図22(d)は、2倍に拡大した150°近傍の角度の下輪郭ドット列のジャギパターンを示す模式図である。 FIG. 22A is a schematic diagram showing a jaggy pattern of an upper outline dot row having an angle near 30 ° enlarged twice. FIG. 22B is a schematic diagram showing a jaggy pattern of a lower outline dot row with an angle near 30 ° enlarged twice. FIG. 22C is a schematic diagram showing a jaggy pattern of the upper contour dot row at an angle near 150 ° enlarged twice. FIG. 22D is a schematic diagram showing a jaggy pattern of the lower outline dot row at an angle near 150 ° enlarged twice.
また、図22(e)は、2倍に拡大した30°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図22(f)は、2倍に拡大した30°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。図22(g)は、2倍に拡大した150°近傍の角度の上輪郭ドット列の置換パターンを示す模式図である。図22(h)は、2倍に拡大した150°近傍の角度の下輪郭ドット列の置換パターンを示す模式図である。 FIG. 22E is a schematic diagram showing a replacement pattern of the upper contour dot row at an angle near 30 ° enlarged twice. FIG. 22F is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle near 30 ° enlarged twice. FIG. 22G is a schematic diagram showing a replacement pattern of the upper outline dot row at an angle near 150 ° enlarged twice. FIG. 22H is a schematic diagram showing a replacement pattern of the lower outline dot row at an angle in the vicinity of 150 ° enlarged twice.
ここで、図22(a)〜(d)は図12(a)〜(d)と対応し、図22(e)〜(h)は図12(e)〜(h)と対応しているが、ドット2201がドット402である点で異なる。つまり、文字の輪郭線を表す輪郭ドット列のドット401との境界を辺とするドット402を外周ドット列と扱うことに加えて、輪郭ドット列のドット401と角で接し、2つのドット402と辺で接するドット402も外周ドット列と扱う。
Here, FIGS. 22A to 22D correspond to FIGS. 12A to 12D, and FIGS. 22E to 22H correspond to FIGS. 12E to 12H. Is different in that the
実施の形態2によれば、文字の輪郭線を表す輪郭ドット列のドット401との境界を辺とするドット402を外周ドット列と扱うことに加えて、輪郭ドット列のドット401と角で接し、外周ドット列の2つのドット402と辺で接するドット402も外周ドット列と扱うことが可能となる。その結果として、輪郭ドット列に沿った途切れのない外周ドット列を形成し、ビットマップフォントの文字を表す領域とそれ以外の領域とをより明確に区別して、より正確にスムージング処理を行う効果が得られる。
According to the second embodiment, in addition to treating a
実施の形態3.
実施の形態1及び2では、ビットマップフォントの拡大倍率と対応したジャギパターン及び置換パターンを用いてスムージング処理を行った。実施の形態3では、ビットマップフォントの拡大倍率を素因数分解した素数を拡大倍率とし、素数の拡大倍率によって、ビットマップフォントの拡大とスムージング処理とを順次行う。
Embodiment 3 FIG.
In the first and second embodiments, the smoothing process is performed using the jaggy pattern and the replacement pattern corresponding to the enlargement magnification of the bitmap font. In the third embodiment, a prime number obtained by factoring the enlargement factor of the bitmap font is used as an enlargement factor, and the enlargement of the bitmap font and the smoothing process are sequentially performed according to the enlargement factor of the prime number.
図23は、実施の形態3における、スムージング処理装置101の機能ブロックを示す機能ブロック図である。スムージング処理装置101は、ビットマップフォント入力部201、ドットパターン記憶部203、ジャギパターン検索部204、ジャギドット記憶部205、ビットマップフォント出力部207、スムージング処理制御部208、第1ビットマップフォント記憶部2301、拡大倍率入力部2302、素因数分解部2303、素数記憶部2304、第2ビットマップフォント記憶部2305、ビットマップフォント拡大部2306及びジャギパターン置換部2307で構成される。図2と同じ符号の機能部については説明を一部省略する。
FIG. 23 is a functional block diagram showing functional blocks of the smoothing
第1ビットマップフォント記憶部2301は、ビットマップフォント入力部201からビットマップフォントを受けて記憶する機能部である。
The first bitmap
拡大倍率入力部2302は、ビットマップフォント入力部201が入力したビットマップフォントを拡大する拡大倍率を入力する機能部である。拡大倍率の入力は、インタフェース装置102等から行う。
The enlargement
素因数分解部2303は、拡大倍率入力部2302が入力した拡大倍率を受けて、拡大倍率の値を素因数分解する機能部である。素因数分解部2303は、拡大倍率の値と等しい素数の積を構成する各値を導出する。このときの各値を素数倍率とする。
The prime
素数記憶部2304は、素因数分解部2303が導出した素数倍率を記憶する機能部である。
The prime
ビットマップフォント拡大部2306は、素数記憶部2304に記憶の素数倍率を拡大倍率としてビットマップフォントを拡大する機能部である。
The bitmap
ここで、ビットマップフォント拡大部2306がビットマップフォントを拡大する処理は、初回と2回目以降とで異なる。初回の拡大処理では、第1ビットマップフォント記憶部2301に記憶のビットマップフォントを、素数記憶部2304に記憶の素数倍率で拡大し、第2ビットマップフォント記憶部2305に記憶する。2回目以降の拡大処理では、第2ビットマップフォント記憶部2305に記憶のビットマップフォントを、素数記憶部2304に記憶の素数倍率で拡大し、再び第2ビットマップフォント記憶部2305に記憶する。
Here, the process in which the bitmap
ジャギパターン置換部2307は、ジャギドット記憶部205に記憶の検索結果に基づいて、第2ビットマップフォント記憶部2305に記憶の拡大ビットマップフォントの一部のドットをドットパターン記憶部203に記憶の置換パターンで置換する。このときの置換パターンは、ドットパターン記憶部203に記憶のジャギパターンと対応したものが選択される。
Based on the search result stored in the jaggy
図24は、素数倍率を利用した拡大ビットマップフォントのスムージング処理を示すフロー図である。図16と同様に、拡大ビットマップフォントからジャギパターンを検出した都度に置換パターンに置換しても良いし、一通りジャギパターンを検索した後にまとめて置換パターンに置換しても良い。 FIG. 24 is a flowchart showing the smoothing process of the enlarged bitmap font using the prime number magnification. Similarly to FIG. 16, each time a jaggy pattern is detected from the enlarged bitmap font, it may be replaced with a replacement pattern, or after a search for a jaggy pattern, it may be replaced with a replacement pattern.
図24(a)は、素数倍率を利用した、ジャギパターンの検出の都度に置換パターンに置換するスムージング処理を示すフロー図である。また、図24(b)は、素数倍率を利用した、ジャギパターンの検索後にまとめて置換パターンに置換するスムージング処理を示すフロー図である。 FIG. 24A is a flowchart showing a smoothing process that uses a prime number magnification to replace a replacement pattern every time a jaggy pattern is detected. FIG. 24B is a flowchart showing a smoothing process that uses a prime number magnification and collectively replaces a replacement pattern after searching for a jaggy pattern.
先ず、図24(a)について説明する。処理S2401では、拡大倍率入力部2302は、インタフェース装置102等から拡大倍率を入力する。その後、処理S2402に進む。
First, FIG. 24A will be described. In process S2401, the enlargement
処理S2402では、素因数分解部2303は、拡大倍率入力部2302が入力した拡大倍率を受けて素因数分解を行い、素数倍率を素数記憶部2304に記憶する。その後、処理S2403に進む。
In step S2402, the prime
処理S2403では、ビットマップフォント拡大部2306は、素数記憶部2304に記憶の素数倍率のうち、未だ選択していないものを1つ選択する。その後、処理S2404に進む。
In step S2403, the bitmap
処理S2404では、ビットマップフォント拡大部2306は、初回の処理であれば、第1ビットマップフォント記憶部2301に記憶のビットマップフォントを、選択中の素数倍率で拡大し、第2ビットマップフォント記憶部2305に記憶する。2回目以降の処理であれば、第2ビットマップフォント記憶部2305に記憶のビットマップフォントを、選択中の素数倍率で拡大し、第2ビットマップフォント記憶部2305に記憶する。その後、処理S2405に進む。
In process S2404, if it is the first process, the bitmap
処理S2405では、ジャギパターン検索部204は、ドットパターン記憶部203に記憶したジャギパターンのうち、未だ選択していないものを1つ選択する。このときのジャギパターンの選択候補は、選択した素数倍率と対応したものとなる。その後、処理S2406に進む。
In step S2405, the jaggy
処理S2406では、ジャギパターン検索部204は、選択したジャギパターンを用いて、第2ビットマップフォント記憶部2305に記憶の拡大ビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部204が拡大ビットマップフォントからジャギパターンと一致するドットパターンを検出すると、ジャギパターン置換部2307は、ドットパターン記憶部203に記憶の、選択中のジャギパターンと対応する置換パターンを用いて、検出したドットパターンを置換する。その後、処理S2407に進む。
In step S2406, the jaggy
処理S2407では、ジャギパターン検索部204は、拡大ビットマップフォントに対するパターンマッチング検索が完了したかどうかを判定する。完了していれば処理S2408に進む。完了していなければ処理S2406に進む。
In step S2407, the jaggy
処理S2408では、ジャギパターン検索部204は、選択候補のジャギパターンを全て選択したかどうかを判定する。全て選択していれば処理S2409に進む。全て選択していなければ処理S2405に進む。
In step S2408, the jaggy
処理S2409では、ビットマップフォント拡大部2306は、ジャギパターン置換部2307が拡大ビットマップフォントのジャギパターンの置換を完了した後に、素数記憶部2304に記憶の素数倍率を全て選択したかどうかを判定する。全て選択していれば処理を終了する。全て選択していなければ処理S2403に進む。
In step S2409, the bitmap
次に、図24(b)について説明する。処理S2410〜処理S2414は、図24(a)の処理S2401〜S2405と同様である。 Next, FIG. 24B will be described. Processes S2410 to S2414 are the same as processes S2401 to S2405 in FIG.
処理S2415では、ジャギパターン検索部204は、選択したジャギパターンを用いて、第2ビットマップフォント記憶部2305に記憶の拡大ビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部204は、拡大ビットマップフォントからジャギパターンと一致するドットパターンを検出すると、ジャギドット記憶部205に、検出したドットパターンの情報とジャギパターンとを合わせて記憶する。その後、処理S2416に進む。
In step S2415, the jaggy
処理S2416は、図24(a)の処理S2408と同様であり、選択候補のジャギパターンを全て選択していれば処理S2417に進む。全て選択していなければ処理S2414に進む。 The process S2416 is the same as the process S2408 in FIG. 24A. If all the selection candidate jaggy patterns have been selected, the process proceeds to a process S2417. If not all are selected, the process advances to step S2414.
処理S2417では、ジャギパターン置換部2307は、処理S2410でジャギドット記憶部205に記憶した全てのドットパターンの情報と対応するドットを、ドットパターン記憶部203に記憶の、ジャギパターンと対応した置換パターンを用いて置換する。その後、処理S2418に進む。
In step S2417, the jaggy
処理S2418は、図24(a)の処理S2409と同様であり、素数記憶部2304に記憶の素数倍率を全て選択していれば処理を終了する。全て選択していなければ処理S2412に進む。
The process S2418 is the same as the process S2409 in FIG. 24A. If all prime prime magnifications stored in the prime
実施の形態3によれば、拡大倍率を素因数分解した素数倍率を用いてスムージング処理を分割して行うことが可能となる。その結果として、元の拡大倍率よりも小さな拡大倍率によってビットマップフォントを拡大するために、ジャギパターンの検索とドットパターンの置換の対象となるドット数が少なくなり、1回のスムージング処理に要する演算を抑える効果が得られる。また、素数ではない拡大倍率と対応したジャギパターン及び置換パターンの形成を不要とする効果が得られる。 According to the third embodiment, it is possible to divide and perform the smoothing process using a prime factor obtained by factoring the enlargement factor. As a result, in order to enlarge the bitmap font with an enlargement factor smaller than the original enlargement factor, the number of dots subject to jaggy pattern search and dot pattern replacement is reduced, and the calculation required for one smoothing process The effect which suppresses is acquired. Further, there is an effect that it is not necessary to form a jaggy pattern and a replacement pattern corresponding to an enlargement factor that is not a prime number.
実施の形態4.
実施の形態1〜3では、拡大後のビットマップフォントに対してジャギパターンの検索を行った。実施の形態4では、実施の形態1〜3のスムージングに先立って、拡大前のビットマップフォントに対してジャギの候補となるドットパターンを検索する。
In the first to third embodiments, a jaggy pattern is searched for an enlarged bitmap font. In the fourth embodiment, prior to the smoothing in the first to third embodiments, a dot pattern that is a candidate for jaggies is searched for the bitmap font before enlargement.
実施の形態4では、先ず、拡大前のビットマップフォントに対しジャギパターンの候補であるジャギ候補パターンの検索を行い、ジャギ候補パターンと一致したドットを拡大後のビットマップフォントから抽出し、実施の形態1〜3のスムージング処理に先行して置換を行う先行置換パターンによって、抽出したドットを置換する。実施の形態4を実施した以降は、実施の形態1〜3の要領で、拡大後のビットマップフォントに対してジャギパターンの検索を行い、ジャギパターンと一致したドットを置換パターンによって置換を行う。 In the fourth embodiment, first, a search for a candidate pattern that is a candidate for a jaggy pattern is performed on the bitmap font before enlargement, and dots that match the candidate pattern are extracted from the bitmap font after enlargement. The extracted dots are replaced by the preceding replacement pattern in which replacement is performed prior to the smoothing processing in the first to third embodiments. After execution of the fourth embodiment, a search for a jaggy pattern is performed for the enlarged bitmap font in the same manner as in the first to third embodiments, and a dot that matches the jaggy pattern is replaced with a replacement pattern.
図25は、実施の形態4における、スムージング処理装置101の機能ブロックを示す機能ブロック図である。スムージング処理装置101は、ビットマップフォント入力部201、ドットパターン記憶部203、ジャギドット記憶部205、ビットマップフォント出力部207、スムージング処理制御部208、第1ビットマップフォント記憶部2501、拡大倍率入力部2502、ジャギパターン検索部2503、ビットマップフォント拡大部2504、第2ビットマップフォント記憶部2505及びジャギパターン置換部2506で構成される。図2と同じ符号の機能部については説明を一部省略する。
FIG. 25 is a functional block diagram showing functional blocks of the smoothing
第1ビットマップフォント記憶部2501は、ビットマップフォント入力部201からビットマップフォントを受けて記憶する機能部である。
The first bitmap
拡大倍率入力部2502は、ビットマップフォント入力部201が入力したビットマップフォントを拡大する拡大倍率を入力する機能部である。拡大倍率の入力は、インタフェース装置102等から行う。
The enlargement
ジャギパターン検索部2503は、拡大前のビットマップフォントからはジャギ候補パターンを検索し、拡大後のビットマップフォントからはジャギパターンを検索する機能部である。検索したビットマップフォントのドット情報を、検索に用いたジャギ候補パターン又はジャギパターンと対応付けて、ジャギドット記憶部205に記憶する。
The jaggy
ここで、ジャギパターン検索部2503が、拡大前のビットマップフォントに対して行う検索処理を第1検索処理とし、拡大後のビットマップフォントに対して行う検索処理を第2検索処理とすると、第1検索処理では、第1ビットマップフォント記憶部2501に記憶のビットマップフォントからドットパターン記憶部203に記憶のジャギ候補パターンを検索し、第2検索処理では、第2ビットマップフォント記憶部2505に記憶の拡大ビットマップフォントからドットパターン記憶部203に記憶のジャギパターンを検索する。このときのジャギ候補パターン及びジャギパターンは、拡大倍率と対応するものを選択する。
Here, when the search process performed on the bitmap font before enlargement is the first search process and the search process performed on the bitmap font after enlargement is the second search process, the search
ビットマップフォント拡大部2504は、第1ビットマップフォント記憶部2501に記憶のビットマップフォントを、入力の拡大倍率で拡大し、第2ビットマップフォント記憶部2505に記憶する機能部である。このときのビットマップフォントの拡大は、ジャギパターン検索部2503での第1検索処理が完了した後に行う。
The bitmap
ジャギパターン置換部2506は、ジャギドット記憶部205に記憶の検索結果に基づいて、第2ビットマップフォント記憶部2305に記憶の拡大ビットマップフォントの一部のドットを、ドットパターン記憶部203に記憶の先行置換パターン又は置換パターンで置換する機能部である。このときの先行置換パターン及び置換パターンはそれぞれ、ジャギ候補パターン及びジャギパターンと対応して、ドットパターン記憶部203に予め記憶される。
Based on the search result stored in the jaggy
図26は、拡大前後のビットマップフォントに対しジャギ候補パターン及びジャギパターンを検索するスムージング処理を示すフロー図である。 FIG. 26 is a flowchart showing a smoothing process for searching for a jaggy candidate pattern and a jaggy pattern for bitmap fonts before and after enlargement.
処理S2601では、拡大倍率入力部2502は、インタフェース装置102等から拡大倍率を入力する。その後、処理S2602に進む。
In process S2601, the enlargement
処理S2602では、ジャギパターン検索部2503は、ドットパターン記憶部203に記憶したジャギ候補パターンのうち、未だ選択していないものを1つ選択する。このときのジャギ候補パターンの選択候補は、入力した拡大倍率と対応したものとなる。その後、処理S2603に進む。
In step S2602, the jaggy
処理S2603では、ジャギパターン検索部2503は、選択したジャギ候補パターンを用いて、第1ビットマップフォント記憶部2501に記憶のビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部2503は、ビットマップフォントからジャギ候補パターンと一致する拡大前ドットパターンを検出すると、ジャギドット記憶部205に、検出した拡大前ドットパターンの情報とジャギ候補パターンとを合わせて記憶する。その後、処理S2604に進む。
In step S2603, the jaggy
処理S2604では、ジャギパターン検索部2503は、選択候補のジャギ候補パターンを全て選択したかどうかを判定する。全て選択していれば処理S2605に進む。全て選択していなければ処理S2602に進む。
In step S2604, the jaggy
処理S2605では、ビットマップフォント拡大部2504は、第1ビットマップフォント記憶部2501に記憶のビットマップフォントを入力した拡大倍率で拡大し、第2ビットマップフォント記憶部2505に記憶する。その後、処理S2606に進む。
In step S 2605, the bitmap
処理S2606では、ジャギパターン置換部2506は、第2ビットマップフォント記憶部2505に記憶の拡大後のビットマップフォントから、処理S2603で記憶した全ての拡大前ドットパターンの情報と対応するドットを抽出し、ドットパターン記憶部203に記憶の、ジャギ候補パターンと対応した先行置換パターンを用いて置換する。その後、処理S2607に進む。
In step S2606, the jaggy pattern replacement unit 2506 extracts the dots corresponding to the information of all the pre-enlarged dot patterns stored in step S2603 from the bitmap font after being expanded in the second bitmap
処理S2607では、ジャギパターン検索部2503は、ドットパターン記憶部203に記憶したジャギパターンのうち、未だ選択していないものを1つ選択する。このときのジャギパターンの選択候補は、入力した拡大倍率と対応したものとなる。その後、処理S2608に進む。
In step S2607, the jaggy
処理S2608では、ジャギパターン検索部2503は、選択したジャギパターンを用いて、第2ビットマップフォント記憶部2505に記憶のビットマップフォントに対し、パターンマッチング検索を行う。そして、ジャギパターン検索部2503は、ビットマップフォントからジャギパターンと一致するドットパターンを検出すると、ジャギドット記憶部205に、検出したドットパターンの情報とジャギパターンとを合わせて記憶する。その後、処理S2609に進む。
In step S2608, the jaggy
処理S2609では、ジャギパターン検索部2503は、選択候補のジャギパターンを全て選択したかどうかを判定する。全て選択していれば処理S2610に進む。全て選択していなければ処理S2607に進む。
In step S2609, the jaggy
処理S2610では、ジャギパターン置換部2506は、第2ビットマップフォント記憶部2505に記憶の拡大後のビットマップフォントのうち、処理S2608で記憶した全てのドットパターンの情報と対応するドットを、ドットパターン記憶部203に記憶の、ジャギパターンと対応した置換パターンを用いて置換する。その後、処理を終了する。
In step S2610, the jaggy pattern replacement unit 2506 converts dots corresponding to the information of all the dot patterns stored in step S2608 out of the bitmap font after being expanded in the second bitmap
図27は、拡大前のビットマップフォントを検索するジャギ候補パターンと拡大後のビットマップフォントを置換する先行置換パターンを示す模式図である。 FIG. 27 is a schematic diagram showing a jaggy candidate pattern for searching for a bitmap font before enlargement and a preceding replacement pattern for replacing the bitmap font after enlargement.
図27(a)は、拡大前のビットマップフォントを検索する、45°近傍の角度のドット列のジャギ候補パターンを示す模式図である。図27(b)は、拡大前のビットマップフォントを検索する、135°近傍の角度のドット列のジャギ候補パターンを示す模式図である。図27(c)は、2倍拡大後のビットマップフォントを置換する、45°近傍の角度のドット列の先行置換パターンを示す模式図である。図27(d)は、2倍拡大後のビットマップフォントを置換する、135°近傍の角度のドット列の先行置換パターンを示す模式図である。 FIG. 27A is a schematic diagram showing a jaggy candidate pattern of a dot row having an angle of around 45 ° for searching a bitmap font before enlargement. FIG. 27B is a schematic diagram showing a jaggy candidate pattern of a dot row having an angle near 135 ° for searching a bitmap font before enlargement. FIG. 27C is a schematic diagram showing a preceding replacement pattern of a dot row having an angle near 45 °, which replaces the bitmap font after double enlargement. FIG. 27D is a schematic diagram showing a preceding replacement pattern of a dot row having an angle near 135 °, which replaces the bitmap font after double enlargement.
図27(a)及び(b)のジャギ候補パターンを一点鎖線枠2701で囲む。図27(c)及び(d)の先行置換パターンを二点鎖線枠2702で囲む。また、図27(c)の先行置換パターンは図27(a)のジャギ候補パターンと対応し、図27(d)の先行置換パターンは図27(b)のジャギ候補パターンと対応する。
The jaggy candidate patterns in FIGS. 27A and 27B are surrounded by a one-dot
尚、拡大後のビットマップフォントを検索するジャギパターンと置換する置換パターンについては、実施の形態1または2に説明したものとなる。 The replacement pattern for replacing the enlarged bitmap font with the jaggy pattern for searching is the same as that described in the first or second embodiment.
実施の形態4によれば、拡大前のビットマップフォントに対し、ジャギパターンの候補となるジャギ候補パターンと一致する拡大前ドットパターンの検索を行い、拡大後のビットマップフォントに対し、検出した拡大前ドットパターンと対応するドットパターンを抽出して、ジャギ候補パターンと対応した先行置換パターンで置換することが可能となる。その結果として、実施の形態1〜3では複数回のパターンマッチング検索によって置換されたジャギを、1回のパターンマッチング検索でまとめて置換できる効果が得られる。 According to the fourth embodiment, the pre-enlargement dot pattern that matches the pre-enlargement bitmap font is searched for the pre-enlargement bitmap font, and the detected enlargement is performed on the post-enlargement bitmap font. It becomes possible to extract the dot pattern corresponding to the previous dot pattern and replace it with the preceding replacement pattern corresponding to the jaggy candidate pattern. As a result, in the first to third embodiments, an effect is obtained in which jags replaced by a plurality of pattern matching searches can be replaced together by a single pattern matching search.
101 スムージング処理装置
102 インタフェース装置
103 データ入力装置
104 データ記憶装置
105 データ出力装置
201 ビットマップフォント入力部
202 ビットマップフォント記憶部
203 ドットパターン記憶部
204、2503 ジャギパターン検索部
205 ジャギドット記憶部
206、2307、2506 ジャギパターン置換部
207 ビットマップフォント出力部
208 スムージング処理制御部
209、2306、2504 ビットマップフォント拡大部
2301、2501 第1ビットマップフォント記憶部
2302、2502 拡大倍率入力部
2303 素因数分解部
2304 素数記憶部
2305、2505 第2ビットマップフォント記憶部
101
Claims (11)
前記拡大ビットマップフォントの拡大倍率と対応したジャギパターン及び前記ジャギパターンと対応した置換パターンを記憶する記憶部と、
前記拡大倍率に基づいて前記ジャギパターンを選択し、前記拡大ビットマップフォントから前記ジャギパターンと一致するドットパターンを検索するジャギパターン検索部と、
前記ジャギパターン検索部が検出した前記拡大ビットマップフォントの前記ドットパターンを前記置換パターンに置換するジャギパターン置換部と、
を備え、
前記ビットマップフォントは、前記文字に含まれる文字ドットと前記文字に含まれない非文字ドットとで構成され、
前記ジャギパターンは、
前記文字の所定の傾斜線の輪郭を表し前記文字ドットからなる輪郭ドット列と、前記輪郭ドット列との境界を辺とする前記非文字ドットからなる外周ドット列と、を合わせて前記拡大倍率で拡大したドット集合のうち、前記境界を辺とする前記文字ドット及び前記非文字ドットからなる、
ことを特徴とするスムージング処理装置。 A smoothing processing device that performs smoothing processing of an enlarged bitmap font jail obtained by enlarging a bitmap font representing characters,
A storage unit for storing a jaggy pattern corresponding to an enlargement magnification of the enlarged bitmap font and a replacement pattern corresponding to the jaggy pattern;
A jaggy pattern search unit that selects the jaggy pattern based on the enlargement magnification and searches for a dot pattern that matches the jaggy pattern from the enlarged bitmap font;
A jaggy pattern replacement unit that replaces the dot pattern of the enlarged bitmap font detected by the jaggy pattern search unit with the replacement pattern;
With
The bitmap font is composed of character dots included in the characters and non-character dots not included in the characters,
The jaggy pattern is
The outline dot row that represents the outline of the predetermined slanting line of the character and is composed of the character dot, and the outer peripheral dot row that is composed of the non-character dot that has a boundary with the contour dot row as a side at the magnification. Among the expanded dot set, the character dot and the non-character dot having the boundary as a side,
And a smoothing processing apparatus.
3つの前記文字ドットからなる第1輪郭ドット列と、4つの前記文字ドットからなる第2輪郭ドット列と、を含み、
前記第1輪郭ドット列の各前記文字ドットは、角で接して並ぶとともに、対角線が同じ直線上にあり、
前記第2輪郭ドット列は、辺で接する2つの前記文字ドットの対が角で接してなるとともに、前記文字の縦方向及び横方向に投影したドットの数の比が1:2又は2:1となる、
ことを特徴とする請求項1に記載のスムージング処理装置。 The contour dot row is:
A first contour dot row composed of three character dots, and a second contour dot row composed of four character dots,
The character dots of the first outline dot row are arranged in contact with each other at the corners, and the diagonal lines are on the same straight line,
In the second outline dot row, a pair of two character dots touching at a side is touched by a corner, and the ratio of the number of dots projected in the vertical and horizontal directions of the character is 1: 2 or 2: 1. Become
The smoothing processing apparatus according to claim 1.
前記輪郭ドット列の前記文字ドットと角で接し、前記外周ドット列の2つの前記非文字ドットと辺で接する前記非文字ドットをさらに含む、
ことを特徴とする請求項1または2のいずれかに記載のスムージング処理装置。 The outer peripheral dot row is:
The non-character dot that touches the character dot of the outline dot row at the corner and touches the two non-character dots of the outer peripheral dot row at the side further includes
The smoothing processing device according to claim 1, wherein the smoothing processing device is a smoothing processing device.
前記第1外周ドット列の各前記非文字ドットは、角で接して並ぶとともに、対角線が同じ直線上にあり、
前記輪郭ドット列は、2つの前記文字ドットからなる第3輪郭ドット列を含み、
前記第3輪郭ドット列の各前記文字ドットは、角で接して並ぶとともに、前記第1外周ドット列との境界を辺とする、
ことを特徴とする請求項1〜3のいずれか1項に記載のスムージング処理装置。 The outer periphery dot row includes a first outer periphery dot row composed of the three non-character dots,
The non-character dots of the first outer peripheral dot row are arranged in contact with each other at the corners, and the diagonal lines are on the same straight line,
The contour dot row includes a third contour dot row composed of the two character dots,
The character dots of the third contour dot row are arranged in contact with each other at a corner, and have a side at the boundary with the first outer peripheral dot row,
The smoothing processing apparatus according to any one of claims 1 to 3, wherein
前記傾斜線の長手方向に対し平行に向かい合う2つの前記輪郭ドット列から導出される2つの前記ジャギパターンのうち、
一方の前記ジャギパターンから前記文字ドットを削除した削除置換パターンと、
他方の前記ジャギパターンに対し前記文字ドットを追加した追加置換パターンと、
からなる、
ことを特徴とする請求項1〜4のいずれか1項に記載のスムージング処理装置。 The substitution pattern is:
Of the two jaggy patterns derived from the two contour dot rows facing in parallel with the longitudinal direction of the inclined line,
A deletion replacement pattern in which the character dots are deleted from one of the jaggy patterns;
An additional replacement pattern in which the character dots are added to the other jaggy pattern;
Consist of,
The smoothing processing apparatus according to any one of claims 1 to 4, wherein
前記拡大倍率を素因数分解し、前記拡大倍率と等しい素数の積を構成する各値を導出する素因数分解部と、
をさらに備え、
前記素因数分解部が導出した各値を前記拡大倍率として順次用いて前記スムージング処理を行う、
ことを特徴とする請求項1〜5のいずれか1項に記載のスムージング処理装置。 A bitmap font enlargement unit for enlarging the bitmap font;
A prime factorization unit for factoring the magnification and deriving each value constituting a product of primes equal to the magnification;
Further comprising
The smoothing process is performed by sequentially using each value derived by the prime factorization unit as the magnification.
The smoothing processing apparatus according to any one of claims 1 to 5, wherein
前記輪郭ドット列及び前記外周ドット列からなるジャギ候補パターンをさらに含み、
前記記憶部は、
前記ジャギ候補パターン及び前記ジャギ候補パターンと対応した先行置換パターンをさらに記憶し、
前記ビットマップフォントを拡大するビットマップフォント拡大部をさらに備え、
前記スムージング処理に先立って、
前記ジャギパターン検索部は、
拡大前の前記ビットマップフォントから前記ジャギ候補パターンと一致する拡大前ドットパターンを検索し、
前記ジャギパターン置換部は、
拡大後の前記拡大ビットマップフォントにおいて、前記ジャギパターン検索部が検出した前記拡大前ドットパターンと対応したドットパターンを抽出し、前記先行置換パターンで置換する、
ことを特徴とする請求項1〜6のいずれか1項に記載のスムージング処理装置。 The jaggy pattern is
Further comprising a jaggy candidate pattern consisting of the contour dot row and the outer peripheral dot row,
The storage unit
Further storing the jaggy candidate pattern and a preceding replacement pattern corresponding to the jaggy candidate pattern;
A bitmap font enlargement unit for enlarging the bitmap font;
Prior to the smoothing process,
The jaggy pattern search unit
Search for a dot pattern before enlargement that matches the Jagi candidate pattern from the bitmap font before enlargement,
The jaggy pattern replacement unit includes:
In the enlarged bitmap font after enlargement, the dot pattern corresponding to the dot pattern before enlargement detected by the jaggy pattern search unit is extracted and replaced with the preceding replacement pattern.
The smoothing processing device according to claim 1, wherein the smoothing processing device is a smoothing processing device.
前記拡大ビットマップフォントの拡大倍率と対応したジャギパターン及び前記ジャギパターンと対応した置換パターンを記憶する記憶工程と、
前記拡大倍率に基づいて前記ジャギパターンを選択し、前記拡大ビットマップフォントから前記ジャギパターンと一致するドットパターンを検索するジャギパターン検索工程と、
前記ジャギパターン検索工程で検出した前記拡大ビットマップフォントの前記ドットパターンを前記置換パターンに置換するジャギパターン置換工程と、
を有し、
前記ビットマップフォントは、前記文字に含まれる文字ドットと前記文字に含まれない非文字ドットとで構成され、
前記ジャギパターンは、
前記文字の所定の傾斜線の輪郭を表し前記文字ドットからなる輪郭ドット列と、前記輪郭ドット列との境界を辺とする前記非文字ドットからなる外周ドット列と、を合わせて前記拡大倍率で拡大したドット集合のうち、前記境界を辺とする前記文字ドット及び前記非文字ドットからなる、
ことを特徴とするスムージング処理方法。 A smoothing processing method for smoothing an enlarged bitmap font jail obtained by enlarging a bitmap font expressing characters,
Storing a jaggy pattern corresponding to an enlargement magnification of the enlarged bitmap font and a replacement pattern corresponding to the jaggy pattern;
Selecting a jaggy pattern based on the magnification, and searching for a dot pattern that matches the jaggy pattern from the enlarged bitmap font;
A jaggy pattern replacing step of replacing the dot pattern of the enlarged bitmap font detected in the jaggy pattern searching step with the replacement pattern;
Have
The bitmap font is composed of character dots included in the characters and non-character dots not included in the characters,
The jaggy pattern is
The outline dot row that represents the outline of the predetermined slanting line of the character and is composed of the character dot, and the outer peripheral dot row that is composed of the non-character dot that has a boundary with the contour dot row as a side at the magnification. Among the expanded dot set, the character dot and the non-character dot having the boundary as a side,
And a smoothing processing method.
3つの前記文字ドットからなる第1輪郭ドット列と、4つの前記文字ドットからなる第2輪郭ドット列と、を含み、
前記第1輪郭ドット列の各前記文字ドットは、角で接して並ぶとともに、対角線が同じ直線上にあり、
前記第2輪郭ドット列は、辺で接する2つの前記文字ドットの対が角で接してなるとともに、前記文字の縦方向及び横方向に投影したドットの数の比が1:2又は2:1となる、
ことを特徴とする請求項8に記載のスムージング処理方法。 The contour dot row is:
A first contour dot row composed of three character dots, and a second contour dot row composed of four character dots,
The character dots of the first outline dot row are arranged in contact with each other at the corners, and the diagonal lines are on the same straight line,
In the second outline dot row, a pair of two character dots touching at a side is touched by a corner, and the ratio of the number of dots projected in the vertical and horizontal directions of the character is 1: 2 or 2: 1. Become
The smoothing processing method according to claim 8.
前記拡大倍率を素因数分解し、前記拡大倍率と等しい素数の積を構成する各値を導出する素因数分解工程と、
前記素因数分解工程で導出した各値を前記拡大倍率として順次用いて、前記スムージング処理を行う分割スムージング工程と、
をさらに有する、
ことを特徴とする請求項8または9のいずれかに記載のスムージング処理方法。 A bitmap font enlarging step for enlarging the bitmap font;
A prime factorization step of decomposing the magnification and deriving each value constituting a product of primes equal to the magnification;
A division smoothing step for performing the smoothing process by sequentially using each value derived in the prime factorization step as the magnification factor;
Further having
The smoothing processing method according to claim 8, wherein the smoothing processing method is performed.
前記記憶工程では、ジャギ候補パターン及び前記ジャギ候補パターンと対応した先行置換パターンをさらに記憶し、
前記ジャギパターン検索工程では、拡大前の前記ビットマップフォントから前記ジャギ候補パターンと一致する拡大前ドットパターンを検索し、
前記ジャギパターン置換工程では、拡大後の前記拡大ビットマップフォントにおいて、前記ジャギパターン検索工程で検出した前記拡大前ドットパターンと対応したドットパターンを抽出し、前記先行置換パターンで置換する、
ことを特徴とする請求項8〜10のいずれか1項に記載のスムージング処理方法。 A bitmap font enlargement step of enlarging the bitmap font;
The storage step further stores a jump candidate pattern and a preceding replacement pattern corresponding to the jump candidate pattern,
In the jaggy pattern search step, search for a dot pattern before enlargement that matches the candidate pattern from the bitmap font before enlargement,
In the jaggy pattern replacement step, in the enlarged bitmap font after enlargement, the dot pattern corresponding to the dot pattern before enlargement detected in the jaggy pattern search step is extracted and replaced with the preceding replacement pattern.
The smoothing processing method according to any one of claims 8 to 10, wherein the smoothing processing method is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015066345A JP6172195B2 (en) | 2015-03-27 | 2015-03-27 | Smoothing processing apparatus and smoothing processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015066345A JP6172195B2 (en) | 2015-03-27 | 2015-03-27 | Smoothing processing apparatus and smoothing processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016186549A JP2016186549A (en) | 2016-10-27 |
JP6172195B2 true JP6172195B2 (en) | 2017-08-02 |
Family
ID=57203210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015066345A Active JP6172195B2 (en) | 2015-03-27 | 2015-03-27 | Smoothing processing apparatus and smoothing processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6172195B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7109529B2 (en) * | 2020-12-28 | 2022-07-29 | 日本プリンタエンジニアリング株式会社 | PRINTING DEVICE, PRINT DATA CREATION METHOD, AND PROGRAM |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0467197A (en) * | 1990-07-06 | 1992-03-03 | Sanyo Electric Co Ltd | Enlarged character font smoothing device |
JPH08227456A (en) * | 1994-09-22 | 1996-09-03 | Casio Comput Co Ltd | Device and method for smoothing dot pattern |
JPH08186708A (en) * | 1994-12-30 | 1996-07-16 | Casio Comput Co Ltd | Picture magnification device |
US6226420B1 (en) * | 1997-12-26 | 2001-05-01 | International Business Machines Corporation | Non-integer scaling of raster images |
JPH11250242A (en) * | 1998-02-26 | 1999-09-17 | Suzuka Fuji Xerox Co Ltd | Dot pattern smoothing method and device therefor |
JP2008117248A (en) * | 2006-11-07 | 2008-05-22 | Murata Mach Ltd | Image processor |
-
2015
- 2015-03-27 JP JP2015066345A patent/JP6172195B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016186549A (en) | 2016-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5031954B2 (en) | Display device, display method, and recording medium recording display control program | |
JP5854802B2 (en) | Image processing apparatus, image processing method, and computer program | |
JP6172195B2 (en) | Smoothing processing apparatus and smoothing processing method | |
JP2681367B2 (en) | Graphic processing method and apparatus thereof | |
CN110226183B (en) | Information presentation device, information presentation method, and program | |
JP5794154B2 (en) | Image processing program, image processing method, and image processing apparatus | |
JP6536247B2 (en) | Drawing creation device and drawing creation program | |
JP6786973B2 (en) | Image analyzer | |
JP6553436B2 (en) | Graphical user interface device, method and program | |
JP2981337B2 (en) | Document creation device | |
US6275237B1 (en) | Structural graph display system | |
JPH11109943A (en) | Font processor and recording medium recorded with font processing program | |
JP6373729B2 (en) | Program, image processing apparatus and image processing method | |
JP4164976B2 (en) | Character recognition device | |
JP5176390B2 (en) | Character input device and computer program | |
CN111383310B (en) | Picture splitting method and device | |
JPH0462589A (en) | Display device and movement display method | |
JP2017125934A (en) | Character drawing apparatus, character drawing method, and computer program | |
JP6014794B1 (en) | Web page comparison apparatus, Web page comparison method, recording medium, and program | |
JP2008305248A (en) | Retrieval device and program | |
JP6565552B2 (en) | Drawing creation device and drawing creation program | |
JP2019205202A (en) | Mask data generation method, mask data generation program, and mask data generation apparatus | |
JP2022104334A (en) | Printer, printing data creation method, and program | |
KR100246475B1 (en) | Dynamic lattice extracting method for recognizing character | |
JP2014142789A (en) | Information processor and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170414 |
|
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: 20170606 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170619 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6172195 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |