CN1998024B - display device, program, and recording medium - Google Patents

display device, program, and recording medium Download PDF

Info

Publication number
CN1998024B
CN1998024B CN2005800246142A CN200580024614A CN1998024B CN 1998024 B CN1998024 B CN 1998024B CN 2005800246142 A CN2005800246142 A CN 2005800246142A CN 200580024614 A CN200580024614 A CN 200580024614A CN 1998024 B CN1998024 B CN 1998024B
Authority
CN
China
Prior art keywords
point
line
display device
pattern
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2005800246142A
Other languages
Chinese (zh)
Other versions
CN1998024A (en
Inventor
小山至幸
作田瑞
西田收
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Publication of CN1998024A publication Critical patent/CN1998024A/en
Application granted granted Critical
Publication of CN1998024B publication Critical patent/CN1998024B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/20Drawing from basic elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/20Drawing from basic elements
    • G06T11/23Drawing from basic elements using 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

A display device of the present invention includes: the display device includes a display device that displays a line, and a control unit that controls the display device, wherein the control unit specifies a first positional relationship between at least one of a first point and a second point and a third point, with respect to the first point, the second point, and the third point, selects a line mode corresponding to the specified first positional relationship from at least one line mode prepared in advance, that is, a mode of passing at least one line of the first point and the second point, and displays the line passing through the first point and the second point on the display device in accordance with the selected line mode.

Description

显示装置、程序以及记录介质 Display device, program and recording medium

技术领域technical field

本发明涉及具备对线进行显示的显示器件和对显示器件进行控制的控制部的显示装置、程序以及记录介质。根据本发明,例如能够使中低分辨率的显示装置以高速显示具有曲线的文字。The present invention relates to a display device, a program, and a recording medium including a display device for displaying lines and a control unit for controlling the display device. According to the present invention, it is possible, for example, to display curved characters at a high speed on a display device having a medium or low resolution.

背景技术Background technique

空心字以闭曲线的轮廓表示文字。该空心字被广泛应用于根据向量数据来显示文字的技术中。空心字例如是TrueType字体以及PostScript字体。在TrueType字体的曲线中,使用二次B样条曲线(参照式1)。在PostScript字体的曲线中,使用贝塞尔曲线(参照式2)。Outline fonts represent text with the outline of a closed curve. The outline characters are widely used in the technology of displaying characters based on vector data. Outline characters are, for example, TrueType fonts and PostScript fonts. For the curve of the TrueType font, a quadratic B-spline curve is used (see Equation 1). Bezier curves are used for the curves of the PostScript font (see Equation 2).

[式1][Formula 1]

x=(1-t)2x1+2t(1-t)x2+t2x3 x=(1-t) 2 x 1 +2t(1-t)x 2 +t 2 x 3

y=(1-t)2y1+2t(1-t)y2+t2y3 y=(1-t) 2 y 1 +2t(1-t)y 2 +t 2 y 3

0≤t≤10≤t≤1

[式2][Formula 2]

x=(1-t)3x1+3(1-t)2tx2+3(1-t)t2x3+t3x4 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)2y1+3t(1-t)2ty2+3(1-t)t2y3+t3y4 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≤10≤t≤1

当在高分辨率的显示装置中显示文字时,采用这些字体。特别是在将文字印刷于纸上时,优选采用这些字体。另外,式1和式2所表示的曲线通过曲线的两端(始点和终点),但不通过始点与终点之间的点(控制点)。These fonts are used when displaying text on high-resolution display devices. In particular, these fonts are preferably used when printing characters on paper. In addition, the curves represented by Equation 1 and Equation 2 pass through both ends of the curve (start point and end point), but do not pass through a point (control point) between the start point and end point.

笔划字体(stroke font)以不具有厚度的笔划表示文字。该笔划字体与空心字同样,被广泛应用于根据向量数据显示文字的技术中。Stroke fonts represent text with strokes without thickness. Similar to outline characters, this stroke font is widely used in techniques for displaying characters based on vector data.

当在中低分辨率的显示装置中显示文字时,适合采用该字体。在将该笔划字体显示于显示装置时,一般而言,由于不论应该表示的线是曲线还是直线,都通过利用直线将多个点分别连接起来,来表示曲线或直线,所以,与空心字相比可以高速进行描绘。This font is suitable for displaying text on low to medium resolution display devices. When displaying this stroke font on a display device, generally speaking, regardless of whether the line to be represented is a curve or a straight line, a plurality of points are respectively connected by a straight line to represent the curve or a straight line. than can be drawn at high speed.

专利文献1公开了高速描绘连接两点的直线。Patent Document 1 discloses drawing a straight line connecting two points at high speed.

该技术根据直线的倾斜度求出商级数。接着,由商级数求出控制数列,根据控制数列以高速描绘直线。This technique finds the quotient series based on the slope of the line. Next, the control sequence is obtained from the quotient series, and a straight line is drawn at high speed based on the control 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, calculate the quotient series {2, 1, 1, 3} according to the slope of the straight line 7/18. Next, the control sequence {1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0}. When increasing the drawing position of the straight line along the x direction, when the value of the control row and column is "1", increase the value of y to draw the straight line, and when the value of the control row and column is "0", do not increase the value of y to draw a straight line.

专利文献1中还公开了预先计算商级数以及控制数列的内容。Patent Document 1 also discloses the content of precalculating the quotient series and the control sequence.

专利文献2公开了高速描绘曲线的技术。该技术预先计算并存储与参变量相关的值,在以贝塞尔曲线表示曲线时,使用这些值。Patent Document 2 discloses a technique for drawing a curve at high speed. This technique precomputes and stores values associated with parametric variables, and uses these values when representing curves as Bezier curves.

例如,当在式2中将参变量t进行1024分割时,t所能取得的值为(0,1/1024,2/1024,3/1024,...,1023/1024,1024/1024)。这里,预先计算t的值与t3的值的关系以及t的值与3(1-t)t2的值的关系,并将这些关系表格化。另外,(1-t)3以及3t(1-t)2的计算利用了t3的值、3(1-t)t2的值。这样,根据专利文献2所公开的技术,能够高速地处理式2所表示的计算。For example, when the parameter t is divided into 1024 in formula 2, the values that t can obtain 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. In addition, the calculation of (1-t) 3 and 3t(1-t) 2 uses the value of t 3 and the value of 3(1-t)t 2 . In this way, according to the technique disclosed in Patent Document 2, the calculation represented by Equation 2 can be processed at high speed.

专利文献1:特开平9-161082号公报Patent Document 1: Japanese Unexamined Patent Publication No. 9-161082

专利文献2:特开平1-255076号公报Patent Document 2: Japanese Unexamined Patent Publication No. 1-255076

但是,在现有技术中,存在着以下所示的问题。However, in the prior art, there are problems as shown below.

当在中低分辨率的显示装置中显示空心字时,容易发生线宽的偏差以及线的变形,导致文字的品质不佳。When outline characters are displayed on a medium-low resolution display device, line width deviation and line deformation are likely to occur, resulting in poor character quality.

在专利文献2的技术中,每当对多个点的每一个进行描绘时,都会产生伴随着浮点运算的计算,因此,显示的高速化存在着限制。一般而言,CPU的浮点运算比CPU的整数运算慢。In the technique of Patent Document 2, calculations involving floating-point calculations are generated every time a plurality of dots are drawn, and therefore, there is a limit to speeding up display. In general, the CPU's floating point operations are slower than the CPU's integer operations.

当在显示装置中显示笔划字体时,错动在文字的曲线部分特别明显。其原因在于,笔划字体以直线表示文字的曲线部分。特别是如果放大文字,则错动变得显著。When a stroke font is displayed on a display device, the misalignment is particularly noticeable in the curved portion of the character. The reason for this is that stroke fonts express the curved parts of characters with straight lines. Especially when the characters are enlarged, the movement becomes conspicuous.

在通过二次B样条曲线或贝塞尔曲线表示文字的曲线部分时,难以对没有厚度的笔划字体进行设计。其原因在于线不通过曲线两端之间的控制点。作为通过所有控制点的曲线插值,有利用了三次样条的曲线插值。但是,该插值需要对端点设置限制条件,存在着难以附带条件的问题。而且,还存在着难以高速化的问题。When expressing a curved part of a character by a quadratic B-spline curve or a Bezier curve, it is difficult to design a stroke font that has no thickness. The reason for this is that the line does not pass through the control points between the ends of the curve. As curve interpolation passing through all control points, there is curve interpolation using cubic splines. However, this interpolation needs to set restrictions on the endpoints, and there is a problem that it is difficult to attach conditions. Furthermore, there is a problem that it is difficult to increase the speed.

发明内容Contents of the invention

本发明鉴于上述问题而实现,其目的在于提供一种可高速描绘线、且能够减少表示线的数据的记录容量的文字图形显示装置、程序以及记录介质。The present invention has been achieved in view of the above problems, and an object of the present invention is to provide a character and graphic display device, a program, and a recording medium capable of drawing lines at high speed and reducing the storage capacity of data representing the lines.

本发明的显示装置具备:对线进行显示的显示器件、和对所述显示器件进行控制的控制部,所述控制部针对被赋予的第一点、第二点以及第三点,确定所述第一点以及所述第二点中的至少一方与所述第三点的第一位置关系,从预先准备的至少一个线的模式、即通过所述第一点和所述第二点的至少一个线的模式之中,选择与被确定的第一位置关系对应的一个线的模式,并根据被选择的线的模式,将通过所述第一点和所述第二点的线显示到所述显示器件,在所述第二点的周围分配有多个区域,所述第三点被赋予到所述多个区域中的一个,被赋予了所述第三点的一个区域、和与该一个区域不同的区域,具有不同的大小,由此实现上述目的。The display device of the present invention includes: a display device for displaying lines, and a control unit for controlling the display device, wherein the control unit determines the given first point, second point, and third point. The first positional relationship between the first point and at least one of the second point and the third point is based on the pattern of at least one line prepared in advance, that is, at least one of the first point and the second point In a line mode, select a line mode corresponding to the determined first positional relationship, and display a line passing through the first point and the second point to all positions according to the selected line mode. In the display device described above, a plurality of regions are allocated around the second point, the third point is assigned to one of the plurality of regions, the region assigned the third point, and the Different regions of a region have different sizes, thereby achieving the above object.

还具备对模式信息进行保持的保持部,所述模式信息表示所述第一位置关系与所述至少一个线的模式的对应关系,线的模式的选择,可以参照保持于所述保持部的所述模式信息来进行。It also includes a holding unit that holds pattern information indicating the correspondence between the first positional relationship and the at least one line pattern, and the line pattern can be selected by referring to all the patterns held in the holding portion. the above mode information.

所述第一位置关系可以根据连接所述第一点和所述第二点的第一直线与连接所述第二点和所述第三点的第二直线的角度而确定。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.

所述控制部对所述第一点、所述第二点以及第四点,确定所述第一点以及所述第二点中至少一方与所述第四点的第二位置关系,所述控制部从所述至少一个线的模式之中选择与被确定的第二位置关系对应的一个线的模式,在所述第二点的周围分配有多个区域,所述第三点与所述第四点被赋予到所述多个区域中的相同区域,与所述被确定的第一位置关系对应的一个线的模式、和与所述被确定的第二位置关系对应的一个线的模式也可相同。For the first point, the second point, and the fourth point, the control unit determines a second positional relationship between at least one of the first point and the second point and the fourth point, and the The control unit selects one line pattern corresponding to the specified second positional relationship from among the at least one line pattern, a plurality of areas are allocated around the second point, and the third point and the A fourth point is assigned to the same area of the plurality of areas, a line pattern corresponding to the determined first positional relationship, and a line pattern corresponding to the determined second positional relationship It can also be the same.

可以将所述第一点赋予到原点,将所述第二点赋予给第一象限。The first point may be assigned to the origin and the second point to the first quadrant.

在所述第二点的周围分配有多个区域,所述第三点被赋予到所述多个区域中的一个,所述多个区域中的一个区域、和与所述一个区域不同的区域,具有不同的大小。A plurality of areas are allocated around the second point, and the third point is assigned to one of the plurality of areas, one of the plurality of areas, and an area different from the one area. , with different sizes.

仅在所述第二点的周围一部分,分配有多个区域,所述第三点可以被分配到所述多个区域中的一个。A plurality of areas are assigned to only a portion around the second point, and the third point may be assigned to one of the plurality of areas.

