JP3883554B2 - Character / graphic display device, program, and recording medium - Google Patents

Character / graphic display device, program, and recording medium Download PDF

Info

Publication number
JP3883554B2
JP3883554B2 JP2005012087A JP2005012087A JP3883554B2 JP 3883554 B2 JP3883554 B2 JP 3883554B2 JP 2005012087 A JP2005012087 A JP 2005012087A JP 2005012087 A JP2005012087 A JP 2005012087A JP 3883554 B2 JP3883554 B2 JP 3883554B2
Authority
JP
Japan
Prior art keywords
distance
width
distances
reference points
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.)
Expired - Fee Related
Application number
JP2005012087A
Other languages
Japanese (ja)
Other versions
JP2006201406A (en
Inventor
章夫 小谷
至幸 小山
瑞 作田
哲 岡田
宣美 朝井
安久 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2005012087A priority Critical patent/JP3883554B2/en
Priority to CN2006800077897A priority patent/CN101138019B/en
Priority to PCT/JP2006/300463 priority patent/WO2006077800A1/en
Priority to TW95101897A priority patent/TWI324334B/en
Publication of JP2006201406A publication Critical patent/JP2006201406A/en
Application granted granted Critical
Publication of JP3883554B2 publication Critical patent/JP3883554B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Description

本発明は、スケーリングされた文字または図形を表示する文字図形表示装置、プログラムおよび記録媒体に関する。   The present invention relates to a character graphic display device, a program, and a recording medium for displaying scaled characters or graphics.

文字を表示するための文字データには、例えば、ビットマップデータとベクトルデータとがある。   Character data for displaying characters includes, for example, bitmap data and vector data.

ビットマップデータは、文字の形状および文字の大きさに応じた固定の座標値を含む。固定の座標値をカラー液晶表示デバイス等の表示デバイスに出力することによって、表示デバイスに、文字を表示することができる。しかし、ビットマップデータは、文字の大きさに応じて固定されている。したがって、ビットマップデータは、必要とされる文字の大きさごとに用意されなければならない。   The bitmap data includes fixed coordinate values corresponding to the character shape and character size. By outputting fixed coordinate values to a display device such as a color liquid crystal display device, characters can be displayed on the display device. However, the bitmap data is fixed according to the character size. Therefore, the bitmap data must be prepared for each required character size.

ベクトルデータには、例えば、文字のアウトラインを示すデータや文字を構成するストロークを示すデータが含まれる。ベクトルデータをカラー液晶表示デバイス等の表示デバイスに出力する場合には、表示デバイスに表示する文字の大きさに応じて、ベクトルデータをスケーリングしなければならない。ベクトルデータをスケーリングすることにより、必要とされる文字の大きさが多種類であったとしても、必要とされるベクトルデータは、一種類でよい。ベクトルデータは、文字の大きさに応じて固定されていないからである。したがって、必要とされる文字の大きさが多種類の場合でも、文字データを記憶するための記憶装置の容量は少なくてもよい。   The vector data includes, for example, data indicating a character outline and data indicating strokes constituting the character. When vector data is output to a display device such as a color liquid crystal display device, the vector data must be scaled according to the size of characters displayed on the display device. By scaling the vector data, only one type of vector data is required even if there are many types of required character sizes. This is because the vector data is not fixed according to the character size. Therefore, even when there are many types of required character sizes, the capacity of the storage device for storing character data may be small.

しかしながら、ベクトルデータによれば、ベクトルデータをスケーリングした後に、スケーリングされたベクトルデータを所定の方法(例えば、四捨五入)で量子化することによって、量子化誤差が生じる。量子化誤差とは、所定の方法で量子化される前の数と所定の方法で量子化された後の数との差である。例えば、四捨五入される前の数4.6と四捨五入された後の数5との差は、0.4である。この場合、量子化誤差は、0.4である。   However, according to the vector data, after the vector data is scaled, a quantization error is generated by quantizing the scaled vector data by a predetermined method (for example, rounding off). The quantization error is a difference between a number before being quantized by a predetermined method and a number after being quantized by a predetermined method. For example, the difference between the number 4.6 before rounding and the number 5 after rounding is 0.4. In this case, the quantization error is 0.4.

図20は、文字「日」を示すベクトルデータをスケーリングすることによって生成されたスケーリングデータを16ドット×16ドットで表示した例を示す。文字「日」の横の線幅W10、W20、W30は、全て同じ太さを有している。さらに、文字「日」の線と線との間隔H10、H20は、全て同じ間隔である。   FIG. 20 shows an example in which scaling data generated by scaling vector data indicating the character “day” is displayed as 16 dots × 16 dots. The line widths W10, W20, and W30 next to the character “day” all have the same thickness. Further, the intervals H10 and H20 between the lines of the character “day” are all the same interval.

図21は、スケーリングされたベクトルデータを四捨五入で量子化することによって生成された量子化データを16ドット×16ドットで表示した例を示す。   FIG. 21 shows an example in which quantized data generated by quantizing the scaled vector data by rounding off is displayed as 16 dots × 16 dots.

スケーリングデータを量子化することによって、間隔H10、H20は、間隔H11、H21に変更され、線幅W10、W20、W30は、線幅W11、W21、W31に変更される。H11=H21であるものの、量子化誤差が生じた結果、W11=W31≠W21となる。   By quantizing the scaling data, the intervals H10 and H20 are changed to the intervals H11 and H21, and the line widths W10, W20, and W30 are changed to the line widths W11, W21, and W31. Although H11 = H21, as a result of the quantization error, W11 = W31 ≠ W21.

特許文献1は、スケーリング前のベクトルデータによって示された複数の線の幅に基づいてスケーリング後のベクトルデータによって示された複数の線の幅を求める技術を開示する。特許文献1に開示の技術によれば、スケーリング前のベクトルデータによって示された複数の線の幅が同じ場合には、スケーリング後のベクトルデータによって示された複数の線の幅も同じになるように、スケーリング後のベクトルデータが補正される。しかし、この技術によれば、補正後の線幅W12、W22、W32は、同じになる(W12=W22=W32)。しかし、線と線との間隔H12、H22は、異なってしまう(図22参照)。   Patent Document 1 discloses a technique for obtaining the widths of a plurality of lines indicated by vector data after scaling based on the widths of the plurality of lines indicated by vector data before scaling. According to the technique disclosed in Patent Document 1, when the widths of the plurality of lines indicated by the vector data before scaling are the same, the widths of the plurality of lines indicated by the vector data after scaling are also the same. In addition, the scaled vector data is corrected. However, according to this technique, the corrected line widths W12, W22, and W32 are the same (W12 = W22 = W32). However, the distances H12 and H22 between the lines are different (see FIG. 22).

特許文献2は、線幅のみならず、線と線との間隔をも本来得られる値になるように補正する技術を開示する。本来得られる複数の線幅は同じであるため、補正後の線幅W13、W23、W33が同じになるように補正する(W13=W23=W33)。さらに、本来得られる複数の線の間隔は同じであるため、補正後の間隔H13、H23も同じになるように補正する(図23参照)。
特開平2−231166号公報 特開平4−257893号公報
Patent Document 2 discloses a technique for correcting not only the line width but also the distance between lines so as to be a value that can be originally obtained. Since the plurality of line widths originally obtained are the same, the corrected line widths W13, W23, and W33 are corrected to be the same (W13 = W23 = W33). Furthermore, since the intervals between the plurality of lines that are originally obtained are the same, the corrected intervals H13 and H23 are corrected to be the same (see FIG. 23).
JP-A-2-231166 JP-A-4-257893

しかし、特許文献2に記載の技術は、線幅および線間隔が本来得られる値になるように輪郭を移動するために、16ドット×16ドットで表示し得なくなる場合が生じる。量子化誤差が累積するからである。   However, in the technique described in Patent Document 2, the contour is moved so that the line width and the line interval are originally obtained, and therefore, it may not be possible to display 16 dots × 16 dots. This is because quantization errors accumulate.

図24は、文字「日」を示すベクトルデータを256ドット×256ドットで表示した例を示す。線幅W14、W24、W34は、全て同じであるが、線間隔H14とH24とは異なっている。   FIG. 24 shows an example in which vector data indicating the character “day” is displayed in 256 dots × 256 dots. The line widths W14, W24, and W34 are all the same, but the line intervals H14 and H24 are different.

図25は、特許文献2に記載の技術によって、本来得られる値になるように輪郭を移動するように補正された例を示す。補正後の線幅W15、W25、W35を全て同じにし、かつ、補正後の線間隔H15、H25を異なるように輪郭を移動した結果、16ドット×16ドットで表示し得なくなる。   FIG. 25 shows an example in which the contour is corrected to move to a value originally obtained by the technique described in Patent Document 2. As a result of moving the contours so that the corrected line widths W15, W25, and W35 are all the same and the corrected line intervals H15 and H25 are different, it is impossible to display 16 dots × 16 dots.

本発明は、上記課題を解決するためになされたものであり、文字および図形に含まれる線の幅、線の間隔を調整前後で所望の状態に保持することができる文字図形表示装置、プログラムおよび記録媒体を提供することを目的とする。   The present invention has been made to solve the above-described problem, and is a character graphic display device, a program, and a program capable of maintaining the width of lines and the interval of lines included in characters and graphics in a desired state before and after adjustment. An object is to provide a recording medium.

本発明の文字図形表示装置は、複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成し、前記スケーリングされた基準点の各基準点間毎の距離の幅を量子化することによって得られる距離の幅の合計が目標値に近づくように、前記スケーリングされた基準点の各基準点間毎の距離の幅を量子化したもののうち、特定の基準点間の距離の幅を調整し、前記調整された基準点に基づいて、スケーリングされた文字または図形を表示し、これにより、上記目的が達成される。   The character graphic display device of the present invention generates a scaled reference point by scaling a character or a figure including a plurality of reference points, and sets the width of the distance between the reference points of the scaled reference point. The distance between specific reference points among the quantized distance widths between the reference points of the scaled reference points so that the total distance width obtained by quantization approaches the target value And the scaled character or figure is displayed based on the adjusted reference point, thereby achieving the above object.

さらに、前記特定の基準点間の距離の幅のうち、少なくとも2つの距離の幅は、互いに異なってよい。   Further, among the distances between the specific reference points, at least two distances may be different from each other.

さらに、前記目標値は、前記スケーリングされた基準点のうち最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離の幅を量子化したものでよい。   Further, the target value may be obtained by quantizing the width of the distance between the maximum reference point having the maximum value and the minimum reference point having the minimum value among the scaled reference points.

また、本発明の文字図形表示装置は、複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成手段と、前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成手段と、前記スケーリングされた基準点の各基準点間の距離の幅を量子化することによって、量子化された距離を生成する第2生成手段と、前記第2生成手段で生成された距離の幅の合計が前記目標値に近づくように、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように基準点間の距離の幅を調整する調整手段と、前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示手段とを備え、これにより、上記目的が達成される。   Further, the character graphic display device of the present invention includes a first generation unit that generates a scaled reference point by scaling a character or a graphic including a plurality of reference points, and a maximum of the scaled reference points. A target value generating means for generating a target value by quantizing a distance between a maximum reference point having a value of and a minimum reference point having a minimum value; and between each reference point of the scaled reference point Quantize the second generation means for generating a quantized distance by quantizing the width of the distance, and the sum of the distance widths generated by the second generation means approaches the target value. Adjusting means for adjusting the width of the distance between the reference points so that at least one of the widths of the distances between the reference points is equal to the width of at least one other distance after adjustment; Adjustment The on the basis of the reference point is re-adjusted to match the distance, and display means for displaying the scaled characters or graphics, thereby the objective described above being achieved.

さらに、前記調整手段は、前記スケーリングされた基準点間の距離に対して予め決められている情報、または前記基準点がスケーリングされた後に前記スケーリングされた基準点間の距離から算出された情報の何れかに基づいて、前記少なくとも1つの距離の幅と前記他の少なくとも1つの距離の幅とが同じになるように、前記少なくとも1つの距離の幅と前記他の少なくとも1つの距離の幅との何れか一方を調整してもよい。   Further, the adjusting means may include information predetermined for the distance between the scaled reference points, or information calculated from the distance between the scaled reference points after the reference points are scaled. Based on either, the width of the at least one distance and the width of the at least one other distance are such that the width of the at least one distance and the width of the at least one other distance are the same. Either one may be adjusted.

さらに、前記量子化された距離の幅の合計が前記目標値より大きいか否かを判定する第1判定手段をさらに備え、前記調整手段は、前記量子化された距離の幅の合計が前記目標値より小さいと判定された場合は、前記量子化された距離のうち、最大切り下げ幅を有する距離の幅と、前記最大切り下げ幅を有する距離の幅に等しいと規定された距離の幅とをすべて1だけ増加し、前記量子化された距離の幅の合計が前記目標値より大きいと判定された場合は、前記量子化された距離のうち、前記最大切り上げ幅を有する距離の幅と、前記最大切り上げ幅を有する距離の幅に等しいと規定された距離の幅とをすべて1だけ減少してもよい。   Furthermore, it further comprises first determination means for determining whether or not the total of the quantized distance widths is larger than the target value, and the adjusting means is configured such that the quantized distance width total is the target distance. If it is determined that the distance is less than the value, the distance between the quantized distances having the maximum round-down width and the distance width defined as being equal to the distance having the maximum round-down width are all When the total of the quantized distance widths is determined to be larger than the target value, the distance width having the maximum round-up width among the quantized distances, and the maximum The distance width defined to be equal to the distance width having the rounded width may all be reduced by one.

さらに、前記最大切り下げ幅を有する距離の幅に等しいと規定された距離の個数が、前記調整する幅より大きいか否かを判定する第2判定手段と、前記最大切り上げ幅を有する距離の幅に等しいと規定された距離の個数が、前記調整する幅より大きいか否かを判定する第3判定手段とのうちの少なくとも一方をさらに備え、前記調整手段は、前記量子化された距離の幅の合計が前記目標値より小さいと判定され、さらに、前記最大切り下げ幅を有する距離の幅に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合は、前記最大切り下げ幅を有する距離の幅に等しいと規定された距離の幅をすべて1だけ増加し、前記量子化された距離の幅の合計が前記目標値より大きいと判定され、さらに、前記最大切り上げ幅を有する距離の幅に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合は、前記最大切り上げ幅を有する距離の幅に等しいと規定された距離の幅をすべて1だけ減少してもよい。   Furthermore, a second determination means for determining whether or not the number of distances defined as being equal to the width of the distance having the maximum round-down width is larger than the width to be adjusted, and the distance width having the maximum round-up width. And at least one of third determination means for determining whether or not the number of distances defined to be equal is larger than the width to be adjusted, wherein the adjustment means has a width of the quantized distance. If it is determined that the total is less than the target value and the number of distances defined to be equal to the width of the distance having the maximum devaluation width is not greater than the adjustment width, the maximum devaluation The distance widths defined as being equal to the width of the distance having widths are all increased by one, the sum of the quantized distance widths is determined to be greater than the target value, and the maximum round-up If it is determined that the number of distances defined as being equal to the width of the distance having no greater than the width to be adjusted, all the distance widths defined as being equal to the width of the distance having the maximum round-up width It may be decreased by one.

さらに、前記調整手段は、前記スケーリングされた基準点を生成した後、前記量子化された基準点間の距離の幅のうち少なくとも1つの距離の幅を一度だけ増加または減少してもよい。   Further, the adjusting unit may increase or decrease the width of at least one distance among the distances between the quantized reference points only once after generating the scaled reference points.

さらに、前記最大基準点と前記最大基準点を前記第1の方法で量子化することによって生成された量子化後の最大基準点との第1量子化誤差が、前記最小基準点と前記最小基準点を前記第1の方法で量子化することによって生成された量子化後の最小基準点との第2量子化誤差よりも大きいか否かを判定する第3判定手段をさらに備え、前記表示手段は、前記第1量子化誤差が第2量子化誤差よりも小さいと判定された場合には、前記量子化後の最大基準点を前記表示される文字または図形の基準座標値とし、前記第1量子化誤差が第2量子化誤差よりも大きいと判定された場合には、前記量子化後の最小基準点を前記表示される文字または図形の基準座標値としてもよい。   Further, a first quantization error between the maximum reference point and the maximum reference point after quantization generated by quantizing the maximum reference point with the first method is the minimum reference point and the minimum reference point. Third display means for determining whether or not a point is larger than a second quantization error with a minimum reference point after quantization generated by quantizing the point by the first method, the display means If it is determined that the first quantization error is smaller than the second quantization error, the maximum reference point after the quantization is set as the reference coordinate value of the displayed character or figure, and the first When it is determined that the quantization error is larger than the second quantization error, the minimum reference point after the quantization may be used as the reference coordinate value of the displayed character or figure.

また、本発明のプログラムは、コンピュータに文字図形表示処理を実行させるためのプログラムであって、前記文字図形表示処理は、複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成ステップと、前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成ステップと、前記スケーリングされた基準点の各基準点間の距離の幅を量子化することによって、量子化された距離を生成する第2生成ステップと、前記第2生成手段で生成された距離の幅の合計が前記目標値に近づくように、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように基準点間の距離の幅を調整する調整ステップと、前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示ステップとを包含し、これにより、上記目的が達成される。   The program of the present invention is a program for causing a computer to execute a character graphic display process, wherein the character graphic display process is performed by scaling a character or a graphic including a plurality of reference points, thereby scaling the standard. A first generation step of generating a point, and quantizing a distance between a maximum reference point having a maximum value and a minimum reference point having a minimum value among the scaled reference points, thereby obtaining a target value A target value generation step for generating the second reference value, a second generation step for generating a quantized distance by quantizing the width of the distance between the reference points of the scaled reference points, and the second generation means At least one of the quantized distances between the reference points and the other small number so that the sum of the distance widths generated in step 1 approaches the target value. An adjustment step for adjusting the distance width between reference points so that at least one distance width is equal after adjustment, and scaling based on the reference point readjusted to match the adjusted distance A display step for displaying the rendered characters or figures, thereby achieving the above object.

また、本発明の記録媒体は、コンピュータによって読み取り可能な記録媒体であって、前記記録媒体には、前記コンピュータに文字図形表示処理を実行させるためのプログラムが記録されており、前記文字図形表示処理は、複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成ステップと、前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成ステップと、前記スケーリングされた基準点の各基準点間の距離の幅を量子化することによって、量子化された距離を生成する第2生成ステップと、前記第2生成手段で生成された距離の幅の合計が前記目標値に近づくように、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように基準点間の距離の幅を調整する調整ステップと、前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示ステップとを包含し、これにより、上記目的が達成される。   The recording medium of the present invention is a computer-readable recording medium, and the recording medium stores a program for causing the computer to execute a character graphic display process. The character graphic display process A first generation step of generating a scaled reference point by scaling a character or figure including a plurality of reference points, and a maximum reference point having a maximum value and a minimum of the scaled reference points A target value generating step of generating a target value by quantizing a distance between the minimum reference point having a value of and a width of a distance between each reference point of the scaled reference point Thus, the second generation step for generating the quantized distance and the sum of the widths of the distances generated by the second generation means approach the target value. As described above, the width of the distance between the reference points is adjusted so that the width of at least one distance among the quantized distances between the reference points becomes equal to the width of at least one other distance after the adjustment. An adjustment step and a display step of displaying a scaled character or figure based on the reference point readjusted to match the adjusted distance, thereby achieving the above object.

本発明の文字図形表示装置、プログラムおよび記録媒体によれば、量子化された距離の幅の合計が目標値に近づくように、基準点間の距離の幅を調整する。この場合には、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように、基準点間の距離の幅を調整する。従って、少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが異なった距離の幅に変更されることを防ぐことができる。その結果、文字または図形に含まれる線の幅、線の間隔を調整前後で所望の状態に保持することができる。   According to the character graphic display device, the program, and the recording medium of the present invention, the width of the distance between the reference points is adjusted so that the total width of the quantized distance approaches the target value. In this case, the width of the distance between the reference points so that the width of at least one distance among the quantized distances of the reference points is equal to the width of at least one other distance after adjustment. Adjust. Therefore, it is possible to prevent the width of at least one distance and the width of at least one other distance from being changed to different distances. As a result, the width of the line and the interval between the lines included in the character or figure can be maintained in a desired state before and after the adjustment.

以下、図面を参照しながら本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態の文字表示装置100の構成を示す。   FIG. 1 shows a configuration of a character display device 100 according to an embodiment of the present invention.

文字表示装置100は、例えば、パーソナルコンピュータであり得る。パーソナルコンピュータとしては、デスクトップ型またはラップトップ型などの任意のタイプのコンピュータが使用され得る。あるいは、文字表示装置100は、ワードプロセッサであってもよい。   The character display device 100 can be, for example, a personal computer. As the personal computer, any type of computer such as a desktop type or a laptop type may be used. Alternatively, the character display device 100 may be a word processor.

さらに、文字表示装置100は、カラー表示が可能な表示デバイスを備えた電子機器や情報機器などの任意の情報表示装置であり得る。例えば、文字表示装置100は、カラー液晶表示デバイスを備えた電子機器や、携帯情報ツールである携帯情報端末や、PHSを含む携帯電話機や、一般の電話機/FAXなどの通信機器などであってもよい。   Furthermore, the character display device 100 may be any information display device such as an electronic device or an information device provided with a display device capable of color display. For example, the character display device 100 may be an electronic device equipped with a color liquid crystal display device, a portable information terminal that is a portable information tool, a cellular phone including a PHS, or a communication device such as a general telephone / FAX. Good.

文字表示装置100は、入力デバイス110と、文字を表示する表示デバイス130と、表示デバイスを制御する制御部120と、補助記憶装置140とを含む。制御部120には、入力デバイス110と、表示デバイス130と、補助記憶装置140とが接続されている。   The character display device 100 includes an input device 110, a display device 130 that displays characters, a control unit 120 that controls the display device, and an auxiliary storage device 140. An input device 110, a display device 130, and an auxiliary storage device 140 are connected to the control unit 120.

入力デバイス110は、表示デバイス130に表示すべき文字を示す文字情報を制御部120に入力するために使用される。文字情報は、例えば、文字を識別する文字コードと文字の大きさを示すサイズ情報とを含む。入力デバイス110としては、文字コードとサイズ情報とを入力することが可能な任意のタイプの入力デバイスが使用され得る。例えば、キーボードやマウスやペン入力装置などの入力デバイスが入力デバイス110として好適に使用され得る。   The input device 110 is used to input character information indicating characters to be displayed on the display device 130 to the control unit 120. The character information includes, for example, a character code for identifying the character and size information indicating the size of the character. As the input device 110, any type of input device capable of inputting a character code and size information can be used. For example, an input device such as a keyboard, a mouse, and a pen input device can be suitably used as the input device 110.

文字表示装置100が携帯電話である場合には、通信先の電話番号を指定するための数字キーが、文字コードまたはサイズ情報を入力するために用いられてもよい。文字表示装置100が、インターネットを含む電話通信回線に文字表示装置100を接続するための手段を備えている場合には、その電話通信回線から受信した電子メールに含まれるメッセージが表示デバイス130に表示されてもよい。文字表示装置100が、インターネットを含む電話通信回線に文字表示装置100を接続するための手段を備えている場合には、その通信回線に接続するための手段が、入力デバイス110として機能する。   When the character display device 100 is a mobile phone, a numeric key for designating a communication destination telephone number may be used to input a character code or size information. When the character display device 100 includes means for connecting the character display device 100 to a telephone communication line including the Internet, a message included in an e-mail received from the telephone communication line is displayed on the display device 130. May be. When the character display device 100 includes means for connecting the character display device 100 to a telephone communication line including the Internet, the means for connecting to the communication line functions as the input device 110.

補助記憶装置140には、文字表示プログラム141と、文字表示プログラム141を実行するために必要な文字データ142とが格納されている。文字データ142は、座標データと基準点間データとを含む。座標データと基準点間データとの詳細は後述される。   The auxiliary storage device 140 stores a character display program 141 and character data 142 necessary for executing the character display program 141. The character data 142 includes coordinate data and data between reference points. Details of the coordinate data and the data between the reference points will be described later.

文字表示プログラム141は、表示デバイスに出力する文字サイズに合うように文字データ142によって含まれる座標データをスケーリングし、スケーリングされた座標データを生成するスケーリングプログラム141aと、スケーリングされた座標データをグリッドフィッティングし、グリットフィッティングされた座標データを生成するグリッドフィッティングプログラム141bと、グリッドフィッティングされた座標データを表示デバイスに表示可能になるように描画データを生成する描画データ生成プログラム141cと同一距離フラグ取得プログラム141dとを含む。   The character display program 141 scales the coordinate data included in the character data 142 so as to fit the character size output to the display device, and generates a scaled coordinate data, and grid fitting the scaled coordinate data. Then, a grid fitting program 141b for generating grid-fitted coordinate data, a drawing data generation program 141c for generating drawing data so that the grid-fitted coordinate data can be displayed on a display device, and the same distance flag acquisition program 141d. Including.

プログラム141a〜141dの機能の詳細は、後述される。   Details of the functions of the programs 141a to 141d will be described later.

文字データ142は、例えば、ベクトルデータである。本実施の形態では、ベクトルデータは256メッシュの解像度をもっている。しかし、ベクトルデータの解像度は、256メッシュに限らない。32メッシュでもよい。14メッシュでもよい。   The character data 142 is, for example, vector data. In the present embodiment, the vector data has a resolution of 256 mesh. However, the resolution of the vector data is not limited to 256 mesh. It may be 32 mesh. 14 mesh may be sufficient.

補助記憶装置140としては、文字表示プログラム141および文字データ142を格納することが可能な任意のタイプの記憶装置が使用され得る。補助記憶装置140において、文字表示プログラム141および文字データ142を格納する記録媒体としては、任意の記録媒体が使用され得る。例えば、ハードディスク、CD−ROM、MO、MD、DVD、ICカード、光カードなどの記録媒体が好適に使用され得る。   As the auxiliary storage device 140, any type of storage device capable of storing the character display program 141 and the character data 142 can be used. In the auxiliary storage device 140, any recording medium can be used as a recording medium for storing the character display program 141 and the character data 142. For example, a recording medium such as a hard disk, CD-ROM, MO, MD, DVD, IC card, or optical card can be used preferably.

なお、文字表示プログラム141および文字データ142は、補助記憶装置140によって含まれる記録媒体に格納されることに限定されない。例えば、文字表示プログラム141および文字データ142は、制御部120に含まれる主メモリ122に格納されてもよいし、ROM(図示せず)に格納されてもよい。ROMは、例えば、マスクROM、EPROM、EEPROM、フラッシュROMなどであり得る。このROM方式の場合には、そのROMを交換するだけでいろいろな処理のバリエーションを容易に実現することかできる。例えば、ROM方式は、文字表示装置100が携帯型の端末装置または携帯電話機である場合に好適に適用され得る。   The character display program 141 and the character data 142 are not limited to being stored in a recording medium included in the auxiliary storage device 140. For example, the character display program 141 and the character data 142 may be stored in the main memory 122 included in the control unit 120, or may be stored in a ROM (not shown). The ROM can be, for example, a mask ROM, EPROM, EEPROM, flash ROM, or the like. In the case of this ROM system, various processing variations can be easily realized simply by exchanging the ROM. For example, the ROM method can be suitably applied when the character display device 100 is a portable terminal device or a mobile phone.

さらに、文字表示装置100が、インターネットを含む電話通信回線に文字表示装置100を接続するための手段を備えている場合には、その電話通信回線から文字表示プログラム141および文字データ142の少なくとも一部をダウンロードすることができる。この場合、ダウンロードに必要なローダープログラムは、ROM(図示せず)に予め格納されていてもよいし、補助記憶装置140から制御部120にインストールされてもよい。   Further, when the character display device 100 includes means for connecting the character display device 100 to a telephone communication line including the Internet, at least a part of the character display program 141 and the character data 142 from the telephone communication line. Can be downloaded. In this case, a loader program necessary for downloading may be stored in advance in a ROM (not shown), or may be installed in the control unit 120 from the auxiliary storage device 140.

制御部120は、CPU121と主メモリ122とを含む。   The control unit 120 includes a CPU 121 and a main memory 122.

CPU121は、文字表示装置100の全体を制御および監視するとともに、補助記憶装置140に格納されている文字表示プログラム141を実行する。   The CPU 121 controls and monitors the entire character display device 100 and executes a character display program 141 stored in the auxiliary storage device 140.

主メモリ122は、入力デバイス110から主メモリ122に入力されたデータや、表示デバイス130に表示するためのデータや、文字表示プログラム141を実行するのに必要なデータを一時的に格納する。主メモリ122は、CPU121によって制御される。   The main memory 122 temporarily stores data input from the input device 110 to the main memory 122, data to be displayed on the display device 130, and data necessary for executing the character display program 141. The main memory 122 is controlled by the CPU 121.

CPU121は、主メモリ122に格納された各種のデータに基づいて文字表示プログラム141を実行することにより、描画データを生成する。生成された描画データは、主メモリ122に一旦格納された後、表示デバイス130に出力される。描画データが表示デバイス130に出力されるタイミングは、CPU121によって制御される。   The CPU 121 generates drawing data by executing the character display program 141 based on various data stored in the main memory 122. The generated drawing data is temporarily stored in the main memory 122 and then output to the display device 130. The timing at which the drawing data is output to the display device 130 is controlled by the CPU 121.

表示デバイス130は、例えば、カラー液晶表示デバイスである。カラー液晶表示デバイスとしては、パソコンなどに多く用いられている透過型の液晶表示デバイスのほか、反射型やリアプロ型の液晶表示デバイスが使用され得る。しかし、表示デバイス130は、カラー液晶表示デバイスに限定されない。表示デバイス130は、白黒の表示デバイスであり得る。さらに、表示デバイス130として、X方向およびY方向に配列された複数のピクセルを有する任意のカラー表示装置(いわゆるXYマトリクス表示装置)が使用され得る。   The display device 130 is, for example, a color liquid crystal display device. As the color liquid crystal display device, a reflection type or rear pro type liquid crystal display device can be used in addition to a transmission type liquid crystal display device often used in a personal computer or the like. However, the display device 130 is not limited to a color liquid crystal display device. Display device 130 may be a black and white display device. Furthermore, as the display device 130, any color display device (so-called XY matrix display device) having a plurality of pixels arranged in the X direction and the Y direction can be used.

図2は、256×256メッシュで表示されたアウトラインフォントの文字「中」を示す。ベクトルデータは、アウトラインフォントを示すデータと骨格フォントを示すデータとを含む。ベクトルデータのうちアウトラインフォントを示すデータを対象として、本発明の実施の形態を説明をする。但し、本発明は、骨格フォント(ストロークフォント)を示すデータにも適用可能である。   FIG. 2 shows the character “middle” of the outline font displayed in a 256 × 256 mesh. The vector data includes data indicating an outline font and data indicating a skeleton font. An embodiment of the present invention will be described with respect to data representing an outline font among vector data. However, the present invention can also be applied to data indicating a skeleton font (stroke font).

文字「中」は、輪郭1、輪郭2および輪郭3を持つ(図2参照)。輪郭1は、点P1と点P2とを結び、点P2と点P3とを結び、点P3と点P4とを結び、点P4と点P5とを結び、点P5と点P6とを結び、点P6と点P7とを結び、点P7と点P8とを結び、点P8と点P9とを結び、点P9と点P10とを結び、点P10と点P11とを結び、点P11と点P12とを結び、さらに点P12と点P1とを結ぶことによって表現される。輪郭2は、点P13と点P14とを結び、点P14と点P15とを結び、点P15と点P16とを結び、さらに点P16と点P13とを結ぶことによって表現される。輪郭3は、点P17と点P18とを結び、点P18と点P19とを結び、点P19と点P20とを結び、さらに点P20と点P17とを結ぶことによって表現される。   The character “middle” has contour 1, contour 2 and contour 3 (see FIG. 2). The contour 1 connects the point P1 and the point P2, connects the point P2 and the point P3, connects the point P3 and the point P4, connects the point P4 and the point P5, connects the point P5 and the point P6, P6 and point P7, point P7 and point P8, point P8 and point P9, point P9 and point P10, point P10 and point P11, point P11 and point P12, And further connecting points P12 and P1. The contour 2 is expressed by connecting the point P13 and the point P14, connecting the point P14 and the point P15, connecting the point P15 and the point P16, and further connecting the point P16 and the point P13. The contour 3 is expressed by connecting point P17 and point P18, connecting point P18 and point P19, connecting point P19 and point P20, and further connecting point P20 and point P17.

更に、図2は、X軸に沿った基準点間の距離と、Y軸に沿った基準点間の距離とを示す。X軸に沿った基準点間の距離は、5つである。この5つの距離は、距離X1〜距離X5で示される。Y軸に沿った基準点間の距離は、5つである。この5つの距離は、距離Y1〜距離Y5で示される。   Further, FIG. 2 shows the distance between reference points along the X axis and the distance between reference points along the Y axis. The distance between the reference points along the X axis is five. These five distances are indicated by distance X1 to distance X5. The distance between the reference points along the Y axis is five. These five distances are indicated by distance Y1 to distance Y5.

図3は、図2に示された文字「中」の文字データ142に含まれる座標データを示す。座標データは、輪郭1〜輪郭3を表現する点P1〜点P20の座標値を示す。   FIG. 3 shows coordinate data included in the character data 142 of the character “middle” shown in FIG. The coordinate data indicates the coordinate values of the points P1 to P20 expressing the contours 1 to 3.

「座標番号」は、輪郭1〜輪郭3を表現する点を示す。具体的には、「座標番号」は、P1からP20を示す。   The “coordinate number” indicates a point expressing the contour 1 to the contour 3. Specifically, the “coordinate number” indicates P1 to P20.

「X座標」は、点のX座標成分を示す。例えば、「X座標」は、点P1のX座標成分「143」を示す。   “X coordinate” indicates the X coordinate component of the point. For example, “X coordinate” indicates the X coordinate component “143” of the point P1.

「Y座標」は、点のY座標成分を示す。例えば、「Y座標」は、点P1のY座標成分「240」を示す。   “Y-coordinate” indicates the Y-coordinate component of the point. For example, “Y coordinate” indicates the Y coordinate component “240” of the point P1.

図4は、図2に示された文字「中」の文字データ142に含まれる基準点間データを示す。   FIG. 4 shows inter-reference point data included in the character data 142 of the character “middle” shown in FIG.

基準点は、文字をスケーリングする際、文字の各部をバランスよく保ってスケーリングする計算の拠点となるもので、文字毎に予め適宜決められるものである。この基準点は文字を構成するブロック内に含まれる。基準点は、文字の輪郭のうちX軸方向に沿って設定されだけでなく、Y軸方向に沿っても設定され得る。また、基準点は、必ずしも、文字の輪郭上に設定される必要はなく、例えば、文字の輪郭の間の空白の場所にあってもよい。   The reference point serves as a calculation base for scaling each character in a well-balanced manner when scaling the character, and is determined appropriately for each character. This reference point is included in a block constituting the character. The reference point can be set not only along the X-axis direction of the character outline but also along the Y-axis direction. Further, the reference point does not necessarily have to be set on the outline of the character, and may be, for example, in a blank place between the outline of the character.

この発明は、文字のフォントのタイプに依存せず、例えばストロークフォントであっても、上に説明したアウトラインフォントの場合と同様に適用できる。ストロークフォントの場合にも同様に、基準点は文字を構成するストローク上にあっても良いし、ストローク間の空白の場所にあっても良い。   The present invention does not depend on the font type of the character, and can be applied to the stroke font as in the case of the outline font described above. Similarly, in the case of a stroke font, the reference point may be on a stroke constituting a character, or may be in a space between strokes.

図4aは、X軸方向の基準点間データを示す。   FIG. 4a shows data between reference points in the X-axis direction.

「X軸方向」は、文字「中」を構成する輪郭1〜輪郭3のうちX軸方向に沿って設定された複数の基準点の間を示す。具体的には、これらの基準点の間は、距離X1〜距離X5である。   “X-axis direction” indicates between a plurality of reference points set along the X-axis direction among the contours 1 to 3 constituting the character “middle”. Specifically, the distance between these reference points is distance X1 to distance X5.

「開始」は、基準点間の開始位置のX座標成分を示す。例えば、距離X1の開始位置のX座標成分は「25」である。   “Start” indicates the X coordinate component of the start position between the reference points. For example, the X coordinate component of the start position of the distance X1 is “25”.

「距離」は、基準点間のX軸方向の距離を示す。例えば、距離X1のX軸方向の距離は「32」である。   “Distance” indicates the distance between the reference points in the X-axis direction. For example, the distance in the X-axis direction of the distance X1 is “32”.

「同一距離フラグ」は、複数の基準点間の距離のうち、調整後に同じ大きさにする基準点間をグループとして示すフラグである。同じ値の「同一距離フラグ」を持つ対象は全て調整後には同じ大きさの距離に調整される。   The “same distance flag” is a flag indicating, as a group, reference points that have the same size after adjustment out of distances between a plurality of reference points. All objects having the same value “same distance flag” are adjusted to the same distance after adjustment.

例えば、図4aでは、値「1」によって示される「同一距離フラグ」は、距離X1〜距離X5のうち、距離X1と、距離X3と、距離X5とが同一の大きさに調整されることを示す。同様に、値「2」によって示される「同一距離フラグ」は、距離X1〜距離X5のうち、距離X2と、距離X4とが同一の大きさに調整されることを示す。   For example, in FIG. 4a, the “same distance flag” indicated by the value “1” indicates that the distance X1, the distance X3, and the distance X5 out of the distance X1 to the distance X5 are adjusted to the same size. Show. Similarly, the “same distance flag” indicated by the value “2” indicates that, among the distances X1 to X5, the distance X2 and the distance X4 are adjusted to the same size.

このように、「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   Thus, according to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined as being equal to the width of the at least one distance Can be shown.

「距離フラグ」は、X軸に沿った基準点間の距離として最低限必要な距離を有するか否かを示す。さらに、距離フラグは、基準点間の距離として最低限必要な距離がいくらであるかも示す。例えば、距離フラグが×である場合は、基準点間が、最低限必要な距離の幅を有しないことを示す。例えば、距離フラグが、数「M」である場合には、基準点間が、最低限必要な距離の幅「M」を有することを示す。例えば、図4aでは、距離X1の距離フラグの数が「1」を示しており、距離X1は、最低限必要な距離の幅「1」を有する。   The “distance flag” indicates whether or not a minimum distance is required as a distance between reference points along the X axis. Furthermore, the distance flag also indicates how much the minimum distance is required as the distance between the reference points. For example, when the distance flag is “x”, it indicates that the distance between the reference points does not have a minimum necessary distance width. For example, when the distance flag is the number “M”, it indicates that the reference point has the minimum necessary distance width “M”. For example, in FIG. 4A, the number of distance flags of the distance X1 indicates “1”, and the distance X1 has a minimum required distance width “1”.

「省略フラグ」は、X軸に沿った基準点間の距離をグリッドフィッティングにより調整する際に、調整する距離を0にできるか否かを示す。さらに、省略フラグは、調整する距離の幅を0にできる場合には、調整する距離の幅を0にする順番を示す。   The “omitted flag” indicates whether or not the distance to be adjusted can be set to 0 when the distance between the reference points along the X axis is adjusted by grid fitting. Furthermore, the omission flag indicates the order in which the width of the distance to be adjusted is set to 0 when the width of the distance to be adjusted can be set to 0.

例えば、省略フラグが「×」である場合には、調整する距離の幅を0にすることができないことを示す。例えば、省略フラグが、整数「N」である場合は、調整する距離の幅を0にできることを示す。さらに、省略フラグが整数「N」である場合は、調整する距離の幅を0にする順番がN番目であることを示す。例えば、図4aでは、距離X1の省略フラグが「×」であり、距離X1は調整する距離の幅を0にすることができないことを示す。   For example, when the omission flag is “x”, this indicates that the width of the distance to be adjusted cannot be zero. For example, if the omission flag is an integer “N”, this indicates that the width of the distance to be adjusted can be zero. Further, when the omission flag is an integer “N”, it indicates that the order of setting the width of the distance to be adjusted to 0 is the Nth. For example, in FIG. 4A, the abbreviation flag for the distance X1 is “x”, and the distance X1 indicates that the distance width to be adjusted cannot be zero.

図4bは、Y軸方向の基準点間データを示す。   FIG. 4b shows data between reference points in the Y-axis direction.

「Y軸方向」は、文字「中」を構成する輪郭1〜輪郭3のうちY軸方向に沿って設定された複数の基準点の間を示す。具体的には、この基準点の間は、距離Y1〜距離Y5である。   “Y-axis direction” indicates between a plurality of reference points set along the Y-axis direction among the contours 1 to 3 constituting the character “middle”. Specifically, the distance between the reference points is the distance Y1 to the distance Y5.

「開始」は、基準点間の開始位置のY座標成分を示す。例えば、距離Y1の開始位置のY座標成分は「16」である。   “Start” indicates the Y coordinate component of the start position between the reference points. For example, the Y coordinate component of the start position of the distance Y1 is “16”.

「距離」は、基準点間のY軸方向の距離を示す。例えば、距離Y1のY軸方向の距離は「80」である。   “Distance” indicates the distance between the reference points in the Y-axis direction. For example, the distance Y1 in the Y-axis direction is “80”.

「同一距離フラグ」は、上述のように、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離Y1〜距離Y5のうち、距離Y2と、距離Y4とが同一の大きさに調整されることを示す。例えば、値「×」によって示される「同一距離フラグ」が付された距離の幅は、距離Y1〜距離Y5のうち、同一の大きさに調整される距離の幅がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   As described above, the “same distance flag” includes at least one distance among a plurality of distance widths and at least one other distance width adjusted to the same size as the at least one distance. Show. For example, the “same distance flag” indicated by the value “1” indicates that the distance Y2 and the distance Y4 out of the distances Y1 to Y5 are adjusted to the same size. For example, the distance width with the “same distance flag” indicated by the value “x” indicates that there is no distance width adjusted to the same size among the distances Y1 to Y5. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「距離フラグ」は、Y軸に沿った基準点間の距離の幅として最低限必要な距離の幅を有するか否かを示す。さらに、距離フラグは、基準点間の距離の幅として最低限必要な距離の幅がいくらであるかも示す。例えば、図4bでは、距離Y1の距離フラグが「1」であり、距離Y1が、最低限必要な距離の幅「1」を有することを示す。   The “distance flag” indicates whether or not it has a minimum required distance width as a distance width between reference points along the Y axis. Further, the distance flag also indicates how much the minimum necessary distance width is as the distance width between the reference points. For example, in FIG. 4B, the distance flag of the distance Y1 is “1”, indicating that the distance Y1 has the minimum required distance width “1”.

「省略フラグ」は、Y軸に沿った基準点間の距離をグリッドフィッティングにより調整する際に、調整する距離の幅を0にできるか否かを示す。さらに、省略フラグは、調整する距離の幅を0にできる場合には、調整する距離の幅を0にする順番を示す。例えば、図4bでは距離Y1の省略フラグ「X」であり、距離Y1は調整する距離の幅を0にすることができないことを示す。   The “omitted flag” indicates whether or not the width of the distance to be adjusted can be set to 0 when the distance between the reference points along the Y axis is adjusted by grid fitting. Furthermore, the omission flag indicates the order in which the width of the distance to be adjusted is set to 0 when the width of the distance to be adjusted can be set to 0. For example, in FIG. 4B, the abbreviated flag “X” for the distance Y1 indicates that the distance Y1 cannot be adjusted to zero.

図5は、256×256メッシュで表示されたアウトラインフォントの文字「晶」を示す。文字「晶」は、輪郭1〜輪郭9を含む。   FIG. 5 shows the character “Crystal” in an outline font displayed in 256 × 256 mesh. The character “crystal” includes contour 1 to contour 9.

更に、図5は、X軸に沿った基準点間の距離の幅と、Y軸に沿った基準点間の距離の幅とを示す。X軸に沿った基準点間の距離の数は、11である。これらの11の距離の幅は、距離X1〜距離X11で示される。Y軸に沿った基準点間の距離の数は、11である。これらの11の距離の幅は、距離Y1〜距離Y11で示される。   Further, FIG. 5 shows the width of the distance between the reference points along the X axis and the width of the distance between the reference points along the Y axis. The number of distances between reference points along the X axis is eleven. The width of these 11 distances is indicated by distance X1 to distance X11. The number of distances between reference points along the Y axis is eleven. The width of these 11 distances is indicated by distance Y1 to distance Y11.

図6は、図5に示された文字「晶」の文字データ142に含まれる座標データを示す。座標データは、輪郭1〜輪郭9を表現する点P1〜点P36の座標値を示す。   FIG. 6 shows coordinate data included in the character data 142 of the character “Crystal” shown in FIG. The coordinate data indicates the coordinate values of the points P1 to P36 expressing the contours 1 to 9.

「座標番号」は、輪郭1〜輪郭9を表現する点を示す。具体的には、「座標番号」は、P1からP36を示す。   The “coordinate number” indicates a point expressing the contour 1 to the contour 9. Specifically, the “coordinate number” indicates P1 to P36.

「X座標」は、点のX座標成分を示す。例えば、「X座標」は、点P1のX座標成分「219」を示す。   “X coordinate” indicates the X coordinate component of the point. For example, “X coordinate” indicates the X coordinate component “219” of the point P1.

「Y座標」は、点のY座標成分を示す。例えば、「Y座標」は、点P1のY座標成分「254」を示す。   “Y-coordinate” indicates the Y-coordinate component of the point. For example, “Y coordinate” indicates the Y coordinate component “254” of the point P1.

図7は、図5に示された文字「晶」の文字データ142に含まれる基準点間データを示す。   FIG. 7 shows the inter-reference point data included in the character data 142 of the character “Crystal” shown in FIG.

図7aは、X軸方向の基準点間データを示す。   FIG. 7a shows data between reference points in the X-axis direction.

「X軸方向」は、文字「晶」を構成する輪郭1〜輪郭9のうちX軸方向に沿って設定された複数の基準点の間を示す。具体的には、この基準点の間は、距離X1〜距離X11である。   “X-axis direction” indicates between a plurality of reference points set along the X-axis direction among the contours 1 to 9 constituting the character “crystal”. Specifically, the distance between the reference points is the distance X1 to the distance X11.

「開始」は、基準点間の開始位置のX座標成分を示す。例えば、距離X1の開始位置のX座標成分は「12」である。   “Start” indicates the X coordinate component of the start position between the reference points. For example, the X coordinate component at the start position of the distance X1 is “12”.

「距離」は、基準点間のX軸方向の距離を示す。例えば、距離X1のX軸方向の距離は「16」である。   “Distance” indicates the distance between the reference points in the X-axis direction. For example, the distance in the X-axis direction of the distance X1 is “16”.

「同一距離フラグ」は、上述のように、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X1、距離X3、距離X5、距離X7、距離X9および距離X11が同一の大きさに調整されることを示す。例えば、値「2」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X2および距離X10が同一の大きさに調整されることを示す。例えば、値「3」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X4および距離X8が同一の大きさに調整されることを示す。例えば、値「×」によって示される「同一距離フラグ」が付された距離X6は、距離X1〜距離X11のうち、同一の大きさに調整される距離がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   As described above, the “same distance flag” includes at least one distance among a plurality of distance widths and at least one other distance width adjusted to the same size as the at least one distance. Show. For example, in the “same distance flag” indicated by the value “1”, the distance X1, the distance X3, the distance X5, the distance X7, the distance X9, and the distance X11 among the distances X1 to X11 are adjusted to the same size. It shows that. For example, the “same distance flag” indicated by the value “2” indicates that, among the distances X1 to X11, the distance X2 and the distance X10 are adjusted to the same size. For example, the “same distance flag” indicated by the value “3” indicates that, among the distances X1 to X11, the distance X4 and the distance X8 are adjusted to the same size. For example, the distance X6 to which the “same distance flag” indicated by the value “x” is attached indicates that there is no distance adjusted to the same size among the distances X1 to X11. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「距離フラグ」は、X軸に沿った基準点間の距離の幅として最低限必要な距離の幅を有するか否かを示す。さらに、距離フラグは、基準点間の距離の幅として最低限必要な距離の幅がいくらであるかも示す。例えば、距離X1の距離フラグは「1」を示す。すなわち、距離X1は、最低限必要な距離の幅「1」を有する。   The “distance flag” indicates whether or not it has a minimum required distance width as a distance width between reference points along the X axis. Further, the distance flag also indicates how much the minimum necessary distance width is as the distance width between the reference points. For example, the distance flag of the distance X1 indicates “1”. That is, the distance X1 has a minimum required distance width “1”.

「省略フラグ」は、X軸に沿った基準点間の距離の幅をグリッドフィッティングにより調整する際に、調整する距離の幅を「0」にできるか否かを示す。さらに、省略フラグは、調整する距離の幅を「0」にできる場合には、調整する距離の幅を「0」にする順番を示す。例えば、距離X1の省略フラグは「×」を示す。すなわち、調整する距離の幅を「0」にすることができないことを示す。   The “omission flag” indicates whether or not the width of the distance to be adjusted can be set to “0” when the width of the distance between the reference points along the X axis is adjusted by grid fitting. Furthermore, the omission flag indicates the order in which the width of the distance to be adjusted is “0” when the width of the distance to be adjusted can be “0”. For example, the abbreviated flag for the distance X1 indicates “x”. That is, it indicates that the distance to be adjusted cannot be set to “0”.

図7bは、Y軸方向の基準点間データを示す。   FIG. 7b shows data between reference points in the Y-axis direction.

「Y軸方向」は、文字「晶」を構成する輪郭1〜輪郭9のうちY軸方向に沿って設定された複数の基準点の間を示す。具体的には、この基準点の間は、距離Y1〜距離Y11である。   “Y-axis direction” indicates between a plurality of reference points set along the Y-axis direction among the contours 1 to 9 constituting the character “crystal”. Specifically, the distance between the reference points is a distance Y1 to a distance Y11.

「開始」は、基準点間の開始位置のY座標成分を示す。例えば、距離Y1の開始位置のY座標成分は「1」である。   “Start” indicates the Y coordinate component of the start position between the reference points. For example, the Y coordinate component of the start position of the distance Y1 is “1”.

「距離」は、基準点間のY軸方向の距離の幅を示す。例えば、距離Y1のY軸方向の距離の幅は「16」である。   “Distance” indicates the width of the distance in the Y-axis direction between the reference points. For example, the width of the distance Y1 in the Y-axis direction is “16”.

「同一距離フラグ」は、上述のように、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y1、距離Y3、距離Y5、距離Y7、距離Y9および距離Y11が同一の大きさに調整されることを示す。例えば、値「2」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y2および距離Y4が同一の大きさに調整されることを示す。例えば、値「3」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y8および距離Y10が同一の大きさに調整されることを示す。例えば、値「×」によって示される「同一距離フラグ」が付された距離Y6は、距離Y1〜距離Y11のうち、同一の大きさに調整される距離の幅がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   As described above, the “same distance flag” includes at least one distance among a plurality of distance widths and at least one other distance width adjusted to the same size as the at least one distance. Show. For example, in the “same distance flag” indicated by the value “1”, the distance Y1, the distance Y3, the distance Y5, the distance Y7, the distance Y9, and the distance Y11 among the distances Y1 to Y11 are adjusted to the same size. It shows that. For example, the “same distance flag” indicated by the value “2” indicates that the distance Y2 and the distance Y4 out of the distances Y1 to Y11 are adjusted to the same size. For example, the “same distance flag” indicated by the value “3” indicates that the distance Y8 and the distance Y10 among the distances Y1 to Y11 are adjusted to the same size. For example, the distance Y6 with the “same distance flag” indicated by the value “x” indicates that there is no width of the distance adjusted to the same size among the distances Y1 to Y11. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「距離フラグ」は、Y軸に沿った基準点間の距離の幅として最低限必要な距離の幅を有するか否かを示す。さらに、距離フラグは、基準点間の距離の幅として最低限必要な距離の幅がいくらであるかも示す。例えば、距離Y1の距離フラグは、「1」である。距離フラグが「1」であることは、距離Y1が、最低限必要な距離の幅「1」を有することを示す。   The “distance flag” indicates whether or not it has a minimum required distance width as a distance width between reference points along the Y axis. Further, the distance flag also indicates how much the minimum necessary distance width is as the distance width between the reference points. For example, the distance flag of the distance Y1 is “1”. That the distance flag is “1” indicates that the distance Y1 has a minimum required distance width “1”.

「省略フラグ」は、Y軸に沿った基準点間の距離の幅をグリッドフィッティングにより調整する際に、調整する距離の幅を「0」にできるか否かを示す。さらに、省略フラグは、調整する距離の幅を「0」にできる場合には、調整する距離の幅を「0」にする順番を示す。例えば、距離Y4の省略フラグは「3」を示す。すなわち、調整する距離の幅を「0」にする順番が3番目であることを示す。   The “omission flag” indicates whether or not the width of the distance to be adjusted can be set to “0” when the width of the distance between the reference points along the Y axis is adjusted by grid fitting. Furthermore, the omission flag indicates the order in which the width of the distance to be adjusted is “0” when the width of the distance to be adjusted can be “0”. For example, the abbreviated flag for the distance Y4 indicates “3”. That is, the order of setting the width of the distance to be adjusted to “0” is the third.

図8は、本発明の表示処理手順を示す。表示処理手順は、CPU121が文字表示プログラム141を実行するによって実現される。   FIG. 8 shows the display processing procedure of the present invention. The display processing procedure is realized by the CPU 121 executing the character display program 141.

以下、図8を参照して、本発明の表示処理手順をステップごとに説明する。   Hereinafter, the display processing procedure of the present invention will be described step by step with reference to FIG.

ステップS101:表示デバイス130に表示すべき文字を示す文字情報が、入力デバイス110を介して主メモリ122に入力される。入力された文字情報に応じて、CPU121は、補助記憶装置140に格納されている文字データ142を補助記憶装置140から読み込む。読み込まれた文字データ142は、座標データ(図3参照)および基準点間データ(図4参照)を含む。   Step S101: Character information indicating characters to be displayed on the display device 130 is input to the main memory 122 via the input device 110. In accordance with the input character information, the CPU 121 reads character data 142 stored in the auxiliary storage device 140 from the auxiliary storage device 140. The read character data 142 includes coordinate data (see FIG. 3) and data between reference points (see FIG. 4).

ステップS102:CPU121は、表示デバイス130に出力する文字サイズに合わせて、座標データをスケーリングし、スケーリングされた座標データを生成する。CPU121が、プログラム141aを実行することによって、ステップS102が処理される。スケーリングされた座標データは、主メモリ122に格納される。   Step S102: The CPU 121 scales the coordinate data according to the character size output to the display device 130, and generates scaled coordinate data. Step S102 is processed by the CPU 121 executing the program 141a. The scaled coordinate data is stored in the main memory 122.

出力する文字サイズがnドットの場合には、スケーリングされた座標データ(X,Y)は、例えば、(n×X/256,n×Y/256)である。スケーリングされた座標データは、小数第2位まで計算される。   When the character size to be output is n dots, the scaled coordinate data (X, Y) is, for example, (n × X / 256, n × Y / 256). The scaled coordinate data is calculated to the second decimal place.

図9は、文字「中」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとを示す。スケーリング前の座標データは、図3で示された座標データである。   FIG. 9 shows the coordinate data included in the character data 142 of the character “middle” and the coordinate data after scaling the coordinate data. The coordinate data before scaling is the coordinate data shown in FIG.

「X座標」は、スケーリング前の座標のうちX座標成分を示す。「Y座標」は、スケーリング前の座標のうちY座標成分を示す。   “X coordinate” indicates an X coordinate component of coordinates before scaling. “Y coordinate” indicates the Y coordinate component of the coordinates before scaling.

「スケーリング後のX座標」は、スケーリング後の座標のうちX座標成分を示す。「スケーリング後のY座標」は、スケーリング後の座標のうちY座標成分を示す。   “X coordinate after scaling” indicates the X coordinate component of the coordinate after scaling. “Y coordinate after scaling” indicates a Y coordinate component of the coordinate after scaling.

出力する文字サイズが16ドットの場合には、スケーリング前の点P1(143,240)は、スケーリングされることによってスケーリング後の点P1(8.94,15.00)に変更される。   When the character size to be output is 16 dots, the point P1 (143, 240) before scaling is changed to the point P1 (8.94, 15.00) after scaling by scaling.

図10は、文字「晶」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとを示す。   FIG. 10 shows the coordinate data included in the character data 142 of the character “Crystal” and the coordinate data after scaling these coordinate data.

スケーリング前の座標データは、図6で示された座標データである。   The coordinate data before scaling is the coordinate data shown in FIG.

「X座標」は、スケーリング前の座標のうちX座標成分を示す。「Y座標」は、スケーリング前の座標のうちY座標成分を示す。   “X coordinate” indicates an X coordinate component of coordinates before scaling. “Y coordinate” indicates the Y coordinate component of the coordinates before scaling.

「スケーリング後のX座標」は、スケーリング後の座標のうちX座標成分を示す。「スケーリング後のY座標」は、スケーリング後の座標のうちY座標成分を示す。   “X coordinate after scaling” indicates the X coordinate component of the coordinate after scaling. “Y coordinate after scaling” indicates a Y coordinate component of the coordinate after scaling.

出力する文字サイズが16ドットの場合には、スケーリング前の点P1(219,254)は、スケーリングされることによってスケーリング後の点P1(13.69,15.88)に変更される。   When the character size to be output is 16 dots, the point P1 (219, 254) before scaling is changed to the point P1 (13.69, 15.88) after scaling by scaling.

再び図8を参照して本発明の表示処理手順の説明を続ける。   The description of the display processing procedure of the present invention will be continued with reference to FIG. 8 again.

ステップS103:CPU121は、スケーリングされた座標データをグリッドフィッティングし、グリットフィッティングされた座標データを生成する。CPU121が、プログラム141bを実行することによって、ステップS103が処理される。グリットフィッティングされた座標データは、主メモリ122に格納される。   Step S103: The CPU 121 performs grid fitting on the scaled coordinate data to generate grid-fitted coordinate data. Step S103 is processed by the CPU 121 executing the program 141b. The grit-fitted coordinate data is stored in the main memory 122.

グリッドフィッティング処理手順の詳細は、後述される。   Details of the grid fitting processing procedure will be described later.

ステップS104:CPU121は、グリッドフィッティングされた座標データが表示デバイスに表示可能になるように描画データを生成する。描画データの生成は、アウトラインフォントを示すデータを生成する手法として、公知である。例えば、CPU121は、直線引きやスプライン等の曲線引きプログラムによって、文字の輪郭を示す描画データを生成し、塗りつぶしプログラムによって、輪郭内部を塗りつぶす。CPU121が、プログラム141cを実行することによって、ステップS104が実行される。生成された描画データは、主メモリ122に格納される。   Step S104: The CPU 121 generates drawing data so that the coordinate data subjected to grid fitting can be displayed on the display device. The generation of drawing data is known as a method for generating data indicating an outline font. For example, the CPU 121 generates drawing data indicating the outline of a character by a curve drawing program such as straight line drawing or spline, and fills the inside of the outline by a filling program. As the CPU 121 executes the program 141c, step S104 is executed. The generated drawing data is stored in the main memory 122.

ステップS105:CPU121は、ステップS104で生成された描画データを表示デバイス130に表示する。   Step S105: The CPU 121 displays the drawing data generated in step S104 on the display device 130.

図11は、グリッドフィッティング処理手順(プログラム141bのステップS103の処理手順)を示す。プログラム141bは、CPU121によって実行される。図11(a)は、ステップS301〜ステップS310およびステップS327〜ステップS330を示す。図11(b)は、ステップS319〜ステップS326を示す。図11(c)は、ステップS311〜ステップS318を示す。   FIG. 11 shows the grid fitting process procedure (the process procedure of step S103 of the program 141b). The program 141b is executed by the CPU 121. FIG. 11A shows steps S301 to S310 and steps S327 to S330. FIG.11 (b) shows step S319-step S326. FIG.11 (c) shows step S311-step S318.

図12は、図4に示された基準点間データをグリッドフィッティング処理した後の基準点間データを示す。   FIG. 12 shows the data between the reference points after the grid fitting process for the data between the reference points shown in FIG.

図12(a)は、X軸方向の基準点間データ(図4(a)参照)をグリッドフィッティング処理した後の基準点間データを示す。   FIG. 12A shows data between reference points after grid fitting processing is performed on the data between reference points in the X-axis direction (see FIG. 4A).

「X軸方向」は、グリッドフィッティングの対象となった複数の距離の幅を示す。具体的には、グリッドフィッティングの対象となった複数の距離の幅は、距離X1〜距離X5である。   “X-axis direction” indicates the width of a plurality of distances that are targets of grid fitting. Specifically, the widths of the plurality of distances subjected to grid fitting are distance X1 to distance X5.

「距離」は、グリッドフィッティング処理した後の基準点間のX軸方向の距離の幅を示す。例えば、距離X1の距離の幅は「2.00」である。   “Distance” indicates the width of the distance in the X-axis direction between the reference points after the grid fitting process. For example, the distance width of the distance X1 is “2.00”.

「量子化後の距離」は、「距離」に示された値を量子化することによって生成された距離の幅を示す。例えば、距離X1を量子化することによって生成された距離の幅は、「2」である。なお、量子化することについての詳細は、後述される。   “Distance after quantization” indicates the width of the distance generated by quantizing the value indicated in “distance”. For example, the width of the distance generated by quantizing the distance X1 is “2”. Details of the quantization will be described later.

「第1誤差」は、「量子化後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離X2を対象とした場合、「量子化後の距離」で示された値から「距離」で示された値への変化量は、「−0.44(即ち、3−3.44)」である。   The “first error” indicates the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance”. For example, when the distance X2 is targeted, the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance” is “−0.44 (ie, 3-3.44). ) ”.

