JP2006039780A - Display apparatus, program and recording medium - Google Patents

Display apparatus, program and recording medium Download PDF

Info

Publication number
JP2006039780A
JP2006039780A JP2004216462A JP2004216462A JP2006039780A JP 2006039780 A JP2006039780 A JP 2006039780A JP 2004216462 A JP2004216462 A JP 2004216462A JP 2004216462 A JP2004216462 A JP 2004216462A JP 2006039780 A JP2006039780 A JP 2006039780A
Authority
JP
Japan
Prior art keywords
point
line
display device
pattern
positional relationship
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.)
Granted
Application number
JP2004216462A
Other languages
Japanese (ja)
Other versions
JP4198098B2 (en
Inventor
Yoshiyuki Koyama
至幸 小山
Tama Sakuta
瑞 作田
Osamu Nishida
収 西田
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 JP2004216462A priority Critical patent/JP4198098B2/en
Priority to PCT/JP2005/013426 priority patent/WO2006009228A1/en
Priority to CN2005800246142A priority patent/CN1998024B/en
Priority to KR1020077000567A priority patent/KR100866362B1/en
Publication of JP2006039780A publication Critical patent/JP2006039780A/en
Priority to HK07113184.2A priority patent/HK1104864A1/en
Application granted granted Critical
Publication of JP4198098B2 publication Critical patent/JP4198098B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • 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 Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a display apparatus capable of rapidly displaying a character having a curve. <P>SOLUTION: The display apparatus is provided with a display device for displaying a line and a control section for controlling the display device. The control section, regarding a given first point, second point and third point, decides first positional relation between at least one of the first point and second point and the third point, selects a pattern, that is the pattern of at least one previously prepared line, of one line corresponding to the decided first positional relation from among patterns of at least one line passing through the first point and second point. The control section displays the line passing through the first point and second point on the display device, according to the pattern of the selected line. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、線を表示する表示デバイスと、表示デバイスを制御する制御部とを備えた表示装置、プログラムおよび記録媒体に関する。本発明によって、例えば、低中解像度の表示装置に曲線を有する文字を高速で表示できる。   The present invention relates to a display device, a program, and a recording medium that include a display device that displays a line and a control unit that controls the display device. According to the present invention, for example, a character having a curve can be displayed at high speed on a low-medium resolution display device.

アウトラインフォントは、閉曲線の輪郭で文字を表す。このアウトラインフォントは、ベクトルデータに基づいて文字を表示する技術に広く用いられている。アウトラインフォントは、例えば、TrueTypeフォントおよびPostScriptフォントである。TrueTypeフォントの曲線では、2次のB−スプライン曲線が使用される(式1参照)。PostScriptフォントの曲線では、ベジェ曲線が使用される(式2参照)。
〔式1〕
x=(1−t)+2t(1−t)x+t
y=(1−t)+2t(1−t)y+t
0≦t≦1
〔式2〕
x=(1−t)+3(1−t)tx+3(1−t)t+t
y=(1−t)+3t(1−t)ty+3(1−t)t+t
0≦t≦1
高解像度の表示装置に文字を表示する場合に、これらのフォントは適している。特に、文字を紙に印刷する場合に、これらのフォントは好適である。なお、式1および式2で表される曲線は、曲線の両端(始点と終点)は通るが、始点と終点との間の点(制御点)は通らない。
The outline font represents a character with a contour of a closed curve. This outline font is widely used in a technique for displaying characters based on vector data. The outline font is, for example, a TrueType font or a PostScript font. For the curve of the TrueType font, a quadratic B-spline curve is used (see Equation 1). For the script of the PostScript font, a Bezier curve is used (see Equation 2).
[Formula 1]
x = (1-t) 2 x 1 + 2t (1-t) x 2 + t 2 x 3
y = (1-t) 2 y 1 + 2t (1-t) y 2 + t 2 y 3
0 ≦ t ≦ 1
[Formula 2]
x = (1-t) 3 x 1 +3 (1-t) 2 tx 2 +3 (1-t) t 2 x 3 + t 3 x 4
y = (1-t) 2 y 1 + 3t (1-t) 2 ty 2 +3 (1-t) t 2 y 3 + t 3 y 4
0 ≦ t ≦ 1
These fonts are suitable for displaying characters on a high-resolution display device. These fonts are particularly suitable when printing characters on paper. In addition, although the curve represented by Formula 1 and Formula 2 passes through the both ends (start point and end point) of a curve, the point (control point) between a start point and an end point does not pass.

ストロークフォントは、厚みを持たないストロークで文字を表す。このストロークフォントは、アウトラインフォントと同様に、ベクトルデータに基づいて文字を表示する技術に広く用いられている。   A stroke font represents characters with a stroke having no thickness. Like the outline font, this stroke font is widely used in a technique for displaying characters based on vector data.

低中解像度の表示装置に文字を表示する場合に、このフォントは適している。このストロークフォントを表示装置に表示する際には、一般的に、表現すべき線が曲線であるか直線であるかを問わず、複数の点の各々を直線で結ぶことによって、曲線または直線を表現するため、アウトラインフォントに比べて高速に描画できる。   This font is suitable for displaying characters on a low-medium-resolution display device. When displaying this stroke font on a display device, in general, regardless of whether the line to be expressed is a curve or a straight line, the curve or straight line is formed by connecting each of a plurality of points with a straight line. Because it is expressed, it can be drawn faster than the outline font.

特許文献1は、2点を結ぶ直線を高速に描画する技術を開示する。   Patent Document 1 discloses a technique for drawing a straight line connecting two points at high speed.

この技術は、直線の傾きに基づいて商数列を求める。次に、商数列から制御数列を求め、制御数列に基づいて、直線を高速で描画する。   This technique obtains a quotient sequence based on the slope of a straight line. Next, a control number sequence is obtained from the quotient number sequence, and a straight line is drawn at high speed based on the control number sequence.

例えば、直線の傾き7/18に基づいて商数列{2,1,1,3}を求める。次に、商数列{2,1,1,3}から制御数列{1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0}を求める。直線の描画位置をx方向に増加する際に、制御行列の値が「1」である場合には、yの値を増加して直線を描画し、制御行列の値が「0」である場合には、yの値を増加せずに、直線を描画する。   For example, the quotient sequence {2, 1, 1, 3} is obtained based on the straight line slope 7/18. Next, from the quotient sequence {2, 1, 1, 3} to the control sequence {1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1,0}. When the value of the control matrix is “1” when increasing the drawing position of the straight line in the x direction, the value of y is increased to draw a straight line, and the value of the control matrix is “0” In this case, a straight line is drawn without increasing the value of y.

特許文献1には、商数列および制御数列を予め計算しておくことも開示されている。   Patent Document 1 also discloses that a quotient number sequence and a control number sequence are calculated in advance.

特許文献2は、曲線を高速に描画する技術を開示する。この技術は、媒介変数に関する値を予め計算し、記憶しておき、曲線をベジェ曲線等で表現する際に、これらの値を用いる。   Patent Document 2 discloses a technique for drawing a curve at high speed. In this technique, values relating to parametric variables are calculated and stored in advance, and these values are used when a curve is expressed by a Bezier curve or the like.

例えば、式2で媒介変数tを1024分割した場合、tのとりうる値は(0,1/1024,2/1024,3/1024,…,1023/1024,1024/1024)となる。ここで、tの値とtの値との関係およびtの値と3(1−t)tの値との関係を予め計算し、これらの関係をテーブル化しておく。また(1−t)および3t(1−t)の計算は、tの値、3(1−t)tの値を利用する。このように、特許文献2に開示の技術によれば、高速に、式2で示される計算を処理できる。
特開平9−161082号公報 特開平1−255076号公報
For example, when the parameter t is divided into 1024 in Equation 2, the possible values of t are (0, 1/1024, 2/1024, 3/1024, ..., 1023/1024, 1024/1024). Here, the relationship between the value of t and the value of t 3 and the relationship between the value of t and the value of 3 (1-t) t 2 are calculated in advance, and these relationships are tabulated. The (1-t) 3 and 3t (1-t) 2 calculations, the value of t 3, utilizing the value of 3 (1-t) t 2 . Thus, according to the technique disclosed in Patent Document 2, the calculation represented by Expression 2 can be processed at high speed.
Japanese Patent Laid-Open No. 9-161082 JP-A-1-255076

しかし、従来の技術には、以下に示す問題点がある。   However, the conventional techniques have the following problems.

中低解像度の表示装置にアウトラインフォントを表示する場合には、線幅のばらつきおよび線の潰れが発生しやすく、文字の品位がよくない。   When an outline font is displayed on a medium / low resolution display device, variations in line width and line collapse are likely to occur, and the quality of characters is not good.

特許文献2の技術では、複数の点の各々を描画するたびに浮動小数点演算を伴った計算が発生し、表示の高速化に限界がある。一般に、CPUの浮動小数点演算は、CPUの整数演算より遅い。   In the technique of Patent Document 2, calculation with a floating point operation occurs each time a plurality of points are drawn, and there is a limit to speeding up display. In general, CPU floating point operations are slower than CPU integer operations.

表示装置にストロークフォントを表示する場合には、文字の曲線部分にガタツキが目立つ。ストロークフォントは、文字の曲線部分を直線で表すからである。特に、文字を大きくしていくと、ガタツキが顕著になる。   When a stroke font is displayed on the display device, rattling is conspicuous in the curved portion of the character. This is because the stroke font represents the curved portion of the character as a straight line. In particular, rattling becomes more noticeable as characters are enlarged.

文字の曲線部分を2次のB−スプライン曲線またはベジェ曲線で表現することでは、厚みのないストロークフォントをデザインすることが難しい。線が曲線の両端の間の制御点を通らないからである。制御点をすべて通る曲線補間として、3次スプラインを利用した曲線補間がある。しかし、この補間は、端点に対して制約条件を設ける必要があり、条件付けが難しいという問題がある。また高速化が難しいという問題もある
本発明は、上記問題点に鑑みてなされたものであり、高速に線を描画でき、かつ線を示すデータの記録容量を少なくできる文字図形表示装置、プログラムおよび記録媒体を提供することを目的とする。
It is difficult to design a stroke font with no thickness by expressing a curved portion of a character by a secondary B-spline curve or a Bezier curve. This is because the line does not pass through the control points between the ends of the curve. As a curve interpolation that passes through all control points, there is a curve interpolation using a cubic spline. However, this interpolation has a problem that it is difficult to perform conditioning because it is necessary to provide a constraint on the end points. The present invention also has a problem that it is difficult to increase the speed. The present invention has been made in view of the above problems, and is capable of drawing a line at a high speed and reducing a recording capacity of data indicating the line, a program and a program An object is to provide a recording medium.

本発明の表示装置は、線を表示する表示デバイスと、前記表示デバイスを制御する制御部とを備えた表示装置であって、前記制御部は、与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定し、予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択し、前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示し、これにより、上記目的が達成される。   The display device of the present invention is a display device including a display device that displays a line, and a control unit that controls the display device, wherein the control unit is provided with the first point, the second point, and the second point. Determining a first positional relationship between at least one of the first point and the second point and the third point with respect to three points, and a pattern of at least one line prepared in advance; A line pattern corresponding to the determined first positional relationship is selected from at least one line pattern passing through the first point and the second point, and the selected line pattern is selected. In response, a line passing through the first point and the second point is displayed on the display device, whereby the above object is achieved.

前記第1の位置関係と前記線のパターンとの対応関係を示すパターン情報を保持する保持部をさらに備え、前記線のパターンの選択は、前記保持部に保持されている前記パターン情報を参照して行われてもよい。   The image processing apparatus further includes a holding unit that holds pattern information indicating a correspondence relationship between the first positional relationship and the line pattern, and the line pattern is selected by referring to the pattern information held in the holding unit. It may be done.

前記第1の位置関係は、前記第1点と前記第2点とを結ぶ第1直線と前記第2点と前記第3点とを結ぶ第2直線との角度に応じて決定されてもよい。   The first positional relationship may be determined according to an angle between a first straight line connecting the first point and the second point and a second straight line connecting the second point and the third point. .

前記制御部は、前記第1点、前記第2点および第4点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第4点との第2の位置関係を決定し、前記制御部は、前記少なくとも1つの線のパターンの中から、前記決定された第2の位置関係に対応する1つの線のパターンを選択し、前記第2点の周囲には、複数の領域が割り当てられ、前記第3点と前記第4点とは、前記複数の領域のうちの同じ領域に与えられ、前記選択された第1の位置関係に対応する1つの線のパターンと前記選択された第2の位置関係に対応する1つの線のパターンとは、同じでよい。   The control unit determines a second positional relationship between at least one of the first point and the second point and the fourth point with respect to the first point, the second point, and the fourth point. The control unit selects one line pattern corresponding to the determined second positional relationship from the at least one line pattern, and a plurality of patterns around the second point An area is assigned, and the third point and the fourth point are given to the same area of the plurality of areas, and the pattern of one line corresponding to the selected first positional relationship and the selection The pattern of one line corresponding to the second positional relationship may be the same.

前記第1点は原点に与えられ、前記第2点は第一象限に与えられてもよい。   The first point may be given to the origin and the second point may be given to the first quadrant.

前記第2点の周囲には、複数の領域が割り当てられ、前記第3点は、前記複数の領域のうちの1つに与えられ、前記複数の領域のうちの1つの領域と、前記1つの領域とは異なる領域とは、異なった大きさを有してもよい。   A plurality of regions are assigned around the second point, and the third point is given to one of the plurality of regions, and one region of the plurality of regions and the one point The area different from the area may have a different size.

前記第2点の周囲の一部のみに、複数の領域が割り当てられ、前記第3点は、前記複数の領域のうちの1つに与えられてもよい。   A plurality of regions may be assigned to only a part of the periphery of the second point, and the third point may be given to one of the plurality of regions.

本発明のプログラムは、線を表示する表示デバイスを備えた情報表示装置に表示処理を実行させるプログラムであって、前記表示処理は、与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定するステップと、予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択するステップと、前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示するステップとを包含し、これにより、上記目的が達成される。   The program according to the present invention is a program for causing an information display device provided with a display device for displaying a line to execute a display process, wherein the display process is performed for a given first point, second point, and third point. Determining a first positional relationship between at least one of the first point and the second point and the third point, and a pattern of at least one line prepared in advance, Selecting one line pattern corresponding to the determined first positional relationship from at least one line pattern passing through one point and the second point; and the selected line pattern And displaying the line passing through the first point and the second point on the display device, thereby achieving the above object.

本発明の記録媒体は、線を表示する表示デバイスを備えた情報表示装置によって読み取り可能な記録媒体であって、前記記録媒体は、前記情報表示装置に表示処理を実行させるプログラムを記録し、前記表示処理は、与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定するステップと、予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択するステップと、前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示するステップとを包含し、これにより、上記目的が達成される。   The recording medium of the present invention is a recording medium readable by an information display device provided with a display device for displaying lines, and the recording medium records a program for causing the information display device to perform display processing, The display processing determines a first positional relationship between at least one of the first point and the second point and the third point with respect to the given first point, second point, and third point. And at least one line pattern prepared in advance, wherein the determined first positional relationship is selected from among at least one line pattern passing through the first point and the second point. Selecting a corresponding one line pattern, and displaying a line passing through the first point and the second point on the display device in accordance with the selected line pattern; This Serial object is achieved.

本発明の表示装置、プログラムおよび記録媒体によれば、第1点と第2点とを通る線の軌道を計算によって求めることなく、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された位置関係に対応する1つの線のパターンを選択することによって、第1点と第2点とを通る線を表示できる。したがって、複雑な計算が必要とされる第1点と第2点とを通る線の軌道の計算を行う必要がなく、第1点と第2点とを通る線を高速に表示できる。   According to the display device, the program, and the recording medium of the present invention, the pattern of at least one line passing through the first point and the second point without obtaining the trajectory of the line passing through the first point and the second point by calculation. A line passing through the first point and the second point can be displayed by selecting one line pattern corresponding to the determined positional relationship. Therefore, it is not necessary to calculate the trajectory of the line passing through the first point and the second point, which requires complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

本発明では、第1点と第2点とを通る線のパターンと3点の位置関係との対応を示すテーブルを利用して、3点を結ぶ曲線を描画する。したがって、テーブルの読み出しのみで曲線の描画が可能となり、複雑な演算が発生しない。その結果、第1点と第2点とを通る線を高速に描画できる。   In the present invention, a curve connecting the three points is drawn using a table indicating the correspondence between the pattern of lines passing through the first point and the second point and the positional relationship between the three points. Therefore, a curve can be drawn only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

さらに、第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度を分類し、テーブル化する。その結果、容量を少なくできる。   Further, the angles of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point are classified and tabulated. As a result, the capacity can be reduced.

さらに、第2点が第1象限にある場合のみ、第1点と第2点とを通る直線と第2点と第3点とを通る直線の角度の分類とテーブル化とを行う。したがって、3点の位置の組み合わせを減らすことができる。その結果、さらに容量を少なくできる。   Furthermore, only when the second point is in the first quadrant, the straight line passing through the first point and the second point and the angle of the straight line passing through the second point and the third point are classified and tabulated. Therefore, the number of combinations of the three points can be reduced. As a result, the capacity can be further reduced.

1.本発明の原理
以下、図を参照して、本発明の原理を説明する。
1. The principle of the present invention will be described below with reference to the drawings.

本発明は、曲線を描画する際に、3点を結ぶ曲線に注目し、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された位置関係に対応する1つの線のパターンを選択することによって、第1点と第2点とを通る線を表示できる。第1点と第2点とを通る線の軌跡を計算することなく、第1点と第2点とを通る線のパターンを選択することによって、第1点と第2点とを通る線を高速で表示できる。   The present invention pays attention to a curve connecting three points when drawing a curve, and selects one of the patterns of at least one line passing through the first point and the second point corresponding to the determined positional relationship. By selecting a line pattern, a line passing through the first point and the second point can be displayed. By calculating the pattern of the line passing through the first point and the second point without calculating the trajectory of the line passing through the first point and the second point, the line passing through the first point and the second point is determined. It can be displayed at high speed.

また、位置関係と線のパターンとの対応関係を示すパターン情報を保持する保持部をさらに備え、線のパターンの選択は、保持部に保持されているパターン情報を参照して行う。パターン情報をテーブルで表し、このテーブルに基づいて曲線を描画する。   In addition, a holding unit that holds pattern information indicating a correspondence relationship between the positional relationship and the line pattern is further provided, and the selection of the line pattern is performed with reference to the pattern information held in the holding unit. The pattern information is represented by a table, and a curve is drawn based on this table.

パターン情報をテーブルで表し、これらのテーブルに基づいて曲線を描画する理由を以下に示す。   The reason why pattern information is represented by tables and a curve is drawn based on these tables is shown below.

第1点は、原点(0,0)とする。第2点は、第1点からのx方向の距離の増減およびy方向の距離の増減が±d以内であるとする。第3点は、第2点からのx方向の距離の増減およびy方向の距離の増減が±d以内であるとする。   The first point is the origin (0, 0). The second point is assumed that the increase / decrease in the distance in the x direction and the increase / decrease in the distance in the y direction from the first point are within ± d. The third point is assumed that the increase / decrease in the distance in the x direction and the increase / decrease in the distance in the y direction from the second point are within ± d.

これらの場合には、第1点と第2点との組み合わせは(2d+1)×(2d+1)通りである。第2点と第3点の組み合わせも(2d+1)×(2d+1)通りである。したがって、3点の組み合わせは、(2d+1)通りである。このように、3点の位置の組み合わせは、dに応じて劇的に増加する。例えば、d=5である場合には、14,641通りであるが、d=10である場合には、194481通りであり、d=20である場合には、2825761通りである。文字表示装置に格納可能なデータの容量には限界があるため、3点の位置の組み合わせが多い場合には、これらの組み合わせをテーブルで表し、これらのテーブルを文字表示装置に格納することは、困難である。 In these cases, there are (2d + 1) × (2d + 1) combinations of the first point and the second point. There are (2d + 1) × (2d + 1) combinations of the second point and the third point. Accordingly, there are (2d + 1) 4 combinations of the three points. Thus, the combination of the positions of the three points increases dramatically according to d. For example, when d = 5, there are 14,641 ways, but when d = 10, there are 194481 ways, and when d = 20, there are 2825761 ways. Since there is a limit to the amount of data that can be stored in the character display device, when there are many combinations of the positions of the three points, these combinations are represented by a table, and storing these tables in the character display device Have difficulty.

上述のように、本発明は、2つの異なった曲線(第1曲線、第2曲線)を表示する場合でも、第1曲線の第1点および第2点と第2曲線の第1点および第2点とが同じであり、第1曲線の第1点と第2点とを通る直線と第1曲線の第2点と第3点とを通る直線との角度と、第2曲線の第1点と第2点とを通る直線と第2曲線の第2点と第3点とを通る直線との角度とが所定の値より近い場合には、第1点と第2点とを通る線のパターンは、同じパターンにしても、第1曲線と第2曲線とを観る者には違和感がないことに着目する。   As described above, the present invention displays the first point and the second point of the first curve and the first point and the second point of the second curve even when displaying two different curves (first curve and second curve). The two points are the same, the angle between the straight line passing through the first point and the second point of the first curve, the straight line passing through the second point and the third point of the first curve, and the first of the second curve. If the angle between the straight line passing through the point and the second point and the straight line passing through the second point and the third point of the second curve are closer than a predetermined value, the line passing through the first point and the second point It is noted that even if the patterns are the same, there is no sense of incongruity for those who watch the first curve and the second curve.

図1は、3点を通る曲線の一例を示す。   FIG. 1 shows an example of a curve passing through three points.

この曲線は、第1点(0,0)、第2点(7,4)、第3点(10,10)を通る。図1において、黒塗りの点は、これらの3点であり、ハッチの多い点は、第1点と第2点とを通る線に含まれる点であり、ハッチの少ない点は、第2点と第3点とを通る線に含まれる点である。また第1点と第2点とを通る直線と、第2点と第3点とを通る直線とが示されている。   This curve passes through the first point (0, 0), the second point (7, 4), and the third point (10, 10). In FIG. 1, black points are these three points, points with many hatches are points included in a line passing through the first point and the second point, and points with few hatches are the second points. And a point included in a line passing through the third point. Also, a straight line passing through the first point and the second point and a straight line passing through the second point and the third point are shown.

図2は、3点を通る曲線の別の一例を示す。   FIG. 2 shows another example of a curve passing through three points.

この曲線は、第1点(0,0)、第2点(7,4)、第3点(13,16)を通る。第1点(0,0)および第2点(7,4)は、図1の第1点および第2点と同じであり、第3点(13,16)は、図1の第2点と第3点とを通る直線の延長上の点である。   This curve passes through the first point (0, 0), the second point (7, 4), and the third point (13, 16). The first point (0, 0) and the second point (7, 4) are the same as the first point and the second point in FIG. 1, and the third point (13, 16) is the second point in FIG. And a point on an extension of a straight line passing through the third point.

図1の線のパターンと図2の線のパターンとを比較した場合、第2点と第3点とを通る線のパターンは異なるが、第1点と第2点とを通る線のパターンは同じである。   When the line pattern of FIG. 1 is compared with the line pattern of FIG. 2, the line pattern passing through the second point and the third point is different, but the line pattern passing through the first point and the second point is The same.

図3は、3点を通る曲線の更に別の一例を示す。   FIG. 3 shows still another example of a curve passing through three points.

この曲線は、第1点(0,0)、第2点(7,4)、第3点(12,17)を通る。第1点(0,0)および第2点(7,4)は、図2の第1点および第2点と同じであり、第3点(12,17)は、図2の第3点の左上の点である。図2の第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度と、図3の第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度は、近くなっている。   This curve passes through the first point (0, 0), the second point (7, 4), and the third point (12, 17). The first point (0, 0) and the second point (7, 4) are the same as the first point and the second point in FIG. 2, and the third point (12, 17) is the third point in FIG. This is the upper left point. The angle between the straight line passing through the first point and the second point in FIG. 2 and the straight line passing through the second point and the third point, and the straight line passing through the first point and the second point in FIG. The angle with the straight line passing through the third point is close.

図2の線のパターンと図3の線のパターンとを比較した場合、第2点と第3点とを通る線のパターンは異なるが、第1点と第2点とを通る線のパターンは同じである。   When the line pattern of FIG. 2 is compared with the line pattern of FIG. 3, the line pattern passing through the second point and the third point is different, but the line pattern passing through the first point and the second point is The same.

図4は、3点を通る曲線の更に別の一例を示す。   FIG. 4 shows yet another example of a curve passing through three points.

この曲線は、第1点(0,0)、第2点(7,4)、第3点(14,16)を通る。第1点(0,0)および第2点(7,4)は、図2の第1点および第2点と同じであり、第3点(14,16)は、図2の第3点の右下の点である。   This curve passes through the first point (0, 0), the second point (7, 4), and the third point (14, 16). The first point (0, 0) and the second point (7, 4) are the same as the first point and the second point in FIG. 2, and the third point (14, 16) is the third point in FIG. This is the lower right point.

図2の線のパターンと図4の線のパターンとを比較した場合、第2点と第3点とを通る線のパターンは異なるが、第1点と第2点とを通る線のパターンは同じである。   When the line pattern of FIG. 2 is compared with the line pattern of FIG. 4, the line pattern passing through the second point and the third point is different, but the line pattern passing through the first point and the second point is The same.

図1〜図4を参照して説明したように、異なった曲線を描画する場合に第1点と第2点とを通る線のパターンを同じにしても、曲線を観る者には違和感が生じない。   As described with reference to FIGS. 1 to 4, even when different curves are drawn, even if the pattern of the lines passing through the first point and the second point is the same, the viewer who feels the curve feels uncomfortable. Absent.

図5は、3点を通る曲線の更に別の一例を示す。この曲線は、第1点(0,0)、第2点(7,4)、第3点(5,12)を通る。   FIG. 5 shows still another example of a curve passing through three points. This curve passes through the first point (0, 0), the second point (7, 4), and the third point (5, 12).

図6は、3点を通る曲線の更に別の一例を示す。この曲線は、第1点(0,0)、第2点(7,4)、第3点(14,6)を通る。   FIG. 6 shows still another example of a curve passing through three points. This curve passes through the first point (0, 0), the second point (7, 4), and the third point (14, 6).

図5および図6で示された第1点(0,0)、第2点(7,4)は、図1〜図4で示された第1点、第2点と同じであるが、第1点と第2点とを通る直線と、第2点と第3点とを通る直線の角度が図1〜図4で示された角度と大きく異なっており、第1点と第2点とを通る線の軌跡は図1〜図4と異なる。   The first point (0, 0) and the second point (7, 4) shown in FIGS. 5 and 6 are the same as the first point and the second point shown in FIGS. The angles of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point are greatly different from the angles shown in FIGS. 1 to 4. The first point and the second point The trajectory of the line passing through and is different from that in FIGS.

図7は、第2点の周囲に割り当てられた領域1〜領域28を示す。   FIG. 7 shows the areas 1 to 28 allocated around the second point.

領域1〜領域28は、第2点の周囲の領域を28等分割することによって割り当てられる。同じ領域に第3点がある場合には、第1点と第2点とを通る線のパターンを同じにすることで、3点の組み合わせを少なくする。例えば、第1曲線では、第3点が領域1内の位置Aにあり、第2曲線では、第3点が領域1内であって、位置Aとは異なる位置Bにある場合には、第1曲線の第1点と第2点とを通る線のパターンと第2曲線の第1点と第2点とを通る線のパターンとを同じにする。   Areas 1 to 28 are allocated by dividing the area around the second point into 28 equal parts. When there is a third point in the same region, the number of combinations of the three points is reduced by making the pattern of lines passing through the first point and the second point the same. For example, in the first curve, when the third point is at position A in the region 1 and in the second curve, the third point is in region 1 and at a position B different from the position A, the first point The pattern of the line passing through the first point and the second point of one curve is made the same as the pattern of the line passing through the first point and the second point of the second curve.

第2点の周囲に領域1〜領域28が割り当てられ、第1点が原点(0,0)、第2点が(X,Y)(X≦±d、Y≦±d:第1点からのx方向の距離およびy方向の距離の増減が±d以内)である場合には、第3点の位置は、領域1〜領域28の何れかである。したがって、3点の組み合わせは、(2d+1)×28通りである。 Areas 1 to 28 are assigned around the second point, the first point is the origin (0, 0), the second point is (X, Y) (X ≦ ± d, Y ≦ ± d: from the first point In the case where the increase / decrease in the distance in the x direction and the distance in the y direction is within ± d), the position of the third point is any one of the regions 1 to 28. Therefore, there are (2d + 1) 2 × 28 combinations of the three points.

さらに、第2点が第1象限にある場合のみ、位置関係と線のパターンとの対応関係を示すテーブルを生成し、第2点が第1象限以外の象限にある場合、このテーブルを利用して位置関係と線のパターンとの対応関係を求めることによって、テーブルの数を減らすことが可能である。   Further, only when the second point is in the first quadrant, a table indicating the correspondence between the positional relationship and the line pattern is generated, and when the second point is in a quadrant other than the first quadrant, this table is used. Thus, the number of tables can be reduced by obtaining the correspondence between the positional relationship and the line pattern.

第2点が第1象限にある場合のみ、第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度と第1点と第2点とを通る曲線のパターンとの対応関係をテーブルで表す。第2点が第2象限にある場合はy軸に対する対称性を考慮し、第2点が第3象限にある場合は原点に対する対称性を考慮し、第2点が第4象限にある場合にはx軸に対する対称性を考慮する。この場合、3点の組み合わせは、(d+1)×28通りである。例えば、d=5である場合には、組み合わせは1008通り、d=10である場合には、組み合わせは3388通り、d=20である場合には、組み合わせは12348通りであり、これらの組み合わせを表したテーブルを格納するために必要な容量を小さくできる。 Only when the second point is in the first quadrant, an angle between a straight line passing through the first point and the second point, a straight line passing through the second point and the third point, and a curve passing through the first point and the second point The correspondence with the pattern is expressed in a table. When the second point is in the second quadrant, consider symmetry with respect to the y-axis, when the second point is in the third quadrant, consider symmetry with respect to the origin, and when the second point is in the fourth quadrant Considers symmetry with respect to the x-axis. In this case, there are (d + 1) 2 × 28 combinations of the three points. For example, when d = 5, there are 1008 combinations, when d = 10, there are 3388 combinations, and when d = 20, there are 12348 combinations. The capacity required to store the represented table can be reduced.

なお、第2点の周囲に割り当てる領域は、28分割に限定されない。分割数は任意である。分割数を増やすとテーブルの容量は増えるが、曲線の品位を上げることが可能である。また均等な分割に限定されない。角度の浅いところでは、細かく分割し、角度が深いところでは荒く分割してもよい。   Note that the area allocated around the second point is not limited to 28 divisions. The number of divisions is arbitrary. Increasing the number of divisions increases the capacity of the table, but can improve the quality of the curve. Moreover, it is not limited to equal division. It may be finely divided at a shallow angle and roughly divided at a deep angle.

図28は、第2点の周囲に割り当てられた領域の一例を示す。   FIG. 28 shows an example of an area allocated around the second point.

図28(a)は、大きさが異なる複数の領域(分割形態1)を示す。   FIG. 28A shows a plurality of regions (division form 1) having different sizes.

第2点の周囲には、複数の領域1〜領域8が割り当てられている。第3点は、領域2に与えられている。例えば、領域1と領域4とは異なった大きさである。   A plurality of regions 1 to 8 are assigned around the second point. The third point is given to region 2. For example, the region 1 and the region 4 have different sizes.

図28(b)は、第2点の周囲の一部のみに割り当てられた領域(分割形態2)を示す。   FIG. 28B shows a region (partition form 2) assigned to only a part around the second point.

第2点の周囲には、複数の領域1〜領域5が割り当てられている。しかし、それ以外の部分(斜線部分)には、領域が割り当てられていない。   A plurality of regions 1 to 5 are assigned around the second point. However, no area is allocated to other portions (shaded portions).

表示対象に応じて、第2点の周囲の分割形態を選択できる。例えば、漢字を表示する場合には、分割形態1を選択する。カタカナを表示する場合には、分割形態2を選択する。なお、「表示対象」とは、表示デバイスに表示される対象を意味する。例えば、文字(漢字、平仮名、カタカナ、アルファベットなど)、図形、記号である。   The division form around the second point can be selected according to the display target. For example, when displaying Chinese characters, the division form 1 is selected. When displaying katakana, the division form 2 is selected. Note that the “display target” means a target displayed on the display device. For example, characters (kanji, hiragana, katakana, alphabet, etc.), figures, and symbols.

以下、図を参照して本発明の実施の形態を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

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

文字表示装置100は、例えばパーソナルコンピュータであり得る。パーソナルコンピュータとしては、デスクトップ型、ラップトップ型などの任意のタイプのコンピュータが使用され得る。あるいは、文字表示装置は、ワードプロセッサであってもよい。   The character display device 100 may be a personal computer, for example. 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 may be a word processor.

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

文字表示装置100は、入力デバイス10と、線を表示する表示デバイス30と、表示デバイス30を制御する制御部20と、補助記憶装置40とを含む。   The character display device 100 includes an input device 10, a display device 30 that displays lines, a control unit 20 that controls the display device 30, and an auxiliary storage device 40.

入力デバイス10は、表示デバイス30に表示すべき文字を表す情報を制御部20に入力するために使用される。文字を表す情報は、例えば、文字を認識するコードと文字の大きさを示すサイズ情報とを含む。   The input device 10 is used to input information representing characters to be displayed on the display device 30 to the control unit 20. The information representing the character includes, for example, a code for recognizing the character and size information indicating the size of the character.

入力デバイス10としては、コードとサイズを入力することが可能な任意のタイプの入力デバイスが使用され得る。キーボード、マウスまたはペン入力装置などの入力デバイスが使用され得る。文字表示装置100が携帯電話である場合には、通信先の電話番号を指定するための数字キーがコードやサイズを入力するために用いられてもよい。文字表示装置100がインターネットを含む通信回線に接続するための手段を備えている場合には、その通信回線から受信した電子メールに含まれるメッセージが表示デバイス30に表示されてもよい。この場合には、その通信回線に接続するための手段が、入力デバイス10として機能する。
補助記憶装置40には、文字表示プログラム41と、プログラムを実行するために必要な文字データ42、直線テーブル43および曲線テーブル44が格納されている。
As the input device 10, any type of input device capable of inputting a code and a size can be used. An input device such as a keyboard, mouse or pen input device may be used. When the character display device 100 is a mobile phone, a numeric key for designating a communication destination telephone number may be used for inputting a code and a size. When the character display device 100 includes means for connecting to a communication line including the Internet, a message included in an e-mail received from the communication line may be displayed on the display device 30. In this case, the means for connecting to the communication line functions as the input device 10.
The auxiliary storage device 40 stores a character display program 41, character data 42 necessary for executing the program, a straight line table 43, and a curved table 44.

文字表示プログラム41は、表示デバイスに出力するサイズに合わせて文字データ42をスケーリングするスケーリングプログラム41aと、スケーリングされた結果を量子化する量子化プログラム41bと、量子化された結果が表示デバイスに表示可能になるように量子化された結果を描画データ化する描画データ化プログラム41cとを含む。   The character display program 41 includes a scaling program 41a for scaling the character data 42 according to the size to be output to the display device, a quantization program 41b for quantizing the scaled result, and the quantized result displayed on the display device. A drawing data conversion program 41c for converting the result quantized so as to become drawing data.

補助記憶装置40としては、文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44を格納することが可能な任意のタイプの補助記憶装置が使用され得る。補助記憶装置40において、文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44を格納する記憶媒体としては、任意の記録媒体が使用され得る。例えば、ハードディスク、CD−ROM、CD−R、MO、DVD、ICカードが好適に使用され得る。   As the auxiliary storage device 40, any type of auxiliary storage device capable of storing the character display program 41, the character data 42, the straight line table 43, and the curve table 44 can be used. In the auxiliary storage device 40, any recording medium can be used as a storage medium for storing the character display program 41, the character data 42, the straight line table 43, and the curve table 44. For example, a hard disk, CD-ROM, CD-R, MO, DVD, and IC card can be suitably used.

なお、文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44は、補助記憶装置40に備えられた記録媒体に格納されることに限定しない。例えば、文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44は、主メモリ22に格納されてもよいし、ROM(図示せず)に格納されてもよい。ROMは、例えばマスクROM、EPROM、EEPROM、フラッシュROMであり得る。これらのデータをROMに格納する場合には、そのROMを交換するだけでいろいろな処理のバリエーションを容易に実現することができる。例えば、ROMは、文字表示装置が携帯型の情報端末または携帯電話である場合に好適に適用されうる。   Note that the character display program 41, the character data 42, the straight line table 43, and the curve table 44 are not limited to being stored in a recording medium provided in the auxiliary storage device 40. For example, the character display program 41, the character data 42, the straight line table 43, and the curve table 44 may be stored in the main memory 22 or stored in a ROM (not shown). The ROM can be, for example, a mask ROM, EPROM, EEPROM, or flash ROM. When these data are stored in the ROM, various processing variations can be easily realized simply by exchanging the ROM. For example, the ROM can be suitably applied when the character display device is a portable information terminal or a mobile phone.

さらに、文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44は、上記ディスクやカードなどの記憶装置や半導体メモリなどのようにプログラムやデータを固定的に保持する記憶媒体に保持され得る。文字表示装置がインターネットを含む通信回線に接続するための手段を備えている場合には、その通信回線から文字表示プログラム41、文字データ42、直線テーブル43および曲線テーブル44の少なくとも一部をダウンロードすることが出来る。この場合、ダウンロードに必要なローダープログラムは、ROM(図示せず)に予め格納されていてもよいし、補助記憶装置40から制御部20にインストールされてもよい。   Furthermore, the character display program 41, the character data 42, the straight line table 43, and the curve table 44 can be held in a storage medium that holds the program and data in a fixed manner, such as a storage device such as the disk or card or a semiconductor memory. . When the character display device is provided with means for connecting to a communication line including the Internet, the character display program 41, the character data 42, the straight line table 43, and the curve table 44 are downloaded from the communication line. I can do it. 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 20 from the auxiliary storage device 40.

制御部20は、CPU21と主メモリ22とを含む。   The control unit 20 includes a CPU 21 and a main memory 22.

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

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

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

図9は、文字データ42の一例を示す。具体的には、図9に示された文字データは、文字「大」のベクトルデータであり、256メッシュの解像度を有する。図9に示された文字データは、複数の座標データを含む。   FIG. 9 shows an example of the character data 42. Specifically, the character data shown in FIG. 9 is vector data of the character “large” and has a resolution of 256 mesh. The character data shown in FIG. 9 includes a plurality of coordinate data.

ラインNoは、文字「大」を構成するラインに付された番号である。Xは、文字「大」を構成するライン上の点のX座標値を示す。Yは、文字「大」を構成するライン上の点のY座標値を示す。   The line number is a number assigned to a line that forms the character “Large”. X represents the X coordinate value of a point on the line constituting the character “Large”. Y indicates the Y coordinate value of a point on the line constituting the character “Large”.

文字「大」は、3本のラインでを構成されている。3本のラインの各々は、位置を表す座標データを複数有する。ラインNo1は、(8,184)と(247,184)との2点を結び、ラインNo2は、(127,246)、(127,181)、(103,106)、(61,49)および(11,14)の5点を結び、ラインNo3は、(127,181)、(144,127)、(176,73)、(208,40)および(246,14)を結ぶ。   The letter “Large” consists of three lines. Each of the three lines has a plurality of coordinate data representing positions. Line No1 connects two points (8,184) and (247,184), and Line No2 includes (127,246), (127,181), (103,106), (61,49) and The five points (11, 14) are connected, and the line No. 3 connects (127, 181), (144, 127), (176, 73), (208, 40), and (246, 14).

図10は、文字データ42の表示の一例である。具体的には、図9に示された文字データの表示である。   FIG. 10 is an example of display of the character data 42. Specifically, it is a display of the character data shown in FIG.

図11は、直線テーブル43の一例を示す。直線テーブル43は、補助記憶装置40に格納されている(図8参照)。   FIG. 11 shows an example of the straight line table 43. The straight line table 43 is stored in the auxiliary storage device 40 (see FIG. 8).

「index」は、テーブルのレコード番号を示し、「(dx,dy)」は第1点からのx方向の増加分およびy方向の増加分を示す。   “Index” indicates a record number of the table, and “(dx, dy)” indicates an increase in the x direction and an increase in the y direction from the first point.

本実施例では、x方向の増加およびy方向の増加は20以内であるが、x方向の増加およびy方向の増加は20以内に限らない。x方向の増加およびy方向の増加は、任意である。   In this embodiment, the increase in the x direction and the increase in the y direction are within 20 but the increase in the x direction and the increase in the y direction are not limited to 20 or less. The increase in the x direction and the increase in the y direction are arbitrary.

「制御列」は、「0」と「1」とで表される。dx≧dyの場合には、x方向に1増加した場合のyの増加分を「0」および「1」で示す。「0」は、x方向に1増加した場合にはy方向の増加は0であることを示し、「1」は、x方向に1増加した場合にはy方向の増加は1であることを示す。   The “control string” is represented by “0” and “1”. In the case of dx ≧ dy, the increment of y when incremented by 1 in the x direction is indicated by “0” and “1”. “0” indicates that the increase in the y direction is 0 when 1 is increased in the x direction, and “1” indicates that the increase in the y direction is 1 when 1 is increased in the x direction. Show.

例えば、(dx,dy)=(1,2)の場合には、制御列は{0,1}である。この制御列{0,1}は、第1点からx方向に1増加した場合には、y方向の増加は0であり、次にx方向に1増加した場合には、y方向の増加が1であることを示す。この制御列によって表される線のパターンは、第1点と第2点とを通る線のパターンを示す。   For example, when (dx, dy) = (1, 2), the control string is {0, 1}. This control sequence {0, 1} has an increase in the y direction of 0 when it increases by 1 in the x direction from the first point, and an increase in the y direction when it increases by 1 in the x direction. 1 is shown. The pattern of lines represented by this control sequence indicates a pattern of lines passing through the first point and the second point.

図12は、曲線テーブル44の一例を示す。曲線テーブル44は、補助記憶装置40に格納されている(図8参照)。   FIG. 12 shows an example of the curve table 44. The curve table 44 is stored in the auxiliary storage device 40 (see FIG. 8).

図13は、制御列が有する値を示す。   FIG. 13 shows values that the control column has.

「index」は、テーブルのレコード番号を示し、「(dx、dy)」は第1点からのx方向の増加分およびy方向の増加分を示す。   “Index” indicates a record number of the table, and “(dx, dy)” indicates an increase in the x direction and an increase in the y direction from the first point.

本実施例では、x方向の増加およびy方向の増加が15以内であるが、x方向の増加およびy方向の増加は15以内に限らない。x方向の増加およびy方向の増加は、任意である。曲線テーブルのx方向の増加およびy方向の増加の範囲が直線テーブルのx方向の増加およびy方向の増加の範囲より小さいのは、一般に、文字が有する曲線の2点間の距離は、文字が有する直線の2点間の距離より小さいからである。   In this embodiment, the increase in the x direction and the increase in the y direction are within 15; however, the increase in the x direction and the increase in the y direction are not limited to 15 or less. The increase in the x direction and the increase in the y direction are arbitrary. In general, the range of the increase in the x direction and the increase in the y direction of the curve table is smaller than the range of the increase in the x direction and the increase in the y direction of the straight line table. This is because the distance is smaller than the distance between two points on the straight line.

「角度」は、第3点が領域1〜28の何れにあるかを示す(図7参照)。   “Angle” indicates which of the regions 1 to 28 is the third point (see FIG. 7).

「制御列」は、「0」〜「7」で表される(図13参照)。「0」は第2点に対して右への移動を示し、「1」は右上への移動を示し、「2」は上への移動を示し、「3」は左上への移動を示し、「4」は左への移動を示し、「5」は左下への移動を示し、「6」は下への移動を示し、「7」は右下への移動を示す。例えば(dx,dy)=(7,4)で、第3点が領域2にある場合には、制御列は{0,0,1,0,1,1,1}である(図12参照)。この制御列は、第1点からの移動が右、右、右上、右、右上、右上、右上であることを示す。この移動によって表される線のパターンは、3点が第1点(0,0)、第2点(7,4)、第3点(10,10)である場合の第1点と第2点とを通る線のパターンを示す(図1参照)。   The “control string” is represented by “0” to “7” (see FIG. 13). “0” indicates a movement to the right with respect to the second point, “1” indicates a movement to the upper right, “2” indicates an upward movement, “3” indicates an upper left movement, “4” indicates movement to the left, “5” indicates movement to the lower left, “6” indicates movement to the lower side, and “7” indicates movement to the lower right. For example, when (dx, dy) = (7, 4) and the third point is in the region 2, the control sequence is {0, 0, 1, 0, 1, 1, 1} (see FIG. 12). ). This control column indicates that the movement from the first point is right, right, upper right, right, upper right, upper right, upper right. The pattern of the line represented by this movement is the first point and the second point when the three points are the first point (0, 0), the second point (7, 4), and the third point (10, 10). A pattern of lines passing through the points is shown (see FIG. 1).