本发明的程序用于使具备对线进行显示的显示器件的信息显示装置执行显示处理,所述显示处理包括:对被赋予的第一点、第二点以及第三点,确定所述第一点以及所述第二点中的至少一方与所述第三点的第一位置关系的步骤;从预先准备的至少一个线的模式、即通过所述第一点和所述第二点的至少一个线的模式中,选择与所述被确定的第一位置关系对应的一个线的模式的步骤;和根据所述被选择的线的模式,将通过所述第一点和所述第二点的线显示到所述显示器件的步骤,由此,可实现上述目的。The program of the present invention is used to cause an information display device equipped with a display device for displaying lines to execute display processing including determining the first point, the second point, and the third point assigned to the first point, the second point, and the third point. point and at least one of the second point and the first positional relationship between the third point; from the pattern of at least one line prepared in advance, that is, passing through at least one of the first point and the second point In a line mode, the step of selecting a line mode corresponding to the determined first positional relationship; and according to the selected line mode, passing through the first point and the second point The lines shown in the steps to the display device, whereby the above object can be achieved.

本发明的记录介质可通过具备对线进行显示的显示器件的信息显示装置进行读取,所述记录介质记录有使所述信息显示装置执行显示处理的程序,所述显示处理包括:对被赋予的第一点、第二点以及第三点,确定所述第一点以及所述第二点中的至少一方与所述第三点的第一位置关系的步骤;从预先准备的至少一个线的模式、即通过所述第一点和所述第二点的至少一个线的模式中,选择与被确定的第一位置关系对应的一个线的模式的步骤;和根据被选择的线的模式,将通过所述第一点和所述第二点的线显示到所述显示器件的步骤,在所述第二点的周围分配有多个区域,所述第三点被赋予到所述多个区域中的一个,所述多个区域中的一个区域、和与所述一个区域不同的区域,具有不同的大小,由此,可实现上述目的。The recording medium of the present invention can be read by an information display device equipped 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 includes: The first point, the second point and the third point of the first point, the step of determining the first positional relationship between at least one of the first point and the second point and the third point; from at least one pre-prepared line In the mode of at least one line that passes through the first point and the second point, the step of selecting a line mode corresponding to the determined first positional relationship; and according to the mode of the selected line , a step of displaying a line passing through the first point and the second point on the display device, a plurality of regions are allocated around the second point, and the third point is assigned to the plurality of regions. One of the regions, one of the plurality of regions, and a region different from the one region have different sizes, thereby achieving the above object.

(发明效果)(invention effect)

根据本发明的显示装置、程序以及记录介质,可以不基于计算求出通过第一点和第二点的线的轨迹,而是从通过第一点和第二点的至少一个线的模式之中,选择与所确定的位置关系对应的一个线的模式,从而可显示通过第一点和第二点的线。因此,不需要通过烦杂的计算进行通过第一点和第二点的线的轨迹计算,能够高速显示通过第一点和第二点的线。According to the display device, program, and recording medium of the present invention, it is possible not to obtain the locus of the line passing through the first point and the second point based on calculation, but to obtain the locus of the line passing through the first point and the second point from at least one pattern of the line passing through the first point and the second point. , select a line mode corresponding to the determined positional relationship, so that a line passing through the first point and the second point can be displayed. Therefore, it is not necessary to calculate the locus of the line passing through the first point and the second point through complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

在本发明中,利用了表示通过第一点和第二点的线的模式与三点位置关系的对应的表格,来描绘连接三点的曲线。因此,能够仅通过表格的读出来实现曲线的描绘,从而不产生烦杂的运算。结果,能够高速描绘通过第一点和第二点的线。In the present invention, a curve connecting the three points is drawn using a table showing the correspondence between the pattern of the line passing through the first point and the second point and the positional relationship of the three points. Therefore, drawing of a curve can be realized only by reading a table, and no complicated calculation is performed. As a result, a line passing through the first point and the second point can be drawn at high speed.

而且,对通过第一点和第二点的直线与通过第二点和第三点的直线的角度进行分类,实施表格化。结果,可减少容量。Furthermore, 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, capacity can be reduced.

并且,仅在第二点位于第一象限的情况下,进行通过第一点和第二点的直线与通过第二点和第三点的直线的角度分类以及表格化。因此,可以减少三点位置的组合。结果,能够进一步减少容量。And only when the second point is located in the first quadrant, angle classification and tabulation of 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 performed. Therefore, combinations of three-point positions can be reduced. As a result, the capacity can be further reduced.

附图说明Description of drawings

图1是表示通过三点的曲线的一个例子的图。FIG. 1 is a diagram showing an example of a curve passing through three points.

图2是表示通过三点的曲线的另一个例子的图。Fig. 2 is a diagram showing another example of a curve passing through three points.

图3是表示通过三点的曲线的又一个例子的图。Fig. 3 is a diagram showing still another example of a curve passing through three points.

图4是表示通过三点的曲线的又一个例子的图。Fig. 4 is a diagram showing still another example of a curve passing through three points.

图5是表示通过三点的曲线的又一个例子的图。Fig. 5 is a diagram showing still another example of a curve passing through three points.

图6是表示通过三点的曲线的又一个例子的图。Fig. 6 is a diagram showing still another example of a curve passing through three points.

图7是表示被分配到第二点周围的区域1~区域28的图。FIG. 7 is a diagram showing areas 1 to 28 allocated around the second point.

图8是表示本发明实施方式的文字显示装置100的结构的图。FIG. 8 is a diagram showing the structure of the character display device 100 according to the embodiment of the present invention.

图9是表示文字数据42的一个例子的图。FIG. 9 is a diagram showing an example of character data 42 .

图10是表示文字数据42的显示的一个例子的图。FIG. 10 is a diagram showing an example of display of character data 42 .

图11是表示直线表格43的一个例子的图。FIG. 11 is a diagram showing an example of the straight line table 43 .

图12是表示曲线表格44的一个例子的图。FIG. 12 is a diagram showing an example of the curve table 44 .

图13是表示控制列所具有的值的图。Fig. 13 is a diagram showing the values contained in the control column.

图14是表示文字显示处理顺序的流程图。Fig. 14 is a flowchart showing the procedure of character display processing.

图15是表示在步骤S104中执行的描绘数据化处理顺序的流程图。FIG. 15 is a flowchart showing the procedure of the rendering data conversion process executed in step S104.

图16是表示在步骤S203中执行的直线描绘处理顺序的流程图。FIG. 16 is a flowchart showing the procedure of the line drawing process executed in step S203.

图17是表示在步骤S204中执行的曲线描绘处理顺序的流程图。FIG. 17 is a flowchart showing the procedure of the curve drawing process executed in step S204.

图18是表示在步骤S409中执行的第一象限描绘处理顺序的流程图。FIG. 18 is a flowchart showing the procedure of the first quadrant drawing process executed in step S409.

图19是表示在步骤S410中执行的第二象限描绘处理顺序的流程图。FIG. 19 is a flowchart showing the procedure of the second quadrant drawing process executed in step S410.

图20是表示在步骤S411中执行的第三象限描绘处理顺序的流程图。FIG. 20 is a flowchart showing the procedure of the third quadrant drawing process executed in step S411.

图21是表示在步骤S412中执行的第四象限描绘处理顺序的流程图。FIG. 21 is a flowchart showing the procedure of drawing the fourth quadrant executed in step S412.

图22是表示坐标数据、比例化数据以及量子化数据的图。FIG. 22 is a diagram showing coordinate data, scaled data, and quantized data.

图23是表示根据图22所示的量子化数据进行描绘的结果的图。FIG. 23 is a graph showing the results of rendering based on the quantized data shown in FIG. 22 .

图24是表示表格编辑处理顺序的流程图。Fig. 24 is a flowchart showing the table editing processing procedure.

图25是表示变更了显示点之后的线的模式的图。FIG. 25 is a diagram showing a pattern of lines after display points have been changed.

图26是表示变更了显示点之后的曲线描绘表格的图。FIG. 26 is a diagram showing a graph drawing table after display points are changed.

图27是表示tan-1的值与tan-1的自变量的对应的图。Fig. 27 is a diagram showing the correspondence between the value of tan -1 and the argument of tan -1 .

图28是表示被分配到第二点周围的区域的一个例子的图。FIG. 28 is a diagram showing an example of areas allocated around the second point.

图中:10-输入器件,20-控制部,21-CPU,22-主存储器,30-显示器件,40-辅助存储装置,41-文字显示程序,42-文字数据,43-直线表格,44-曲线表格,100-文字显示装置1。In the figure: 10-input device, 20-control unit, 21-CPU, 22-main memory, 30-display device, 40-auxiliary storage device, 41-text display program, 42-text data, 43-linear form, 44 - curve table, 100 - text display device 1 .

具体实施方式Detailed ways

1.本发明的原理1. Principle of the present invention

下面参照附图,对本发明的原理进行说明。The principle of the present invention will be described below with reference to the accompanying drawings.

本发明在描绘曲线时,着眼于连接三点的曲线,从通过第一点和第二点的至少一个线的模式中,选择与被确定的位置关系对应的一个线的模式,从而可以显示通过第一点和第二点的线。不计算通过第一点和第二点的线的轨迹,而选择通过第一点和第二点的线的模式,从而能够高速显示通过第一点和第二点的线。When the present invention draws a curve, it focuses on the curve connecting three points, and selects a line mode corresponding to the determined positional relationship from at least one line mode passing through the first point and the second point, so that it can be displayed through The line between the first point and the second point. By selecting the mode of the line passing through the first point and the second point without calculating the locus of the line passing through the first point and the second point, the line passing through the first point and the second point can be displayed at high speed.

而且,还具有保持模式信息的保持部,该模式信息是指位置关系与线的模式的对应关系,线的模式的选择通过参照保持部所保持的模式信息而进行。用表格表示模式信息,根据该表格对曲线进行描绘。Furthermore, a holding unit is provided for holding pattern information indicating a correspondence relationship between a positional relationship and a line pattern, and the selection of the line pattern is performed by referring to the pattern information held in the holding portion. The mode information is expressed in a table, and the curve is drawn based on the table.

由表格表示模式信息,并基于这些表格描绘曲线的理由如下。The reason why the pattern information is represented by tables and the curves are drawn based on these tables is as follows.

将第一点设为原点(0,0)。将第二点设定为沿x方向和y方向距离第一点的增减在±d以内。将第三点设定为沿x方向和y方向距离第二点的增减在±d以内。Set the first point as the origin (0, 0). Set the second point to be within ±d from the first point in the x-direction and y-direction. The third point is set to increase or decrease within ±d from the second point in the x-direction and y-direction.

在该情况下,第一点与第二点的组合为(2d+1)×(2d+1)。第二点与第三点的组合也为(2d+1)×(2d+1)。因此,三点的组合为(2d+1)4。这样,三点的位置组合根据d而急剧增加。例如,在d=5的情况下是14,641;在d=10的情况下是194481;在d=20的情况下是2825761。由于文字显示装置所能存储的数据容量存在界限,所以,在三点位置的组合多的情况下,难以由表格表示这些组合,并将这些表格存储到文字显示装置中。In this case, the combination of the first point and the second point is (2d+1)×(2d+1). The combination of the second point and the third point is also (2d+1)×(2d+1). Therefore, the combination of three points is (2d+1) 4 . In this way, the combination of positions of the three points increases sharply according to d. For example, in the case of d=5, it is 14,641; in the case of d=10, it is 194481; in the case of d=20, it is 2825761. Since there is a limit to the data capacity that a character display device can store, when there are many combinations of three o'clock positions, it is difficult to represent these combinations in a table and store these tables in the character display device.

如上所述,本发明着眼于,即使在表示两条不同曲线(第一曲线、第二曲线)的情况下,第一曲线的第一点和第二点与第二曲线的第一点和第二点也相同,在通过第一曲线的第一点和第二点的直线与通过第一曲线的第二点和第三点的直线的角度、和通过第二曲线的第一点和第二点的直线与通过第二曲线的第二点和第三点的直线的角度比规定值近的情况下,即使通过第一点和第二点的线的模式是相同的模式,观察第一曲线和第二曲线的人也不会产生不同感。As described above, the present invention focuses on the fact that the first and second points of the first curve are different from the first and second points of the second curve even in the case of representing two different curves (first curve, second curve). The same is true for two points, the angle between the straight line passing through the first point and the second point of the first curve and the straight line passing through the second point and the third point of the first curve, and the angle between the first point and the second point passing through the second curve When the angle between the straight line of the point and the straight line passing through the second point and the third point of the second curve is closer than the specified value, even if the pattern of the line passing through the first point and the second point is the same pattern, the first curve is observed People with the second curve will not feel different.