「同一距離フラグ」は、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離X1〜距離X5のうち、距離X1と、距離X3と、距離X5とが同一の大きさに調整されることを示す。例えば、値「2」によって示される「同一距離フラグ」は、距離X1〜距離X5のうち、距離X2と、距離X4とが同一の大きさに調整されることを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   The “same distance flag” indicates at least one distance among the widths of a plurality of distances, and a width of at least one other distance adjusted to the same size as the at least one distance. For example, the “same distance flag” indicated by the value “1” indicates that among the distances X1 to X5, the distance X1, the distance X3, and the distance X5 are adjusted to the same size. For example, the “same distance flag” indicated by the value “2” indicates that, among the distances X1 to X5, the distance X2 and the distance X4 are adjusted to the same size. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「同一距離処理後の距離」は、量子化後の距離の幅を同一距離処理することによって生成された距離の幅を示す。例えば、距離X1、距離X3および距離X5を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「2」である。例えば、距離X2および距離X4を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「3」である。なお、同一距離処理の詳細は、後述される。   The “distance after the same distance processing” indicates the width of the distance generated by performing the same distance processing on the distance width after quantization. For example, when the distance X1, the distance X3, and the distance X5 are targeted, each of the distance widths after the same distance process is “2”. For example, when the distance X2 and the distance X4 are targeted, each of the distance widths after the same distance process is “3”. The details of the same distance process will be described later.