図12を参照して説明したように、曲線テーブル44に含まれる情報は、第2点と第3点との位置関係と線のパターンとの対応関係を示す。この曲線テーブル44は、予め補助記憶装置40に用意されている。   As described with reference to FIG. 12, the information included in the curve table 44 indicates the correspondence between the positional relationship between the second point and the third point and the line pattern. The curve table 44 is prepared in advance in the auxiliary storage device 40.

なお、曲線テーブル44に含まれる「制御列」によって表される線のパターンは、曲線に限らない。「制御列」によって表される線のパターンは、直線であり得る。このような制御列は、例えば、{1,1,1,1}である。   The line pattern represented by the “control column” included in the curve table 44 is not limited to a curve. The pattern of lines represented by “control columns” may be a straight line. Such a control string is {1, 1, 1, 1}, for example.

以上、図1〜図13および図28を参照して、本発明の実施の形態の文字表示装置100を説明した。   The character display device 100 according to the embodiment of the present invention has been described above with reference to FIGS. 1 to 13 and FIG.

例えば、図1〜図13および図28の例では、表示デバイス30が「線を表示する表示デバイス」に対応し、制御部20が「表示デバイスを制御する制御部」、「与えられた第1点、第2点および第3点に対して、第1点および第2点のうちの少なくとも一方と第3点との第1の位置関係を決定する制御部」、「予め用意された少なくとも1つの線のパターンであって、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された第1の位置関係に対応する1つの線のパターンを選択する制御部」および「選択された線のパターンに応じて、第1点と第2点とを通る線を表示デバイスに表示する制御部」に対応する。さらに、直線テーブル42および曲線テーブル44を記憶する補助記憶装置40が「第1の位置関係と線のパターンとの対応関係を示すパターン情報を保持する保持部」に対応する。   For example, in the examples of FIGS. 1 to 13 and FIG. 28, the display device 30 corresponds to “a display device that displays a line”, and the control unit 20 includes “a control unit that controls the display device” and “given first A control unit for determining a first positional relationship between at least one of the first point and the second point and the third point with respect to the point, the second point, and the third point, and “at least one prepared in advance; A control unit that selects one line pattern corresponding to the determined first positional relationship from among at least one line pattern that passes through the first point and the second point. And “a control unit that displays on the display device a line passing through the first point and the second point according to the selected line pattern”. Further, the auxiliary storage device 40 that stores the straight line table 42 and the curve table 44 corresponds to “a holding unit that holds pattern information indicating a correspondence relationship between the first positional relationship and the line pattern”.