图1表示通过三点的曲线的一个例子。Figure 1 shows an example of a curve passing through three points.

该曲线通过第一点(0,0)、第二点(7,4)、第三点(10,10)。在图1中,涂黑的点是这三点,影线多的点是通过第一点和第二点的线所含有的点,影线少的点是通过第二点和第三点的线所含有的点。而且,表示了通过第一点和第二点的直线、通过第二点和第三点的直线。The curve passes through the first point (0,0), the second point (7,4), and the third point (10,10). In Figure 1, the blackened points are these three points, the points with more hatching are the points contained in the line passing through the first point and the second point, and the points with less hatching are the points passing through the second point and the third point The points contained in the line. 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表示通过三点的曲线的另一个例子。Figure 2 shows another example of a curve passing through three points.

该曲线通过第一点(0,0)、第二点(7,4)、第三点(13,16)。第一点(0,0)和第二点(7,4)与图1的第一点以及第二点相同,第三点(13,16)是在通过图1的第二点和第三点的直线的延长线上的点。The 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 Figure 1, and the third point (13, 16) is through the second point and the third point in Figure 1 The point on the extension of the line of the point.

比较图1的线的模式与图2的线的模式,通过第二点和第三点的线的模式不同,而通过第一点和第二点的线的模式相同。Comparing the patterns of the lines of FIG. 1 with those of FIG. 2, the patterns of the lines passing through the second and third points are different, while the patterns of the lines passing through the first and second points are the same.

图3表示通过三点的曲线的又一个例子。Fig. 3 shows yet another example of a curve passing through three points.

该曲线通过第一点(0,0)、第二点(7、4)、第三点(12,17)。第一点(0,0)和第二点(7,4)与图2的第一点以及第二点相同,第三点(12,17)是图2的第三点的左上的点。图2的通过第一点和第二点的直线与通过第二点和第三点的直线的角度,和图3的通过第一点和第二点的直线与通过第二点和第三点的直线的角度接近。The 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 upper left point of the third point in FIG. 2 . The angle between 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 in Figure 2, and the straight line passing through the first point and the second point in Figure 3 and the second point and the third point The angle of the straight line is close.

比较图2的线的模式与图3的线的模式,通过第二点和第三点的线的模式不同,而通过第一点和第二点的线的模式相同。Comparing the patterns of the lines of FIG. 2 with those of FIG. 3, the patterns of the lines passing through the second and third points are different, while the patterns of the lines passing through the first and second points are the same.

图4表示通过三点的曲线的另一个例子。Fig. 4 shows another example of a curve passing through three points.

该曲线通过第一点(0,0)、第二点(7、4)、第三点(14,16)。第一点(0,0)和第二点(7,4)与图2的第一点以及第二点相同,第三点(14,16)是图2的第三点的右下的点。The 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 Figure 2, and the third point (14, 16) is the lower right point of the third point in Figure 2 .

比较图2的线的模式与图4的线的模式,通过第二点和第三点的线的模式不同,而通过第一点和第二点的线的模式相同。Comparing the patterns of the lines of FIG. 2 with those of FIG. 4, the patterns of the lines passing through the second and third points are different, while the patterns of the lines passing through the first and second points are the same.

如参照图1~图4所说明那样,在描绘不同曲线时,即便使通过第一点和第二点的线的模式相同,观察曲线的人也不会产生不同感。As described with reference to FIGS. 1 to 4 , when different curves are drawn, even if the patterns of the lines passing through the first point and the second point are made the same, people who observe the curves do not feel the difference.

图5表示通过三点的曲线的又一个例子。该曲线通过第一点(0,0)、第二点(7,4)、第三点(5,12)。Fig. 5 shows yet another example of a curve passing through three points. The curve passes through the first point (0,0), the second point (7,4), and the third point (5,12).

图6表示通过三点的曲线的又一个例子。该曲线通过第一点(0,0)、第二点(7,4)、第三点(14,6)。Fig. 6 shows yet another example of a curve passing through three points. The curve passes through the first point (0,0), the second point (7,4), and the third point (14,6).

图5以及图6所示的第一点(0,0)、第二点(7,4)与图1~图4所示的第一点、第二点相同,但通过第一点和第二点的直线与通过第二点和第三点的直线的角度,与图1~图4所示的角度大不相同,使得通过第一点和第二点的线的轨迹与图1~图4不同。The first point (0, 0) and the second point (7, 4) shown in Fig. 5 and Fig. 6 are the same as the first point and the second point shown in Fig. 1 to Fig. 4, but through the first point and the The angle between the straight line at two points and the straight line passing through the second point and the third point is very different from the angles shown in Fig. 4 different.

图7表示被分配在第二点周围的区域1~区域28。FIG. 7 shows the regions 1 to 28 allocated around the second point.

区域1~区域28通过对第二点周围的区域进行28等份分割而被分配。在第三点处于相同区域的情况下,使通过第一点和第二点的线的模式相同,从而可减少三点的组合。例如,当在第一曲线中第三点位于区域1内的位置A、在第二曲线中第三点位于区域1内与位置A不同的位置B时,使第一曲线的通过第一点和第二点的线的模式与第二曲线的通过第一点和第二点的线的模式相同。Area 1 to area 28 are assigned by dividing the area around the second point into 28 equal parts. When the third point is in the same area, the pattern of the line passing through the first point and the second point is made the same, thereby reducing the combination of three points. For example, when the third point in the first curve is located at position A in area 1, and the third point is located at position B in area 1 different from position A in the second curve, make the first curve pass through the first point and The pattern of the line of the second point is the same as the pattern of the line of the second curve through the first point and the second point.

当在第二点的周围分配了区域1~区域28、且第一点为(0,0)而第二点为(X,Y)(X≤±d,Y≤±d:沿x方向和y方向距离第一点的增减在±d以内)时,第三点的位置位于区域1~区域28中的任意一个。因此,三点的组合是(2d+1)2×28。When areas 1 to 28 are assigned around the second point, and the first point is (0, 0) and the second point is (X, Y) (X≤±d, Y≤±d: along the x direction and When the distance from the first point in the y direction increases or decreases within ±d), the position of the third point is located in any one of areas 1 to 28. Therefore, the combination of three points is (2d+1) 2 ×28.

并且,仅在第二点位于第一象限的情况下,生成表示位置关系与线的模式的对应关系的表格,从而当第二点位于第一象限以外的象限时,利用该表格求出位置关系与线的模式的对应关系,由此能够减少表格的数量。And, only when the second point is located in the first quadrant, a table representing the correspondence between the positional relationship and the pattern of the line is generated, and when the second point is located in a quadrant other than the first quadrant, the positional relationship is obtained using the table Correspondence with the pattern of the line, thereby reducing the number of tables.

仅在第二点位于第一象限的情况下,由表格表示通过第一点和第二点的直线与通过第二点和第三点的直线的角度、与通过第一点和第二点的曲线的模式的对应关系。在第二点位于第二象限的情况下考虑相对于y轴的对称性,在第二点位于第三象限的情况下考虑相对于原点的对称性,在第二点位于第四象限的情况下考虑相对于x轴的对称性。该情况下,三点的组合是(d+1)2×28。例如,当d=5时组合为1008,当d=10时组合为3388,当d=20时组合为12348,可以减小用于存储表示这些组合的表格而必要的容量。Only when the second point is in the first quadrant, the angle between the line passing through the first point and the second point and the line passing through the second point and the third point, and the angle between the line passing through the first point and the second point are represented by the table The correspondence between the modes of the curves. Consider symmetry with respect to the y-axis if the second point is in the second quadrant, consider symmetry with respect to the origin if the second point is in the third quadrant, and consider symmetry with respect to the origin if the second point is in the fourth quadrant Consider symmetry about the x-axis. In this case, the combination of three points is (d+1) 2 ×28. For example, when d=5, the number of combinations is 1008, when d=10, the number of combinations is 3388, and when d=20, the number of combinations is 12348, and the capacity necessary for storing tables representing these combinations can be reduced.

另外,在第二点周围分配的区域不限定于28分割。分割数是任意的。如果增加分割数则表格的容量也增加,但可以提高曲线的品质。而且,不限定于均等的分割。也可以在角度浅的地方细致分割,在角度深的地方粗略分割。In addition, the area allocated around the second point is not limited to 28 divisions. The number of divisions is arbitrary. If the number of divisions is increased, the capacity of the table is also increased, but the quality of the curve can be improved. Moreover, it is not limited to equal division. It is also possible to finely segment where the angle is shallow and roughly segment where the angle is deep.

图28表示在第二点周围分配的区域的一个例子。Fig. 28 shows an example of the area allocated around the second point.

图28(a)表示大小不同的多个区域(分割方式1)。Fig. 28(a) shows a plurality of regions of different sizes (division method 1).

在第二点的周围分配有多个区域1~区域8。第三点被赋予给区域2。例如,区域1与区域4大小不同。A plurality of areas 1 to 8 are allocated around the second point. The third point is assigned to area 2. For example, area 1 is not the same size as area 4.

图28(b)表示仅被分配在第二点周围的一部分的区域(分割方式2)。Fig. 28(b) shows a region allocated only to a part of the second point (division method 2).

在第二点的周围分配有多个区域1~区域5。但是,在此之外的部分(斜线部分)没有分配区域。A plurality of areas 1 to 5 are allocated around the second point. However, other parts (hatched parts) have no assigned area.

可以根据显示对象选择第二点周围的分割方式。例如,在显示汉字的情况下,选择分割方式1。在显示片假名时,选择分割方式2。另外,“显示对象”意味着显示于显示器件的对象。例如,文字(汉字、平假名、片假名、拉丁字母等)、图形、记号。The division method around the second point can be selected according to the display object. For example, in the case of displaying Chinese characters, select division method 1. When displaying katakana, select split method 2. In addition, "display object" means an object displayed on a display device. For example, characters (kanji, hiragana, katakana, Latin alphabet, etc.), graphics, symbols.

以下,参照附图对本发明的实施方式进行说明。Hereinafter, embodiments of the present invention will be described with reference to the drawings.

2.文字显示装置2. Text display device

图8表示本发明实施方式的文字显示装置100。FIG. 8 shows a character display device 100 according to an embodiment of the present invention.

文字显示装置100例如可以是个人计算机。可以使用台式、膝上式等任意类型的计算机作为个人计算机。或者,文字显示装置也可以是文字处理器。The character display device 100 may be, for example, a personal computer. Any type of computer such as desktop, laptop, etc. may be used as the personal computer. Alternatively, the text display device may also be a word processor.

而且,文字显示装置可以是具备显示器件的电子设备、信息设备等任意的信息显示终端。例如,文字显示装置可以是具备液晶显示器件的电子设备、作为形态信息工具的便携信息终端、含有PHS的移动电话或一般的电话机/FAX等通信设备。Furthermore, the character display device may be any information display terminal such as electronic equipment and information equipment equipped with a display device. For example, the character display device may be an electronic device equipped with a liquid crystal display device, a portable information terminal as a form information tool, a mobile phone including a PHS, or a general communication device such as a telephone/FAX.

文字显示装置100包括:输入器件10、对线进行显示的显示器件30、对显示器件30进行控制的控制部20、辅助存储装置40。The character display device 100 includes an input device 10 , a display device 30 for displaying lines, a control unit 20 for controlling the display device 30 , and an auxiliary storage device 40 .

输入器件10用于将表示应该显示于显示器件30的文字的信息输入到控制部20。表示文字的信息例如包括识别文字的编码和表示文字大小的尺寸信息。The input device 10 is used to input information indicating characters to be displayed on the display device 30 to the control unit 20 . The information representing characters includes, for example, codes for identifying characters and size information representing the size of characters.

可使用能够输入编码和尺寸的任意类型的输入器件作为输入器件10。能够使用键盘、鼠标或笔输入装置等输入器件。在文字显示装置100是移动电话的情况下,也可以采用用于指定通信目的地的电话号码的数字键来输入编码或尺寸。在文字显示装置100具备用于与包含因特网的通信线路连接的机构时,也可以将从该通信线路接收到的电子邮件所包含的消息显示于显示器件30。该情况下,用于与该通信线路连接的机构作为输入器件10而发挥功能。Any type of input device capable of inputting codes and sizes can be used as the input device 10 . Input devices such as keyboard, mouse or pen input device can be used. When the character display device 100 is a mobile phone, the code or size may be input using the numeric keys for specifying the telephone number of the communication destination. When the character display device 100 has a mechanism for connecting to a communication line including the Internet, a message included in an e-mail received through 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 .