「第2誤差」は、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離X2を対象とした場合、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量は、「−0.44(即ち、3−3.44)」である。   The “second error” indicates the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance”. For example, when the distance X2 is targeted, the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance” is “−0.44 (ie, 3-3. 44) ".

図12(b)は、Y軸方向の基準点間データ(図4(b)参照)をグリッドフィッティング処理した後の基準点間データを示す。   FIG. 12B shows data between reference points after grid fitting processing is performed on data between reference points in the Y-axis direction (see FIG. 4B).

「Y軸方向」は、グリッドフィッティングの対象となった複数の距離を示す。具体的には、グリッドフィッティングの対象となった複数の距離の幅は、距離Y1〜距離Y5である。   “Y-axis direction” indicates a plurality of distances subjected to grid fitting. Specifically, the widths of the plurality of distances that are targets of grid fitting are distance Y1 to distance Y5.

「距離」は、グリッドフィッティング処理した後の基準点間のY軸方向の距離の幅を示す。例えば、距離Y1の距離の幅は「5.00」である。   “Distance” indicates the width of the distance in the Y-axis direction between the reference points after the grid fitting process. For example, the distance width of the distance Y1 is “5.00”.

「量子化後の距離」は、「距離」に示された値を第2の方法で量子化することによって生成された距離の幅を示す。例えば、距離Y1を第2の方法で量子化することによって生成された距離の幅は、「5」である。なお、第2の方法で量子化することについての詳細は、後述される。   The “distance after quantization” indicates the width of the distance generated by quantizing the value shown in “distance” by the second method. For example, the width of the distance generated by quantizing the distance Y1 by the second method is “5”. Details of the quantization by the second method will be described later.

「第1誤差」は、「量子化後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「量子化後の距離」で示された値から「距離」で示された値への変化量は、「0.00(即ち、2−2.00)」である。   The “first error” indicates the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance”. For example, when the distance Y2 is targeted, the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance” is “0.00 (ie, 2-2.00). Is.

「同一距離フラグ」は、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離Y1〜距離Y5のうち、距離Y2と距離Y4とが同一の大きさに調整されることを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離Y1〜距離Y5のうち、距離Y2と、距離Y4とが同一の大きさに調整されることを示す。例えば、「×」によって示される「同一距離フラグ」は、距離Y1〜距離Y5のうち、距離Y1、距離Y3および距離Y5のそれぞれと同一の大きさに調整される距離の幅がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   The “same distance flag” indicates at least one distance among the widths of a plurality of distances, and a width of at least one other distance adjusted to the same size as the at least one distance. For example, the “same distance flag” indicated by the value “1” indicates that the distance Y2 and the distance Y4 out of the distances Y1 to Y5 are adjusted to the same size. For example, the “same distance flag” indicated by the value “1” indicates that the distance Y2 and the distance Y4 out of the distances Y1 to Y5 are adjusted to the same size. For example, the “same distance flag” indicated by “x” indicates that there is no width of the distance adjusted to the same size as each of the distance Y1, the distance Y3, and the distance Y5 among the distances Y1 to Y5. . According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「同一距離処理後の距離」は、量子化後の距離の幅を同一距離処理することによって生成された距離の幅を示す。例えば、距離Y2および距離Y4を対象とした場合、同一距離処理後の距離の幅のそれぞれは、2である。例えば、距離Y1、距離Y3および距離Y5には、同一距離フラグ「×」が付されているため、距離Y1、距離Y3および距離Y5を対象とした同一距離処理はなされない。従って、距離Y1、距離Y3および距離Y5を対象とした同一距離処理後の距離の幅は、同一距離処理前の距離の幅と不変である。なお、同一距離処理の詳細は、後述される。   The “distance after the same distance processing” indicates the width of the distance generated by performing the same distance processing on the distance width after quantization. For example, when the distance Y2 and the distance Y4 are targeted, each of the distance widths after the same distance processing is 2. For example, since the same distance flag “x” is attached to the distance Y1, the distance Y3, and the distance Y5, the same distance process for the distance Y1, the distance Y3, and the distance Y5 is not performed. Therefore, the distance width after the same distance processing for the distance Y1, the distance Y3, and the distance Y5 is the same as the distance width before the same distance processing. The details of the same distance process will be described later.

「第2誤差」は、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量は、「0.00(即ち、2−2.00)」である。   The “second error” indicates the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance”. For example, when the distance Y2 is the target, the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance” is “0.00 (that is, 2-2.00). ) ”.

図13は、図7に示された基準点間データをグリッドフィッティング処理した後の基準点間データを示す。   FIG. 13 shows the data between the reference points after the grid fitting process is performed on the data between the reference points shown in FIG.

図13(a)は、X軸方向の基準点間データ(図7(a)参照)をグリッドフィッティング処理した後の基準点間データを示す。   FIG. 13A shows data between reference points after grid fitting processing is performed on the data between reference points in the X-axis direction (see FIG. 7A).

「X軸方向」は、グリッドフィッティングの対象となった複数の距離の幅を示す。具体的には、グリッドフィッティングの対象となった複数の距離の幅は、距離X1〜距離X11である。   “X-axis direction” indicates the width of a plurality of distances that are targets of grid fitting. Specifically, the widths of the plurality of distances subjected to grid fitting are distance X1 to distance X11.