しかし、図1〜図13および図28に示される実施の形態は、本発明の文字表示装置の機能の一例を示したに過ぎない。上述した各手段の機能が達成される限りは、任意の構成を有する文字表示装置が本発明の範囲内に含まれ得る。   However, the embodiment shown in FIGS. 1 to 13 and FIG. 28 is merely 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.

例えば、直線テーブル42および曲線テーブル44が表示装置の外部から表示装置に入力されてもよい。例えば、ネットワークを介して表示装置と結ばれた保持部に直線テーブル42および曲線テーブル44が保持されている場合には、直線テーブル42および曲線テーブル44が表示装置の外部から表示装置に入力される。   For example, the straight line table 42 and the curve table 44 may be input to the display device from the outside of the display device. For example, when the straight line table 42 and the curve table 44 are held in the holding unit connected to the display device via the network, the straight line table 42 and the curve table 44 are input to the display device from the outside of the display device. .

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

例えば、文字表示装置には、文字表示処理手順を実行させるためのプログラム(以下、文字表示処理プログラムという)が格納されている。文字表示処理プログラムは、コンピュータの出荷時に、文字表示装置に含まれるプログラム格納手段に予め格納されていてもよい。   For example, the character display device stores a program for executing a character display processing procedure (hereinafter referred to as a character display processing program). The character display processing program may be stored in advance in a program storage unit included in the character display device when the computer is shipped.

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