辅助存储装置40中存储有文字显示程序41、用于执行程序所必须的文字数据42、直线表格43以及曲线表格44。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 curve table 44 .

文字显示程序41包括:根据向显示器件输出的尺寸对文字数据42进行缩放的缩放程序41a、对缩放的结果进行量子化的量子化程序41b、对量子化后的结果进行描绘数据化以使量子化后的结果能够显示于显示器件的描绘数据化程序41c。The character display program 41 includes: a scaling program 41a that scales the character data 42 according to the size output to the display device, a quantization program 41b that quantizes the zoomed result, and converts the quantized result into drawing data to make the quantization The converted result can be displayed on the rendering data conversion program 41c of the display device.

作为辅助存储装置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, character data 42, straight line table 43, and 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 , character data 42 , straight line table 43 , and curve table 44 . For example, hard disks, CD-ROMs, CD-Rs, MOs, DVDs, and IC cards are preferably used.

另外,文字显示程序41、文字数据42、直线表格43以及曲线表格44不限定被存储于辅助存储装置40所具备的记录介质中。例如,文字显示程序41、文字数据42、直线表格43以及曲线表格44也可以存储于主存储器22中,还可以存储于ROM(未图示)中。ROM例如有掩模型ROM、EPROM、EEPROM、快速ROM。在将这些数据存储到ROM时,仅通过更换该ROM,就可容易地实现各种处理的变化。例如,当文字显示装置是便携式的信息终端或移动电话时,优选采用ROM。In addition, the character display program 41 , the character data 42 , the straight line table 43 and the curve table 44 are not limited to be stored in the recording medium included in the auxiliary storage device 40 . For example, the character display program 41, character data 42, straight line table 43, and curve table 44 may be stored in the main memory 22, or may be stored in a ROM (not shown). The ROM includes, for example, mask ROM, EPROM, EEPROM, and flash ROM. When these data are stored in the ROM, various processing changes can be easily realized only by exchanging the ROM. For example, when the character display device is a portable information terminal or a mobile phone, it is preferable to use a ROM.

并且,文字显示程序41、文字数据42、直线表格43以及曲线表格44被保存于如上述盘或卡等存储装置或半导体存储器等那样对程序与数据进行固定保持的存储介质。在文字显示装置具备用于与包括互联网的通信线路连接的机构时,可以从该通信线路下载文字显示程序41、文字数据42、直线表格43以及曲线表格44的至少一部分。该情况下,下载所需要的载入程序可预先存储于ROM(未图示),也可以从辅助存储装置40安装到控制部20。Furthermore, the character display program 41, character data 42, straight line table 43, and curve table 44 are stored in a storage medium that permanently holds programs and data, such as a storage device such as a disk or a card, or a semiconductor memory. When the character display device has a mechanism for connecting to a communication line including the Internet, at least part of the character display program 41, character data 42, straight line table 43, and curve table 44 can be downloaded from the communication line. In this case, the loading program required for downloading may be stored in a ROM (not shown) in advance, or may be installed into 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 required for executing 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 executes the character display program 41 based on various data stored in the main memory 22 to generate drawing data. 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 rendering data is output to the display device 30 is controlled by the CPU 21 .

图9表示文字数据42的一个例子。具体而言,图9所示的文字数据是文字“大”的向量数据,具有256目(mesh)分辨率。图9所示的文字数据包括多个坐标数据。An example of character data 42 is shown in FIG. 9 . Specifically, the character data shown in FIG. 9 is vector data of the character "big" and has a resolution of 256 meshes. The character data shown in FIG. 9 includes a plurality of coordinate data.

线No是对构成文字“大”的线赋予的编号。X表示构成文字“大”的线上的点的X坐标值。Y表示构成文字“大”的线上的点的Y坐标值。The line No is a number assigned to the lines constituting the character "big". X represents the X coordinate value of a point on the line constituting the character "big". Y represents the Y coordinate value of a point on the line constituting the character "big".

文字“大”由三根线构成。三根线分别具有多个表示位置的坐标数据。线No1连接(8,184)和(247,184)这两点,线No2连接(127,246)、(127,181)、(103,106)、(61,49)以及(11,14)这五点,线No3连接(127,181)、(144,127)、(176,73)、(208,40)以及(246,14)。The text "big" is formed by three lines. Each of the three lines has a plurality of coordinate data representing positions. Line No1 connects (8, 184) and (247, 184), and line No2 connects (127, 246), (127, 181), (103, 106), (61, 49) and (11, 14) These five points are connected by line No3 (127, 181), (144, 127), (176, 73), (208, 40) and (246, 14).

图10表示文字数据42的显示的一个例子。具体而言是图9所示的文字数据的显示。FIG. 10 shows an example of display of character data 42 . Specifically, it is the display of the character data shown in FIG. 9 .

图11表示直线表格43的一个例子。直线表格43被存储于辅助存储装置40中(参照图8)。An example of the line table 43 is shown in FIG. 11 . The straight line table 43 is stored in the auxiliary storage device 40 (see FIG. 8 ).

“index”表示表格的记录编号,“(dx,dy)”表示距第一点的x方向增加量以及y方向增加量。"index" represents the record number of the table, and "(dx, dy)" represents the increment in x direction and the increment in 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 within 20. The increase in the x direction as well as the increase in the y direction is arbitrary.

“控制列”由“0”和“1”表示。当dx≥dy时,在x方向增加1的情况下,y的增加量由“0”和“1”表示。“0”表示当沿x方向增加了1的情况下y方向的增加为0;“1”表示当沿x方向增加了1的情况下y方向的增加为1。The "control column" is represented by "0" and "1". When dx≥dy, in the case of increasing 1 in the x direction, the increment of y is represented by "0" and "1". "0" indicates that the increase in the y direction is 0 when 1 is added along the x direction; "1" indicates that the increase in the y direction is 1 when 1 is added along the x direction.

例如,在(dx,dy)=(2,1)的情况下,控制列为{0,1}。在从第一点沿x方向增加了1的情况下,该控制列{0,1}表示y方向的增加为0,当接下来沿x方向增加了1的情况下,y方向的增加为1。根据该控制列表示的线的模式,表示通过第一点和第二点的线的模式。For example, in the case of (dx, dy)=(2, 1), the control column is {0, 1}. In the case of an increase of 1 in the x direction from the first point, the control column {0, 1} indicates that the increase in the y direction is 0, and when the next increase in the x direction is 1, the increase in the y direction is 1 . Indicates the pattern of the line passing through the first and second points, according to the pattern of the line represented by this control column.

图12表示曲线表格44的一个例子。曲线表格44被存储于辅助存储装置40中(参照图8)。An example of the curve table 44 is shown in FIG. 12 . The curve table 44 is stored in the auxiliary storage device 40 (see FIG. 8 ).

图13表示控制列所具有的值。Figure 13 shows the values that the control column has.

“index”表示表格的记录编号,“(dx,dy)”表示距第一点的x方向的增加量以及y方向的增加量。"index" represents the record number of the table, and "(dx, dy)" represents the increment in the x direction and the increment in the y direction from the first point.

在本实施例中x方向的增加以及y方向的增加在15以内,但是x方向的增加以及y方向的增加不限定于15以内。x方向的增加以及y方向的增加是任意的。曲线表格的x方向的增加以及y方向的增加的范围小于直线表格的x方向的增加以及y方向增加的范围,其原因在于一般文字所具有的曲线的两点之间的距离小于文字所具有的直线的两点之间的距离。In this embodiment, the increase in the x direction and the increase in the y direction are within 15, but the increase in the x direction and the increase in the y direction are not limited to within 15. The increase in the x direction as well as the increase in the y direction is arbitrary. The range of the increase in the x direction and the increase in the y direction of the curve form is smaller than that of the straight line form in the x direction and the increase range in the y direction. The reason is that the distance between two points of the curve of the general character is smaller than that of the character. The distance between two points of a line.

“角度”表示第三点位于区域1~28的哪一个当中(参照图7)。"Angle" indicates which of the areas 1 to 28 the third point is located in (see FIG. 7 ).

“控制列”由“0”~“7”表示(参照图13)。“0”表示相对于第二点向右移动,“1”表示向右上移动,“2”表示向上移动,“3”表示向左上移动,“4”表示向左移动,“5”表示向左下移动,“6”表示向下移动,“7”表示向右下移动。例如,在(dx,dy)=(7,4)、第三点位于区域2时,控制列为{0,0,1,0,1,1,1}(参照图12)。该控制列表示从第一点开始的移动为右、右、右上、右、右上、右上、右上。基于该移动而表示的线的模式,在三点是第一点(0,0)、第二点(7,4)、第三点(10,10)的情况下,表示通过第一点和第二点的线的模式(参照图1)。The "control column" is represented by "0" to "7" (see FIG. 13 ). "0" means move right relative to the second point, "1" means move up right, "2" means move up, "3" means move up left, "4" means move left, "5" means move down left Move, "6" means move down, "7" means move down to the right. For example, when (dx, dy)=(7, 4) and the third point is located in area 2, the control sequence is {0, 0, 1, 0, 1, 1, 1} (see FIG. 12 ). The 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 expressed based on this movement, when the three points are the first point (0, 0), the second point (7, 4), and the third point (10, 10), indicates that the line passing through the first point and The pattern of the line at the second point (see Figure 1).

如参照图12所说明那样,曲线表格44所包含的信息表示第二点和第三点的位置关系与线的模式的对应关系。该曲线表格44预先准备于辅助存储装置40中。As described with reference to FIG. 12 , the information included in the curve table 44 indicates the correspondence relationship between the positional relationship between the second point and the third point and the pattern of the line. This curve table 44 is prepared in advance in the auxiliary storage device 40 .

另外,基于曲线表格44中所含有的“控制列”而表示的线的模式不限定于曲线。由“控制列”而表示的线的模式可以是直线。这样的控制列例如是{1,1,1,1}。In addition, the pattern of the line displayed based on the "control column" contained in the curve table 44 is not limited to a curve. The pattern of lines represented by "control columns" may be straight lines. Such a control column is for example {1, 1, 1, 1}.

以上,参照图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 28 .

例如,在图1~图13以及图28的实例中,显示器件30对应于“对线进行显示的显示器件”;控制部20对应于“对显示器件进行控制的控制部”、“针对被赋予的第一点、第二点以及第三点,确定第一点及第二点中的至少一方与第三点之间的第一位置关系的控制部”、“在预先准备的至少一个线的模式中、即从通过第一点和第二点的至少一个线的模式之中,选择与被确定的第一位置关系对应的一个线的模式的控制部”以及“根据被选择的线的模式,将通过第一点和第二点的线显示于显示器件的控制部”。并且,对直线表格42以及曲线表格44进行存储的辅助存储装置40对应于“对表示第一位置关系与线的模式之间的对应关系的模式信息进行保持的保持部”。For example, in the examples in FIGS. 1 to 13 and FIG. 28 , the display device 30 corresponds to a “display device that displays lines”; the control unit 20 corresponds to a “control unit that The first point, the second point, and the third point, the control unit that determines the first positional relationship between at least one of the first point and the second point and the third point", "on at least one line prepared in advance In the pattern, that is, from the pattern of at least one line passing through the first point and the second point, select a line pattern corresponding to the determined first position relationship" and "according to the pattern of the selected line , and display the line passing through the first point and the second point on the control unit of the display device". Furthermore, the auxiliary storage device 40 storing the straight line table 42 and the curve table 44 corresponds to "a holding unit for holding pattern information indicating a correspondence relationship between the first positional relationship and the line pattern".

但是,图1~图13以及图28所示的实施方式只不过是本发明文字显示装置的功能的一个例子。只要能够达到上述各个机构的功能,则具有任意构成的文字显示装置都包括在本发明的范围内。However, the embodiments shown in FIGS. 1 to 13 and FIG. 28 are merely examples of the functions of the character display device of the present invention. As long as the functions of the above-mentioned mechanisms can be achieved, any character display device with any structure is included in the scope of the present invention.

例如,可以从显示装置的外部将直线表格42以及曲线表格44输入到显示装置中。例如,在经由网络将直线表格42以及曲线表格44保存于和显示装置连接的保持部时,直线表格42以及曲线表格44可以从显示装置的外部输入到显示装置中。For example, the linear table 42 and the curved table 44 can be input to the display device from outside the display device. For example, when the straight line table 42 and the curved line table 44 are stored in a holding unit connected to the display device via a network, the straight line table 42 and the curved line table 44 can be input to the display device from outside the display device.