「距離」は、グリッドフィッティング処理した後の基準点間のX軸方向の距離の幅を示す。例えば、距離X1の距離の幅は「1.00」である。   “Distance” indicates the width of the distance in the X-axis direction between the reference points after the grid fitting process. For example, the distance width of the distance X1 is “1.00”.

「量子化後の距離」は、「距離」に示された値を第2の方法で量子化することによって生成された距離の幅を示す。例えば、距離X1を第2の方法で量子化することによって生成された距離の幅は、「1」である。なお、第2の方法で量子化することについての詳細は、後述される。   The “distance after quantization” indicates the width of the distance generated by quantizing the value shown in “distance” by the second method. For example, the width of the distance generated by quantizing the distance X1 by the second method is “1”. Details of the quantization by the second method will be described later.

「第1誤差」は、「量子化後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離X2を対象とした場合、「量子化後の距離」で示された値から「距離」で示された値への変化量は、「−0.44(即ち、0−0.44)」である。   The “first error” indicates the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance”. For example, when the distance X2 is targeted, the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance” is “−0.44 (ie, 0−0.44). ) ”.

「同一距離フラグ」は、上述のように、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X1、距離X3、距離X5、距離X7、距離X9および距離X11が同一の大きさに調整されることを示す。例えば、値「2」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X2および距離X10が同一の大きさに調整されることを示す。例えば、値「3」によって示される「同一距離フラグ」は、距離X1〜距離X11のうち、距離X4および距離X8が同一の大きさに調整されることを示す。例えば、値「×」によって示される「同一距離フラグ」が付された距離X6は、距離X1〜距離X11のうち、同一の大きさに調整される距離の幅がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   As described above, the “same distance flag” includes at least one distance among a plurality of distance widths and at least one other distance width adjusted to the same size as the at least one distance. Show. For example, in the “same distance flag” indicated by the value “1”, the distance X1, the distance X3, the distance X5, the distance X7, the distance X9, and the distance X11 among the distances X1 to X11 are adjusted to the same size. It shows that. For example, the “same distance flag” indicated by the value “2” indicates that, among the distances X1 to X11, the distance X2 and the distance X10 are adjusted to the same size. For example, the “same distance flag” indicated by the value “3” indicates that, among the distances X1 to X11, the distance X4 and the distance X8 are adjusted to the same size. For example, the distance X6 to which the “same distance flag” indicated by the value “x” is attached indicates that there is no width of the distance adjusted to the same size among the distances X1 to X11. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「同一距離処理後の距離」は、量子化後の距離の幅を同一距離処理することによって生成された距離の幅を示す。例えば、距離X1、距離X3、距離X5、距離X7、距離X9および距離X11を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「1」である。例えば、距離X2および距離X10を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「0」である。例えば、距離X4および距離X8を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「3」である。例えば、距離X6は、距離X1〜距離X11のうち、同一の大きさに調整される距離がない。従って、距離X6を対象とした場合、同一距離処理後の距離の幅は、同一距離処理前の距離の幅と変わらず、「2」である。   The “distance after the same distance processing” indicates the width of the distance generated by performing the same distance processing on the distance width after quantization. For example, when the distance X1, the distance X3, the distance X5, the distance X7, the distance X9, and the distance X11 are targeted, each of the distance widths after the same distance process is “1”. For example, when the distance X2 and the distance X10 are targets, each of the distance widths after the same distance process is “0”. For example, when the distance X4 and the distance X8 are targeted, each of the distance widths after the same distance process is “3”. For example, the distance X6 does not have a distance adjusted to the same size among the distances X1 to X11. Therefore, when the distance X6 is targeted, the width of the distance after the same distance processing is “2”, which is the same as the width of the distance before the same distance processing.

「第2誤差」は、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量は、「−0.44(即ち、0−0.44)」である。   The “second error” indicates the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance”. For example, when the distance Y2 is the target, the amount of change from the value indicated by “distance after the same distance processing” to the value indicated by “distance” is “−0.44 (that is, 0-0. 44) ".

図13(b)は、Y軸方向の基準点間データ(図7(b)参照)をグリッドフィッティング処理した後の基準点間データを示す。   FIG. 13B shows data between reference points after grid fitting processing is performed on the data between reference points in the Y-axis direction (see FIG. 7B).

「Y軸方向」は、グリッドフィッティングの対象となった複数の距離の幅を示す。具体的には、グリッドフィッティングの対象となった複数の距離の幅は、距離Y1〜距離Y11である。   “Y-axis direction” indicates the width of a plurality of distances that are targets of grid fitting. Specifically, the widths of the plurality of distances that are targets of grid fitting are distance Y1 to distance Y11.

「距離」は、グリッドフィッティング処理した後の基準点間のY軸方向の距離の幅を示す。例えば、距離Y1の距離の幅は「1.00」である。   “Distance” indicates the width of the distance in the Y-axis direction between the reference points after the grid fitting process. For example, the distance width of the distance Y1 is “1.00”.

「量子化後の距離」は、「距離」に示された値を第2の方法で量子化することによって生成された距離の幅を示す。例えば、距離Y1を第2の方法で量子化することによって生成された距離の幅は、「1」である。   The “distance after quantization” indicates the width of the distance generated by quantizing the value shown in “distance” by the second method. For example, the width of the distance generated by quantizing the distance Y1 by the second method is “1”.

「第1誤差」は、「量子化後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「量子化後の距離」で示された値から「距離」で示された値への変化量は、「0.44(即ち、3−2.56)」である。   The “first error” indicates the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance”. For example, when the distance Y2 is the target, the amount of change from the value indicated by “distance after quantization” to the value indicated by “distance” is “0.44 (ie, 3-2.56). Is.

「同一距離フラグ」は、上述のように、複数の距離の幅のうち、少なくとも1つの距離と、この少なくとも1つの距離と同一の大きさに調整される他の少なくとも1つの距離の幅とを示す。例えば、値「1」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y1、距離Y3、距離Y5、距離Y7、距離Y9および距離Y11が同一の大きさに調整されることを示す。例えば、値「2」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y2および距離Y4が同一の大きさに調整されることを示す。例えば、値「3」によって示される「同一距離フラグ」は、距離Y1〜距離Y11のうち、距離Y8および距離Y10が同一の大きさに調整されることを示す。例えば、値「×」によって示される「同一距離フラグ」が付された距離Y6は、距離Y1〜距離Y11のうち、同一の大きさに調整される距離の幅がないことを示す。「同一距離フラグ」によれば、複数の距離の幅のうち、少なくとも1つの距離の幅と、この少なくとも1つの距離の幅に等しいと規定された他の少なくとも1つの距離の幅とを示すことができる。   As described above, the “same distance flag” includes at least one distance among a plurality of distance widths and at least one other distance width adjusted to the same size as the at least one distance. Show. For example, in the “same distance flag” indicated by the value “1”, the distance Y1, the distance Y3, the distance Y5, the distance Y7, the distance Y9, and the distance Y11 among the distances Y1 to Y11 are adjusted to the same size. It shows that. For example, the “same distance flag” indicated by the value “2” indicates that the distance Y2 and the distance Y4 out of the distances Y1 to Y11 are adjusted to the same size. For example, the “same distance flag” indicated by the value “3” indicates that the distance Y8 and the distance Y10 among the distances Y1 to Y11 are adjusted to the same size. For example, the distance Y6 with the “same distance flag” indicated by the value “x” indicates that there is no width of the distance adjusted to the same size among the distances Y1 to Y11. According to the “same distance flag”, the width of at least one distance among the widths of a plurality of distances and the width of at least one other distance defined to be equal to the width of the at least one distance are indicated. Can do.

「同一距離処理後の距離」は、量子化後の距離の幅を同一距離処理することによって生成された距離の幅を示す。例えば、距離Y1〜距離Y11のうち、距離Y1、距離Y3、距離Y5、距離Y7、距離Y9および距離Y11を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「1」である。例えば、距離Y1〜距離Y11のうち、距離Y2および距離Y4を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「3」である。例えば、距離Y1〜距離Y11のうち、距離Y8および距離Y10を対象とした場合、同一距離処理後の距離の幅のそれぞれは、「2」である。距離Y6には、同一距離フラグ「×」が付されているため、距離Y6を対象とした同一距離処理はなされない。従って、距離Y6を対象とした同一距離処理後の距離の幅は、同一距離処理前の距離の幅と不変である。   The “distance after the same distance processing” indicates the width of the distance generated by performing the same distance processing on the distance width after quantization. For example, when the distance Y1, the distance Y3, the distance Y5, the distance Y7, the distance Y9, and the distance Y11 are targeted among the distances Y1 to Y11, each of the distance widths after the same distance processing is “1”. . For example, when the distance Y2 and the distance Y4 are targeted among the distances Y1 to Y11, each of the distance widths after the same distance process is “3”. For example, when the distance Y8 and the distance Y10 are targeted among the distances Y1 to Y11, each of the distance widths after the same distance process is “2”. Since the same distance flag “x” is attached to the distance Y6, the same distance processing for the distance Y6 is not performed. Therefore, the distance width after the same distance processing for the distance Y6 is the same as the distance width before the same distance processing.

「第2誤差」は、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「同一距離処理後の距離」で示された値から「距離」で示された値への変化量は、「0.44(即ち、3−2.56)」である。   The “second error” indicates the amount of change from the value indicated by “distance after the same distance process” to the value indicated by “distance”. For example, when the distance Y2 is the target, the amount of change from the value indicated by “distance after the same distance processing” to the value indicated by “distance” is “0.44 (ie, 3-2.56). ) ”.

「調整1回後の距離」は、「量子化後の距離」のうち、「同一距離フラグ」の所定の値が付されたものの距離の幅を狭めた結果を示す。例えば、「同一距離フラグ」の値「2」が付された距離Y2と距離Y4とに対応する「量子化後の距離」の値「3」から「調整1回後の距離」の値「2」に狭められている。なお、量子化された距離の幅を狭める処理の詳細は、後述される。   The “distance after one adjustment” indicates the result of narrowing the distance width of the “distance after quantization” to which the predetermined value of the “same distance flag” is attached. For example, the “distance after one adjustment” value “2” from the “distance after quantization” value “3” corresponding to the distance Y2 and the distance Y4 to which the value “2” of the “same distance flag” is attached. ”. Details of the process of reducing the width of the quantized distance will be described later.

「第3誤差」は、「調整1回後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y2を対象とした場合、「調整1回後の距離」で示された値から「距離」で示された値への変化量は、「−0.56(即ち、2−2.56)」である。   The “third error” indicates the amount of change from the value indicated by “distance after one adjustment” to the value indicated by “distance”. For example, when the distance Y2 is the target, the amount of change from the value indicated by “distance after one adjustment” to the value indicated by “distance” is “−0.56 (that is, 2-2. 56) ".

「調整済みフラグ」は、量子化された距離の幅を変更する処理によって長さが調整された対象(距離)に対して付される。例えば、距離Y2と距離Y4とに対応する「量子化後の距離」が調整されたため、距離Y2と距離Y4とに対して、値「1」が付されている。   The “adjusted flag” is attached to an object (distance) whose length has been adjusted by the process of changing the width of the quantized distance. For example, since the “distance after quantization” corresponding to the distance Y2 and the distance Y4 is adjusted, a value “1” is assigned to the distance Y2 and the distance Y4.

「調整2回後の距離」は、「量子化後の距離」のうち、「同一距離フラグ」の所定の値が付されたものの距離の幅を広げた結果を示す。例えば、「同一距離フラグ」の値「×」が付された距離Y6に対応する「量子化後の距離」の値「1」から「調整2回後の距離」の値「2」に広げられている。なお、量子化された距離の幅を広げる処理の詳細は、後述される。   The “distance after two adjustments” indicates a result of widening the distance of “distance after quantization” to which a predetermined value of “same distance flag” is attached. For example, the value “1” of “distance after quantization” corresponding to the distance Y6 to which the value “x” of “same distance flag” is attached is expanded to the value “2” of “distance after two adjustments”. ing. The details of the process of expanding the quantized distance will be described later.

「第4誤差」は、「調整2回後の距離」で示された値から「距離」で示された値への変化量を示す。例えば、距離Y6を対象とした場合、「調整2回後の距離」で示された値から「距離」で示された値への変化量は、「0.56(即ち、2−1.44)」である。   The “fourth error” indicates the amount of change from the value indicated by “distance after two adjustments” to the value indicated by “distance”. For example, when the distance Y6 is targeted, the amount of change from the value indicated by “distance after two adjustments” to the value indicated by “distance” is “0.56 (ie, 2-1.44). ) ”.

「調整済みフラグ」は、量子化された距離の幅を変更する処理によって長さが調整された対象(距離)に対して付される。例えば、距離Y6に対応する「量子化後の距離」が距離Y2および距離Y4に対応する「量子化後の距離」に加えて調整されたため、距離Y2および距離Y4に加えて、Y6に対して値「1」が付されている。   The “adjusted flag” is attached to an object (distance) whose length has been adjusted by the process of changing the width of the quantized distance. For example, since “the distance after quantization” corresponding to the distance Y6 is adjusted in addition to the “distance after quantization” corresponding to the distance Y2 and the distance Y4, in addition to the distance Y2 and the distance Y4, The value “1” is attached.

以下、図11〜図13を参照してグリッドフィッティング処理手順の詳細をステップごとに説明する。   Hereinafter, the details of the grid fitting process procedure will be described step by step with reference to FIGS.

始めに、図11(a)を参照して、ステップS301〜ステップS310およびステップS330を説明する。   First, step S301 to step S310 and step S330 will be described with reference to FIG.

ステップS301:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅を計算する(図12および図13の「距離」参照)。   Step S301: The CPU 121 calculates the width of the distance between a plurality of reference points obtained to the second decimal place by scaling (see “Distance” in FIGS. 12 and 13).

ステップS302:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅に基づいて、目標の距離の幅を示す目標値を求める。   Step S302: The CPU 121 obtains a target value indicating the width of the target distance based on the distance width between the plurality of reference points obtained to the second decimal place by scaling.

具体的には、CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離のうち、最大のX座標値から最小のX座標値を引いた値を求め、さらに、この値を四捨五入で量子化することによって、X軸方向の目標の距離の幅を示す目標値を求める。CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離のうち、最大のY座標値から最小のY座標値を引いた値を求め、さらに、この値を四捨五入で量子化することによって、Y軸方向の目標の距離の幅を示す目標値を求める。   Specifically, the CPU 121 obtains a value obtained by subtracting the minimum X coordinate value from the maximum X coordinate value among the distances between the plurality of reference points obtained to the second decimal place by scaling. Is rounded off to obtain a target value indicating the target distance width in the X-axis direction. The CPU 121 calculates a value obtained by subtracting the minimum Y coordinate value from the maximum Y coordinate value among the distances between the plurality of reference points calculated to the second decimal place by scaling, and further, this value is quantized by rounding off. By doing this, a target value indicating the width of the target distance in the Y-axis direction is obtained.

なお、CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅すべてを加算して、求められた値を四捨五入で量子化することによって、X軸方向の目標の距離の幅を示す目標値を求めることがあり得る。さらに、CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅すべてを加算して、求められた値を四捨五入で量子化することによって、Y軸方向の目標の距離の幅を示す目標値を求めることがあり得る。   The CPU 121 adds all the distance widths between the plurality of reference points obtained to the second decimal place by scaling, and quantizes the obtained value by rounding to obtain a target distance in the X-axis direction. It is possible to obtain a target value that indicates the width of. Further, the CPU 121 adds all the widths of the distances between the plurality of reference points obtained to the second decimal place by scaling, and quantizes the obtained values by rounding to obtain a target distance in the Y-axis direction. It is possible to obtain a target value that indicates the width of.

四捨五入によって量子化された合計を生成することにより、文字の大きさの統一を図ることが出来る。   By generating a total quantized by rounding off, it is possible to unify the size of characters.

なお、量子化する方法として、四捨五入を利用したが、量子化する方法は、四捨五入に限らない。文字を出来るだけ大きく見せる場合は、量子化する方法として、切り上げを利用することがあり得る。文字を出来るだけ小さく見せる場合は、量子化する方法として、切り捨てを利用することがあり得る。量子化する際に所望の閾値を利用することがあり得る。   Note that rounding is used as the quantization method, but the quantization method is not limited to rounding. When making a character appear as large as possible, rounding up may be used as a method of quantization. If the characters are shown as small as possible, truncation may be used as a method of quantization. It is possible to use a desired threshold when quantizing.

さらに、目標値は、スケーリングされた複数の基準点間の距離の幅の合計を量子化することによって求められることに限定されない。ユーザは、所望の値を目標値として文字表示装置100に入力することがあり得る。   Further, the target value is not limited to being obtained by quantizing the total width of the distance between the plurality of scaled reference points. The user may input a desired value to the character display device 100 as a target value.

このように、ステップS302を実行することによって、スケーリングによって小数第2位まで求められた複数の基準点に基づいて求められた値を第1の方法で量子化し、目標値を定めることによって、後述するように、調整すべき複数の値を得ることが出来る。   As described above, by executing step S302, the values obtained based on the plurality of reference points obtained up to the second decimal place by scaling are quantized by the first method, and the target value is determined later. Thus, a plurality of values to be adjusted can be obtained.

ステップS303:CPU121は、スケーリングされた複数の基準点間の距離の幅のそれぞれを四捨五入で量子化する。図12および図13に示される例では、スケーリングされた複数の基準点間の距離の幅は、「距離」に示され、量子化された複数の基準点間の距離の幅は、「量子化後の距離」に示される。   Step S303: The CPU 121 quantizes each width of the distance between the plurality of scaled reference points by rounding off. In the example shown in FIG. 12 and FIG. 13, the width of the distance between the plurality of scaled reference points is indicated by “distance”, and the width of the distance between the plurality of reference points quantized is “quantization”. It is shown in “After Distance”.

なお、量子化は、距離フラグを考慮して行われることがあり得る。距離フラグは、複数の基準点間の距離の幅として最低限必要な距離の幅を示す。例えば、スケーリングされた2つの基準点の間の距離の幅が「2.4」の場合、距離フラグがなければ、四捨五入で量子化された距離の幅は「2」となる。距離フラグが「1」ならば、四捨五入で量子化された距離の幅は「2」となる。距離フラグが「2」ならば、四捨五入で量子化された距離の幅は「2」となる。しかし、距離フラグが「3」ならば、距離フラグを考慮することで、量子化された距離の幅を「3」とする。   Note that the quantization may be performed in consideration of the distance flag. The distance flag indicates the minimum distance required as the distance between the plurality of reference points. For example, when the distance width between two scaled reference points is “2.4”, if there is no distance flag, the distance width quantized by rounding is “2”. If the distance flag is “1”, the distance width quantized by rounding is “2”. If the distance flag is “2”, the distance width quantized by rounding is “2”. However, if the distance flag is “3”, the width of the quantized distance is set to “3” by considering the distance flag.

距離の幅を量子化する方法として、四捨五入を利用したが、距離の幅を量子化する方法は、四捨五入に限らない。距離の幅を量子化する方法として、切り上げを利用してもよいし、切り捨てを利用してもよい。または距離の幅を量子化する方法として所望の閾値を利用してもよい。   Although rounding is used as a method for quantizing the distance width, the method for quantizing the distance width is not limited to rounding. As a method of quantizing the distance width, rounding up may be used, or rounding down may be used. Alternatively, a desired threshold value may be used as a method for quantizing the distance width.

ステップS302で行った目標値を算出する第1の方法における量子化方法とステップS303で求める基準点間の距離の幅を量子化する第2の方法における量子化方法とは同じでもよいし、異なっていてもよい。例えば、量子化する第1の方法として、四捨五入を利用し、量子化する第2の方法として、四捨五入を利用してもよい。文字を出来るだけ大きく見せる場合は、量子化する第1の方法として、切り上げを利用し、量子化する第2の方法として、四捨五入を利用してもよい。   The quantization method in the first method for calculating the target value performed in step S302 may be the same as or different from the quantization method in the second method for quantizing the width of the distance between the reference points obtained in step S303. It may be. For example, rounding may be used as the first method for quantization, and rounding may be used as the second method for quantization. When making a character appear as large as possible, rounding may be used as the first method for quantization, and rounding may be used as the second method for quantization.

ステップS304:CPU121は、予め決められた同一距離フラグを参照し、同一の値を有する同一距離フラグが付された複数の距離の幅を同じ値に調整する。調整後の距離の幅は、図12および図13に示される例では、「同一距離処理後の距離」によって示される。   Step S304: The CPU 121 refers to a predetermined same distance flag and adjusts the widths of a plurality of distances to which the same distance flag having the same value is attached to the same value. The distance width after the adjustment is indicated by “distance after the same distance process” in the examples shown in FIGS. 12 and 13.

図12および図13を参照して説明したように、第2の方法で量子化された距離の中には、少なくとも1つの距離と、前記少なくとも1つの距離の幅とは同じ幅を有するとみなされる他の少なくとも1つの距離とが存在する。同じ幅を有するとみなされる距離とは、「同一距離フラグ」の同じ値によって示されている距離である。   As described with reference to FIGS. 12 and 13, among the distances quantized by the second method, at least one distance and the width of the at least one distance are considered to have the same width. And at least one other distance. A distance considered to have the same width is a distance indicated by the same value of the “same distance flag”.

なお、少なくとも1つの距離と他の少なくとも1つの距離とが同一の大きさに調整されるとは、少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが等しいことでありえる。例えば、距離X1、距離X3、距離X5に対応する「量子化後の距離」はそれぞれ値「2」であり、等しい(図12(a)参照)。   Note that the fact that at least one distance and at least one other distance are adjusted to the same size can mean that the width of at least one distance is equal to the width of at least one other distance. For example, the “distance after quantization” corresponding to the distance X1, the distance X3, and the distance X5 is the value “2”, which is equal (see FIG. 12A).

ステップS305:CPU121は、同一距離処理後の距離の幅の合計が第1の方法で量子化された合計(目標値)と同じであるか否かを判定する。   Step S305: The CPU 121 determines whether or not the total distance width after the same distance processing is the same as the total (target value) quantized by the first method.

同じである(Yes)と判定された場合には、改めて複数の基準点の位置を調整する必要は無いので、処理は、ステップS327に進む。同じでない(No)と判定された場合には、処理は、S306に進む。同じでない(No)と判定された場合とは、同一距離処理後の距離の幅の合計が第1の方法で量子化された合計より大きい場合、または同一距離処理後の距離の幅の合計が第1の方法で量子化された合計より小さい場合である。   If it is determined that they are the same (Yes), it is not necessary to adjust the positions of the plurality of reference points again, and the process proceeds to step S327. If it is determined that they are not the same (No), the process proceeds to S306. When it is determined that they are not the same (No), the total distance width after the same distance processing is larger than the total quantized by the first method, or the total distance width after the same distance processing is This is the case when it is smaller than the sum quantized by the first method.