なお、文字表示処理手順の詳細は、後述される。   Details of the character display processing procedure will be described later.

図1〜図13および図28を参照して説明したように、本発明の表示装置によれば、第1点と第2点とを通る線の軌道を計算によって求めることなく、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された位置関係に対応する1つの線のパターンを選択することによって、第1点と第2点とを通る線を表示できる。したがって、複雑な計算が必要とされる第1点と第2点とを通る線の軌道の計算を行う必要がなく、第1点と第2点とを通る線を高速に表示できる。   As described with reference to FIG. 1 to FIG. 13 and FIG. 28, according to the display device of the present invention, the first point is obtained without calculating the trajectory of the line passing through the first point and the second point. A line passing through the first point and the second point can be displayed by selecting one line pattern corresponding to the determined positional relationship from the pattern of at least one line passing through the second point. Therefore, it is not necessary to calculate the trajectory of the line passing through the first point and the second point, which requires complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

本発明では、第1点と第2点とを通る線のパターンと3点の位置関係との対応を示すテーブルを利用して、3点を結ぶ曲線を描画する。したがって、テーブルの読み出しのみで曲線の描画が可能となり、複雑な演算が発生しない。その結果、第1点と第2点とを通る線を高速に描画できる。   In the present invention, a curve connecting the three points is drawn using a table indicating the correspondence between the pattern of lines passing through the first point and the second point and the positional relationship between the three points. Therefore, a curve can be drawn only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

さらに、第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度を分類し、テーブル化する。その結果、容量を少なくできる。   Further, the angles of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point are classified and tabulated. As a result, the capacity can be reduced.

さらに、第2点が第1象限にある場合のみ、第1点と第2点とを通る直線と第2点と第3点とを通る直線の角度の分類とテーブル化とを行う。したがって、3点の位置の組み合わせを減らすことができる。その結果、さらに容量を少なくできる。   Furthermore, only when the second point is in the first quadrant, the straight line passing through the first point and the second point and the angle of the straight line passing through the second point and the third point are classified and tabulated. Therefore, the number of combinations of the three points can be reduced. As a result, the capacity can be further reduced.

3.表示方法
図14は、文字表示処理手順を示す。CPU121が文字表示プログラム141を実行することによって、文字表示処理が行われる。
3. Display Method FIG. 14 shows a character display processing procedure. Character display processing is performed by the CPU 121 executing the character display program 141.

以下、図8および図14を参照して文字表示処理手順をステップごとに説明する。   Hereinafter, the character display processing procedure will be described step by step with reference to FIGS.

ステップS101:入力デバイス10から入力された指示に従って、文字データ42から指定の文字を表す文字データが読み込まれる。例えば、読み込まれる文字データは、複数の座標データを含む(図9参照)。   Step S101: Character data representing a designated character is read from the character data 42 in accordance with an instruction input from the input device 10. For example, the read character data includes a plurality of coordinate data (see FIG. 9).

ステップS102:読み込まれた文字データに含まれた座標データが出力サイズに適合するようにスケーリングされる。出力サイズがnドットである場合には、座標データ(x,y)は所定の計算によってスケーリングされ、スケール化データ(X,Y)に変更される。所定の計算は、X=(n−1)×x/255、Y=(n−1)×y/255である。   Step S102: The coordinate data included in the read character data is scaled to fit the output size. When the output size is n dots, the coordinate data (x, y) is scaled by a predetermined calculation and changed to scaled data (X, Y). The predetermined calculations are X = (n−1) × x / 255, Y = (n−1) × y / 255.

例えば、出力サイズが36ドットである場合には、座標データ(x,y)(図9参照)は所定の計算によってスケーリングされ、スケール化データ(図22参照)に変更される。   For example, when the output size is 36 dots, the coordinate data (x, y) (see FIG. 9) is scaled by a predetermined calculation and changed to scaled data (see FIG. 22).

ステップS103:スケール化データは量子化され、量子化データに変更される。例えば、量子化する方法として、四捨五入がある。例えば、座標データ(x,y)(図9参照)が所定の計算によってスケーリングされ、さらに量子化されることによって、量子化データに変更される(図22参照)。   Step S103: The scaled data is quantized and changed to quantized data. For example, there is a rounding method as a quantization method. For example, the coordinate data (x, y) (see FIG. 9) is scaled by a predetermined calculation and further quantized to be changed to quantized data (see FIG. 22).