例如,上述的各机构可以通过硬件来实现,也可以通过软件来实现,还可以通过硬件和软件来实现。For example, each mechanism mentioned above may be realized by hardware, may also be realized by software, and may also be realized by hardware and software.

例如,在文字显示装置中存储有用于执行文字显示处理顺序的程序(下面称作文字显示处理程序)。文字显示处理程序可以在计算机出厂时,预先存储于文字显示装置所包含的程序存储机构中。For example, a program for executing a character display processing procedure (hereinafter referred to as a character display processing program) is stored in the character display device. The text display processing program can be pre-stored in the program storage mechanism included in the text display device when the computer leaves the factory.

或者,也可以在计算机出厂之后,将文字显示处理程序存储到程序存储机构中。例如,用户可以从互联网上特定的网站付费或免费下载文字显示处理程序,将该下载后的程序安装到计算机中。在文字显示处理程序被存储于软盘、CD-ROM、DVD-ROM等的计算机可读取的存储介质中时,可以采用输入装置(例如盘驱动器装置),将文字显示处理程序安装到计算机中。安装后的程序存储在程序存储机构中。Alternatively, the character display processing program may be stored in the program storage means after the computer is shipped from the factory. For example, a user can download a text display processing program for a fee or free of charge from a specific website on the Internet, and install the downloaded program into the computer. When the character display processing program is stored in a computer-readable storage medium such as a floppy disk, CD-ROM, DVD-ROM, etc., the character display processing program can be installed in the computer using an input device (for example, a disk drive). The installed program is stored in the program storage means.

另外,文字显示处理顺序的详细内容将在后面叙述。Note that details of the character display processing procedure will be described later.

如参照图1~图13以及图28所说明那样,根据本发明的显示装置,可以不根据计算来求出通过第一点和第二点的线的轨迹,而是从通过第一点和第二点的至少一个线的模式中,选择与被确定的位置关系对应的一个线的模式,从而可显示通过第一点和第二点的线。因此,不需要繁杂的计算对通过第一点和第二点的线进行轨迹计算,能够高速地显示通过第一点和第二点的线。As described with reference to FIGS. 1 to 13 and FIG. 28 , according to the display device of the present invention, the locus of the line passing through the first point and the second point can not be obtained by calculation, but can be obtained from the first point and the second point. In the mode of at least one line of two points, a mode of one line corresponding to the identified positional relationship is selected so that a line passing through the first point and the second point can be displayed. Therefore, it is possible to display the line passing through the first point and the second point at high speed without requiring complicated calculations to calculate the locus of the line passing through the first point and the second point.

在本发明中,利用了表示通过第一点和第二点的线的模式与三点的位置关系的对应的表格,描绘连接三点的曲线。因此,能够仅通过表格的读出来对曲线进行描绘,不会发生繁杂的运算。结果,可以高速描绘通过第一点和第二点的线。In the present invention, a curve connecting the three points is drawn using a table showing the correspondence between the pattern of the line passing through the first point and the second point and the positional relationship of the three points. Therefore, it is possible to draw a curve only by reading out a table without complicated calculations. As a result, a line passing through the first point and the second point can be drawn at high speed.

并且,对通过第一点和第二点的直线与通过第二点和第三点的直线的角度进行分类,实现了表格化。结果,可以减少容量。In addition, 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 to form a table. As a result, capacity can be reduced.

进而,仅在第二点位于第一象限的情况下,进行通过第一点和第二点的直线与通过第二点和第三点的直线的角度分类以及表格化。因此,可以减少三点位置的组合。结果,能够进一步减少容量。Furthermore, only when the second point is located in the first quadrant, angle classification and tabulation of 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 performed. Therefore, combinations of three-point positions can be reduced. As a result, the capacity can be further reduced.

3.显示方法3. Display method

图14表示文字显示处理步骤。通过CPU121执行文字显示程序141来进行文字显示处理。Fig. 14 shows the character display processing procedure. Character display processing is performed by CPU 121 executing character display program 141 .

下面,参照图8以及图14按步骤对文字显示处理顺序进行说明。Next, the character display processing procedure will be described step by step with reference to FIGS. 8 and 14 .

步骤S101:根据从输入器件10输入的指示,从文字数据42读入表示指定文字的文字数据。例如,被读入的文字数据包括多个坐标数据(参照图9)。Step S101: According to the instruction input from the input device 10, read the character data representing the designated character from the character data 42. For example, the character data to be read includes a plurality of coordinate data (see FIG. 9 ).

步骤S102:被读入的文字数据所含有的坐标数据被缩放以适合输出尺寸。在输出尺寸为n点(dot)的情况下,坐标数据(x,y)基于规定的运算被缩放,变更为缩放化数据(X,Y)。规定的计算是指X=(n-1)×x/255、Y=(n-1)×y/255。Step S102: The coordinate data included in the read text data is scaled to fit the output size. When the output size is n dots, the coordinate data (x, y) is scaled based on a predetermined calculation, and changed into scaled data (X, Y). The prescribed calculations refer to X=(n-1)×x/255 and 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 based on predetermined calculations and changed to scaled data (see FIG. 22 ).

步骤S103:缩放化数据被量子化,变更为量子化数据。例如,作为量子化的方法有四舍五入。例如,坐标数据(x,y)(参照图9)基于规定的计算被缩放,进而通过被量子化而变更为量子化数据(参照图22)。Step S103: The scaled data is quantized and changed into quantized data. For example, there is rounding as a method of quantization. For example, coordinate data (x, y) (see FIG. 9 ) is scaled based on predetermined calculations, and then quantized to be changed into quantized data (see FIG. 22 ).

另外,进行量子化的方法不限定于四舍五入。在申请人与本申请相同的申请中(特愿2003-137918号说明书)公开了量子化的其他方法。所公开的方法中含有抑制量子化误差的方法。In addition, the method of performing quantization is not limited to rounding. Another method of quantization is disclosed in the same application as the present application (Japanese Patent Application No. 2003-137918). Among the disclosed methods are methods for suppressing quantization errors.

步骤S104:参照直线表格43以及曲线表格44,根据量子化数据求出描绘数据。Step S104: Refer to the straight line table 43 and the curve table 44, and obtain drawing data from the quantized data.

步骤S105:根据描绘数据,将图像显示于显示器件30。Step S105: Display the image on the display device 30 according to the rendering data.

在将图像显示于显示器件30之后,结束处理。After the image is displayed on the display device 30, the process ends.

图15表示在步骤S104中执行的描绘数据化处理顺序。FIG. 15 shows the procedure of rendering data conversion performed in step S104.

下面,参照图15按步骤对描绘数据化处理顺序进行说明。Next, the drawing data conversion process procedure will be described step by step with reference to FIG. 15 .

步骤S201:取出量子化数据。例如,在文字“大”的情况下,取出与被找出的线No对应的量子化数据(参照图22)。最初找出线No.1,所对应的量子化数据((1,25)、(34,25))被取出。接着找出线No.2,所对应的量子化数据((17,34)、(17,25)、(14,15)、(8,7)、(2,2))被取出。最后找出线No.3,所对应的量子化数据((17,25)、(20,17)、(24,10)、(29,5)、(34,2))被取出。Step S201: Take out quantized data. For example, in the case of the character "big", quantized data corresponding to the found line No is taken out (see FIG. 22 ). First, the line No. 1 is found, and the corresponding quantized data ((1, 25), (34, 25)) are taken out. Next, line No. 2 is found, and the corresponding quantized data ((17, 34), (17, 25), (14, 15), (8, 7), (2, 2)) are taken out. Finally, line No.3 is found, and the corresponding quantized data ((17, 25), (20, 17), (24, 10), (29, 5), (34, 2)) are taken out.

步骤S202:判断在与被找出的线No对应的量子化数据中是否含有三点以上的坐标点。Step S202: Determine whether the quantized data corresponding to the found line No contains more than three coordinate points.

在判定为含有三点以上坐标点的情况下(是),处理进入步骤S204。在判定为不含有三点以上坐标点的情况下(否),处理进入步骤S203。When it is determined that three or more coordinate points are included (Yes), the process proceeds to step S204. When it is determined that three or more coordinate points are not included (No), the process proceeds to step S203.

步骤S203:按照由被找出的线No而表示的线以直线被描绘的方式,求出描绘数据。参照直线表格43,从量子化数据求出描绘数据。Step S203: Obtain drawing data so that the line represented by the found line No is drawn as a straight line. Drawing data is obtained from the quantized data with reference to the straight line table 43 .

步骤S204:按照由被找出的线No而表示的线以曲线被描绘的方式,求出描绘数据。参照曲线表格44,从量子化数据求出描绘数据。Step S204: Obtain drawing data such that the line represented by the found line No is drawn in a curved line. Referring to the graph table 44, drawing data is obtained from the quantized data.

步骤S205:判定是否有应该找出的线。Step S205: Determine whether there is a line to be found.

当判定为存在应该找出的线的情况下(是),处理进入步骤S201。当判定为不存在应该找出的线的情况下(否),处理结束。When it is determined that there is a line to be found (Yes), the process proceeds to step S201. When it is determined that there is no line to be found (No), the process ends.

图16表示在步骤S203中所执行的直线描绘处理顺序。FIG. 16 shows the procedure of the line drawing process executed in step S203.

下面,参照图16按步骤对直线描绘处理顺序进行说明。Next, the line drawing processing procedure will be described step by step with reference to FIG. 16 .

步骤S301:求出被赋予的两点的坐标点(x1,y1)、(x2,y2)的下一个值。根据dx←abs(x2-x1)求出x1和x2的距离dx,根据dy←abs(y2-y1)求出y1与y2的距离dy。Step S301: Obtain the next values of the coordinate points (x 1 , y 1 ) and (x 2 , y 2 ) of the assigned two points. Calculate the distance dx between x 1 and x 2 according to dx←abs(x 2 -x 1 ), and calculate the distance dy between y 1 and y 2 according to dy←abs(y 2 -y 1 ).

另外,函数abs(t)表示t的绝对值。In addition, the function abs(t) represents the absolute value of t.

并且,在表示描绘位置的变量由(x,y)表示的情况下,x←x1以及y←y1表示将第一点设定在描绘开始位置的处理。Also, when the variable representing the drawing position is represented by (x, y), x←x 1 and y←y 1 represent processing for setting the first point at the drawing start position.

步骤S302:将第一点(x,y)描绘数据化。Step S302: Turn the first point (x, y) into data.

步骤S303:从直线表格43取得控制列。对直线表格的访问通过下述计算来进行。Step S303 : Get the control column from the straight line table 43 . Access to the line table is performed by the following calculations.

如果将表格的范围设为n,则取得直线表格43中的((n+1)×dy+dx+1)号的控制列。在本实施例中,由于将表格的范围设定为20,所以,取得了((20+1)×dy+dx+1)号的控制列。If the range of the table is set to n, the control column of the number ((n+1)×dy+dx+1) in the straight line table 43 is acquired. In this embodiment, since the range of the table is set to 20, a control column of ((20+1)×dy+dx+1) is acquired.

步骤S304:判定x1以及x2中哪一个大。Step S304: Determine which of x 1 and x 2 is larger.

在判定为x2为x1以上的情况下(是),处理进入到步骤S305。在判定为x2小于x1的情况下(否),处理进入到步骤S306。When it is determined that x2 is equal to or greater than x1 (Yes), the process proceeds to step S305. When it is determined that x2 is smaller than x1 (NO), the process proceeds to step S306.

步骤S305:将变量incx设定为值“1”。基于变量incx控制沿x方向的增减。Step S305: Set the variable incx to the value "1". Controls the increase or decrease along the x direction based on the variable incx.

步骤S306:将变量incx设定为值“-1”。基于变量incx控制沿x方向的增减。Step S306: Set the variable incx to the value "-1". Controls the increase or decrease along the x direction based on the variable incx.

步骤S307:判定y1以及y2中哪一个大。Step S307: Determine which of y 1 and y 2 is larger.

在判定为y2为y1以上的情况下(是),处理进入到步骤S308。在判定为y2小于y1的情况下(否),处理进入到步骤S309。When it is determined that y2 is equal to or greater than y1 (Yes), the process proceeds to step S308. When it is determined that y 2 is smaller than y 1 (No), the process proceeds to step S309.

步骤S308:将变量incy设定为值“1”。基于变量incy控制沿y方向的增减。Step S308: Set the variable incy to the value "1". Controls the increase or decrease along the y direction based on the variable incy.

步骤S309:将变量incy设定为值“-1”。基于变量incy控制沿y方向的增减。Step S309: Set the variable incy to the value "-1". Controls the increase or decrease along the y direction based on the variable incy.