ステップS306:CPU121は、同一距離処理後の距離の幅の合計が第1の方法で量子化された合計(目標値)より小さいか否かを判定する。   Step S306: The CPU 121 determines whether or not the total distance width after the same distance processing is smaller than the total (target value) quantized by the first method.

小さくない(No)と判定された場合には、処理は、ステップS307に進む。小さい(Yes)と判定された場合には、処理は、ステップS311に進む(図11(c)参照)。   If it is determined that it is not small (No), the process proceeds to step S307. If it is determined to be small (Yes), the process proceeds to step S311 (see FIG. 11C).

ステップS307:CPU121は、複数の距離に対応する距離フラグの合計が第1の方法で量子化された合計(目標値)より大きいか否かを判定する。   Step S307: The CPU 121 determines whether or not the sum of distance flags corresponding to a plurality of distances is larger than the sum (target value) quantized by the first method.

大きい(Yes)と判定された場合には、現状ではこれ以上小さな文字を出力するように基準点間を調整をする事は出来ないとして、処理は、ステップS308に進む。大きくない(No)と判定された場合には、処理は、ステップS319に進む(図11(c)参照)。   If it is determined that the character is large (Yes), it is determined that the reference point cannot be adjusted so as to output a character smaller than the current value, and the process proceeds to step S308. If it is determined that it is not large (No), the process proceeds to step S319 (see FIG. 11C).

距離フラグの合計が目標値より大きい場合には、これ以上複数の基準点間を縮めると文字を表示する際に、文字が潰れて視認性が悪くなるので、処理は、複数の基準点間を縮める調整を断念し、他の方法として省略フラグの有無の確認を行うことで、さらなる基準点間の調整の可能性を探る。省略フラグは、特定軸(X軸、Y軸)に沿った基準点間をグリッドフィッティングにより調整する際に、調整する距離の幅を「0」にできるか否かを示す。さらに、省略フラグの値は、調整する距離の幅を「0」にできる場合には、調整する距離の幅を「0」にする順番を示す。   If the total of the distance flags is larger than the target value, the character will be crushed and the visibility will be worse when the character is displayed if the distance between the reference points is further reduced. By abandoning the adjustment to be shortened and checking the presence or absence of the omission flag as another method, the possibility of further adjustment between reference points is investigated. The omission flag indicates whether or not the width of the distance to be adjusted can be set to “0” when the reference points along the specific axis (X axis, Y axis) are adjusted by grid fitting. Further, the value of the omission flag indicates the order in which the width of the distance to be adjusted is “0” when the width of the distance to be adjusted can be “0”.

なお、距離フラグは、特定の軸(X軸およびY軸)に沿った基準点間の距離の幅として最低限必要な距離の幅を有するか否かを示す。さらに、距離フラグは、基準点間の距離の幅として最低限必要な距離の幅がいくらであるかを示す。距離フラグは、スケーリングされた文字を表示する際に視認性を確保するための情報であって、文字が潰れない最小の距離の幅を示す。距離フラグは、スケーリング前の文字情報に予め付与されている(図4および図7参照)。   The distance flag indicates whether or not the distance flag has a minimum required distance width as a distance width between reference points along a specific axis (X axis and Y axis). Furthermore, the distance flag indicates the minimum distance required as the distance between the reference points. The distance flag is information for ensuring visibility when displaying the scaled character, and indicates the minimum distance width at which the character is not crushed. The distance flag is previously assigned to the character information before scaling (see FIGS. 4 and 7).

ステップS308:CPU121は、省略フラグが立っているか否かを判定する。なお、本発明の基準点間の調整は一度のみ可能としているので、既に調整済みの基準点間に対しては、さらに基準点間の調整は行わず省略フラグの確認は不要である。   Step S308: The CPU 121 determines whether or not an omission flag is set. In addition, since the adjustment between the reference points of the present invention can be performed only once, the adjustment between the reference points is not further performed between the already adjusted reference points, and the confirmation of the omission flag is unnecessary.

未だ調整されていない基準点間に省略フラグが立っている場合には、該当する基準点間の距離の幅を「0」として、見かけ上基準点間が無いものとして扱う必要がある。したがって、省略フラグが立っている(Yes)と判定された場合には、処理は、ステップS309に進む。   When the omission flag is set between the reference points that have not been adjusted yet, it is necessary to treat the width of the distance between the corresponding reference points as “0” so that there is no apparent reference point. Therefore, if it is determined that the omission flag is set (Yes), the process proceeds to step S309.

未だ調整されていない基準点間に省略フラグが立っていない場合には、省略する基準点間がなく、量子化された距離の幅の合計を目標値より小さく調整することができない。したがって、省略フラグが立っていない(No)と判定された場合には、処理は、ステップS330に進む。   When the omission flag is not set between the reference points that have not been adjusted yet, there is no interval between the reference points to be omitted, and the total of the quantized distance widths cannot be adjusted to be smaller than the target value. Therefore, if it is determined that the omission flag is not raised (No), the process proceeds to step S330.

ステップS330:CPU121は、スケーリング後の複数のストロークの座標データを四捨五入で量子化することによって、グリッドフィッティング処理を終了する。   Step S330: The CPU 121 ends the grid fitting process by quantizing the coordinate data of the scaled strokes by rounding off.

ステップS309:CPU121は、未だ基準点間が調整されていない基準点間の距離に対応する複数の省略フラグのうち、順位の高い省略フラグから順に省略フラグの距離の幅を「0」にする。ここで、省略フラグの距離の幅を「0」にするとは、量子化後の基準点間の値を「0」にすることであり、省略フラグを操作することではない。省略フラグの距離の幅を「0」にすることによって、省略可能と判定された基準点間を見た目上「0」に調整し得る。   Step S309: The CPU 121 sets the distance of the omission flag distance to “0” in order from the omission flag having the highest rank among the omission flags corresponding to the distance between the reference points that have not been adjusted yet. Here, setting the width of the distance of the omission flag to “0” means setting the value between the reference points after quantization to “0”, not operating the omission flag. By setting the distance width of the omission flag to “0”, it is possible to visually adjust the distance between the reference points determined to be omissible to “0”.

なお、ステップS309を実行することによって、基準点間の距離の幅を「0」にしたので、距離フラグの値も「0」にする。したがって、ステップS310を実行し、次にステップS305およびステップS306を実行し、次にステップS307を実行する場合、距離フラグの合計値が目標値より小さくなる。その結果、ステップS309を実行することによって、処理は、ステップS307の次にステップS319に進むことが可能になる(図11(b)参照)。   Since the distance width between the reference points is set to “0” by executing step S309, the value of the distance flag is also set to “0”. Therefore, when step S310 is executed, then step S305 and step S306 are executed, and then step S307 is executed, the total value of the distance flags becomes smaller than the target value. As a result, by executing step S309, the process can proceed to step S319 after step S307 (see FIG. 11B).

ステップS310:CPU121は、省略処理(ステップS309)によって調整されたものとして、距離フラグの値が「0」にされた基準点間の距離に調整済みフラグを立てる。処理は、再度ステップS305に進む。   Step S310: The CPU 121 sets an adjusted flag for the distance between the reference points whose distance flag value is set to “0”, as adjusted by the omission process (step S309). The process proceeds again to step S305.

省略フラグには、省略する順番があるために、本来順番を守りながらの省略処理を行う必要があるが、既に調整済みフラグが立っている場合にはその基準点間の省略処理を省略するため、順番どおりに省略処理が行われるわけではない。しかし、ステップS305、ステップS306およびステップS307によって実行される判定によって、量子化された基準点間の距離の幅の合計より距離フラグの値の合計の方が大きい場合にこの省略処理を行うので、例外を省き、省略フラグの省略処理は省略フラグの順番どおりに行われる。   Since the omission flag has an omission order, it is necessary to perform omission processing while originally keeping the order. However, if the already adjusted flag is set, the omission processing between the reference points is omitted. The omission processing is not performed in order. However, this omission process is performed when the sum of the distance flag values is larger than the sum of the widths of the distances between the quantized reference points according to the determinations performed in steps S305, S306, and S307. With the exception omitted, the omission flag omission processing is performed in the order of omission flags.

次に、図11(b)を参照して、ステップS319〜ステップS326を説明する。CPU121は、第2の方法で得た複数の基準点間を狭めることによって、複数の基準点の距離の合計値が第1の方法で得た目標値を超えないように複数の基準点間を調整するために、ステップS319〜ステップS326を実行する。   Next, step S319 to step S326 will be described with reference to FIG. The CPU 121 narrows the distance between the plurality of reference points obtained by the second method so that the total value of the distances of the plurality of reference points does not exceed the target value obtained by the first method. In order to adjust, steps S319 to S326 are executed.

ステップS319:CPU121は、調整済みフラグの立っていない基準点間の距離の中から、量子化誤差の切り上げとなる基準点間の距離があるか否かを判定して、量子化誤差の切り上げとなる基準点間の距離がある場合には最大切り上げとなる基準点間を抽出する。   Step S319: The CPU 121 determines whether or not there is a distance between the reference points for rounding up the quantization error from among the distances between the reference points for which no adjusted flag is set, and rounding up the quantization error. If there is a distance between the reference points, the reference points that are the maximum round-up are extracted.

ある(Yes)と判定された場合には、処理は、ステップS320に進む。基準点間を狭める場合に、量子化誤差が大きく変化している基準点間から狭めることによって、文字の表示品位を最善に調整できる。したがって、最大きり上げ幅の基準点間から調整し始める。   If it is determined that there is (Yes), the process proceeds to step S320. When narrowing the distance between the reference points, the character display quality can be optimally adjusted by narrowing from the distance between the reference points where the quantization error changes greatly. Therefore, the adjustment starts between the reference points of the maximum raised width.

ない(No)と判定された場合には、処理は、ステップ327に進む(図11(a)参照)。調整済みフラグの立っていない基準点間の距離がなくなると、これ以上基準点間を調整出来ないからである。   If it is determined that there is no (No), the process proceeds to step 327 (see FIG. 11A). This is because if there is no distance between the reference points where the adjusted flag is not set, the reference points cannot be adjusted any more.

ステップS320:CPU121は、ステップ319を実行することによって抽出した最大切り上げ幅となる基準点間と同じ基準点間の距離のグループを抽出する。複数の基準点間の距離に同一距離フラグが付与されている場合には、複数の基準点間の距離のうち同じ同一距離フラグが立っている基準点間の距離の幅をすべて調整するためである。   Step S320: The CPU 121 extracts a group of distances between reference points that are the same as the reference points that are the maximum round-up width extracted by executing Step 319. When the same distance flag is assigned to the distance between multiple reference points, this is to adjust all the widths of the distances between the reference points where the same same distance flag stands out of the distances between multiple reference points. is there.

ステップS321:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の幅の全てが、対応する距離フラグの値より1以上であるか否かを判定する。抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の幅を対応する距離フラグの値より小さく出来ないからである。   Step S321: It is determined whether or not all the distance widths between the plurality of reference points included in the extracted group of the same distance flag are 1 or more than the value of the corresponding distance flag. This is because the width of the distance between a plurality of reference points included in the extracted group of the same distance flags cannot be made smaller than the value of the corresponding distance flag.

1以上である(Yes)と判定された場合には、処理は、ステップS322に進む。1以上でない(No)と判定された場合には、処理は、ステップS326に進む。   If it is determined that the number is 1 or more (Yes), the process proceeds to step S322. If it is determined that the number is not 1 or more (No), the process proceeds to step S326.

ステップS326:CPU121は、ステップS319によって抽出されたグループ以外に量子化誤差のきり上げとなる基準点間の距離があるか否かを判定して、量子化誤差のきり上げとなる基準点間の距離がある場合にはステップS320を実行することによって抽出されるだろうグループ以外の量子化誤差の最大切り上げとなる基準点間を抽出する。他の基準点間の中から調整候補を探すためである。   Step S326: The CPU 121 determines whether or not there is a distance between the reference points that cause the quantization error other than the group extracted in step S319, and determines whether there is a distance between the reference points that cause the quantization error. If there is a distance, the reference points that are the maximum round-up of quantization errors other than those that will be extracted by executing step S320 are extracted. This is because an adjustment candidate is searched from among other reference points.

ある(Yes)と判定された場合には、処理は、ステップS320に進む。ない(No)と判定された場合には、処理は、ステップS308に進む(図11(a)参照)。   If it is determined that there is (Yes), the process proceeds to step S320. If it is determined that there is no (No), the process proceeds to step S308 (see FIG. 11A).

ステップS322:CPU121は、抽出された基準点間の量子化された距離の値を1だけ小さくする。   Step S322: The CPU 121 decreases the value of the quantized distance between the extracted reference points by one.

ステップS323:CPU121は、調整された基準点間の距離に対応して調整済みフラグを立てて、調整された基準点間を再度調整しないようにする。   Step S323: The CPU 121 sets an adjusted flag corresponding to the adjusted distance between the reference points so that the adjusted reference points are not adjusted again.

ステップS324:CPU121は、抽出された基準点間の距離に同一距離フラグが設定されているか否かを判定する。設定されている(Yes)と判定された場合には、処理は、ステップS325に進む。設定されていない(No)と判定された場合には、処理は、ステップS305に進む(図11(a)参照)。   Step S324: The CPU 121 determines whether or not the same distance flag is set for the distance between the extracted reference points. If it is determined that it is set (Yes), the process proceeds to step S325. If it is determined that it has not been set (No), the process proceeds to step S305 (see FIG. 11A).

ステップS325:CPU121は、調整済みフラグが立っていない基準点間の距離の中に同じ同一距離フラグを有する基準点間の距離があるか否かを判定する。   Step S325: The CPU 121 determines whether or not there is a distance between reference points having the same same distance flag among the distances between reference points for which no adjusted flag is set.

ある(Yes)と判定された場合には、処理は、ステップS322に進む。ない(No)と判定された場合には、処理は、ステップS305に進む。   If it is determined that there is (Yes), the process proceeds to step S322. If it is determined that there is no (No), the process proceeds to step S305.

CPU121は、ステップS322〜ステップS325を繰り返すことによって、同一距離フラグのある基準点間の距離の幅が、全て1だけ狭められるように処理する。そして、この処理が終えれば、次の基準点間の調整が必要か否かの判定のために、処理は、ステップS305に進む。   The CPU 121 performs processing so that the widths of the distances between the reference points having the same distance flag are all reduced by 1 by repeating Steps S322 to S325. When this process is completed, the process proceeds to step S305 to determine whether or not adjustment between the next reference points is necessary.

次に、図11(c)を参照して、ステップS311〜ステップS318を説明する。CPU121は、ステップS311〜ステップS318を実行することによって、第2の方法で得た各基準点間を広げながら、各基準点の距離の幅の合計値が第1の方法で得た目標値を超えることなく、さらに、最小の範囲に近づくように複数の基準点間を調整する。   Next, step S311 to step S318 will be described with reference to FIG. The CPU 121 executes step S311 to step S318 to increase the distance between the reference points obtained by the second method, while the total value of the distance widths of the reference points is the target value obtained by the first method. Without exceeding, the distance between the plurality of reference points is adjusted so as to approach the minimum range.

ステップS311:CPU121は、調整済みフラグの立っていない基準点間の距離の中から、量子化誤差の切り下げとなる基準点間の距離があるか否かを判定して、量子化誤差の切り下げとなる基準点間の距離がある場合には、最大切り下げとなる基準点間を抽出する。   Step S311: The CPU 121 determines whether or not there is a distance between reference points from which the quantization error is reduced, among the distances between the reference points for which the adjusted flag is not set. If there is a distance between the reference points, the reference points that are the maximum reduction are extracted.

ある(Yes)と判定された場合には、処理は、ステップS312に進む。基準点間を広げる場合に、量子化誤差が大きく変化している基準点間から広げることによって、文字の表示品位を最善に調整できる。したがって、最大きり下げ幅の基準点間から調整を始める。   If it is determined that there is (Yes), the process proceeds to step S312. When the space between the reference points is widened, the display quality of the characters can be adjusted optimally by widening from the space between the reference points where the quantization error is greatly changed. Therefore, the adjustment is started between the reference points of the maximum clearance width.

ない(No)と判定された場合には、処理は、ステップ327に進む(図11(a)参照)。調整済みフラグの立っていない基準点間の距離がなくなると、これ以上基準点間を調整出来ないからである。   If it is determined that there is no (No), the process proceeds to step 327 (see FIG. 11A). This is because if there is no distance between the reference points where the adjusted flag is not set, the reference points cannot be adjusted any more.

ステップS312:CPU121は、ステップS311を実行することによって抽出した最大きり下げ幅となる基準点間と同じ基準点間の距離のグループを抽出する。複数の基準点間の距離に同一距離フラグが付与されている場合には、複数の基準点間の距離のうち同じ同一距離フラグが立っている基準点間の距離の幅をすべて調整するためである。   Step S312: The CPU 121 extracts a group of distances between reference points that are the same as the reference points that are the maximum clearance width extracted by executing step S311. When the same distance flag is assigned to the distance between multiple reference points, this is to adjust all the widths of the distances between the reference points where the same same distance flag stands out of the distances between multiple reference points. is there.

ステップS313:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の数が、広げる予定の幅より大きいか否かを判定する。同じ値の同一距離フラグが立っている複数の基準点間の距離のそれぞれを同時に1だけ増加する必要があり、同じ値の同一距離フラグを持つ基準点間の距離の数のみ、基準点間の調整で幅が大きくなる可能性があるからである。   Step S313: It is determined whether or not the number of distances between the plurality of reference points included in the extracted group of the same distance flags is larger than the width to be expanded. It is necessary to increase the distance between the reference points having the same distance flag of the same value by 1 at the same time, and only the number of distances between the reference points having the same distance flag of the same value is set between the reference points. This is because the width may be increased by adjustment.

大きい(Yes)と判定された場合には、処理は、ステップS318に進む。大きくない(No)と判定された場合には、処理は、ステップS314に進む。   If it is determined to be large (Yes), the process proceeds to step S318. If it is determined that the number is not large (No), the process proceeds to step S314.

ステップS318:CPU121は、ステップS312によって抽出されたグループ以外に量子化誤差のきり下げとなる基準点間の距離の幅があるか否かを判定して、量子化誤差のきり下げとなる基準点間の距離の幅がある場合にはステップS312を実行することによって抽出されるだろうグループ以外の量子化誤差の最大きり下げとなる基準点間を抽出する。他の基準点間の中から調整候補を探すためである。   Step S318: The CPU 121 determines whether or not there is a range of distances between the reference points that reduce the quantization error other than the group extracted in step S312 and determines the reference point that reduces the quantization error. If there is a width of the distance between, the reference points between the reference points that are the maximum reduction of the quantization error other than the group that would be extracted by executing step S312 are extracted. This is because an adjustment candidate is searched from among other reference points.

ある(Yes)と判定された場合には、処理は、ステップS312に進む。ない(No)と判定された場合には、処理は、ステップS327に進む(図11(a)参照)。   If it is determined that there is (Yes), the process proceeds to step S312. If it is determined that there is no (No), the process proceeds to step S327 (see FIG. 11A).

ステップS314:CPU121は、抽出された基準点間の量子化された距離の幅の値を1だけ大きくする。   Step S314: The CPU 121 increases the width value of the quantized distance between the extracted reference points by one.

ステップS315:CPU121は、調整された基準点間の距離に対応して調整済みフラグを立てて、調整された基準点間を再度調整しないようにする。   Step S315: The CPU 121 sets an adjusted flag corresponding to the adjusted distance between the reference points so that the adjusted reference points are not adjusted again.

ステップS316:CPU121は、抽出された基準点間の距離に同一距離フラグが設定されているか否かを判定する。設定されている(Yes)と判定された場合には、処理は、ステップS317に進む。設定されていない(No)と判定された場合には、処理は、ステップS305に進む(図11(a)参照)。   Step S316: The CPU 121 determines whether or not the same distance flag is set for the distance between the extracted reference points. If it is determined that it is set (Yes), the process proceeds to step S317. If it is determined that it has not been set (No), the process proceeds to step S305 (see FIG. 11A).

ステップS317:CPU121は、調整済みフラグが立っていない基準点間の距離の中に同じ同一距離フラグを有する基準点間の距離があるか否かを判定する。   Step S317: The CPU 121 determines whether or not there is a distance between reference points having the same distance flag among the distances between reference points for which no adjusted flag is set.

ある(Yes)と判定された場合には、処理は、ステップS314に進む。ない(No)と判定された場合には、処理は、ステップS305に進む。   If it is determined that there is (Yes), the process proceeds to step S314. If it is determined that there is no (No), the process proceeds to step S305.

CPU121は、ステップS314〜ステップS317を繰り返すことによって、同一距離フラグのある基準点間の距離の幅が、全て1だけ広げられるように処理する。そして、この処理が終えれば、次の基準点間の調整が必要か否かの判定のために、処理は、ステップS305に進む。   The CPU 121 performs processing so that all the widths of the distances between the reference points having the same distance flag are increased by 1 by repeating Steps S314 to S317. When this process is completed, the process proceeds to step S305 to determine whether or not adjustment between the next reference points is necessary.

図11(a)を参照して、ステップS327〜ステップS329を説明する。   With reference to Fig.11 (a), step S327-step S329 are demonstrated.

ステップS327:CPU121は、文字を構成するブロックの最大座標値と最小座標値とを決める。特定の軸に沿った文字の幅をスケーリングした後にどの座標を基準点にするかを決めるためである。   Step S327: The CPU 121 determines the maximum coordinate value and the minimum coordinate value of the blocks constituting the character. This is to determine which coordinate is used as a reference point after scaling the width of a character along a specific axis.

具体的には、スケーリングされた基準点の最大座標値を四捨五入した結果生じた量子化誤差とスケーリングされた基準点の最小座標値を四捨五入した結果生じた量子化誤差とを比較し、量子化誤差が小さいほうの座標値に基づいて、ブロックの座標値を決定する。文字を構成するブロックの大きさは第1の方法で量子化された合計である。   Specifically, the quantization error resulting from rounding the maximum coordinate value of the scaled reference point is compared with the quantization error resulting from rounding the minimum coordinate value of the scaled reference point. The coordinate value of the block is determined based on the coordinate value of which is smaller. The size of the block constituting the character is the sum quantized by the first method.

例えば、スケーリングされた基準点の最大座標値を四捨五入した結果生じた量子化誤差がスケーリングされた基準点の最小座標値を四捨五入した結果生じた量子化誤差より小さい場合は、スケーリングされた基準点の最大座標値がブロックの最大座標値である。ブロックの最小座標値は、ブロックの最大座標値から、文字を構成するブロックの大きさである第1の方法で量子化された合計を引いた値である。   For example, if the quantization error resulting from rounding the maximum coordinate value of the scaled reference point is less than the quantization error resulting from rounding the minimum coordinate value of the scaled reference point, the scaled reference point The maximum coordinate value is the maximum coordinate value of the block. The minimum coordinate value of the block is a value obtained by subtracting the sum quantized by the first method, which is the size of the block constituting the character, from the maximum coordinate value of the block.