なお、量子化する方法は、四捨五入に限定されない。本願と同出願人による出願(特願2003−137918号明細書)には、量子化する他の方法が開示されている。開示された方法には、量子化誤差を抑える方法が含まれる。   Note that the quantization method is not limited to rounding. Another method of quantization is disclosed in the present application and the application filed by the same applicant (Japanese Patent Application No. 2003-137918). The disclosed method includes a method for suppressing a quantization error.

ステップS104:直線テーブル43および曲線テーブル44を参照して、量子化データから描画データを求める。   Step S104: Referring to the straight line table 43 and the curve table 44, drawing data is obtained from the quantized data.

ステップS105:描画データに基づいて、イメージを表示デバイス30に表示する。   Step S105: An image is displayed on the display device 30 based on the drawing data.

イメージを表示デバイス30に表示した後、処理は終了する。   After the image is displayed on the display device 30, the process ends.

図15は、ステップS104で実行される描画データ化処理手順を示す。   FIG. 15 shows the drawing data conversion processing procedure executed in step S104.

以下、図15を参照して描画データ化処理手順をステップごとに説明する。   Hereinafter, the drawing data conversion processing procedure will be described step by step with reference to FIG.

ステップS201:量子化データが取り出される。例えば、文字「大」の場合には、呼び出されたラインNoに対応する量子化データが取り出される(図22参照)。最初にラインNo.1が呼び出され、対応する量子化データ((1,25)、(34,25))が取り出される。次に、ラインNo2が呼び出され、対応する量子化データ((17,34)、(17,25)、(14,15)、(8,7)、(2,2))が取り出される。最後に、ラインNo.3が呼び出され、対応する量子化データ((17,25)、(20,17)、(24,10)、(29,5)、(34,2))が取り出される。   Step S201: Quantized data is extracted. For example, in the case of the character “Large”, the quantized data corresponding to the called line No. is extracted (see FIG. 22). First, the line No. 1 is called, and the corresponding quantized data ((1, 25), (34, 25)) is extracted. Next, line No. 2 is called and the corresponding quantized data ((17, 34), (17, 25), (14, 15), (8, 7), (2, 2)) is extracted. Finally, line no. 3 is called, and the corresponding quantized data ((17, 25), (20, 17), (24, 10), (29, 5), (34, 2)) is extracted.

ステップS202:呼び出されたラインNoに対応する量子化データに3点以上の座標点が含まれるか否かが判定される。   Step S202: It is determined whether or not three or more coordinate points are included in the quantized data corresponding to the called line No.

3点以上の座標点が含まれると判定された場合(Yes)には、処理は、ステップS204に進む。3点以上の座標点が含まれないと判定された場合(No)には、処理は、ステップS203に進む。   If it is determined that three or more coordinate points are included (Yes), the process proceeds to step S204. If it is determined that three or more coordinate points are not included (No), the process proceeds to step S203.

ステップS203:呼び出されたラインNoによって示されるラインが直線で描画されるように描画データが求められる。直線テーブル43を参照して、量子化データから描画データが求められる。   Step S203: Drawing data is obtained so that the line indicated by the called line No is drawn as a straight line. With reference to the straight line table 43, drawing data is obtained from the quantized data.

ステップS204:呼び出されたラインNoによって示されるラインが曲線で描画されるように描画データが求められる。曲線テーブル44を参照して、量子化データから描画データが求められる。   Step S204: Drawing data is determined so that the line indicated by the called line No is drawn with a curve. With reference to the curve table 44, drawing data is obtained from the quantized data.

ステップS205:呼び出すべきラインがあるか否かを判定する。   Step S205: It is determined whether there is a line to be called.

呼び出すべきラインがあると判定された場合(Yes)には、処理は、ステップS201に進む。呼び出すべきラインがないと判定された場合(No)には、処理は終了する。   If it is determined that there is a line to be called (Yes), the process proceeds to step S201. If it is determined that there is no line to call (No), the process ends.

図16は、ステップS203で実行される直線描画処理手順を示す。   FIG. 16 shows a straight line drawing process procedure executed in step S203.

以下、図16を参照して直線描画処理手順をステップごとに説明する。   Hereinafter, the straight line drawing processing procedure will be described step by step with reference to FIG.

ステップS301:与えられた2点の座標点(x,y)、(x,y)の次の値を求める。dx←abs(x−x)によって、xとxとの距離dxを求め、dy←abs(y−y)によって、yとyとの距離dyを求める。 Step S301: The next value of the given two coordinate points (x 1 , y 1 ) and (x 2 , y 2 ) is obtained. The distance dx between x 1 and x 2 is obtained by dx ← abs (x 2 −x 1 ), and the distance dy between y 1 and y 2 is obtained by dy ← abs (y 2 −y 1 ).

なお、関数abs(t)はtの絶対値を示す。   The function abs (t) indicates the absolute value of t.

さらに、描画位置を示す変数を(x,y)で表した場合、x←xおよびy←yは第1点を描画開始位置に設定する処理を示す。 Furthermore, when representing a variable indicating the drawing position (x, y) at, x ← x 1 and y ← y 1 shows a process of setting a drawing start position of the first point.

ステップS302:第1点(x,y)を描画データ化する。   Step S302: The first point (x, y) is converted into drawing data.

ステップS303:直線テーブル43から制御列を取得する。直線テーブルへのアクセスは、次の計算で行われる。   Step S303: A control row is acquired from the straight line table 43. Access to the linear table is performed by the following calculation.

テーブルの範囲をnとすると、直線テーブル43のうちの((n+1)×dy+dx+1)番目の制御列を取得する。本実施例ではテーブルの範囲を20としているので、((20+1)×dy+dx+1)番目の制御列を取得する。   If the range of the table is n, the ((n + 1) × dy + dx + 1) th control column in the straight line table 43 is acquired. In this embodiment, since the table range is 20, the ((20 + 1) × dy + dx + 1) th control column is acquired.

ステップS304:xおよびxのうちどちらが大きいかを判定する。 Step S304: determining which one is greater of x 1 and x 2.

がx以上であると判定された場合(Yes)には、処理はステップS305に進む。xがxより小さいと判定された場合(No)には、処理はステップS306に進む。 In the case where x 2 is determined to be x 1 or more (Yes), then the process proceeds to step S305. In the case where x 2 is determined to be x 1 is smaller than (No), then the process proceeds to step S306.

ステップS305:変数incxに値「1」をセットする。変数incxによって、x方向の増減が制御される。   Step S305: A value “1” is set in the variable incx. Increase / decrease in the x direction is controlled by the variable incx.

ステップS306:変数incxに値「−1」をセットする。変数incxによって、x方向の増減が制御される。   Step S306: A value “−1” is set in the variable incx. Increase / decrease in the x direction is controlled by the variable incx.

ステップS307:yおよびyのうちどちらが大きいかを判定する。 Step S307: determining either the greater of y 1 and y 2.

がy以上であると判定された場合(Yes)には、処理はステップS308に進む。yがyより小さいと判定された場合(No)には、処理はステップS309に進む。 In the case where y 2 is determined to be y 1 or more (Yes), then the process proceeds to step S308. In the case where y 2 is determined to be y 1 is less than (No), then the process proceeds to step S309.

ステップS308:変数incyに値「1」をセットする。変数incyによって、y方向の増減が制御される。   Step S308: A value “1” is set in the variable incy. Increase / decrease in the y direction is controlled by the variable incy.

ステップS309:変数incyに値「−1」をセットする。変数incyによって、y方向の増減が制御される
ステップS310:dxおよびdyのうちどちらが大きいかを判定する。
Step S309: A value “−1” is set in the variable incy. Increase / decrease in the y direction is controlled by the variable incy Step S310: It is determined which of dx and dy is greater.

dxがdy以上であると判定された場合(Yes)には、処理はステップS311に進む。dxがdyより小さいと判定された場合(No)には、処理はステップS314に進む。   If it is determined that dx is greater than or equal to dy (Yes), the process proceeds to step S311. If it is determined that dx is smaller than dy (No), the process proceeds to step S314.

ステップS311:制御列が終わりか否かが判定される。制御列が終わりであると判定された場合(Yes)には、処理は終了する。制御列が終わりでないと判定された場合(No)には、処理はステップS312に進む。   Step S311: It is determined whether or not the control sequence is over. If it is determined that the control sequence is finished (Yes), the process ends. If it is determined that the control string is not over (No), the process proceeds to step S312.

ステップS312:(x,y)の次の点を計算する。具体的はxにxの増減を制御するincxの値を加え(xの次の値=x+incx)、yにyの増減を制御するincyに制御列の値(Δy)を掛けた値を加える(yの次の値=y+incy×Δy)。   Step S312: The next point of (x, y) is calculated. Specifically, the value of incx for controlling the increase / decrease in x is added to x (the next value of x = x + incx), and the value of incy for controlling the increase / decrease in y is multiplied by the value (Δy) in the control column ( Next value of y = y + incy × Δy).

ステップS313:(x+incx)および(y+incy×Δy)を描画データ化する。具体的には、点(x+incx,y+incy×Δy)をプロットする。その後、処理はステップS311に進む。   Step S313: (x + incx) and (y + incy × Δy) are converted into drawing data. Specifically, a point (x + incx, y + incy × Δy) is plotted. Thereafter, the process proceeds to step S311.

ステップS314:制御列が終わりか否かが判定される。制御列が終わりであると判定された場合(Yes)には、処理は終了する。制御列が終わりでないと判定された場合(No)には、処理はステップS315に進む。   Step S314: It is determined whether or not the control sequence is over. If it is determined that the control sequence is finished (Yes), the process ends. If it is determined that the control sequence is not over (No), the process proceeds to step S315.

ステップS315:(x,y)の次の点を計算する。具体的はxにxの増減を制御するincxに制御列の値(Δx)を掛けた値を加え(xの次の値=x+incx×Δx)、yにyの増減を制御するincyの値を加える(yの次の値=y+incy)。   Step S315: The next point of (x, y) is calculated. Specifically, a value obtained by multiplying x by incx for controlling the increase / decrease of x and the value (Δx) of the control column (the next value of x = x + incx × Δx), and the value of incy for controlling the increase / decrease of y by y Add (next value of y = y + incy).

ステップS316:(x+incx×Δx)および(y+incy)を描画データ化する。具体的には、点(x+incx×Δx,y+incy)をプロットする。その後、処理はステップS314に進む。   Step S316: (x + incx × Δx) and (y + incy) are converted into drawing data. Specifically, a point (x + incx × Δx, y + incy) is plotted. Thereafter, the process proceeds to step S314.

図17は、ステップS204で実行される曲線描画処理手順を示す。   FIG. 17 shows a curve drawing process procedure executed in step S204.

以下、図17を参照して曲線描画処理手順をステップごとに説明する。   Hereinafter, the curve drawing processing procedure will be described step by step with reference to FIG.

ステップS401:与えられた座標点から3点を取り出す。例えば、与えられた座標点が5点((a,b)、(a,b)、(a,b)、(a,b)、(a,b))である場合には、最初の呼び出しでは(a,b)、(a,b)、(a,b)の3点が取り出され、次の呼び出しでは(a,b)、(a,b)、(a,b)が取り出される。このように連続した3点を1点ずつ、ずらしながら取り出す。 Step S401: Three points are extracted from the given coordinate points. For example, given coordinate points are 5 points ((a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ). ), In the first call, three points (a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ) are taken out, and in the next call, (a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ) are taken out. The three consecutive points are taken out one by one while being shifted.

ステップS402:取り出された3点の座標点(x,y)、(x,y)、(x,y)の次の値を求める。dx←abs(x−x)によって、xとxの距離dxを求め、dy←abs(y−y)によって、yとyとの距離dyを求める。 Step S402: The next values of the three extracted coordinate points (x 1 , y 1 ), (x 2 , y 2 ), (x 3 , y 3 ) are obtained. The distance dx between x 1 and x 2 is obtained by dx ← abs (x 2 −x 1 ), and the distance dy between y 1 and y 2 is obtained by dy ← abs (y 2 −y 1 ).

さらに、描画位置を示す変数を(x,y)で表した場合、x←xおよびy←yは、第3点のうち第1点を描画開始位置に設定する処理を示す。 Furthermore, when representing a variable indicating the drawing position (x, y) at, x ← x 1 and y ← y 1 shows a process for setting the first point of the third point to the drawing start position.

ステップS403:取り出された3点の内、第1点(x,y)を描画データ化する。   Step S403: Of the three extracted points, the first point (x, y) is converted into drawing data.

ステップS404:第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度から角度パターンを求める。   Step S404: An angle pattern is obtained from an angle between a straight line passing through the first point and the second point and a straight line passing through the second point and the third point.

角度パターンa=round(((Θ−Θ)×28)/(2×Π))として計算できる。 It can be calculated as an angle pattern a = round (((Θ 2 −Θ 1 ) × 28) / (2 × Π)).

ここで、角度Θは、第1点と第2点とを通る直線とx軸との角度(Θ=tan−1((y−y)/(x−x)))であり、角度Θは、第2点と第3点とを通る直線とx軸との角度(Θ=tan−1((y−y)/(x−x)))である。 Here, the angle Θ 1 is an angle between the straight line passing through the first point and the second point and the x axis (Θ 1 = tan −1 ((y 2 −y 1 ) / (x 2 −x 1 ))) The angle Θ 2 is the angle between the straight line passing through the second point and the third point and the x axis (Θ 2 = tan −1 ((y 3 −y 2 ) / (x 3 −x 2 ))) It is.