步骤S310:判定dx以及dy中哪一个大。Step S310: Determine which of dx and dy is larger.

在判定为dx为dy以上的情况下(是),处理进入到步骤S311。在判定为dx小于dy的情况下(否),处理进入到步骤S314。When it is determined that dx is equal to or greater than dy (Yes), the process proceeds to step S311. When it is determined that dx is smaller than dy (No), the process proceeds to step S314.

步骤S311:判定控制列是否结束。在判定为控制列结束的情况下(是),结束处理。在判定为控制列没有结束的情况下(否)进入到步骤S312。Step S311: Determine whether the control sequence ends. When it is judged that the control sequence is ended (Yes), the processing is ended. When it is determined that the control sequence has not ended (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: Calculate the next point of (x, y). Specifically, the value of incx that controls the increase or decrease of x is added to x (the next value of x = x + incx), and the value of incy that controls the increase or decrease of y is multiplied by the value of the control column (Δy) to y ( Next value of y=y+incy×Δy).

步骤S313:对(x+incx)以及(y+incy×Δy)进行描绘数据化。具体而言,描绘点(x+incx,y+incy×Δy)。然后,处理进入到步骤S311。Step S313: convert (x+incx) and (y+incy×Δy) into rendering data. Specifically, the point (x+incx, y+incy×Δy) is plotted. Then, the process proceeds to step S311.

步骤S314:判定控制列是否结束。在判定为控制列结束的情况下(是)结束处理。在判定为控制列没结束的情况下(否),处理进入到步骤S315。Step S314: Determine whether the control sequence ends. When it is judged that the control sequence ends (YES), the process ends. When it is determined that the control sequence has not ended (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: Calculate the next point of (x, y). Specifically, add to x the value of incx that controls the increase or decrease of x multiplied by the value of the control column (Δx) (the next value of x = x+incx×Δx), and add to y the value that controls the increase or decrease of y The value of incy (next value of y = y+incy).

步骤S316:对(x+incx×Δx)以及(y+incy)进行描绘数据化。具体而言,描绘点(x+incx×Δx,y+incy)。然后,处理进入到步骤S314。Step S316: convert (x+incx×Δx) and (y+incy) into drawing data. Specifically, the point (x+incx×Δx, y+incy) is plotted. Then, the process proceeds to step S314.

图17表示步骤S204中所执行的曲线描绘处理步骤。FIG. 17 shows the steps of the curve drawing process executed in step S204.

下面,参照图17按步骤对曲线描绘处理步骤进行说明。Next, the curve drawing processing procedure will be described step by step with reference to FIG. 17 .

步骤S401:从被赋予的坐标点取出三点。例如,在被赋予的坐标点是((a1,b1)、(a2,b2)、(a3,b3)、(a4,b4)、(a5,b5))这五点的情况下,在最初的找出中取出(a1,b1)、(a2,b2)、(a3,b3)这三点,在接下来的找出中取出(a2,b2)、(a3,b3)、(a4,b4)。一边错开一点,一边取出这样连续的三点。Step S401: Take out three points from the assigned coordinate points. For example, the assigned coordinate points are ((a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 )) In the case of these five points, three points (a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ) are taken out in the first search, and (a 3 , b 3 ) are taken out in the next search. a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ). While staggering a little, take out such consecutive three points.

步骤S402:求出取出的三点坐标点(x1,y1)、(x2,y2)、(x3,y3)的下一个值。基于dx←abs(x2-x1)求出x1与x2的距离dx,基于dy←abs(y2-y1)求出y1与y2的距离dy。Step S402: Calculate the next value of the extracted three coordinate points (x 1 , y 1 ), (x 2 , y 2 ), (x 3 , y 3 ). Calculate the distance dx between x1 and x2 based on dx←abs(x 2 -x 1 ), and calculate the distance dy between y 1 and y 2 based on dy←abs(y 2 -y 1 ).

并且,在表示描绘位置的变量由(x,y)表示的情况下,x←x1以及y←y1表示第三点中将第一点设定在描绘开始位置的处理。In addition, when the variable indicating the drawing position is represented by (x, y), x← x1 and y← y1 represent the processing of setting the first point at the drawing start position in the third point.

步骤S403:在取出的三点之内,对第一点(x,y)进行描绘数据化。Step S403: Convert the first point (x, y) into rendering data within the three extracted points.

步骤S404:根据通过第一点和第二点的直线与通过第二点和第三点的直线的角度,求出角度模式。Step S404: Calculate the angle pattern according to the angle between 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.

角度模式可以作为a=round(((Θ21)×28)/(2×∏))而计算。The angle pattern can be calculated as a=round(((Θ 21 )×28)/(2×Π)).

这里,角度Θ1是通过第一点和第二点的直线与x轴的角度(Θ1=tan-1((y2-y1)/(x2-x1))),角度Θ2是通过第二点和第三点的直线与x轴的角度(Θ2=tan-1((y3-y2)/(x3-x2)))。Here, the angle Θ 1 is the angle between the 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 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 ))).

函数round(t)表示t的四舍五入。tan-1的计算使得处理繁杂,但在本发明的情况下,由于只要最终符合被28分割的任意一个角度模式即可,所以,精度的要求不高。因此,利用将tan-1的参数分类为任意模式的表格,也能够使得tan-1的计算高速化。The function round(t) represents the rounding of t. The calculation of tan -1 makes the processing complicated, but in the case of the present invention, as long as it finally meets any angle pattern divided by 28, the requirement for accuracy is not high. Therefore, the calculation of tan -1 can also be accelerated by using a table that classifies the parameters of tan -1 into arbitrary patterns.

另外,通过利用表示tan-1的参数与tan-1的值的对应关系的表格,来使tan-1的计算高速化的方法,将在后面详细进行说明。In addition, the method of speeding up the calculation of tan -1 by using a table showing the correspondence relationship between the parameter of tan-1 and the value of tan - 1 will be described later in detail.

以上,如参照步骤S401~步骤S404所说明那样,通过执行步骤S401~步骤S404,针对被赋予的第一点、第二点以及第三点,能够确定第一点以及第二点中的至少一方与第三点的位置关系。As described above with reference to steps S401 to S404, by executing steps S401 to S404, at least one of the first point and the second point can be specified for the given first point, second point, and third point. The positional relationship with the third point.

步骤S405:从曲线表格44中取得(选择)控制列。向曲线表格的访问通过下面的计算而进行。Step S405 : Get (select) the control column 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)号的控制列。If the range of the table is set to n, the number of divisions is set to t, and the angle mode is set to a, then the control of No. ((n+1)×t×dy+t×dx+a) in the curve table 44 is obtained List. In this embodiment, since the range of the table is set to 15 and the number of divisions is set to 28, the ((15+1)×28×dy+28×dx+a)-th control column is obtained.

如参照步骤S405所说明那样,通过执行步骤S405,可以从含有表示第二点和第三点位置关系与线的模式的对应关系的信息的曲线表格44中,选择表示所期望的线的模式的控制列。As described with reference to step S405, by executing step S405, the curve table 44 that contains information representing the correspondence between the positional relationship between the second point and the third point and the pattern of the line can be selected to represent the pattern of the desired line. control column.

步骤S406:判定x1以及x2中哪一个大。Step S406: Determine which of x 1 and x 2 is larger.

在判定为x2为x1以上的情况下(是),处理进入步骤S407。在判定为x2小于x1的情况下(否),处理进入到步骤S408。When it is determined that x2 is equal to or greater than x1 (Yes), the process proceeds to step S407. When it is determined that x 2 is smaller than x 1 (NO), the process proceeds to step S408.

步骤S407:判定y1以及y2中哪一个大。Step S407: Determine which of y 1 and y 2 is larger.

在判定为y2为y1以上的情况下(是),处理进入步骤S409。在判定为y2小于y1的情况下(否),处理进入到步骤S410。When it is determined that y2 is equal to or greater than y1 (Yes), the process proceeds to step S409. When it is determined that y 2 is smaller than y 1 (No), the process proceeds to step S410.

步骤S408:判定y1以及y2中哪一个大。Step S408: Determine which of y 1 and y 2 is larger.

在判定为y2为y1以上的情况下(是),处理进入步骤S411。在判定为y2小于y1的情况下(否),处理进入到步骤S412。When it is determined that y 2 is equal to or greater than y 1 (Yes), the process proceeds to step S411. When it is determined that y 2 is smaller than y 1 (No), the process proceeds to step S412.

步骤S409:在将第一点设作原点的情况下,进行第二点位于第一象限时的第一象限描绘。Step S409: When the first point is set as the origin, draw the first quadrant when the second point is located in the first quadrant.

步骤S410:在将第一点设为原点的情况下,进行第二点位于第二象限时的第二象限描绘。Step S410: When the first point is set as the origin, draw the second quadrant when the second point is located in the second quadrant.

步骤S411:在将第一点设为原点的情况下,进行第二点位于第三象限时的第三象限描绘。Step S411 : When the first point is set as the origin, draw the third quadrant when the second point is located in the third quadrant.

步骤S412:在将第一点设为原点的情况下,进行第二点位于第四象限时的第四象限描绘。Step S412: When the first point is set as the origin, draw the fourth quadrant when the second point is located in the fourth quadrant.

步骤S413:判定标识符是否被设定。在判定为标识符被设定了的情况下(是),结束处理。在判定为标识符未被设定的情况下(否),处理进入到步骤S414。Step S413: Determine whether the identifier is set. When it is judged that the identifier is set (Yes), the process ends. When it is determined that the identifier is not set (NO), the process proceeds to step S414.

步骤S414:判定通过执行步骤S401所取得的三点是否是最后的三点。Step S414: Determine whether the three points obtained by executing step S401 are the last three points.

例如,在被赋予给曲线描绘处理的坐标点是(a1,b1)、(a2,b2)、(a3,b3)、(a4,b4)、(a5,b5)这五点的情况下,判定在步骤S401中取出的三点是否是最后的三点(a3,b3)、(a4,b4)、(a5,b5)。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 ) In the case of these five points, it is determined whether the three points extracted in step S401 are the last three points (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ).

在判定为是最后三点的情况下(是),处理进入步骤S415。在判定为不是最后三点的情况下(否),处理进入步骤S401。When it is determined to be the last three points (Yes), the process proceeds to step S415. When it is determined that it is not the last three points (NO), the process proceeds to step S401.

步骤S415:设定标识符,相反地设定三点。Step S415: Set the identifier, and set three points on the contrary.

例如,在按照(a3,b3)、(a4,b4)、(a5,b5)的顺序设定最后三点的情况下,按照(a5,b5)、(a4,b4)、(a3,b3)的顺序对最后三点进行变更。其目的在于防止(a4,b4)和(a5,b5)未被描绘。For example, in the case of setting the last three points in the order of (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ), in the order of (a 5 , b 5 ), (a 4 , b 4 ), (a 3 , b 3 ) order to change the last three points. Its purpose is to prevent (a 4 , b 4 ) and (a 5 , b 5 ) from being delineated.

在依次取出三点进行处理时(参照步骤S401),被描绘的是三点内的第一点与第二点之间,第二点与第三点之间未被描绘。为了防止最终最后的区间((a4,b4)和(a5,b5))未被描绘,最后调换点(a3,b3)和点(a5,b5),对最后的区间进行描绘。When three points are sequentially taken out for processing (refer to step S401), what is drawn is between the first point and the second point within the three points, and the area between the second point and the third point is not drawn. In order to prevent the final interval ((a 4 , b 4 ) and (a 5 , b 5 )) from being drawn, finally swap point (a 3 , b 3 ) and point (a 5 , b 5 ), for the final range is depicted.

另外,在本实施例中,将最后的三点相反设定,但也可以将“步骤S414的处理”变更为“判定所取得的三点是否比线的正中靠前的处理”。该情况下,当判定为所取得的三点比正中靠前时,从第一点按正顺序取出三点(参照步骤S401);当判定为所取得的三点不比正中靠前时,从最后的点按反顺序取出三点。In addition, in this embodiment, the last three points are reversed, but the "processing of step S414" may be changed to "processing of determining whether or not the acquired three points are ahead of the center of the line". In this case, when it is determined that the acquired three points are closer than the center, three points are taken out in positive order from the first point (refer to step S401); Take out three points in reverse order.

图27表示tan-1的值与tan-1的参数之间的对应。tan-1的值是角度(度),tan-1的参数是dy/dx。角度θ由(no×360)/56表示。Fig. 27 shows the correspondence between the value of tan -1 and the parameter of tan -1 . The value of tan -1 is the angle (degrees), and the parameter of tan -1 is dy/dx. The angle θ is represented by (no×360)/56.