例えば、スケーリングされた基準点の最小座標値を四捨五入した結果生じた量子化誤差がスケーリングされた基準点の最大座標値を四捨五入した結果生じた量子化誤差より小さい場合は、スケーリングされた基準点の最小座標値がブロックの最小座標値である。ブロックの最大座標値は、ブロックの最小座標値に、文字を構成するブロックの大きさである第1の方法で量子化された合計を足した値である。   For example, if the quantization error resulting from rounding the minimum coordinate value of the scaled reference point is less than the quantization error resulting from rounding the maximum coordinate value of the scaled reference point, the scaled reference point The minimum coordinate value is the minimum coordinate value of the block. The maximum coordinate value of the block is a value obtained by adding the sum quantized by the first method, which is the size of the block constituting the character, to the minimum coordinate value of the block.

従って、スケーリングされた基準点の最大座標値を四捨五入した結果生じた量子化誤差がスケーリングされた基準点の最小座標値を四捨五入した結果生じた量子化誤差より小さい場合は、量子化された最大座標値が、表示される文字の基準座標値である。さらに、スケーリングされた基準点の最小座標値を四捨五入した結果生じた量子化誤差がスケーリングされた基準点の最大座標値を四捨五入した結果生じた量子化誤差より小さい場合は、量子化された最小座標値が、表示される文字の基準座標値である。   Therefore, if the quantization error resulting from rounding the maximum coordinate value of the scaled reference point is less than the quantization error resulting from rounding the minimum coordinate value of the scaled reference point, the quantized maximum coordinate The value is the reference coordinate value of the displayed character. In addition, if the quantization error resulting from rounding the minimum coordinate value of the scaled reference point is less than the quantization error resulting from rounding the maximum coordinate value of the scaled reference point, the quantized minimum coordinate The value is the reference coordinate value of the displayed character.

ステップS328:CPU121は、文字を構成するブロックの最大座標値と文字を構成するブロックの最小座標値と第2の方法で量子化された距離とに基づいて、グリッドフィティング処理後の基準点の座標値を決める。   Step S328: The CPU 121 determines the reference point after the grid fitting process based on the maximum coordinate value of the block constituting the character, the minimum coordinate value of the block constituting the character, and the distance quantized by the second method. Determine the coordinate values.

ステップS329:CPU121は、文字を構成する複数のストロークの基準点以外の座標を決定する。   Step S329: The CPU 121 determines coordinates other than the reference points of a plurality of strokes constituting the character.

たとえば、距離a/距離bの値が距離A/距離Bの値に最も近くなるように、グリッドフィッティング処理後の点が決定される。ここで、決定される所定の点に対応し、スケーリングされる前の文字上の点は、スケーリングされる前の基準点のうち、互いに隣接する第1の基準点と第2の基準点との間にある。   For example, the point after the grid fitting process is determined so that the value of distance a / distance b is closest to the value of distance A / distance B. Here, the point on the character before being scaled corresponding to the predetermined point to be determined is the difference between the first reference point and the second reference point adjacent to each other among the reference points before being scaled. between.

ここで、距離Aは、スケーリングされる前の文字上の点と第1の基準点との間の距離である。距離Bは、スケーリングされる前の文字上の点と第2の基準点との間の距離である。距離aは、決定される所定の点とS328で決定されたグリッドフィッティング後の第1の基準点との間の距離である。距離bは、決定される所定の点とS328で決定されたグリッドフィッティング後の第2の基準点との間の距離である。   Here, the distance A is a distance between the point on the character before being scaled and the first reference point. The distance B is the distance between the point on the character before being scaled and the second reference point. The distance a is a distance between the predetermined point determined and the first reference point after the grid fitting determined in S328. The distance b is a distance between the predetermined point determined and the second reference point after grid fitting determined in S328.

以下、図11および図12(a)を参照して、グリッドフィッティング処理手順の具体例を説明する。   Hereinafter, a specific example of the grid fitting process procedure will be described with reference to FIGS. 11 and 12A.

ステップS301:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅を計算する。距離X1〜距離X5の幅は、「2.00」、「3.44」、「1.94」、「3.50」および「2.00」である。   Step S301: The CPU 121 calculates the width of the distance between a plurality of reference points obtained to the second decimal place by scaling. The widths of the distance X1 to the distance X5 are “2.00”, “3.44”, “1.94”, “3.50”, and “2.00”.

ステップS302:CPU121は、距離X1〜距離X5の幅(「2.00」、「3.44」、「1.94」、「3.50」および「2.00」)を加算し、加算値「12.88」を四捨五入で量子化することによって、目標値「13」を求める。   Step S302: The CPU 121 adds the widths of the distance X1 to the distance X5 (“2.00”, “3.44”, “1.94”, “3.50”, and “2.00”), and the added value A target value “13” is obtained by quantizing “12.88” by rounding off.

ステップS303:CPU121は、スケーリングされた複数の基準点間の距離の幅のそれぞれを四捨五入で量子化する。距離X1〜距離X5に対応して距離フラグ「1」が割り当てられている(図4(a)参照)ことを考慮して、量子化後の距離の幅は、「2」、「3」、「2」、「4」および「2」である。   Step S303: The CPU 121 quantizes each width of the distance between the plurality of scaled reference points by rounding off. Considering that the distance flag “1” is assigned corresponding to the distance X1 to the distance X5 (see FIG. 4A), the width of the distance after quantization is “2”, “3”, “2”, “4” and “2”.

ステップS304:CPU121は、距離X1、距離X3および距離X5に付された同一距離フラグと、距離X2および距離X4に付された同一距離フラグとを参照して、距離X1、距離X3および距離X5の幅を「2」に、距離X2および距離X4の幅を「3」に調整する。   Step S304: The CPU 121 refers to the same distance flag attached to the distance X1, the distance X3 and the distance X5 and the same distance flag attached to the distance X2 and the distance X4, and sets the distance X1, distance X3 and distance X5. The width is adjusted to “2”, and the widths of the distance X2 and the distance X4 are adjusted to “3”.

ステップS305:CPU121は、同一距離処理後の距離の幅の合計「12」が目標値「13」と同じであるか否かを判定する。同じでない(No)と判定され、処理は、S306に進む。   Step S305: The CPU 121 determines whether or not the total distance width “12” after the same distance processing is the same as the target value “13”. It is determined that they are not the same (No), and the process proceeds to S306.

ステップS306:CPU121は、同一距離処理後の距離の幅の合計「12」が目標値「13」より小さいか否かを判定する。小さい(Yes)と判定され、処理は、ステップS311に進む。   Step S306: The CPU 121 determines whether or not the total distance width “12” after the same distance processing is smaller than the target value “13”. It determines with it being small (Yes) and a process progresses to step S311.

ステップS311:CPU121は、調整済みフラグの立っていない基準点間の距離(距離X1〜距離X5)の中に、量子化誤差の最大切り下げの基準点間の距離(第2誤差「−0.50」を有する距離X4)があるか否かを判定して、最大切り下げとなる基準点間(距離X4)を抽出する。ここで、(Yes)と判定し、処理は、ステップS312に進む。   Step S <b> 311: The CPU 121 determines that the distance between the reference points with the maximum round-off of the quantization error (the second error “−0.50”) is included in the distance between the reference points with no adjusted flag (distance X <b> 1 to distance X <b> 5). It is determined whether or not there is a distance X4) having “”, and a reference point distance (distance X4) that is the maximum reduction is extracted. Here, it determines with (Yes), and a process progresses to step S312.

ステップS312:CPU121は、調整する基準点間の距離のグループ(距離X2と距離X4)を抽出する。   Step S312: The CPU 121 extracts a group of distances between the reference points to be adjusted (distance X2 and distance X4).

ステップS313:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の数「2」が、広げる予定の幅「1」より大きいか否かを判定する。大きい(Yes)と判定され、処理は、ステップS318に進む。   Step S313: It is determined whether or not the number “2” of the distances between the plurality of reference points included in the extracted group of the same distance flags is larger than the width “1” to be expanded. It determines with it being large (Yes), and a process progresses to step S318.

ステップS318:CPU121は、ステップS312によって抽出されたグループ以外に量子化誤差の最大きり下げとなる基準点間の距離(第2誤差「0.06」を有する距離X3)があるか否かを判定する。ここで、(Yes)と判定され、処理は、ステップS312に進む。   Step S318: The CPU 121 determines whether or not there is a distance between reference points (a distance X3 having a second error “0.06”) that causes the maximum reduction in quantization error other than the group extracted in Step S312. To do. Here, it determines with (Yes) and a process progresses to step S312.

ステップS312:CPU121は、調整する基準点間の距離のグループ(距離X1、距離X3および距離X5)を抽出する。   Step S312: The CPU 121 extracts a group of distances between the reference points to be adjusted (distance X1, distance X3, and distance X5).

ステップS313:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の数「3」が、広げる予定の幅「1」より大きいか否かを判定する。大きい(No)と判定され、処理は、ステップS318に進む。   Step S313: It is determined whether or not the number “3” of the distances between the plurality of reference points included in the extracted group of the same distance flags is larger than the width “1” to be expanded. If it is determined to be larger (No), the process proceeds to step S318.

ステップS318:ステップS312によって抽出されたグループ以外に量子化誤差の最大きり下げとなる基準点間の距離があるか否かを判定する。ない(No)と判定され、処理は、ステップS327に進む(図11(a)参照)。   Step S318: It is determined whether there is a distance between reference points that causes the maximum reduction in quantization error other than the group extracted in Step S312. It is determined that there is no (No), and the process proceeds to step S327 (see FIG. 11A).

以降、CPU121は、ステップS327〜ステップ329を実行し、グリッドフィッティング処理を終了する。   Thereafter, the CPU 121 executes steps S327 to 329, and ends the grid fitting process.

以下、図11および図12(b)を参照して、グリッドフィッティング処理手順の他の具体例を説明する。   Hereinafter, another specific example of the grid fitting processing procedure will be described with reference to FIGS. 11 and 12B.

ステップS301:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅を計算する。距離Y1〜距離Y5の幅は、「5.00」、「2.00」、「2.00」、「2.00」および「3.00」である。   Step S301: The CPU 121 calculates the width of the distance between a plurality of reference points obtained to the second decimal place by scaling. The widths of the distance Y1 to the distance Y5 are “5.00”, “2.00”, “2.00”, “2.00”, and “3.00”.

ステップS302:CPU121は、距離Y1〜距離Y5の幅(「5.00」、「2.00」、「2.00」、「2.00」および「3.00」)を加算し、加算値「14.00」を四捨五入で量子化することによって、目標値「14」を求める。   Step S302: The CPU 121 adds the widths of the distance Y1 to the distance Y5 (“5.00”, “2.00”, “2.00”, “2.00”, and “3.00”), and the added value The target value “14” is obtained by quantizing “14.00” by rounding off.

ステップS303:CPU121は、スケーリングされた複数の基準点間の距離の幅のそれぞれを四捨五入で量子化する。距離Y1〜距離Y5に対応して距離フラグ「1」が割り当てられている(図4(b)参照)ことを考慮して、量子化後の距離の幅は、「5」、「2」、「2」、「2」および「3」である。   Step S303: The CPU 121 quantizes each width of the distance between the plurality of scaled reference points by rounding off. Considering that the distance flag “1” is assigned corresponding to the distance Y1 to the distance Y5 (see FIG. 4B), the width of the distance after quantization is “5”, “2”, “2”, “2” and “3”.

ステップS304:CPU121は、距離Y2および距離Y4に付された同一距離フラグを参照して、距離Y2および距離Y4の幅を「2」に調整する。   Step S304: The CPU 121 refers to the same distance flag attached to the distance Y2 and the distance Y4 and adjusts the widths of the distance Y2 and the distance Y4 to “2”.

ステップS305:CPU121は、同一距離処理後の距離の幅の合計「14」が目標値「14」と同じであるか否かを判定する。同じである(Yes)と判定され、処理は、S327に進む。   Step S305: The CPU 121 determines whether or not the total distance width “14” after the same distance processing is the same as the target value “14”. It is determined that they are the same (Yes), and the process proceeds to S327.

以降、CPU121は、ステップS327〜ステップ329を実行し、グリッドフィッティング処理を終了する。   Thereafter, the CPU 121 executes steps S327 to 329, and ends the grid fitting process.

以下、図11および図13(a)を参照して、グリッドフィッティング処理手順の他の具体例を説明する。   Hereinafter, another specific example of the grid fitting process procedure will be described with reference to FIGS. 11 and 13A.

ステップS301:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅を計算する。距離X1〜距離X11の幅は、「1.00」、「0.44」、「1.00」、「2.81」、「1.00」、「1.81」、「1.00」、「2.88」、「1.00」、「0.50」、および「1.00」である。   Step S301: The CPU 121 calculates the width of the distance between a plurality of reference points obtained to the second decimal place by scaling. The widths of the distance X1 to the distance X11 are “1.00”, “0.44”, “1.00”, “2.81”, “1.00”, “1.81”, “1.00”. , “2.88”, “1.00”, “0.50”, and “1.00”.

ステップS302:CPU121は、距離X1〜距離X11の幅を加算し、加算値「14.44」を四捨五入で量子化することによって、目標値「14」を求める。   Step S302: The CPU 121 calculates the target value “14” by adding the widths of the distance X1 to the distance X11 and quantizing the added value “14.44” by rounding off.

ステップS303:CPU121は、スケーリングされた複数の基準点間の距離の幅のそれぞれを四捨五入で量子化する。距離X1〜距離X11に対応して距離フラグ「0」または「1」が割り当てられている(図7(a)参照)ことを考慮して、量子化後の距離の幅は、「1」、「0」、「1」、「3」、「1」、「2」、「1」、「3」、「1」、「1」、および「1」である。   Step S303: The CPU 121 quantizes each width of the distance between the plurality of scaled reference points by rounding off. Considering that the distance flag “0” or “1” is assigned corresponding to the distance X1 to the distance X11 (see FIG. 7A), the width of the distance after quantization is “1”, “0”, “1”, “3”, “1”, “2”, “1”, “3”, “1”, “1”, and “1”.

ステップS304:CPU121は、距離X1、距離X3、距離X5、距離X7、距離X9および距離X11に付された同一距離フラグを参照して、距離X1、距離X3、距離X5、距離X7、距離X9および距離X11の幅を「1」に調整する。さらに、CPU121は、距離X2および距離X10に付された同一距離フラグを参照して、距離X2および距離X10の幅を「0」に調整する。さらにCPU121は、距離X4および距離X8に付された同一距離フラグを参照して、距離X4および距離X8の幅を「3」に調整する。   Step S304: The CPU 121 refers to the same distance flag attached to the distance X1, the distance X3, the distance X5, the distance X7, the distance X9 and the distance X11, and the distance X1, the distance X3, the distance X5, the distance X7, the distance X9 and The width of the distance X11 is adjusted to “1”. Furthermore, the CPU 121 refers to the same distance flag attached to the distance X2 and the distance X10 and adjusts the widths of the distance X2 and the distance X10 to “0”. Further, the CPU 121 refers to the same distance flag attached to the distance X4 and the distance X8 and adjusts the widths of the distance X4 and the distance X8 to “3”.

ステップS305:CPU121は、同一距離処理後の距離の幅の合計「14」が目標値「14」と同じであるか否かを判定する。同じである(Yes)と判定され、処理は、S327に進む。   Step S305: The CPU 121 determines whether or not the total distance width “14” after the same distance processing is the same as the target value “14”. It is determined that they are the same (Yes), and the process proceeds to S327.

以降、CPU121は、ステップS327〜ステップ329を実行し、グリッドフィッティング処理を終了する。   Thereafter, the CPU 121 executes steps S327 to 329, and ends the grid fitting process.

以下、図11および図13(b)を参照して、グリッドフィッティング処理手順の他の具体例を説明する。   Hereinafter, another specific example of the grid fitting process procedure will be described with reference to FIGS. 11 and 13B.

ステップS301:CPU121は、スケーリングによって小数第2位まで求められた複数の基準点間の距離の幅を計算する。距離Y1〜距離Y11の幅は、「1.00」、「2.56」、「1.00」、「2.38」、「1.00」、「1.44」、「1.00」、「1.81」、「1.00」、「1.63」および「1.00」である。   Step S301: The CPU 121 calculates the width of the distance between a plurality of reference points obtained to the second decimal place by scaling. The widths of the distance Y1 to the distance Y11 are “1.00”, “2.56”, “1.00”, “2.38”, “1.00”, “1.44”, “1.00”. , “1.81”, “1.00”, “1.63”, and “1.00”.

ステップS302:CPU121は、距離Y1〜距離Y11の幅を加算し、加算値「15.81」を四捨五入で量子化することによって、目標値「16」を求める。   Step S302: The CPU 121 adds the widths of the distances Y1 to Y11 and quantizes the addition value “15.81” by rounding off to obtain the target value “16”.

ステップS303:CPU121は、スケーリングされた複数の基準点間の距離の幅のそれぞれを四捨五入で量子化する。距離Y1〜距離Y11に対応して距離フラグ「1」が割り当てられている(図7(b)参照)ことを考慮して、量子化後の距離の幅は、「1」、「3」、「1」、「2」、「1」、「1」、「1」、「2」、「1」、「2」および「1」である。   Step S303: The CPU 121 quantizes each width of the distance between the plurality of scaled reference points by rounding off. Considering that the distance flag “1” is assigned corresponding to the distance Y1 to the distance Y11 (see FIG. 7B), the width of the distance after quantization is “1”, “3”, “1”, “2”, “1”, “1”, “1”, “2”, “1”, “2” and “1”.

ステップS304:CPU121は、距離Y1、距離Y3、距離Y5、距離Y7、距離Y9および距離Y11に付された同一距離フラグを参照して、距離Y1、距離Y3、距離Y5、距離Y7、距離Y9および距離Y11の幅を「1」に調整する。さらに、CPU121は、距離Y2および距離Y4に付された同一距離フラグを参照して、距離Y2および距離Y4の幅を「3」に調整する。さらにCPU121は、距離Y8および距離Y10に付された同一距離フラグを参照して、距離Y8および距離Y10の幅を「2」に調整する。   Step S304: The CPU 121 refers to the same distance flag attached to the distance Y1, the distance Y3, the distance Y5, the distance Y7, the distance Y9 and the distance Y11, and the distance Y1, the distance Y3, the distance Y5, the distance Y7, the distance Y9 and The width of the distance Y11 is adjusted to “1”. Further, the CPU 121 refers to the same distance flag attached to the distance Y2 and the distance Y4, and adjusts the widths of the distance Y2 and the distance Y4 to “3”. Further, the CPU 121 refers to the same distance flag attached to the distance Y8 and the distance Y10, and adjusts the widths of the distance Y8 and the distance Y10 to “2”.

ステップS305:CPU121は、同一距離処理後の距離の幅の合計「17」が目標値「16」と同じであるか否かを判定する。同じでない(No)と判定され、処理は、S306に進む。   Step S305: The CPU 121 determines whether or not the total distance width “17” after the same distance processing is the same as the target value “16”. It is determined that they are not the same (No), and the process proceeds to S306.

ステップS306:CPU121は、同一距離処理後の距離の幅の合計「17」が目標値「16」より小さいか否かを判定する。小さくない(No)と判定された場合には、処理は、ステップS307に進む。
ステップS307:CPU121は、距離Y1〜距離Y11に対応する距離フラグ「1」の合計「11」が目標値「16」より大きいか否かを判定する(図7(b)参照)。
Step S306: The CPU 121 determines whether or not the total distance width “17” after the same distance processing is smaller than the target value “16”. If it is determined that it is not small (No), the process proceeds to step S307.
Step S307: The CPU 121 determines whether or not the total “11” of the distance flags “1” corresponding to the distances Y1 to Y11 is larger than the target value “16” (see FIG. 7B).

大きくない(No)と判定された場合には、処理は、ステップS319に進む(図11(c)参照)。   If it is determined that it is not large (No), the process proceeds to step S319 (see FIG. 11C).

ステップS319:CPU121は、調整済みフラグの立っていない基準点間の距離(距離Y1〜距離Y11)の中に、量子化誤差の最大切り上げの基準点間の距離(第2誤差「0.63」を有する距離Y4)があるか否かを判定して、最大切り上げとなる基準点間(距離Y4)を抽出する。ここで、(Yes)と判定され、処理は、ステップS320に進む。   Step S319: The CPU 121 determines the distance (second error “0.63” between the reference points where the quantization error is rounded up to the maximum among the distances between the reference points where the adjusted flag is not set (distance Y1 to distance Y11). It is determined whether or not there is a distance Y4), and a reference point (distance Y4) that is the maximum round-up is extracted. Here, it determines with (Yes) and a process progresses to step S320.

ステップS320:CPU121は、調整する基準点間の距離のグループ(距離Y2と距離Y4)を抽出する。   Step S320: The CPU 121 extracts a group of distances between the reference points to be adjusted (distance Y2 and distance Y4).

ステップS321:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離(距離Y2と距離Y4)の幅(「3」)の全てが、距離Y1〜距離Y11に対応する距離フラグ「1」より1以上であるか否かを判定する(図7(b)参照)。1以上である(Yes)と判定され、処理は、ステップS322に進む。   Step S321: All the widths ("3") of the distances (distances Y2 and Y4) between the plurality of reference points included in the extracted group of the same distance flags are the distance flag " From 1 ”, it is determined whether it is 1 or more (see FIG. 7B). It is determined that the number is 1 or more (Yes), and the process proceeds to step S322.

ステップS322:CPU121は、抽出された基準点間の量子化された距離(距離Y2と距離Y4)の幅の値を1だけ小さくする。距離Y2および距離Y4の幅は、調整によって「2」になる。   Step S322: The CPU 121 decreases the value of the width of the quantized distance (distance Y2 and distance Y4) between the extracted reference points by one. The widths of the distance Y2 and the distance Y4 become “2” by adjustment.

ステップS323:CPU121は、距離Y2および距離Y4に対応して調整済みフラグを立てて、距離Y2および距離Y4を再度調整しないようにする。   Step S323: The CPU 121 sets an adjusted flag corresponding to the distance Y2 and the distance Y4 so that the distance Y2 and the distance Y4 are not adjusted again.

ステップS324:CPU121は、抽出された基準点間の距離に同一距離フラグが設定されているか否かを判定する。設定されている(Yes)と判定され、処理は、ステップS325に進む。   Step S324: The CPU 121 determines whether or not the same distance flag is set for the distance between the extracted reference points. It is determined that it is set (Yes), and the process proceeds to step S325.

ステップS325:CPU121は、調整済みフラグが立っていない基準点間の距離の中に同じ同一距離フラグを有する基準点間の距離があるか否かを判定する。ない(No)と判定され、処理は、ステップS305に進む。   Step S325: The CPU 121 determines whether or not there is a distance between reference points having the same same distance flag among the distances between reference points for which no adjusted flag is set. It is determined that there is no (No), and the process proceeds to step S305.