関数round(t)は、tの四捨五入を示す。tan−1の計算は処理が複雑であるが、本発明の場合、最終的に28分割された何れかの角度パターンに当てはめればよいもので、精度の要求は高くない。したがって、tan−1の引数を何パターンかに分類したテーブルを用いて、tan−1の計算を高速化することも可能である。 The function round (t) indicates the rounding off of t. The calculation of tan −1 is complicated, but in the case of the present invention, it can be applied to any angle pattern finally divided into 28, and the accuracy requirement is not high. Therefore, it is possible to speed up the calculation of tan −1 using a table in which the tan −1 argument is classified into several patterns.

なお、tan−1の引数とtan−1の値との対応を示すテーブルを用いてtan−1の計算を高速化する手法の詳細は、後述される。 Details of techniques to speed up the calculation of tan -1 using a table showing the correspondence between the value of the argument and tan -1 of tan -1 will be described later.

以上、ステップS401〜ステップS404を参照して説明したように、ステップS401〜ステップS404を実行することによって、与えられた第1点、第2点および第3点に対して、第1点および第2点のうちの少なくとも一方と第3点との位置関係が決定される。   As described above with reference to steps S401 to S404, the first point and the second point are given to the first point, the second point, and the third point by executing steps S401 to S404. A positional relationship between at least one of the two points and the third point is determined.

ステップS405:曲線テーブル44から制御列を取得(選択)する。曲線テーブルへのアクセスは、次の計算で行われる。   Step S405: A control string is acquired (selected) from the curve table 44. Access to the curve table is performed by the following calculation.

テーブルの範囲をn、分割数をt、角度パターンをaとすると、曲線テーブル44のうちの((n+1)×t×dy+t×dx+a)番目の制御列を取得する。本実施例ではテーブルの範囲を15とし、分割数を28としているので、((15+1)×28×dy+28×dx+a)番目の制御列を取得する。   When the table range is n, the number of divisions is t, and the angle pattern is a, the ((n + 1) × t × dy + t × dx + a) -th control column in the curve table 44 is acquired. In this embodiment, the range of the table is 15, and the number of divisions is 28, so the ((15 + 1) × 28 × dy + 28 × dx + a) -th control column is acquired.

ステップS405を参照して説明したように、ステップS405を実行することによって、第2点と第3点との位置関係と線のパターンとの対応関係を示す情報が含まれた曲線テーブル44から、所望の線のパターンを示す制御列が選択される。   As described with reference to step S405, by executing step S405, from the curve table 44 including information indicating the correspondence between the positional relationship between the second point and the third point and the line pattern, A control column showing the desired line pattern is selected.

ステップS406:xおよびxのうちどちらが大きいかを判定する。 Step S406: determining which one is greater of x 1 and x 2.

がx以上であると判定された場合(Yes)には、処理はステップS407に進む。xがxより小さいと判定された場合(No)には、処理はステップS408に進む。
ステップS407:yおよびyのうちどちらが大きいかを判定する。
In the case where x 2 is determined to be x 1 or more (Yes), then the process proceeds to step S407. In the case where x 2 is determined to be x 1 is smaller than (No), then the process proceeds to step S408.
Step S407: determining either the greater of y 1 and y 2.

がy以上であると判定された場合(Yes)には、処理はステップS409に進む。yがyより小さいと判定された場合(No)には、処理はステップS410に進む。
ステップS408:yおよびyのうちどちらが大きいかを判定する。
In the case where y 2 is determined to be y 1 or more (Yes), then the process proceeds to step S409. In the case where y 2 is determined to be y 1 is less than (No), then the process proceeds to step S410.
Step S408: determining either the greater of y 1 and y 2.

がy以上であると判定された場合(Yes)には、処理はステップS411に進む。yがyより小さいと判定された場合(No)には、処理はステップS412に進む。 In the case where y 2 is determined to be y 1 or more (Yes), then the process proceeds to step S411. In the case where y 2 is determined to be y 1 is less than (No), then the process proceeds to step S412.

ステップS409:第1点を原点とした場合に、第2点が第1象限にある場合の第1象限描画をする。   Step S409: Drawing the first quadrant when the second point is in the first quadrant when the first point is the origin.

ステップS410:第1点を原点とした場合に、第2点が第2象限にある場合の第2象限描画をする。   Step S410: When the first point is the origin, the second quadrant is drawn when the second point is in the second quadrant.

ステップS411:第1点を原点とした場合に、第2点が第3象限にある場合の第3象限描画をする。   Step S411: When the first point is set as the origin, the third quadrant is drawn when the second point is in the third quadrant.

ステップS412:第1点を原点とした場合に、第2点が第4象限にある場合の第4象限描画をする。   Step S412: When the first point is set as the origin, the fourth quadrant is drawn when the second point is in the fourth quadrant.

ステップS413:フラグがセットされているかを判定する。フラグがセットされていると判定された場合(Yes)には、処理は終了する。フラグがセットされていないと判定された場合(No)には、処理はステップS414に進む。   Step S413: It is determined whether a flag is set. If it is determined that the flag is set (Yes), the process ends. If it is determined that the flag is not set (No), the process proceeds to step S414.

ステップS414:ステップS401を実行することによって取得された3点が最後の3点か否かを判定する。   Step S414: It is determined whether or not the three points acquired by executing Step S401 are the last three points.

例えば、曲線描画処理に与えられた座標点が(a,b)、(a,b)、(a,b)、(a,b)、(a,b)の5点である場合には、ステップS401で取り出された3点が最後の3点(a,b)、(a,b)、(a,b)であるか否かを判定する。 For example, the coordinate points given to the curve drawing process are (a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ) Is the last three points (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ) or not. Determine whether.

最後の3点であると判定された場合(Yes)には、処理はステップS415に進む。最後の3点でないと判定された場合(No)には、処理はステップS401に進む。   If it is determined that there are the last three points (Yes), the process proceeds to step S415. If it is determined that it is not the last three points (No), the process proceeds to step S401.

ステップS415:フラグをセットし、3点を逆にセットする。   Step S415: A flag is set and three points are set in reverse.

例えば、最後の3点が(a,b)、(a,b)、(a,b)の順にセットされている場合には、最後の3点を(a,b)、(a,b)、(a,b)の順にセットするように変更する。(a,b)と(a,b)とが描画されなくなることを防ぐためである。 For example, when the last three points are set in the order of (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ), the last three points are set to (a 5 , b 5 ), (a 4 , b 4 ), and (a 3 , b 3 ) are changed in order. This is to prevent (a 4 , b 4 ) and (a 5 , b 5 ) from being rendered.

順に3点を取り出し処理をする場合(ステップS401参照)において、描画されるのは、3点の内、第1点と第2点との間であり、第2点と第3点との間は描画されない。最終的に最後の区間((a,b)と(a,b)との間)が描画されないのを防ぐため、最後に点(a,b)と点(a,b)とを入れ替え、最後の区間を描画する。 When three points are picked up in order (see step S401), the drawing is performed between the first point and the second point, and between the second point and the third point. Is not drawn. Finally, in order to prevent the last section (between (a 4 , b 4 ) and (a 5 , b 5 )) from being drawn, the points (a 3 , b 3 ) and the points (a 5 , b 5 ) is replaced and the last section is drawn.

なお、本実施例では、最後の3点を逆にセットしたが、「ステップ414の処理」を「取得された3点がラインの真ん中よりも前か否かを判定する処理」に変更してもよい。この場合には、取得された3点が真ん中より前であると判定された場合には、第1点から正順に3点を取り出し(ステップS401参照)、取得された3点が真ん中よりも前ではないと判定された場合には、最後の点から逆順に3点を取り出す。   In the present embodiment, the last three points are set in reverse, but “process of step 414” is changed to “process of determining whether or not the three acquired points are before the middle of the line”. Also good. In this case, if it is determined that the three acquired points are before the middle, three points are extracted in order from the first point (see step S401), and the three acquired points are before the middle. If it is determined that it is not, three points are extracted in reverse order from the last point.

図27は、tan−1の値とtan−1の引数との対応を示す。tan−1の値は、角度(度)であり、tan−1の引数は、dy/dxである。角度θは、(no×360)/56で示される。 Figure 27 shows the correspondence between parameter values of tan -1 and tan -1. The value of tan −1 is an angle (degree), and the argument of tan −1 is dy / dx. The angle θ is indicated by (no × 360) / 56.

tan−1の値とtan−1の引数との対応を示すテーブルを用いることで、tan−1の計算を行う必要はなくなる。但し、tan−1の値は、0〜180°(第1象限、第2象限のみ)であり、180°<tan−1<360に対応するtan−1の引数は、計算で求める。例えば(0,0)と(10,5)とを通る直線はdy/dx=0.5(dy=5、dx=10)であるため、no4とno5の間にあることがわかる。この実施例では小さいほうのnoを選ぶとすると、no=4になる。また(0,0)と(−10,−5)とを通る直線はdy/dx=0.5(dy=5、dx=10)であるため、no=4になるが、第3象限の値なので28を加算しno=32とする。つまり、Θ=tan−1((y−y)/(x−x))は、第1点と第2点を通る直線と水平線との角度を求めることに相当するが、精度を下げることが許される場合には、テーブルのnoを求めることに置きかえることができる。 By using the table showing the correspondence between the argument tan -1 values and tan -1, is no longer necessary to perform calculation of tan -1. However, the value of tan −1 is 0 to 180 ° (only the first quadrant and the second quadrant), and an argument of tan −1 corresponding to 180 ° <tan −1 <360 is obtained by calculation. For example, since the straight line passing through (0, 0) and (10, 5) is dy / dx = 0.5 (dy = 5, dx = 10), it can be seen that it is between no4 and no5. In this embodiment, if the smaller no is selected, no = 4. Also, since the straight line passing through (0, 0) and (−10, −5) is dy / dx = 0.5 (dy = 5, dx = 10), no = 4, but in the third quadrant Since it is a value, 28 is added and no = 32. That is, Θ 1 = tan −1 ((y 2 −y 1 ) / (x 2 −x 1 )) corresponds to obtaining an angle between a straight line passing through the first point and the second point and a horizontal line. If it is allowed to reduce the accuracy, it can be replaced with determining the table no.

(y−y)/(x−x))の値をテーブルで求めたものをnoとし、(y−y)/(x−x))の値をテーブルで求めたものをnoとすると、a=round(((Θ−Θ)×28)/(2×Π))の計算は、a=round(abs(no−no)/2)に置き換えることが出来る。 The value of (y 2 −y 1 ) / (x 2 −x 1 )) obtained from the table is designated as no 1, and the value of (y 3 −y 2 ) / (x 3 −x 2 )) is represented in the table. If the obtained value is no 2 , the calculation of a = round (((Θ 2 −Θ 1 ) × 28) / (2 × Π)) is a = round (abs (no 2 −no 1 ) / 2) Can be replaced.

以下、図1〜図4を参照して具体的に説明する。   Hereinafter, a specific description will be given with reference to FIGS.

図1は、(0,0)、(7,4)、(10,10)を通る曲線を示す。noの値は4である。(4−0)/(7−0)=0.571だからである。noの値は9である。(10−4)/(10−7)=2だからである。角度パターンaは、3である(a=round(abs(9−4)/2))。 FIG. 1 shows curves through (0,0), (7,4), (10,10). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 9. This is because (10-4) / (10-7) = 2. The angle pattern a is 3 (a = round (abs (9-4) / 2)).

図2は、(0,0)、(7,4)、(13,16)を通る曲線を示す。noの値は4である。(4−0)/(7−0)=0.571だからである。noの値は9である。(16−4)/(13−7)=2だからである。角度パターンaは、3である(a=round(abs(9−4)/2))。 FIG. 2 shows curves through (0,0), (7,4), (13,16). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 9. This is because (16-4) / (13-7) = 2. The angle pattern a is 3 (a = round (abs (9-4) / 2)).

図3は、(0,0)、(7,4)、(12,17)を通る曲線を示す。noの値は4である。(4−0)/(7−0)=0.571だからである。noの値は10である。(17−4)/(12−7)=2.6だからである。角度パターンaは、3である(a=round(abs(10−4)/2))。 FIG. 3 shows curves through (0,0), (7,4), (12,17). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 10. This is because (17-4) / (12-7) = 2.6. The angle pattern a is 3 (a = round (abs (10−4) / 2)).

図4は、(0,0)、(7,4)、(14,16)を通る曲線を示す。noの値は4である。(4−0)/(7−0)=0.571だからである。noの値は15である。(14−4)/(6−7)=−10だからである。角度パターンaは、6である(a=round(abs(15−4)/2))。 FIG. 4 shows curves passing through (0,0), (7,4), (14,16). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 15. This is because (14-4) / (6-7) = − 10. The angle pattern a is 6 (a = round (abs (15-4) / 2)).

このようなにテーブルを用いる場合には、複雑な三角関数を計算することなく角度パターンを求めることができる。   When a table is used in this way, the angle pattern can be obtained without calculating a complicated trigonometric function.

図18は、ステップS409で実行される第1象限描画処理手順を示す。   FIG. 18 shows the first quadrant drawing processing procedure executed in step S409.

以下、図18を参照して第1象限描画処理手順をステップごとに説明する。   Hereinafter, the first quadrant drawing processing procedure will be described step by step with reference to FIG.

ステップS501:ステップS405で取得された制御列が終わりか否かを判定する。   Step S501: It is determined whether or not the control sequence acquired in step S405 is over.

制御列が終わりであると判定された場合(Yes)には、処理は終了する。終わりでないと判定された場合(No)には、処理はステップS502に進む。   If it is determined that the control sequence is finished (Yes), the process ends. If it is determined that it is not the end (No), the process proceeds to step S502.