通过利用表示tan-1的值与tan-1的参数对应的表格,从而不需要进行tan-1的计算。但是,在tan-1的值为0~180°(仅第一象限、第二象限)时,与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。但由于是第三象限的值,所以加上28,成为no=32。即,Θ1=tan-1((y2-y1)/(x2-x1))相当于求出通过第一点和第二点的直线与水平线的角度,但在允许降低精度的情况下,可以置换为求出表格的no。By using a table indicating that the value of tan -1 corresponds to the parameter of tan -1 , calculation of tan -1 is not required. However, when the value of tan -1 is 0 to 180° (only the first quadrant and the second quadrant), the parameter 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 located between no4 and no5. If the smaller no is selected in this embodiment, no=4. Also, since a straight line passing through (0, 0) and (-10, -5) is dy/dx=0.5 (dy=5, dx=10), no=4. However, since it is the value of the third quadrant, 28 is added to make no=32. That is, Θ 1 =tan -1 ((y 2 -y 1 )/(x 2 -x 1 )) is equivalent to finding the angle between the straight line passing through the first point and the second point and the horizontal line, but the accuracy is allowed to be lowered. In this case, it can be replaced with no for obtaining the table.

如果将通过表格求出tan-1((y2-y1)/(x2-x1))的值设定为no1,将通过表格求出的tan-1((y3-y2)/(x3-x2))的值设定为no2,则a=round(((Θ21)×28)/(2×∏))的计算,可以置换为a=round(abs(no2-no1)/2)。If the value of tan -1 ((y 2 -y 1 )/(x 2 -x 1 )) obtained from the table is set to no 1 , the tan -1 ((y 3 -y 2 ) obtained from the table )/(x 3 -x 2 )) is set to no 2 , then the calculation of a=round(((Θ 21 )×28)/(2×∏)) can be replaced by a=round (abs(no 2 -no 1 )/2).

下面,参照图1~图4进行具体说明。Hereinafter, a specific description will be given with reference to FIGS. 1 to 4 .

图1表示通过(0,0)、(7,4)、(10,10)的曲线。no1的值为4。其原因在于(4-0)/(7-0)=0.571。no2的值为9。其原因在于(10-4)/(10-7)=2。角度模式a为3(a=round(abs(9-4)/2))。Fig. 1 shows a curve passing through (0,0), (7,4), (10,10). The value of no 1 is 4. The reason for this is (4-0)/(7-0)=0.571. The value of no 2 is 9. The reason for this is that (10-4)/(10-7)=2. The angle mode a is 3 (a=round(abs(9-4)/2)).

图2表示通过(0,0)、(7,4)、(13,16)的曲线。no1的值为4。其原因在于(4-0)/(7-0)=0.571。no2的值为9。其原因在于(16-4)/(13-7)=2。角度模式a为3(a=round(abs(9-4)/2))。Fig. 2 shows a curve passing through (0,0), (7,4), (13,16). The value of no 1 is 4. The reason for this is (4-0)/(7-0)=0.571. The value of no 2 is 9. The reason for this is that (16-4)/(13-7)=2. The angle mode a is 3 (a=round(abs(9-4)/2)).

图3表示通过(0,0)、(7,4)、(12,17)的曲线。no1的值为4。其原因在于(4-0)/(7-0)=0.571。no2的值为10。其原因在于(17-4)/(12-7)=2.6。角度模式a为3(a=round(abs(10-4)/2))。Fig. 3 shows a curve passing through (0,0), (7,4), (12,17). The value of no 1 is 4. The reason for this is (4-0)/(7-0)=0.571. no 2 has a value of 10. The reason for this is that (17-4)/(12-7)=2.6. The angle mode a is 3 (a=round(abs(10-4)/2)).

图4表示通过(0,0)、(7,4)、(14,16)的曲线。no1的值为4。其原因在于(4-0)/(7-0)=0.571。no2的值为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. The reason for this is (4-0)/(7-0)=0.571. no 2 has a value of 15. The reason for this is that (14-4)/(6-7)=-10. The angle pattern a is 6 (a=round(abs(15-4)/2)).

在采用这种表格的情况下,可以不计算复杂的三角函数而求出角度模式。When such a table is used, the angle pattern can be obtained without calculating complicated trigonometric functions.

图18表示在步骤S409中执行的第一象限描绘处理顺序。FIG. 18 shows the procedure of the first quadrant drawing process executed in step S409.

下面参照图18,按步骤对第一象限描绘处理顺序进行说明。Next, referring to FIG. 18, the procedure of drawing the first quadrant will be described step by step.

步骤S501:判定由步骤S405取得的控制列是否结束。Step S501: Determine whether the control sequence acquired in step S405 is finished.

当判定为控制列结束的情况下(是),结束处理。在判定为没有结束的情况下(否),处理进入到步骤S502。When it is determined that the control sequence has ended (Yes), the process ends. When it is determined that the process has not ended (NO), the process proceeds to step S502.

步骤S502:根据控制列的值(值“0”~“7”:参照图13),处理会分支。Step S502: Depending on the value of the control column (values "0" to "7": refer to FIG. 13), the processing branches.

在控制值为“0”的情况下,处理进入到步骤S503。在控制值为“1”的情况下,处理进入步骤S504。在控制值为“2”的情况下,处理进入步骤S505。在控制值为“3”的情况下,处理进入步骤S506。在控制值为“4”的情况下,处理进入步骤S507。在控制值为“5”的情况下,处理进入步骤S508。在控制值为“6”的情况下,处理进入步骤S509。在控制值为“7”的情况下,处理进入步骤S510。When the control value is "0", the process proceeds to step S503. When the control value is "1", the process proceeds to step S504. When the control value is "2", the process proceeds to step S505. If the control value is "3", the process proceeds to step S506. When the control value is "4", the process proceeds to step S507. When 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: Increase the x value controlling the value in the x direction by 1. The process proceeds to step S511.

步骤S504:使控制x方向的值的x值增加1,使控制y方向的值的y值增加1。处理进入到步骤S511。Step S504: Increase the x value controlling the value in the x direction by 1, and increase the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S505:使控制y方向的值的y值增加1。处理进入到步骤S511。Step S505: Increase the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S506:使控制x方向的值的x值减少1,使控制y方向的值的y值增加1。处理进入到步骤S511。Step S506: Decrease the x value controlling the value in the x direction by 1, and increase the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S507:使控制x方向的值的x值减少1。处理进入到步骤S511。Step S507: Decrease the x value controlling the value in the x direction by 1. The process proceeds to step S511.

步骤S508:使控制x方向的值的x值减少1,使控制y方向的值的y值减少1。处理进入到步骤S511。Step S508: Decrease the x value controlling the value in the x direction by 1, and decrease the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S509:使控制y方向的值的y值减少1。处理进入到步骤S511。Step S509: Decrease the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S510:使控制x方向的值的x值增加1,使控制y方向的值的y值减少1。处理进入到步骤S511。Step S510: Increase the x value controlling the value in the x direction by 1, and decrease the y value controlling the value in the y direction by 1. The process proceeds to step S511.

步骤S511:对在步骤S503~步骤S510中计算的点(x,y)进行描绘数据化。例如,绘制点(x,y)。Step S511: convert the points (x, y) calculated in steps S503 to S510 into drawing data. For example, plot point (x, y).

图19表示在步骤S410中执行的第二象限描绘处理顺序。FIG. 19 shows the procedure of the second quadrant drawing process executed in step S410.

第二象限相对于第一象限为y轴对称。因此,与第一象限描绘处理顺序(参照图18)的处理顺序不同点只是对应于控制值的x的增减变为相反,因此,省略步骤S601~步骤S611的说明。The second quadrant is y-axis symmetric with respect to the first quadrant. Therefore, the only difference from the first quadrant drawing processing procedure (see FIG. 18 ) is that the increase or decrease of x corresponding to the control value is reversed, and therefore, descriptions of steps S601 to S611 are omitted.

图20表示在步骤S411中执行的第三象限描绘处理顺序。FIG. 20 shows the procedure of the third quadrant drawing process executed in step S411.

第三象限相对于第一象限为原点对称。因此,与第一象限描绘处理顺序(参照图18)的处理顺序不同点只是对应于控制值的x的增减以及y的增减分别变为相反,因此,省略步骤S701~步骤S711的说明。The third quadrant is symmetrical to the origin with respect to the first quadrant. Therefore, the only difference from the processing procedure of the first quadrant rendering procedure (see FIG. 18 ) is that the increase and decrease of x and the increase and decrease of y corresponding to the control value are respectively reversed, and therefore, descriptions of steps S701 to S711 are omitted.

图21表示在步骤S412中执行的第四象限描绘处理顺序。FIG. 21 shows the procedure of the fourth quadrant drawing process executed in step S412.

第四象限相对于第一象限为x轴对称。因此,与第一象限描绘处理顺序(参照图18)的处理顺序不同点只是对应于控制值的y的增减变为相反,因此,省略步骤S801~步骤S811的说明。The fourth quadrant is x-axis symmetric with respect to the first quadrant. Therefore, the difference from the first quadrant drawing processing procedure (see FIG. 18 ) is that the increase and decrease of y corresponding to the control value are reversed, and therefore, descriptions of steps S801 to S811 are omitted.

图22表示坐标数据、缩放化数据以及量子化数据。FIG. 22 shows coordinate data, scaled data, and quantized data.

是对向量数据(参照图9)进行缩放化、量子化处理后的结果。It is the result of scaling and quantizing vector data (see FIG. 9 ).

图23表示基于图22所示的量子化数据进行描绘的结果。FIG. 23 shows the results of rendering based on the quantized data shown in FIG. 22 .

表示通过描绘数据化处理(参照图15)对量子化数据(参照图22)进行了描绘的结果。通过曲线描绘,可以高品质地描绘文字。The result of drawing the quantized data (see FIG. 22 ) by the drawing data conversion process (see FIG. 15 ) is shown. Characters can be drawn with high quality by curve drawing.

图24表示表格的编辑处理顺序。Fig. 24 shows the table editing processing procedure.

图25表示变更了显示点之后的线的模式。FIG. 25 shows a pattern of lines after display points have been changed.

图26表示变更了显示点之后的曲线描绘表格。FIG. 26 shows a graph drawing table after display points are changed.

下面,参照图1、图12、图24~图26,按步骤对表格的编辑处理顺序进行说明。Next, with reference to FIG. 1 , FIG. 12 , and FIG. 24 to FIG. 26 , the table editing processing procedure will be described step by step.

步骤S901:找出通过三点的控制列,将线的模式显示于编辑画面。显示于编辑画面的线的模式例如如图1所示。通过两点的线的模式显示于编辑画面。Step S901: find out the control bar passing through three points, and display the line pattern on the editing screen. The pattern of the line displayed on the editing screen is as shown in FIG. 1, for example. The pattern of the line passing through two points is displayed on the editing screen.

步骤S902:一边观察画面一边变更所显示的线的模式。例如,将图1所示的线的模式编辑成图25所示的线的模式。Step S902: Change the pattern of the displayed line while observing the screen. For example, edit the line pattern shown in FIG. 1 to the line pattern shown in FIG. 25 .

步骤S903:由控制列仅表示变更后的线的模式中通过第一点和第二点的线的模式,对表格进行改写。图12所示的曲线表格的第1990号控制列{0,0,1,0,1,1,1}被改写成图26所示的曲线表格的第1990号控制列{0,1,0,1,0,1,1}。Step S903: The table is rewritten from the pattern of the line passing through the first point and the second point in the pattern of the changed line in the control column. The 1990th control column {0, 0, 1, 0, 1, 1, 1} of the curve table shown in Figure 12 is rewritten as the 1990th control column {0, 1, 0 of the curve table shown in Figure 26 , 1, 0, 1, 1}.

这样,能够变更曲线表格的内容。其中,变更结果会影响到将通过第一点和第二点的直线与通过第二点和第三点的直线的角度分割为相同角度模式的所有情况。In this way, the contents of the curve table can be changed. Among them, the change result will affect all cases where 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 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 24 .

例如,在图14~图21以及图24的实例中,步骤S401~步骤S404对应于“针对被赋予的第一点、第二点以及第三点,来确定第一点以及第二点中的至少一方与第三点的第一位置关系的步骤”,步骤S405对应于“从预先准备的至少一个线的模式即通过第一点和第二点的至少一个线的模式中,选择与所确定的第一位置关系对应的一个线的模式的步骤”,步骤S409~步骤S412对应于“根据所选择的线的模式,将通过第一点和第二点的线显示于显示器件的步骤”。但是,图14~图21以及图24的实例只不过是表示本发明显示顺序的一个例子。只要上述的各步骤被执行,则具有任意步骤的显示顺序都包含于本发明的范围中。For example, in the examples in FIGS. 14 to 21 and 24, step S401 to step S404 correspond to "concerning the given first point, second point and third point, determine the The step of the first position relationship between at least one party and the third point", step S405 corresponds to "from the pattern of at least one line prepared in advance, that is, the pattern of at least one line passing through the first point and the second point, select and determine Steps of a line mode corresponding to the first positional relationship of the selected line", step S409 to step S412 correspond to the step of "displaying the line passing through the first point and the second point on the display device according to the selected line mode". However, the example in FIGS. 14 to 21 and FIG. 24 is merely an example showing the display order of the present invention. A display sequence having any steps is included in the scope of the present invention as long as each step described above is performed.

根据本发明的程序以及记录介质,可以不通过计算来求出通过第一点和第二点的线的轨迹,而是从通过第一点和第二点的至少一个线的模式之中选择与所确定的位置关系对应的一个线的模式,从而可显示通过第一点和第二点的线。因此,不需要通过烦杂的计算进行通过第一点和第二点的线的轨迹的计算,能够高速显示通过第一点和第二点的线。According to the program and the recording medium of the present invention, it is possible not to obtain the locus of the line passing through the first point and the second point by calculation, but to select from at least one pattern of the line passing through the first point and the second point. A line pattern corresponding to the determined positional relationship, so that a line passing through the first point and the second point can be displayed. Therefore, it is not necessary to calculate the locus of the line passing through the first point and the second point through 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-mentioned embodiment, the case where characters are displayed has been described as an example, but the present invention is not limited thereto. The present invention can also be used in cases where graphics are displayed instead of text or in addition to text. In this case, by using a graphic display program instead of the character display program 41 or in addition to the character display program 41 , it is sufficient to use graphic data instead of the character data 42 or in addition to the character data 42 . The graphics display program may also include the same steps as the character display program 41 . Graphics may include part of characters, patterns, symbols, and the like.

如上所述,可利用本发明的优选实施方式对本发明进行例示,但本发明不限定于该实施方式而被解释。应当理解为本发明的范围仅基于技术方案的范围而被解释。本领域技术人员可以根据本发明的记载以及技术常识,从本发明的具体优选实施方式的记载得出等价的范围。本说明书中所引用的专利、专利申请以及文献,具体而言应当理解为将其内容自身引用作为对本说明书的参考,与其自身被记载于本说明书是同样的。As mentioned above, although this invention was demonstrated using the preferable embodiment of this invention, this invention is not limited to this embodiment, and is interpreted. It should be understood that the scope of the present invention is only interpreted based on the scope of technical solutions. Those skilled in the art can derive an equivalent range from the description of specific preferred embodiments of the present invention based on the description of the present invention and common technical knowledge. Specifically, patents, patent applications, and documents cited in this specification should be understood as if their contents themselves are cited as a reference to this specification, as if they themselves were described in this specification.

(工业上的可利用性)(industrial availability)

根据本发明的显示装置、程序以及记录介质,可以不基于计算求出通过第一点和第二点的线的轨迹,而是从通过第一点和第二点的至少一个线的模式之中选择与所确定的位置关系对应的一个线的模式,从而可显示通过第一点和第二点的线。因此,不需要通过烦杂的计算进行通过第一点和第二点的线的轨迹的计算,能够高速显示通过第一点和第二点的线。According to the display device, program, and recording medium of the present invention, it is possible not to obtain the locus of the line passing through the first point and the second point based on calculation, but to obtain the locus of the line passing through the first point and the second point from at least one pattern of the line passing through the first point and the second point. A mode of a line corresponding to the determined positional relationship is selected so that a line passing through the first point and the second point can be displayed. Therefore, it is not necessary to calculate the locus of the line passing through the first point and the second point through complicated calculations, and the line passing through the first point and the second point can be displayed at high speed.

在本发明中,利用了表示通过第一点和第二点的线的模式与三点的位置关系的对应的表格,来描绘连接三点的曲线。因此,能够仅通过表格的读出来实现曲线的描绘,从而不产生烦杂的运算。结果,能够高速描绘通过第一点和第二点的线。In the present invention, a curve connecting the three points is drawn using a table showing the correspondence between the pattern of the line passing through the first point and the second point and the positional relationship of the three points. Therefore, drawing of a curve can be realized only by reading a table, and no complicated calculation is performed. As a result, a line passing through the first point and the second point can be drawn at high speed.

而且,对通过第一点和第二点的直线与通过第二点和第三点的直线的角度进行分类,实施表格化。结果可减少容量。Furthermore, 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, capacity can be reduced.

并且,仅在第二点位于第一象限的情况下,进行通过第一点和第二点的直线与通过第二点和第三点的直线的角度分类以及表格化。因此,可以减少三点位置的组合。结果,能够进一步减少容量。And only when the second point is located in the first quadrant, angle classification and tabulation of 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 performed. Therefore, combinations of three-point positions can be reduced. As a result, the capacity can be further reduced.

Claims (6)

1.一种显示装置,其中具备:对线进行显示的显示器件、和对所述显示器件进行控制的控制部,1. A display device comprising: a display device for displaying lines, and a control unit for controlling the display device, 所述控制部针对被赋予的第一点、第二点以及第三点,确定所述第一点以及所述第二点中的至少一方与所述第三点的第一位置关系,从预先准备的至少一个线的模式、即通过所述第一点和所述第二点的至少一个线的模式之中,选择与被确定的第一位置关系对应的一个线的模式,根据被选择的线的模式,将通过所述第一点和所述第二点的线显示到所述显示器件,The control unit determines a first positional relationship between at least one of the first point and the second point and the third point for the assigned first point, second point, and third point, and determines Among the prepared at least one line pattern, that is, at least one line pattern passing through the first point and the second point, select a line pattern corresponding to the determined first position relationship, according to the selected a line mode to display a line passing through said first point and said second point to said display device, 在所述第二点的周围分配有多个区域,a plurality of regions are allocated around the second point, 所述第三点被赋予到所述多个区域中的一个,said third point is assigned to one of said plurality of regions, 被赋予了所述第三点的一个区域、和与该一个区域不同的区域,具有不同的大小。One area assigned the third point and an area different from the one area have different sizes. 2.根据权利要求1所述的显示装置,其中,2. The display device according to claim 1, wherein, 还具备对模式信息进行保持的保持部,所述模式信息表示所述第一位置关系与所述至少一个线的模式的对应关系,further comprising a holding unit that holds pattern information indicating a correspondence relationship between the first positional relationship and the pattern of the at least one line, 线的模式的选择,参照保持于所述保持部的所述模式信息而进行。The selection of the mode of the line is performed with reference to the mode information held in the holding unit. 3.根据权利要求1所述的显示装置,其中,3. The display device according to claim 1, wherein, 所述第一位置关系,根据连接所述第一点和所述第二点的第一直线、与连接所述第二点和所述第三点的第二直线的角度而被确定。The first positional relationship is determined based on 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. 4.根据权利要求3所述的显示装置,其中,4. The display device according to claim 3, wherein, 所述控制部针对所述第一点、所述第二点以及第四点,确定所述第一点以及所述第二点中的至少一方与所述第四点的第二位置关系,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 a line pattern corresponding to the determined second positional relationship from among the at least one line pattern, 在所述第二点的周围分配有多个区域,a plurality of regions are allocated around the second point, 所述第三点与所述第四点被赋予到所述多个区域中的相同区域,said third point and said fourth point are assigned to the same area of said plurality of areas, 与所述被确定的第一位置关系对应的一个线的模式、和与所述被确定的第二位置关系对应的一个线的模式相同。A pattern of a line corresponding to the determined first positional relationship is the same as a pattern of a line corresponding to the determined second positional relationship. 5.根据权利要求1所述的显示装置,其中,5. The display device according to claim 1, wherein, 所述第一点被赋予到原点,所述第二点被赋予到第一象限。The first point is assigned to the origin and the second point is assigned to the first quadrant. 6.根据权利要求1所述的显示装置,其中,6. The display device according to claim 1, wherein, 仅在所述第二点的周围的一部分,分配有多个区域,only a part of the surrounding of the second point is allocated with a plurality of regions, 所述第三点被赋予到所述多个区域中的一个。The third point is assigned to one of the plurality of areas.
CN2005800246142A 2004-07-23 2005-07-21 display device, program, and recording medium Expired - Fee Related CN1998024B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2004216462A JP4198098B2 (en) 2004-07-23 2004-07-23 Display device, program, and recording medium
JP216462/2004 2004-07-23
PCT/JP2005/013426 WO2006009228A1 (en) 2004-07-23 2005-07-21 Display apparatus, program and recording medium

Publications (2)

Publication Number Publication Date
CN1998024A CN1998024A (en) 2007-07-11
CN1998024B true CN1998024B (en) 2010-10-06

Family

ID=35785336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005800246142A Expired - Fee Related CN1998024B (en) 2004-07-23 2005-07-21 display device, program, and recording medium

Country Status (4)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1075806A (en) * 1992-01-27 1993-09-01 富士通株式会社 Character generating method and device thereof
CN1090660A (en) * 1992-11-30 1994-08-10 佳能株式会社 Outside line forms apparatus and method
US6204861B1 (en) * 1997-04-18 2001-03-20 Kobundo Co., Ltd. Method and apparatus for indicating curved line on display panel of computer device
CN1388462A (en) * 2002-03-29 2003-01-01 上海汉峰信息科技有限公司 Curved font described with stroke center line as datum for embedding application

Family Cites Families (1)

* 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1075806A (en) * 1992-01-27 1993-09-01 富士通株式会社 Character generating method and device thereof
CN1090660A (en) * 1992-11-30 1994-08-10 佳能株式会社 Outside line forms apparatus and method
US6204861B1 (en) * 1997-04-18 2001-03-20 Kobundo Co., Ltd. Method and apparatus for indicating curved line on display panel of computer device
CN1388462A (en) * 2002-03-29 2003-01-01 上海汉峰信息科技有限公司 Curved font described with stroke center line as datum for embedding application

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CN 1388462 A,全文.
JP平4-174494A 1992.06.22
JP特开2003-296092A 2003.10.17

Also Published As

Publication number Publication date
WO2006009228A1 (en) 2006-01-26
JP2006039780A (en) 2006-02-09
KR100866362B1 (en) 2008-11-03
CN1998024A (en) 2007-07-11
HK1104864A1 (en) 2008-01-25
JP4198098B2 (en) 2008-12-17
KR20070026795A (en) 2007-03-08

Similar Documents

Publication Publication Date Title
US5159668A (en) Method and apparatus for manipulating outlines in improving digital typeface on raster output devices
CN1497438B (en) Apparatus and method for font generation
JP3019202B2 (en) Font type conversion method using center axis conversion
KR20150099936A (en) Method and apparatus for applying an alternate font for maintaining document layout
US5489920A (en) Method for determining the optimum angle for displaying a line on raster output devices
US9245361B2 (en) Consolidating glyphs of a font
US7609268B2 (en) Arrangement for the scaling of fonts
KR20040020038A (en) Font processor, terminal device, font processing method and recording medium recording the font processing program
US7701467B2 (en) Character display apparatus, character display method, character display program, and recording medium
US20040196288A1 (en) Method and apparatus for generating vector font
US20060181532A1 (en) Method and system for pixel based rendering of multi-lingual characters from a combination of glyphs
US20160364132A1 (en) Pan-zoom entry of text
CN1998024B (en) display device, program, and recording medium
JPH0725068A (en) Character generation method and apparatus
CN100356443C (en) Device, method and program of character generation and storage medium
CN101957837A (en) Method for accessing stroke vector font
HK1104864B (en) Display apparatus, program and recording medium
JPS59210482A (en) Character pattern generator
CN101354781B (en) Processing device
US6034702A (en) Character forming apparatus
JPWO2007013566A1 (en) Information processing apparatus, information processing program, and readable recording medium
US20170257521A1 (en) Electronic apparatus and display method of electronic apparatus
CN101138019B (en) Character graphic display device
JP3025141B2 (en) Character modifier
HK1073912B (en) Character generating apparatus and character generating method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1104864

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1104864

Country of ref document: HK

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101006

Termination date: 20160721

CF01 Termination of patent right due to non-payment of annual fee