ステップS305:CPU121は、調整1回後の距離の幅の合計「15」が目標値「16」と同じであるか否かを判定する。同じでない(No)と判定され、処理は、S306に進む。   Step S305: The CPU 121 determines whether or not the total distance width “15” after one adjustment is the same as the target value “16”. It is determined that they are not the same (No), and the process proceeds to S306.

ステップS306:CPU121は、調整1回後の距離の幅の合計「15」が目標値「16」より小さいか否かを判定する。小さい(Yes)と判定され、処理は、ステップS311に進む。   Step S306: The CPU 121 determines whether or not the total distance width “15” after one adjustment is smaller than the target value “16”. It determines with it being small (Yes) and a process progresses to step S311.

ステップS311:CPU121は、調整済みフラグの立っていない基準点間の距離(距離Y1、距離Y3および距離Y5〜距離Y11)の中に、量子化誤差の最大切り下げの基準点間の距離(第2誤差「−0.44」を有する距離Y6)があるか否かを判定して、最大切り下げとなる基準点間(距離Y6)を抽出する。ここで、(Yes)と判定され、処理は、ステップS312に進む。   Step S <b> 311: The CPU 121 determines the distance between the reference points for the maximum devaluation of the quantization error (the second Y 2, the distance Y 3 and the distance Y 5 to the distance Y 11) between the reference points where the adjusted flag is not set It is determined whether or not there is a distance Y6) having an error “−0.44”, and a reference point distance (distance Y6) that is the maximum reduction is extracted. Here, it determines with (Yes) and a process progresses to step S312.

ステップS312:CPU121は、調整する基準点間の距離のグループ(距離Y6)を抽出する。   Step S312: The CPU 121 extracts a group of distances between the reference points to be adjusted (distance Y6).

ステップS313:抽出された同一距離フラグのグループに含まれる複数の基準点間の距離の数「1」が、広げる予定の幅「1」より大きいか否かを判定する。大きくない(No)と判定され、処理は、ステップS314に進む。   Step S313: It is determined whether or not the number “1” of the distances between the plurality of reference points included in the extracted group of the same distance flags is larger than the width “1” to be expanded. It is determined that it is not large (No), and the process proceeds to step S314.

ステップS314:CPU121は、抽出された基準点間の量子化された距離の幅の値を1だけ大きくする。距離Y6の幅は、調整によって「2」になる。   Step S314: The CPU 121 increases the width value of the quantized distance between the extracted reference points by one. The width of the distance Y6 becomes “2” by adjustment.

ステップS315:CPU121は、距離Y6に対応して調整済みフラグを立てて、距離Y6を再度調整しないようにする。   Step S315: The CPU 121 sets an adjusted flag corresponding to the distance Y6 so that the distance Y6 is not adjusted again.

ステップS316:CPU121は、抽出された基準点間の距離に同一距離フラグが設定されているか否かを判定する。設定されていない(No)と判定され、処理は、ステップS305に進む(図11(a)参照)。   Step S316: The CPU 121 determines whether or not the same distance flag is set for the distance between the extracted reference points. It is determined that it is not set (No), and the process proceeds to step S305 (see FIG. 11A).

ステップS323:CPU121は、距離Y2および距離Y4に対応して調整済みフラグを立てて、距離Y2および距離Y4を再度調整しないようにする。   Step S323: The CPU 121 sets an adjusted flag corresponding to the distance Y2 and the distance Y4 so that the distance Y2 and the distance Y4 are not adjusted again.

ステップS324:CPU121は、抽出された基準点間の距離に同一距離フラグが設定されているか否かを判定する。設定されている(Yes)と判定され、処理は、ステップS325に進む。   Step S324: The CPU 121 determines whether or not the same distance flag is set for the distance between the extracted reference points. It is determined that it is set (Yes), and the process proceeds to step S325.

ステップS325:CPU121は、調整済みフラグが立っていない基準点間の距離の中に同じ同一距離フラグを有する基準点間の距離があるか否かを判定する。ない(No)と判定され、処理は、ステップS305に進む。   Step S325: The CPU 121 determines whether or not there is a distance between reference points having the same same distance flag among the distances between reference points for which no adjusted flag is set. It is determined that there is no (No), and the process proceeds to step S305.

ステップS305:CPU121は、調整2回後の距離の幅の合計「16」が目標値「16」と同じであるか否かを判定する。同じである(Yes)と判定され、処理は、S327に進む。   Step S305: The CPU 121 determines whether or not the total distance width “16” after the second adjustment is the same as the target value “16”. It is determined that they are the same (Yes), and the process proceeds to S327.

以降、CPU121は、ステップS327〜ステップ329を実行し、グリッドフィッティング処理を終了する。   Thereafter, the CPU 121 executes steps S327 to 329, and ends the grid fitting process.

以上、図11〜図13を参照してグリッドフィッティング処理手順の詳細をステップごとに説明した。   The details of the grid fitting process procedure have been described step by step with reference to FIGS.

図14は、文字「中」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとスケーリング後の座標データをグリッドフィッティングした後の座標データとを示す。「グリッドフィッティング後のX座標」は、グリッドフィッティングした後の座標のうちX座標成分を示す。「グリッドフィッティング後のY座標」は、グリッドフィッティングした後の座標のうちY座標成分を示す。   FIG. 14 shows coordinate data included in the character data 142 of the character “medium”, coordinate data after scaling these coordinate data, and coordinate data after grid fitting the scaled coordinate data. “X coordinate after grid fitting” indicates an X coordinate component of coordinates after grid fitting. “Y coordinate after grid fitting” indicates the Y coordinate component of the coordinates after grid fitting.

スケーリングした後の点P1(8.94,15.00)はグリッドフィッティングされることによってグリッドフィッティングした後の点P1(9,15)に変更される。   The point P1 (8.94, 15.00) after scaling is changed to the point P1 (9, 15) after grid fitting by grid fitting.

図15は、文字「晶」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとスケーリングした後の座標データをグリッドフィッティングした後の座標データとを示す。「グリッドフィッティング後のX座標」は、グリッドフィッティングした後の座標のうちX座標成分を示す。「グリッドフィッティング後のY座標」は、グリッドフィッティングした後の座標のうちY座標成分を示す。   FIG. 15 shows coordinate data included in the character data 142 of the character “Crystal”, coordinate data after scaling these coordinate data, and coordinate data after grid fitting the scaled coordinate data. “X coordinate after grid fitting” indicates an X coordinate component of coordinates after grid fitting. “Y coordinate after grid fitting” indicates the Y coordinate component of the coordinates after grid fitting.

スケーリングした後の点P1(13.69,15.88)はグリッドフィッティングされることによってグリッドフィッティングした後の点P1(14,16)に変更される。   The point P1 (13.69, 15.88) after scaling is changed to the point P1 (14, 16) after grid fitting by the grid fitting.

以上、図を参照してグリッドフィッティング処理手順の詳細をステップごとに説明した。   The details of the grid fitting process procedure have been described step by step with reference to the drawings.

図16は、本発明の表示処理手順によって生成された文字「中」を示す描画データを表示デバイス130に表示した例を示す。16ドット×16ドットの表示面に、線幅および線間隔が均一である文字「中」が表示される。   FIG. 16 shows an example in which drawing data indicating the character “middle” generated by the display processing procedure of the present invention is displayed on the display device 130. A character “medium” having a uniform line width and line spacing is displayed on a 16-dot × 16-dot display surface.

図17は、本発明の表示処理手順によって生成された文字「晶」を示す描画データを表示デバイス130に表示した例を示す。16ドット×16ドットの表示面に、線幅および線間隔が均一である文字「晶」が表示される。   FIG. 17 shows an example in which drawing data indicating the character “crystal” generated by the display processing procedure of the present invention is displayed on the display device 130. A character “crystal” having a uniform line width and line spacing is displayed on a 16-dot × 16-dot display surface.

以上、図1〜図17を参照して本発明の実施の形態を説明した。   The embodiment of the present invention has been described above with reference to FIGS.

本発明の実施の形態によって説明された例によれば、CPU121が「複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成手段」と、「前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成手段」と、「前記スケーリングされた基準点の各基準点間の距離の幅を量子化することによって、量子化された距離を生成する第2生成手段」と、「前記第2生成手段で生成された距離の幅の合計が前記目標値に近づくように、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように基準点間の距離の幅を調整する調整手段」と、「前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示手段」とに対応する。   According to the example described by the embodiment of the present invention, the CPU 121 “a first generation unit that generates a scaled reference point by scaling a character or a graphic including a plurality of reference points”, Among the scaled reference points, target value generating means for generating a target value by quantizing the distance between the maximum reference point having the maximum value and the minimum reference point having the minimum value, and A second generation means for generating a quantized distance by quantizing a distance width between the reference points of the scaled reference points; and a width of the distance generated by the second generation means The reference points are set such that the width of at least one distance among the quantized distances between the reference points is equal to the width of at least one other distance after adjustment so that the sum of the values approaches the target value. And adjusting means for adjusting the width of the distance "," on the basis of the reference point which is readjusted to match the adjusted distance, corresponding to the display unit "for displaying the scaled characters or graphics.

しかし、図1〜図17に示される実施の形態は、本発明の文字表示装置の機能の一例を示したに過ぎない。上述した各手段の機能が達成される限りは、任意の構成を有する文字表示装置が本発明の範囲内に含まれ得る。   However, the embodiment shown in FIGS. 1 to 17 merely shows an example of the function of the character display device of the present invention. As long as the functions of the respective means described above are achieved, a character display device having an arbitrary configuration can be included in the scope of the present invention.

例えば、上述した各手段は、ハードウェアによって実現されてもよいし、ソフトウェアによって実現されてもよいし、ハードウェアとソフトウェアとによって実現されてもよい。   For example, each unit described above may be realized by hardware, may be realized by software, or may be realized by hardware and software.

例えば、文字表示プログラム141は、文字表示装置100の出荷時に、補助記憶装置140に予め格納されていてもよい。   For example, the character display program 141 may be stored in advance in the auxiliary storage device 140 when the character display device 100 is shipped.

あるいは、文字表示装置100の出荷後に、文字表示プログラム141を補助記憶装置140に格納するようにしてもよい。例えば、ユーザがインターネット上の特定のウェブサイトから文字表示プログラム141を有料または無料でダウンロードし、そのダウンロードされたプログラムを文字表示装置100にインストールするようにしてもよい。文字表示プログラム141がフレキシブルディスク、CD−ROM、DVD−ROMなどのコンピュータ読み取り可能な記録媒体に記録されている場合には、入力装置を用いて文字表示プログラム141をコンピュータにインストールするようにしてもよい。インストールされたプログラムは、補助記憶装置140に格納される。   Alternatively, the character display program 141 may be stored in the auxiliary storage device 140 after the character display device 100 is shipped. For example, the user may download the character display program 141 from a specific website on the Internet for a fee or free of charge, and install the downloaded program in the character display device 100. When the character display program 141 is recorded on a computer-readable recording medium such as a flexible disk, CD-ROM, or DVD-ROM, the character display program 141 may be installed in the computer using an input device. Good. The installed program is stored in the auxiliary storage device 140.

さらに、例えば、上述した実施の形態では、文字をスケーリングし、スケーリングされた文字を表示する場合を例にとり説明したが、本発明はこれに限定されない。文字に代えて、あるいは文字に加えて、図形をスケーリングし、スケーリングされた図形を表示する場合にも本発明を適用することができる。この場合、文字表示プログラム141に代えて、あるいは文字表示プログラム141に加えて図形表示プログラムを使用するようにし、文字データ142に代えて、あるいは文字データ142に加えて図形データを使用するようにすればよい。図形表示プログラムもまた、文字表示プログラム141と同様のステップを含み得る。文字データと同様に図形データもまた少なくとも1つの基準点を含み得る。   Furthermore, for example, in the above-described embodiment, the case where characters are scaled and the scaled characters are displayed has been described as an example, but the present invention is not limited to this. The present invention can also be applied to a case where a graphic is scaled instead of or in addition to a character and the scaled graphic is displayed. In this case, a graphic display program is used instead of the character display program 141 or in addition to the character display program 141, and graphic data is used instead of the character data 142 or in addition to the character data 142. That's fine. The graphic display program can also include the same steps as the character display program 141. Like character data, graphic data can also include at least one reference point.

なお、本明細書中で用いられる「文字」は、例えば、ひらがな、カタカナ、漢字、アルファベット、絵文字および数字を含む。更に、本明細書中で用いられる「図形」は、例えば、文字の一部、模様、記号を含む。   The “characters” used in the present specification include, for example, hiragana, katakana, kanji, alphabets, pictograms, and numbers. Furthermore, “graphics” used in the present specification includes, for example, a part of characters, a pattern, and a symbol.

図4および図7を参照して説明したように、同一距離フラグが割り付けられる距離は、予め決められており、基準点間データに含まれているが、同一距離フラグが割り付けられる距離が、予め決められていることに限定されない。同一距離フラグの割り付けが同一距離フラグ取得プログラム141dを実行することによって実現し得る。   As described with reference to FIGS. 4 and 7, the distance to which the same distance flag is assigned is determined in advance and is included in the data between the reference points, but the distance to which the same distance flag is assigned is determined in advance. It is not limited to being decided. Allocation of the same distance flag can be realized by executing the same distance flag acquisition program 141d.

図18は、本発明の同一距離フラグ取得処理手順を示す。同一距離フラグ取得処理手順は、CPU121が同一距離フラグ取得プログラム141dを実行することによって実現される。   FIG. 18 shows the same distance flag acquisition processing procedure of the present invention. The same distance flag acquisition processing procedure is realized by the CPU 121 executing the same distance flag acquisition program 141d.

図19は、図5に示された文字「晶」の文字データ142に含まれる基準点間データに同一距離フラグを割り付ける手順を説明するための図である。   FIG. 19 is a diagram for explaining a procedure for assigning the same distance flag to the data between reference points included in the character data 142 of the character “Crystal” shown in FIG.

「距離」は、基準点間のX軸方向の距離も幅を示す。この距離は、スケーリングされる前の距離である。例えば、距離X1のX軸方向の幅は「16」である。   “Distance” also indicates the width in the X-axis direction between the reference points. This distance is the distance before being scaled. For example, the width of the distance X1 in the X-axis direction is “16”.

以下、図18および図19を参照して、本発明の同一距離フラグ取得処理手順を説明する。   Hereinafter, the same distance flag acquisition processing procedure of the present invention will be described with reference to FIGS.

ステップS401:距離「i」に初期値「1」を設定し、対象となる距離の数「n」に初期値「N」を設定する。例えば、対象となる距離が距離X1〜距離X11の場合には、n=11である。   Step S401: An initial value “1” is set for the distance “i”, and an initial value “N” is set for the number of target distances “n”. For example, when the target distance is the distance X1 to the distance X11, n = 11.

ステップS402:距離「i」に既に同一距離フラグが付されているか否かを判定する。同一距離フラグが既に割り付けられているものを対象外にするためである。付されている(Yes)と判定された場合には、処理はステップS411に進む。付されていない(No)と判定された場合には、処理はステップS403に進む。   Step S402: It is determined whether or not the same distance flag is already attached to the distance “i”. This is because the same distance flag already assigned is excluded. If it is determined (Yes), the process proceeds to step S411. If it is determined that it is not attached (No), the process proceeds to step S403.

ステップS403:距離「j」に初期値「i+1」を設定する。   Step S403: An initial value “i + 1” is set to the distance “j”.

ステップS404:距離jに既に同一距離フラグが付されているか否かを判定する。同一距離フラグが既に割り付けられているものを対象外にするためである。   Step S404: It is determined whether or not the same distance flag is already attached to the distance j. This is because the same distance flag already assigned is excluded.

ステップS405:距離iの幅と距離jの幅との差が所定の大きさ「α」以下か否かを判定する。所定の大きさ「α」以下である(Yes)と判定された場合には、処理は、ステップS406に進む。所定の大きさ「α」以下でない(No)と判定された場合には、処理は、ステップS407に進む。本発明の実施の形態では、α=1とする。   Step S405: It is determined whether or not the difference between the width of the distance i and the width of the distance j is equal to or smaller than a predetermined magnitude “α”. If it is determined that the predetermined size is “α” or less (Yes), the process proceeds to step S406. If it is determined that the predetermined size is not less than “α” (No), the process proceeds to step S407. In the embodiment of the present invention, α = 1.

ステップS406:同一距離フラグを付すための候補として距離jを設定する。   Step S406: The distance j is set as a candidate for attaching the same distance flag.

ステップS407:「j」をインクリメントする(「j」に「j+1」を代入する)。   Step S407: “j” is incremented (“j + 1” is substituted for “j”).

ステップS408:「j」が対象となる距離の数「N」より大きいか否かを判定する。大きい(Yes)と判定された場合には、処理はステップS409に進む。大きくない(No)と判定された場合には、処理はステップS404に進む。   Step S408: It is determined whether or not “j” is larger than the target distance number “N”. If it is determined that the value is large (Yes), the process proceeds to step S409. If it is determined that it is not large (No), the process proceeds to step S404.

ステップS409:同一距離フラグを付すための候補が既に設定されているか否かを判定する。候補が既に設定されている(Yes)と判定された場合には、処理は、ステップS410に進む。候補が設定されていない(No)と判定された場合には、処理は、ステップS411に進む。   Step S409: It is determined whether or not a candidate for attaching the same distance flag has already been set. If it is determined that a candidate has already been set (Yes), the process proceeds to step S410. If it is determined that no candidate is set (No), the process proceeds to step S411.

ステップS404〜ステップS409を繰り返すことによって、i=1(距離X1が基準)の場合には、同一距離フラグを付すための候補として距離X1、距離X3、距離X5、距離X7、距離X9、距離X11が設定される。i=2(距離X2が基準)の場合には、同一距離フラグを付すための候補として距離X2、距離X10が設定される。i=4(距離X4が基準)の場合には、同一距離フラグを付すための候補として距離X4、距離X8が設定される。i=6(距離X6が基準)の場合には、同一距離フラグを付すための候補として、他に候補がないので距離X6のみが設定される。   By repeating steps S404 to S409, if i = 1 (distance X1 is a reference), distance X1, distance X3, distance X5, distance X7, distance X9, distance X11 are candidates for attaching the same distance flag. Is set. When i = 2 (distance X2 is a reference), distance X2 and distance X10 are set as candidates for attaching the same distance flag. When i = 4 (distance X4 is the reference), distance X4 and distance X8 are set as candidates for attaching the same distance flag. When i = 6 (distance X6 is a reference), only the distance X6 is set because there are no other candidates for attaching the same distance flag.

図19を参照して説明する場合には、所定の大きさを「3」とすると、幅「7」を有する距離X2と幅「8」を有する距離X10との差が1であるため、同じ値の同一距離フラグが割り付けられる。   In the description with reference to FIG. 19, if the predetermined size is “3”, the difference between the distance X2 having the width “7” and the distance X10 having the width “8” is 1, and thus the same. The same distance flag of the value is assigned.

ステップS410:同じ値の同一距離フラグを割り付ける。値は、1から順に用いる。   Step S410: The same distance flag having the same value is assigned. Values are used in order from 1.

距離X1、距離X3、距離X5、距離X7、距離X9、距離X11には、値「1」である同一距離フラグが割り付けられる。距離X2、距離X10には、値「2」である同一距離フラグが割り付けられる。距離X4、距離X8には、値「3」である同一距離フラグが割り付けられる。このようにして、元々は違う大きさをも含む複数の距離であっても、同じ値の同一距離フラグを割り付けることによって、同じ大きさに調整するグループとしてまとめることができる。   The same distance flag having the value “1” is assigned to the distance X1, the distance X3, the distance X5, the distance X7, the distance X9, and the distance X11. The same distance flag having the value “2” is assigned to the distance X2 and the distance X10. The same distance flag having the value “3” is assigned to the distance X4 and the distance X8. In this manner, even a plurality of distances originally including different sizes can be grouped as a group adjusted to the same size by assigning the same distance flag having the same value.

ステップS411:「i」をインクリメントする(「i」に「i+1」を代入する)。   Step S411: “i” is incremented (“i + 1” is substituted for “i”).

ステップS412:「i」が対象となる距離の数「N」と同じか否かを判定する。同じ(Yes)と判定された場合には、処理は終了する。同じでない(No)と判定された場合には、処理はステップS402に進む。   Step S412: It is determined whether or not “i” is equal to the target distance number “N”. If it is determined that they are the same (Yes), the process ends. If it is determined that they are not the same (No), the process proceeds to step S402.

図18および図19を参照して説明したように、本発明の同一距離フラグ取得プログラムによれば、スケーリングされた基準点間の距離のうち、距離を同じにするものを決定し、同一距離フラグを割り付けることができる。
本発明では、同一距離取得プログラムは同一距離フラグが図1に示される文字データ(142)に予め設定されていない時などに実行されるものであり、図8を参照して説明されたステップS101を実行することによってデータを読み込みの後、実行され、同一距離取得プログラムを実行することによって同一距離フラグを取得の後、ステップS102を実行することによってスケーリングが行われることで、本発明での同一距離フラグの活用を可能にする。
As described with reference to FIGS. 18 and 19, according to the same distance flag acquisition program of the present invention, the same distance flag between the scaled reference points is determined and the same distance flag is determined. Can be assigned.
In the present invention, the same distance acquisition program is executed when the same distance flag is not set in advance in the character data (142) shown in FIG. 1, and so on. Step S101 described with reference to FIG. Is executed after reading the data, and after acquiring the same distance flag by executing the same distance acquisition program, the scaling is performed by executing step S102. Enables the use of distance flags.

以上のように、本発明の好ましい実施形態を用いて本発明を例示してきたが、本発明は、この実施形態に限定して解釈されるべきものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。本明細書において引用した特許、特許出願および文献は、その内容自体が具体的に本明細書に記載されているのと同様にその内容が本明細書に対する参考として援用されるべきであることが理解される。   As mentioned above, although this invention has been illustrated using preferable embodiment of this invention, this invention should not be limited and limited to this embodiment. It is understood that the scope of the present invention should be construed only by the claims. It is understood that those skilled in the art can implement an equivalent range based on the description of the present invention and the common general technical knowledge from the description of specific preferred embodiments of the present invention. Patents, patent applications, and documents cited herein should be incorporated by reference in their entirety, as if the contents themselves were specifically described herein. Understood.