ステップS502:制御列の値(値「0」〜「7」:図13参照)に応じて、処理は分岐する。   Step S502: The process branches according to the value of the control string (values “0” to “7”: see FIG. 13).

制御値「0」である場合には、処理はステップS503に進む。制御値「1」である場合には、処理はステップS504に進む。制御値「2」である場合には、処理はステップS505に進む。制御値「3」である場合には、処理はステップS506に進む。制御値「4」である場合には、処理はステップS507に進む。制御値「5」である場合には、処理はステップS508に進む。制御値「6」である場合には、処理はステップS509に進む。制御値「7」である場合には、処理はステップS510に進む。   If the control value is “0”, the process proceeds to step S503. If the control value is “1”, the process proceeds to step S504. If the control value is “2”, the process proceeds to step S505. If the control value is “3”, the process proceeds to step S506. If the control value is “4”, the process proceeds to step S507. If the control value is “5”, the process proceeds to step S508. If the control value is “6”, the process proceeds to step S509. If the control value is “7”, the process proceeds to step S510.

ステップS503:x方向の値を制御するxの値を1増加させる。処理はステップS511に進む。   Step S503: The value of x that controls the value in the x direction is increased by one. The process proceeds to step S511.

ステップS504:x方向の値を制御するxの値を1増加させ、y方向の値を制御するyの値を1増加させる。処理はステップS511に進む。   Step S504: The value of x that controls the value in the x direction is increased by 1, and the value of y that controls the value in the y direction is increased by 1. The process proceeds to step S511.

ステップS505:y方向の値を制御するyの値を1増加させる。処理はステップS511に進む。   Step S505: The value of y for controlling the value in the y direction is incremented by one. The process proceeds to step S511.

ステップS506:x方向の値を制御するxの値を1減少させ、y方向の値を制御するyの値を1増加させる。処理はステップS511に進む。   Step S506: The value of x that controls the value in the x direction is decreased by 1, and the value of y that controls the value in the y direction is increased by 1. The process proceeds to step S511.

ステップS507:x方向の値を制御するxの値を1減少させる。処理はステップS511に進む。   Step S507: The value of x that controls the value in the x direction is decreased by one. The process proceeds to step S511.

ステップS508:x方向の値を制御するxの値を1減少させ、y方向の値を制御するyの値を1減少させる。処理はステップS511に進む。   Step S508: The value of x that controls the value in the x direction is decreased by 1, and the value of y that controls the value in the y direction is decreased by 1. The process proceeds to step S511.

ステップS509:y方向の値を制御するyの値を1減少させる。処理はステップS511に進む。   Step S509: The value of y for controlling the value in the y direction is decreased by one. The process proceeds to step S511.

ステップS510:x方向の値を制御するxの値を1増加させ、y方向の値を制御するyの値を1させる。処理はステップS511に進む。   Step S510: The value of x that controls the value in the x direction is incremented by 1, and the value of y that controls the value in the y direction is incremented by 1. The process proceeds to step S511.

ステップS511:ステップS503〜ステップS510で計算された点(x,y)を描画データ化する。例えば、点(x,y)をプロットする。   Step S511: The point (x, y) calculated in steps S503 to S510 is converted into drawing data. For example, the point (x, y) is plotted.

図19は、ステップS410で実行される第2象限描画処理手順を示す。   FIG. 19 shows the second quadrant drawing processing procedure executed in step S410.

第2象限は、第1象限に対してy軸対称である。したがって、第1象限描画処理手順(図18参照)との処理手順の違いは、制御値に応じたxの増減が逆になるだけであるので、ステップS601〜ステップS611の説明は省略する。   The second quadrant is y-axis symmetric with respect to the first quadrant. Accordingly, the difference between the first quadrant drawing processing procedure (see FIG. 18) and the processing procedure is only that the increase / decrease in x according to the control value is reversed, and thus the description of steps S601 to S611 is omitted.

図20は、ステップS411で実行される第3象限描画処理手順を示す。   FIG. 20 shows the third quadrant drawing processing procedure executed in step S411.

第3象限は、第1象限に対して原点対称である。したがって、第1象限描画処理手順(図18参照)との処理手順の違いは、制御値に応じたxの増減およびyの増減がそれぞれ逆になるだけであるので、ステップS701〜ステップS711の説明は省略する。   The third quadrant is symmetric with respect to the first quadrant. Accordingly, the difference in the processing procedure from the first quadrant drawing processing procedure (see FIG. 18) is that the increase / decrease in x and the increase / decrease in y in accordance with the control values are respectively reversed, so that Steps S701 to S711 are explained. Is omitted.

図21は、ステップS412で実行される第4象限描画処理手順を示す。   FIG. 21 shows the fourth quadrant drawing processing procedure executed in step S412.

第4象限は、第1象限に対してx軸対称である。したがって、第1象限描画処理手順(図18参照)との処理手順の違いは、制御値に応じたyの増減が逆になるだけであるので、ステップS801〜ステップS811の説明は省略する。   The fourth quadrant is x-axis symmetric with respect to the first quadrant. Accordingly, the difference between the first quadrant drawing processing procedure (see FIG. 18) and the processing procedure is only that the increase / decrease in y according to the control value is reversed, and thus the description of steps S801 to S811 is omitted.

図22は、座標データ、スケール化データおよび量子化データを示す。   FIG. 22 shows coordinate data, scaled data, and quantized data.

ベクトルデータ(図9参照)をスケール処理、量子化処理した結果である。   This is a result of scale processing and quantization processing of vector data (see FIG. 9).

図23は、図22に示された量子化データに基づいて描画した結果を示す。   FIG. 23 shows the result of rendering based on the quantized data shown in FIG.

量子化データ(図22参照)を描画データ化処理(図15参照)によって描画した結果を示す。曲線描画により、文字が高品位に描画できている。   The result of rendering quantized data (see FIG. 22) by rendering data conversion processing (see FIG. 15) is shown. Characters can be drawn with high quality by curve drawing.

図24は、テーブルの編集処理手順を示す。   FIG. 24 shows a procedure for editing the table.

図25は、表示点を変更した後の線のパターンを示す。   FIG. 25 shows the line pattern after changing the display points.

図26は、表示点を変更した後の曲線描画テーブルを示す。   FIG. 26 shows the curve drawing table after the display point is changed.

以下、図1、図12、図24〜図26を参照してテーブルの編集処理手順をステップごとに説明する。   The table editing procedure will be described step by step with reference to FIGS. 1, 12, and 24 to 26.

ステップS901:3点を通る制御列を呼び出し、線のパターンを編集画面に表示する。編集画面に表示された線のパターンは、例えば、図1に示される。2点を通る線のパターンが編集画面に表示されている。   Step S901: A control sequence passing through three points is called up, and a line pattern is displayed on the editing screen. The line pattern displayed on the editing screen is shown in FIG. 1, for example. A line pattern passing through two points is displayed on the editing screen.

ステップS902:表示された線のパターンを画面を見ながら変更する。例えば、図1に示された線のパターンを図25に示された線のパターンに編集する。   Step S902: The displayed line pattern is changed while viewing the screen. For example, the line pattern shown in FIG. 1 is edited to the line pattern shown in FIG.

ステップS903:変更された線のパターンのうち第1点と第2点とを通る線のパターンのみを制御列で示し、テーブルを書き換える。図12で示された曲線テーブルの1990番目の制御列{0,0,1,0,1,1,1}が図26で示された曲線テーブルの1990番目の制御列{0,1,0,1,0,1,1}に書き換えられる。   Step S903: Of the changed line patterns, only the line pattern passing through the first point and the second point is indicated by the control string, and the table is rewritten. The 1990th control sequence {0, 0, 1, 0, 1, 1, 1} of the curve table shown in FIG. 12 is replaced with the 1990th control sequence {0, 1, 0 of the curve table shown in FIG. , 1, 0, 1, 1}.

このように、曲線テーブルの内容は変更可能である。ただし変更結果は、第1点と第2点とを通る直線と第2点と第3点とを通る直線の角度が同じ角度パターンに分割する全ての場合に影響する。   Thus, the contents of the curve table can be changed. However, the change result affects all cases where the angle of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point are divided into the same angle pattern.

以上、図14〜図21および図24を参照して本発明の表示手順を説明した。   The display procedure of the present invention has been described above with reference to FIGS. 14 to 21 and FIG.

例えば、図14〜図21および図24の例では、ステップS401〜ステップS404が「与えられた第1点、第2点および第3点に対して、第1点および第2点のうちの少なくとも一方と第3点との第1の位置関係を決定するステップ」に対応し、ステップS405が「予め用意された少なくとも1つの線のパターンであって、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された第1の位置関係に対応する1つの線のパターンを選択するステップ」に対応し、ステップS409〜ステップS412が「選択された線のパターンに応じて、第1点と第2点とを通る線を表示デバイスに表示するステップ」に対応する。しかし、図14〜図21および図24の例は、本発明の表示手順の一例を示したに過ぎない。上述した各ステップが実行される限りは、任意のステップを有する表示手順が本発明の範囲に含まれ得る。   For example, in the examples of FIGS. 14 to 21 and 24, steps S401 to S404 are “at least one of the first point and the second point with respect to the given first point, second point and third point. Step S405 corresponds to “a step of determining the first positional relationship between one and the third point”, and “step S405 is a pattern of at least one line prepared in advance and passes through the first point and the second point at least. Corresponding to “Step of selecting one line pattern corresponding to the determined first positional relationship from one line pattern”, Steps S409 to S412 are performed according to “Selected line pattern. , “Displaying a line passing through the first point and the second point on the display device”. However, the examples of FIGS. 14 to 21 and FIG. 24 merely show an example of the display procedure of the present invention. As long as each step mentioned above is performed, the display procedure which has arbitrary steps may be included in the scope of the present invention.

本発明のプログラムおよび記録媒体によれば、第1点と第2点とを通る線の軌道を計算によって求めることなく、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された位置関係に対応する1つの線のパターンを選択することによって、第1点と第2点とを通る線を表示できる。したがって、複雑な計算が必要とされる第1点と第2点とを通る線の軌道の計算を行う必要がなく、第1点と第2点とを通る線を高速に表示できる。   According to the program and the recording medium of the present invention, a pattern of at least one line passing through the first point and the second point can be obtained without calculating a trajectory of the line passing through the first point and the second point. By selecting a pattern of one line corresponding to the determined positional relationship, a line passing through the first point and the second point can be displayed. Therefore, it is not necessary to calculate the trajectory of the line passing through the first point and the second point, which requires complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

上述した実施の形態では、文字を表示する場合を例にとり説明したが、本発明はこれに限定されない。文字に代えて、あるいは文字に加えて、図形を表示する場合にも本発明を適用することができる。この場合、文字表示プログラム41に代えて、あるいは文字表示プログラム41に加えて図形表示プログラムを使用するようにし、文字データ42に代えて、あるいは文字データ42に加えて図形データを使用するようにすればよい。図形表示プログラムもまた、文字表示プログラム41と同様のステップを含み得る。図形には、例えば、文字の一部、模様、記号などが含まれる。   In the above-described embodiment, the case where characters are displayed has been described as an example, but the present invention is not limited to this. The present invention can be applied to a case where a graphic is displayed instead of or in addition to a character. In this case, a graphic display program is used instead of the character display program 41 or in addition to the character display program 41, and graphic data is used instead of the character data 42 or in addition to the character data 42. That's fine. The graphic display program can also include the same steps as the character display program 41. The graphic includes, for example, a part of a character, a pattern, a symbol, and the like.

以上のように、本発明の好ましい実施形態を用いて本発明を例示してきたが、本発明は、この実施形態に限定して解釈されるべきものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。本明細書において引用した特許、特許出願および文献は、その内容自体が具体的に本明細書に記載されているのと同様にその内容が本明細書に対する参考として援用されるべきであることが理解される。   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点と第2点とを通る線の軌道を計算によって求めることなく、第1点と第2点とを通る少なくとも1つの線のパターンの中から、決定された位置関係に対応する1つの線のパターンを選択することによって、第1点と第2点とを通る線を表示できる。したがって、複雑な計算が必要とされる第1点と第2点とを通る線の軌道の計算を行う必要がなく、第1点と第2点とを通る線を高速に表示できる。   According to the display device, the program, and the recording medium of the present invention, the pattern of at least one line passing through the first point and the second point without obtaining the trajectory of the line passing through the first point and the second point by calculation. A line passing through the first point and the second point can be displayed by selecting one line pattern corresponding to the determined positional relationship. Therefore, it is not necessary to calculate the trajectory of the line passing through the first point and the second point, which requires complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

本発明では、第1点と第2点とを通る線のパターンと3点の位置関係との対応を示すテーブルを利用して、3点を結ぶ曲線を描画する。したがって、テーブルの読み出しのみで曲線の描画が可能となり、複雑な演算が発生しない。その結果、第1点と第2点とを通る線を高速に描画できる。   In the present invention, a curve connecting the three points is drawn using a table indicating the correspondence between the pattern of lines passing through the first point and the second point and the positional relationship between the three points. Therefore, a curve can be drawn only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

さらに、第1点と第2点とを通る直線と第2点と第3点とを通る直線との角度を分類し、テーブル化する。その結果、容量を少なくできる。   Further, the angles of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point are classified and tabulated. As a result, the capacity can be reduced.

さらに、第2点が第1象限にある場合のみ、第1点と第2点とを通る直線と第2点と第3点とを通る直線の角度の分類とテーブル化とを行う。したがって、3点の位置の組み合わせを減らすことができる。その結果、さらに容量を少なくできる。   Furthermore, only when the second point is in the first quadrant, the straight line passing through the first point and the second point and the angle of the straight line passing through the second point and the third point are classified and tabulated. Therefore, the number of combinations of the three points can be reduced. As a result, the capacity can be further reduced.

3点を通る曲線の一例を示す図である。It is a figure which shows an example of the curve which passes along three points. 3点を通る曲線の別の一例を示す図である。It is a figure which shows another example of the curve which passes along three points. 3点を通る曲線の更に別の一例を示す図である。It is a figure which shows another example of the curve which passes along 3 points | pieces. 3点を通る曲線の更に別の一例を示す図である。It is a figure which shows another example of the curve which passes along 3 points | pieces. 3点を通る曲線の更に別の一例を示す図である。It is a figure which shows another example of the curve which passes along 3 points | pieces. 3点を通る曲線の更に別の一例を示す図である。It is a figure which shows another example of the curve which passes along 3 points | pieces. 第2点の周囲に割り当てられた領域1〜領域28を示す図である。It is a figure which shows the area | region 1-the area | region 28 allocated around the 2nd point. 本発明の実施の形態の文字表示装置100の構成を示す図である。It is a figure which shows the structure of the character display apparatus 100 of embodiment of this invention. 文字データ42の一例を示す図である。It is a figure which shows an example of the character data. 文字データ42の表示の一例を示す図である。It is a figure which shows an example of a display of the character data. 直線テーブル43の一例を示す図である。It is a figure which shows an example of the straight line table. 曲線テーブル44の一例を示す図である。It is a figure which shows an example of the curve table. 制御列が有する値を示す図である。It is a figure which shows the value which a control row | line has. 文字表示処理手順を示すフローチャートである。It is a flowchart which shows a character display process procedure. ステップS104で実行される描画データ化処理手順を示すフローチャートである。It is a flowchart which shows the drawing data conversion process procedure performed by step S104. ステップS203で実行される直線描画処理手順を示すフローチャートである。It is a flowchart which shows the straight line drawing process procedure performed by step S203. ステップS204で実行される曲線描画処理手順を示すフローチャートである。It is a flowchart which shows the curve drawing process procedure performed by step S204. ステップS409で実行される第1象限描画処理手順を示すフローチャートである。It is a flowchart which shows the 1st quadrant drawing process procedure performed by step S409. ステップS410で実行される第2象限描画処理手順を示すフローチャートである。It is a flowchart which shows the 2nd quadrant drawing process procedure performed by step S410. ステップS411で実行される第3象限描画処理手順を示すフローチャートである。It is a flowchart which shows the 3rd quadrant drawing process procedure performed by step S411. ステップS412で実行される第4象限描画処理手順を示すフローチャートである。It is a flowchart which shows the 4th quadrant drawing process procedure performed by step S412. 座標データ、スケール化データおよび量子化データを示す図である。It is a figure which shows coordinate data, scaled data, and quantized data. 図22に示された量子化データに基づいて描画した結果を示す図である。It is a figure which shows the result drawn based on the quantization data shown by FIG. テーブルの編集処理手順を示すフローチャートである。It is a flowchart which shows the edit processing procedure of a table. 表示点を変更した後の線のパターンを示す図である。It is a figure which shows the pattern of the line after changing a display point. 表示点を変更した後の曲線描画テーブルを示す図である。It is a figure which shows the curve drawing table after changing a display point. tan−1の値とtan−1の引数との対応を示す図である。is a diagram showing the correspondence between argument tan -1 value and tan -1. 第2点の周囲に割り当てられた領域の一例を示す図である。It is a figure which shows an example of the area | region allocated around the 2nd point.

符号の説明Explanation of symbols

10 入力デバイス
20 制御部
21 CPU
22 主メモリ
30 表示デバイス
40 補助記憶装置
41 文字表示プログラム
42 文字データ
43 直線テーブル
44 曲線テーブル
100 文字表示装置1
10 Input device 20 Control unit 21 CPU
22 Main memory 30 Display device 40 Auxiliary storage device 41 Character display program 42 Character data 43 Line table 44 Curve table 100 Character display device 1

Claims (9)

線を表示する表示デバイスと、
前記表示デバイスを制御する制御部と
を備えた表示装置であって、
前記制御部は、与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定し、
予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択し、
前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示する、表示装置。
A display device for displaying lines;
A display device comprising: a control unit that controls the display device;
The control unit has a first positional relationship between at least one of the first point and the second point and the third point with respect to the given first point, second point, and third point. Decide
A pattern of at least one line prepared in advance, and one pattern corresponding to the determined first positional relationship among at least one line pattern passing through the first point and the second point Select the line pattern,
A display device that displays a line passing through the first point and the second point on the display device in accordance with the selected line pattern.
前記第1の位置関係と前記線のパターンとの対応関係を示すパターン情報を保持する保持部をさらに備え、
前記線のパターンの選択は、前記保持部に保持されている前記パターン情報を参照して行われる、請求項1に記載の表示装置。
A holding unit that holds pattern information indicating a correspondence relationship between the first positional relationship and the line pattern;
The display device according to claim 1, wherein the selection of the line pattern is performed with reference to the pattern information held in the holding unit.
前記第1の位置関係は、前記第1点と前記第2点とを結ぶ第1直線と前記第2点と前記第3点とを結ぶ第2直線との角度に応じて決定される、請求項1に記載の表示装置。 The first positional relationship is determined according to an angle between a first straight line connecting the first point and the second point and a second straight line connecting the second point and the third point. Item 4. The display device according to Item 1. 前記制御部は、前記第1点、前記第2点および第4点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第4点との第2の位置関係を決定し、
前記制御部は、前記少なくとも1つの線のパターンの中から、前記決定された第2の位置関係に対応する1つの線のパターンを選択し、
前記第2点の周囲には、複数の領域が割り当てられ、
前記第3点と前記第4点とは、前記複数の領域のうちの同じ領域に与えられ、
前記選択された第1の位置関係に対応する1つの線のパターンと前記選択された第2の位置関係に対応する1つの線のパターンとは、同じである、請求項3に記載の表示装置。
The control unit determines a second positional relationship between at least one of the first point and the second point and the fourth point with respect to the first point, the second point, and the fourth point. And
The control unit selects one line pattern corresponding to the determined second positional relationship from the at least one line pattern,
A plurality of areas are allocated around the second point,
The third point and the fourth point are given to the same region of the plurality of regions,
The display device according to claim 3, wherein a pattern of one line corresponding to the selected first positional relationship and a pattern of one line corresponding to the selected second positional relationship are the same. .
前記第1点は原点に与えられ、前記第2点は第一象限に与えられる、請求項1に記載の表示装置。 The display device according to claim 1, wherein the first point is given to an origin and the second point is given to a first quadrant. 前記第2点の周囲には、複数の領域が割り当てられ、
前記第3点は、前記複数の領域のうちの1つに与えられ、
前記複数の領域のうちの1つの領域と、前記1つの領域とは異なる領域とは、異なった大きさを有する、請求項1に記載の表示装置。
A plurality of areas are allocated around the second point,
The third point is given to one of the plurality of regions;
The display device according to claim 1, wherein one of the plurality of regions and a region different from the one region have different sizes.
前記第2点の周囲の一部のみに、複数の領域が割り当てられ、
前記第3点は、前記複数の領域のうちの1つに与えられる、請求項1に記載の表示装置。
A plurality of areas are allocated only to a part around the second point,
The display device according to claim 1, wherein the third point is given to one of the plurality of regions.
線を表示する表示デバイスを備えた情報表示装置に表示処理を実行させるプログラムであって、
前記表示処理は、
与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定するステップと、
予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択するステップと、
前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示するステップと
を包含する、プログラム。
A program for causing an information display device having a display device for displaying a line to execute display processing,
The display process includes
Determining a first positional relationship between at least one of the first point and the second point and the third point with respect to the given first point, second point and third point;
A pattern of at least one line prepared in advance, and one pattern corresponding to the determined first positional relationship among at least one line pattern passing through the first point and the second point Selecting a line pattern;
Displaying a line passing through the first point and the second point on the display device in accordance with the selected line pattern.
線を表示する表示デバイスを備えた情報表示装置によって読み取り可能な記録媒体であって、
前記記録媒体は、前記情報表示装置に表示処理を実行させるプログラムを記録し、
前記表示処理は、
与えられた第1点、第2点および第3点に対して、前記第1点および前記第2点のうちの少なくとも一方と前記第3点との第1の位置関係を決定するステップと、
予め用意された少なくとも1つの線のパターンであって、前記第1点と前記第2点とを通る少なくとも1つの線のパターンの中から、前記決定された第1の位置関係に対応する1つの線のパターンを選択するステップと、
前記選択された線のパターンに応じて、前記第1点と前記第2点とを通る線を前記表示デバイスに表示するステップと
を包含する、記録媒体。
A recording medium readable by an information display device having a display device for displaying lines,
The recording medium records a program for causing the information display device to execute display processing,
The display process includes
Determining a first positional relationship between at least one of the first point and the second point and the third point with respect to the given first point, second point and third point;
A pattern of at least one line prepared in advance, and one pattern corresponding to the determined first positional relationship among at least one line pattern passing through the first point and the second point Selecting a line pattern;
And displaying a line passing through the first point and the second point on the display device in accordance with the selected line pattern.
JP2004216462A 2004-07-23 2004-07-23 Display device, program, and recording medium Expired - Fee Related JP4198098B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2004216462A JP4198098B2 (en) 2004-07-23 2004-07-23 Display device, program, and recording medium
PCT/JP2005/013426 WO2006009228A1 (en) 2004-07-23 2005-07-21 Display apparatus, program and recording medium
CN2005800246142A CN1998024B (en) 2004-07-23 2005-07-21 Display apparatus, program and recording medium
KR1020077000567A KR100866362B1 (en) 2004-07-23 2005-07-21 Display apparatus, program and recording medium
HK07113184.2A HK1104864A1 (en) 2004-07-23 2007-12-03 Display apparatus, program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004216462A JP4198098B2 (en) 2004-07-23 2004-07-23 Display device, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2006039780A true JP2006039780A (en) 2006-02-09
JP4198098B2 JP4198098B2 (en) 2008-12-17

Family

ID=35785336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004216462A Expired - Fee Related JP4198098B2 (en) 2004-07-23 2004-07-23 Display device, program, and recording medium

Country Status (5)

Country Link
JP (1) JP4198098B2 (en)
KR (1) KR100866362B1 (en)
CN (1) CN1998024B (en)
HK (1) HK1104864A1 (en)
WO (1) WO2006009228A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04174494A (en) * 1990-11-07 1992-06-22 Nec Off Syst Ltd Letter generating system
KR960015761B1 (en) * 1992-01-27 1996-11-21 Fujitsu Ltd Charaster gerenating method and apparatus
TW262547B (en) * 1992-11-30 1995-11-11 Canon Kk
JPH10293854A (en) * 1997-04-18 1998-11-04 Koubundou:Kk Method and device for displaying curve, method and device for generating data showing the same curve, and recording medium where program for actualizing the same display method and generating method is recorded
CN1159666C (en) * 2002-03-29 2004-07-28 上海汉峰信息科技有限公司 Curved font described with stroke center line as datum for embedding application

Also Published As

Publication number Publication date
CN1998024A (en) 2007-07-11
KR100866362B1 (en) 2008-11-03
CN1998024B (en) 2010-10-06
JP4198098B2 (en) 2008-12-17
KR20070026795A (en) 2007-03-08
HK1104864A1 (en) 2008-01-25
WO2006009228A1 (en) 2006-01-26

Similar Documents

Publication Publication Date Title
JP4418044B2 (en) Method for displaying characters in a digital font, method for defining characters in a digital font, and method for generating characters in a digital font
JPH03208094A (en) Treatment of outline of symbol image of various sizes and computor display device
JPH05127654A (en) Character and figure deformation processing device
US6437793B1 (en) System for rapidly performing scan conversion with anti-aliasing upon outline fonts and other graphic elements
US20150325022A1 (en) Technique for processing a character string for graphical representation on a man/machine interface
JP4356752B2 (en) Document editing apparatus, program, and storage medium
KR100517162B1 (en) Font processor, terminal device, font processing method and recording medium recording the font processing program
JP4198098B2 (en) Display device, program, and recording medium
JP2007322810A (en) Font database generating program and font data structure
JP3479282B2 (en) Character and graphic transformation processor
JPS59210482A (en) Character pattern generator
JP3037023B2 (en) Character generator
US6034702A (en) Character forming apparatus
JPS63217394A (en) Character contour line generation system
JPH01262149A (en) Document output device having dot-character font forming function
JP6085197B2 (en) Portable information processing apparatus, display processing method, and display processing program
JP4666071B2 (en) Document editing apparatus, program, and storage medium
JP4911240B2 (en) Document editing apparatus, program, and storage medium
JP3072756B2 (en) Drawing equipment
JPS6132676B2 (en)
JP2004093931A (en) Font processor, terminal device, font processing method, and font processing program
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH1039736A (en) Method for dynamically generating character and method for dynamically displaying character
JPH10171795A (en) Method for plotting mathematical expression and functional graph on display screen
JPS62157089A (en) Generation of vector character

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080702

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080901

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080930

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

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 3

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131010

Year of fee payment: 5

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D04

LAPS Cancellation because of no payment of annual fees