本発明の文字図形表示装置、プログラムおよび記録媒体によれば、量子化された距離の幅の合計が目標値に近づくように、基準点間の距離の幅を調整する。この場合には、量子化された各基準点間の距離の幅のうち少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが調整後に等しくなるように、基準点間の距離の幅を調整する。従って、少なくとも1つの距離の幅と他の少なくとも1つの距離の幅とが異なった距離の幅に変更されることを防ぐことができる。その結果、文字または図形に含まれる線の幅、線の間隔を調整前後で所望の状態に保持することができる。   According to the character graphic display device, the program, and the recording medium of the present invention, the width of the distance between the reference points is adjusted so that the total width of the quantized distance approaches the target value. In this case, the width of the distance between the reference points so that the width of at least one distance among the quantized distances of the reference points is equal to the width of at least one other distance after adjustment. Adjust. Therefore, it is possible to prevent the width of at least one distance and the width of at least one other distance from being changed to different distances. As a result, the width of the line and the interval between the lines included in the character or figure can be maintained in a desired state before and after the adjustment.

本発明の実施の形態の文字表示装置100の構成を示す図である。It is a figure which shows the structure of the character display apparatus 100 of embodiment of this invention. 256×256メッシュで表示されたアウトラインフォントの文字「中」を示す図である。It is a figure which shows the character "medium" of the outline font displayed by 256 * 256 mesh. 図2に示された文字「中」の文字データ142に含まれる座標データを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "medium" shown by FIG. 図2に示された文字「中」の文字データ142に含まれる基準点間データを示す図である。It is a figure which shows the data between the reference points contained in the character data 142 of the character "medium" shown by FIG. 256×256メッシュで表示されたアウトラインフォントの文字「晶」を示す図である。It is a figure which shows the character "crystal" of the outline font displayed by 256 * 256 mesh. 図5に示された文字「晶」の文字データ142に含まれる座標データを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "crystal" shown by FIG. 図5に示された文字「晶」の文字データ142に含まれる基準点間データを示す図である。It is a figure which shows the data between reference | standard points contained in the character data 142 of the character "crystal" shown by FIG. 本発明の表示処理手順を示すフローチャートである。It is a flowchart which shows the display processing procedure of this invention. 文字「中」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "medium", and the coordinate data after scaling these coordinate data. 文字「晶」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "crystal", and the coordinate data after scaling these coordinate data. グリッドフィッティング処理手順(ステップS301〜ステップS310およびステップS327〜ステップS330の処理手順)を示すフローチャートである。It is a flowchart which shows a grid fitting process procedure (process procedure of step S301-step S310 and step S327-step S330). グリッドフィッティング処理手順(ステップS319〜ステップS326の処理手順)を示すフローチャートである。It is a flowchart which shows a grid fitting process procedure (process procedure of step S319-step S326). グリッドフィッティング処理手順(ステップS311〜ステップS318の処理手順)を示すフローチャートである。It is a flowchart which shows a grid fitting process procedure (process procedure of step S311-step S318). 図4に示された基準点間データをグリッドフィッティング処理した後の基準点間データを示す図である。It is a figure which shows the data between reference points after performing the grid fitting process on the data between reference points shown in FIG. 図7に示された基準点間データをグリッドフィッティング処理した後の基準点間データを示す図である。It is a figure which shows the data between reference points after performing the grid fitting process on the data between reference points shown in FIG. 文字「中」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとスケーリングした後の座標データをグリッドフィッティングした後の座標データとを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "medium", the coordinate data after scaling these coordinate data, and the coordinate data after grid fitting the coordinate data after scaling. 文字「晶」の文字データ142に含まれる座標データとこれらの座標データをスケーリングした後の座標データとスケーリングした後の座標データをグリッドフィッティングした後の座標データとを示す図である。It is a figure which shows the coordinate data contained in the character data 142 of the character "crystal", the coordinate data after scaling these coordinate data, and the coordinate data after grid fitting the coordinate data after scaling. 本発明の表示処理手順によって生成された文字「中」を示す描画データを表示デバイス130に表示した例を示す図である。It is a figure which shows the example which displayed the drawing data which shows the character "medium" produced | generated by the display process procedure of this invention on the display device. 本発明の表示処理手順によって生成された文字「晶」を示す描画データを表示デバイス130に表示した例を示す図である。It is a figure which shows the example which displayed on the display device 130 the drawing data which show the character "crystal" produced | generated by the display processing procedure of this invention. 本発明の同一距離フラグ取得処理手順を示すフローチャートである。It is a flowchart which shows the same distance flag acquisition process procedure of this invention. 図5に示された文字「晶」の文字データ142に含まれる基準点間データに同一距離フラグを割り付ける手順を説明するための図である。FIG. 6 is a diagram for explaining a procedure for assigning the same distance flag to the data between reference points included in the character data 142 of the character “crystal” shown in FIG. 5. 文字「日」を示すベクトルデータをスケーリングすることによって生成されたスケーリングデータを16ドット×16ドットで表示した例を示す図である。It is a figure which shows the example which displayed the scaling data produced | generated by scaling the vector data which shows the character "day" by 16 dots x 16 dots. スケーリングされたベクトルデータを四捨五入で量子化することによって生成された量子化データを16ドット×16ドットで表示した例を示す図である。It is a figure which shows the example which displayed the quantized data produced | generated by quantizing the scaled vector data by rounding off by 16 dots x 16 dots. 太さが異なる線幅を太さが同じ線幅に補正する例を示す図である。It is a figure which shows the example which correct | amends the line width from which thickness differs to line width with the same thickness. 線幅のみならず、線と線との間隔をも本来得られる値になるように補正する技術を開示する図である。It is a figure which discloses the technique which correct | amends not only line width but the space | interval of a line so that it may become the value obtained originally. 文字「日」を示すベクトルデータを256ドット×256ドットで表示した例を示す図である。It is a figure which shows the example which displayed the vector data which shows the character "day" by 256 dots x 256 dots. 特許文献2に記載の技術によって、本来得られる値になるように輪郭を移動するように補正された例を示す図である。It is a figure which shows the example corrected by the technique of patent document 2 so that an outline might be moved so that it might become a value obtained originally.

符号の説明Explanation of symbols

100 文字表示装置
110 入力デバイス
120 制御部
121 CPU
122 主メモリ
130 表示デバイス
140 補助記憶装置
141 文字表示プログラム
141a スケーリングプログラム
141b グリッドフィッティングプログラム
141c 描画データ生成プログラム
141d 同一距離フラグ取得プログラム
142 文字データ
100 Character Display Device 110 Input Device 120 Control Unit 121 CPU
122 Main memory 130 Display device 140 Auxiliary storage device 141 Character display program 141a Scaling program 141b Grid fitting program 141c Drawing data generation program 141d Same distance flag acquisition program 142 Character data

Claims (6)

複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成手段と、
前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成手段と、
前記スケーリングされた基準点の各基準点間の距離を量子化することによって、量子化された距離を生成する第2生成手段と、
前記第2生成手段で生成された距離の合計が前記目標値に近づくように、量子化された各基準点間の距離のうち、同一の距離情報を有する基準点間については同一の距離に調整する調整手段と、
前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示手段と
前記量子化された距離の合計が前記目標値より大きいか否かを判定する第1判定手段と、
を備え、
前記調整手段は、前記第1判定手段によって前記量子化された距離の合計が前記目標値より小さいと判定された場合は、前記量子化された距離のうち、最大切り下げ幅を有する距離と、前記最大切り下げ幅を有する距離に等しいと規定された距離とをすべて1だけ増加し、前記第1判定手段によって前記量子化された距離の合計が前記目標値より大きいと判定された場合は、前記量子化された距離のうち、前記最大切り上げ幅を有する距離と、前記最大切り上げ幅を有する距離に等しいと規定された距離とをすべて1だけ減少する構成であり、
前記最大切り下げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きいか否かを判定する第2判定手段と、前記最大切り上げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きいか否かを判定する第3判定手段とさらにを備え、
前記調整手段は、前記第1判定手段によって前記量子化された距離の合計が前記目標値より小さいと判定され、さらに、前記第2判定手段によって前記最大切り下げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り下げ幅を有する距離に等しいと規定された距離をすべて1だけ増加し、前記第1判定手段によって前記量子化された距離の合計が前記目標値より大きいと判定され、さらに、前記第3判定手段によって前記最大切り上げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り上げ幅を有する距離に等しいと規定された距離をすべて1だけ減少する構成であることを特徴とする文字図形表示装置。
First generating means for generating a scaled reference point by scaling a character or figure including a plurality of reference points;
A target value generating means for generating a target value by quantizing a distance between a maximum reference point having a maximum value and a minimum reference point having a minimum value among the scaled reference points;
Second generating means for generating a quantized distance by quantizing a distance between each of the scaled reference points;
Among the distances between the quantized reference points, the reference points having the same distance information are adjusted to the same distance so that the total distance generated by the second generation unit approaches the target value. Adjusting means to
Display means for displaying scaled characters or figures based on the reference point readjusted to match the adjusted distance ;
First determination means for determining whether the total of the quantized distances is greater than the target value;
With
When the adjustment unit determines that the total of the quantized distances is smaller than the target value by the first determination unit, among the quantized distances, the distance having the maximum round-down width, If all the distances defined as being equal to the distance having the maximum round-down width are all increased by 1, and the total of the quantized distances is determined by the first determination means to be greater than the target value, the quantum The distance having the maximum round-up width and the distance defined as being equal to the distance having the maximum round-up width among all the converted distances are reduced by 1.
A second determination means for determining whether the number of distances defined as being equal to the distance having the maximum round-down width is greater than the width to be adjusted; and a distance defined as being equal to the distance having the maximum round-up width And a third determination means for determining whether or not the number is larger than the width to be adjusted,
The adjusting means is determined that the sum of the quantized distances by the first determining means is smaller than the target value, and is further defined by the second determining means to be equal to the distance having the maximum round-down width. When it is determined that the number of distances is not larger than the width to be adjusted, all the distances defined as being equal to the distance having the maximum round-down width are all increased by 1, and are quantized by the first determination means. It is determined that the total number of distances is greater than the target value, and further, it is determined that the number of distances defined by the third determination means as being equal to the distance having the maximum round-up width is not greater than the width to be adjusted. If the character graphics display, wherein the a distance equal to the prescribed distance decreases by all 1 configuration with maximum round-up width
前記距離情報は、前記スケーリングされた基準点間の距離に対して予め決められている情報、または前記スケーリングされた基準点間の距離から算出された情報の何れかである、請求項1に記載の文字図形表示装置。 Said distance information is either predetermined by which information or information calculated from the distance between the scaled reference point, relative to the distance between the scaled reference point, according to claim 1 Character graphic display device. 前記調整手段は、前記スケーリングされた基準点を生成した後、前記量子化された基準点間の距離のうち少なくとも1つの距離を一度だけ増加または減少する、請求項1に記載の文字図形表示装置。 2. The character graphic display device according to claim 1 , wherein, after generating the scaled reference point, the adjusting unit increases or decreases at least one distance among the distances between the quantized reference points only once. 3. . 前記最大基準点と前記最大基準点を前記第1の方法で量子化することによって生成された量子化後の最大基準点との第1量子化誤差が、前記最小基準点と前記最小基準点を前記第1の方法で量子化することによって生成された量子化後の最小基準点との第2量子化誤差よりも大きいか否かを判定する第4判定手段をさらに備え、
前記表示手段は、
前記第4判定手段によって前記第1量子化誤差が第2量子化誤差よりも小さいと判定された場合には、前記量子化後の最大基準点を前記表示される文字または図形の基準座標値とし、
前記第4判定手段によって前記第1量子化誤差が第2量子化誤差よりも大きいと判定された場合には、前記量子化後の最小基準点を前記表示される文字または図形の基準座標値とする、請求項1から請求項3のいずれかに記載の文字図形表示装置。
A first quantization error between the maximum reference point and the maximum reference point after quantization generated by quantizing the maximum reference point with the first method is the difference between the minimum reference point and the minimum reference point. A fourth determination means for determining whether or not the second quantization error with the minimum reference point after quantization generated by performing the quantization in the first method is larger;
The display means includes
If the fourth determination means determines that the first quantization error is smaller than the second quantization error, the maximum reference point after quantization is set as a reference coordinate value of the displayed character or figure. ,
When the fourth determination means determines that the first quantization error is larger than the second quantization error, the minimum reference point after the quantization is set to the reference coordinate value of the displayed character or figure. The character graphic display device according to any one of claims 1 to 3 .
コンピュータに文字図形表示処理を実行させるためのプログラムであって、
前記文字図形表示処理は、
複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成ステップと、
前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成ステップと、
前記スケーリングされた基準点の各基準点間の距離を量子化することによって、量子化された距離を生成する第2生成ステップと、
前記第2生成手段で生成された距離の合計が前記目標値に近づくように、量子化された各基準点間の距離のうち、同一の距離情報を有する基準点間については同一の距離に調整する第1調整ステップと、該第1調整ステップの後の前記量子化された距離の合計が前記目標値より小さいと判定された場合に、前記量子化された距離のうち、最大切り下げ幅を有する距離と、前記最大切り下げ幅を有する距離に等しいと規定された距離とをすべて1だけ増加する第2調整ステップと、該第2調整ステップの後の前記量子化された距離の合計が前記目標値より小さいと判定され、さらに、前記最大切り下げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り下げ幅を有する距離に等しいと規定された距離をすべて1だけ増加する第3ステップと、前記第1調整ステップの後の前記量子化された距離の合計が前記目標値より大きいと判定された場合に、前記量子化された距離のうち、前記最大切り上げ幅を有する距離と、前記最大切り上げ幅を有する距離に等しいと規定された距離とをすべて1だけ減少する第4調整ステップと、該第4調整ステップの後の前記量子化された距離の合計が前記目標値より大きいと判定され、さらに、前記最大切り上げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り上げ幅を有する距離に等しいと規定された距離をすべて1だけ減少する第5調整ステップとを包含する調整ステップと、
前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示ステップと
を包含する、プログラム。
A program for causing a computer to execute a character graphic display process,
The character graphic display process includes:
A first generating step for generating a scaled reference point by scaling a character or figure including a plurality of reference points;
A target value generating step of generating a target value by quantizing a distance between a maximum reference point having a maximum value and a minimum reference point having a minimum value among the scaled reference points;
A second generating step of generating a quantized distance by quantizing a distance between each of the scaled reference points;
Among the distances between the quantized reference points, the reference points having the same distance information are adjusted to the same distance so that the total distance generated by the second generation unit approaches the target value. And when the sum of the quantized distances after the first adjusting step is determined to be smaller than the target value, the quantized distance has a maximum devaluation width. A second adjustment step for incrementing all of the distance and the distance defined to be equal to the distance having the maximum undercut width by 1, and the sum of the quantized distances after the second adjustment step is the target value If it is determined that the number of distances defined as being equal to the distance having the maximum reduction width is not greater than the adjustment width, the distance having the maximum reduction width is determined. A third step of incrementing all defined distances by 1 and a sum of the quantized distances after the first adjustment step is determined to be greater than the target value. A fourth adjustment step of reducing all of the distances having the maximum round-up width and the distance defined to be equal to the distance having the maximum round-up width by one, and after the fourth adjustment step, When it is determined that the sum of the quantized distances is greater than the target value, and further, it is determined that the number of distances defined as being equal to the distance having the maximum round-up width is not greater than the adjustment width. An adjustment step including a fifth adjustment step of reducing all the distances defined as being equal to the distance having the maximum round-up width by 1 ;
And displaying a scaled character or graphic based on the reference point readjusted to match the adjusted distance.
コンピュータによって読み取り可能な記録媒体であって、
前記記録媒体には、前記コンピュータに文字図形表示処理を実行させるためのプログラムが記録されており、
前記文字図形表示処理は、
複数の基準点を含む文字または図形をスケーリングすることによって、スケーリングされた基準点を生成する第1生成ステップと、
前記スケーリングされた基準点のうち、最大の値を有する最大基準点と最小の値を有する最小基準点との間の距離を量子化することによって、目標値を生成する目標値生成ステップと、
前記スケーリングされた基準点の各基準点間の距離を量子化することによって、量子化された距離を生成する第2生成ステップと、
前記第2生成手段で生成された距離の合計が前記目標値に近づくように、量子化された各基準点間の距離のうち、同一の距離情報を有する基準点間については同一の距離に調整する第1調整ステップと、該第1調整ステップの後の前記量子化された距離の合計が前記目標値より小さいと判定された場合に、前記量子化された距離のうち、最大切り下げ幅を有する距離と、前記最大切り下げ幅を有する距離に等しいと規定された距離とをすべて1だけ増加する第2調整ステップと、該第2調整ステップの後の前記量子化された距離の合計が前記目標値より小さいと判定され、さらに、前記最大切り下げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り下げ幅を有する距離に等しいと規定された距離をすべて1だけ増加する第3ステップと、前記第1調整ステップの後の前記量子化された距離の合計が前記目標値より大きいと判定された場合に、前記量子化された距離のうち、前記最大切り上げ幅を有する距離と、前記最大切り上げ幅を有する距離に等しいと規定された距離とをすべて1だけ減少する第4調整ステップと、該第4調整ステップの後の前記量子化された距離の合計が前記目標値より大きいと判定され、さらに、前記最大切り上げ幅を有する距離に等しいと規定された距離の個数が、前記調整する幅より大きくないと判定された場合に、前記最大切り上げ幅を有する距離に等しいと規定された距離をすべて1だけ減少する第5調整ステップとを包含する調整ステップと、
前記調整された距離に合致するように再調整された基準点に基づいて、スケーリングされた文字または図形を表示する表示ステップと
を包含する、記録媒体。
A computer-readable recording medium,
The recording medium is recorded with a program for causing the computer to execute a character graphic display process,
The character graphic display process includes:
A first generating step for generating a scaled reference point by scaling a character or figure including a plurality of reference points;
A target value generating step of generating a target value by quantizing a distance between a maximum reference point having a maximum value and a minimum reference point having a minimum value among the scaled reference points;
A second generating step of generating a quantized distance by quantizing a distance between each of the scaled reference points;
Among the distances between the quantized reference points, the reference points having the same distance information are adjusted to the same distance so that the total distance generated by the second generation unit approaches the target value. And when the sum of the quantized distances after the first adjusting step is determined to be smaller than the target value, the quantized distance has a maximum devaluation width. A second adjustment step for incrementing all of the distance and the distance defined to be equal to the distance having the maximum undercut width by 1, and the sum of the quantized distances after the second adjustment step is the target value If it is determined that the number of distances defined to be equal to the distance having the maximum cut-down width is not greater than the width to be adjusted, the distance having the maximum cut-down width is determined. A third step of incrementing all defined distances by 1 and a sum of the quantized distances after the first adjustment step is determined to be greater than the target value. A fourth adjustment step of reducing all of the distances having the maximum round-up width and the distance defined to be equal to the distance having the maximum round-up width by one, and after the fourth adjustment step, When it is determined that the sum of the quantized distances is greater than the target value, and further, it is determined that the number of distances defined as being equal to the distance having the maximum round-up width is not greater than the adjustment width. An adjustment step including a fifth adjustment step of reducing all the distances defined as being equal to the distance having the maximum round-up width by 1 ;
A display step of displaying a scaled character or figure based on the reference point readjusted to match the adjusted distance.
JP2005012087A 2005-01-19 2005-01-19 Character / graphic display device, program, and recording medium Expired - Fee Related JP3883554B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2005012087A JP3883554B2 (en) 2005-01-19 2005-01-19 Character / graphic display device, program, and recording medium
CN2006800077897A CN101138019B (en) 2005-01-19 2006-01-16 Character graphic display device
PCT/JP2006/300463 WO2006077800A1 (en) 2005-01-19 2006-01-16 Character graphic display device, program, and recording medium
TW95101897A TWI324334B (en) 2005-01-19 2006-01-18 Character/graphic display,computer program product, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005012087A JP3883554B2 (en) 2005-01-19 2005-01-19 Character / graphic display device, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2006201406A JP2006201406A (en) 2006-08-03
JP3883554B2 true JP3883554B2 (en) 2007-02-21

Family

ID=36692190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005012087A Expired - Fee Related JP3883554B2 (en) 2005-01-19 2005-01-19 Character / graphic display device, program, and recording medium

Country Status (4)

Country Link
JP (1) JP3883554B2 (en)
CN (1) CN101138019B (en)
TW (1) TWI324334B (en)
WO (1) WO2006077800A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5759128B2 (en) * 2009-09-18 2015-08-05 キヤノン株式会社 Information processing apparatus, information processing system, information processing method, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2618528B2 (en) * 1990-11-22 1997-06-11 株式会社日立製作所 Character drawing device, character output correction method, and character output device
JP3034140B2 (en) * 1992-12-07 2000-04-17 富士通株式会社 Character generation method and device
US5526476A (en) * 1992-12-07 1996-06-11 Fujitsu Limited Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
JPH0736434A (en) * 1993-07-23 1995-02-07 Hitachi Ltd Character output device
JP4662412B2 (en) * 2003-05-15 2011-03-30 シャープ株式会社 Character graphic display device, character graphic display method, program, and recording medium

Also Published As

Publication number Publication date
WO2006077800A1 (en) 2006-07-27
TW200703228A (en) 2007-01-16
CN101138019A (en) 2008-03-05
CN101138019B (en) 2010-06-09
JP2006201406A (en) 2006-08-03
TWI324334B (en) 2010-05-01

Similar Documents

Publication Publication Date Title
KR100677689B1 (en) Character image generating apparatus, character image generating method, display control apparatus, display control method and computer-readable recording medium for recording character image generation program or display control program there on
JP3481136B2 (en) Character font generation method and apparatus therefor, and computer-readable recording medium recording character font generation program
EP0537030B1 (en) Character or graphic processing method
JP3791259B2 (en) Outline smoothing processing method
JP3883554B2 (en) Character / graphic display device, program, and recording medium
JP2009009345A (en) Vector image drawing device, vector image drawing method, and program
JP2018116442A (en) Print control device, page data correction method, raster data generation method, page data correction program, and raster data generation program
KR100918890B1 (en) Processing device and recording medium
JP4662412B2 (en) Character graphic display device, character graphic display method, program, and recording medium
JP2007240848A (en) Display program, data structure and display device
JP4905899B2 (en) Information processing system, information processing program, and readable recording medium
JP4930860B2 (en) Graphic drawing apparatus, antialiasing method and program
US11861770B2 (en) Image processing apparatus, image processing method, and program for changing image data from an initial display range to a target display range
JP2000322048A (en) Outline font evaluation device and evaluation method
JP2010113626A (en) Vector image drawing device, vector image drawing method, and program
KR101887389B1 (en) Applying method for substitute font and system therefor
WO2015121962A1 (en) Character rendering device, character rendering method, and character rendering program
JP4726087B2 (en) Data processing apparatus, data processing method, electronic information device, control program, and readable recording medium
CN114791843A (en) Character display method, device, equipment and storage medium
JP2017170731A (en) Printer and program
JP3087511B2 (en) Data converter
JPH08190635A (en) Straight line generating method
JP2004093930A (en) Font processor, terminal device, font processing method, and font processing program
JPH0713546A (en) Data transform device
JPH08297482A (en) Character processing device and method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061023

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: 20061114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061114

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091124

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111124

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111124

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121124

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121124

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131124

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees