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

Display apparatus, program and recording medium Download PDF

Info

Publication number
KR20070026795A
KR20070026795A KR1020077000567A KR20077000567A KR20070026795A KR 20070026795 A KR20070026795 A KR 20070026795A KR 1020077000567 A KR1020077000567 A KR 1020077000567A KR 20077000567 A KR20077000567 A KR 20077000567A KR 20070026795 A KR20070026795 A KR 20070026795A
Authority
KR
South Korea
Prior art keywords
point
line
pattern
display device
positional relationship
Prior art date
Application number
KR1020077000567A
Other languages
Korean (ko)
Other versions
KR100866362B1 (en
Inventor
노리유키 코야마
마코토 사쿠타
오사무 니시다
Original Assignee
샤프 가부시키가이샤
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 샤프 가부시키가이샤 filed Critical 샤프 가부시키가이샤
Publication of KR20070026795A publication Critical patent/KR20070026795A/en
Application granted granted Critical
Publication of KR100866362B1 publication Critical patent/KR100866362B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns

Abstract

A display apparatus is provided with a display device for displaying lines and a control part for controlling the display device. As for given first point, second point and third point, the control part decides a first positional relationship between at least the first point or the second point, and the third point. Then, the control part selects one line pattern corresponding to the decided first positional relationship, from at least one line pattern, which is previously prepared and passes the first point and the second point, and displays a line passing the first point and the second point on the display device, corresponding to the selected line pattern. ® KIPO & WIPO 2007

Description

표시장치, 프로그램 및 기록매체{DISPLAY APPARATUS, PROGRAM AND RECORDING MEDIUM}DISPLAY APPARATUS, PROGRAM AND RECORDING MEDIUM}

본 발명은, 선을 표시하는 표시 디바이스와, 표시 디바이스를 제어하는 제어부를 구비한 표시장치, 프로그램 및 기록매체에 관한 것이다. 본 발명에 의하면, 예를 들어, 저중해상도의 표시장치에 곡선을 가지는 문자를 고속으로 표시할 수 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display device, a program and a recording medium having a display device for displaying lines and a control unit for controlling the display device. According to the present invention, for example, a curved character can be displayed on a low to medium resolution display device at high speed.

아우트라인 폰트(outline font)는, 폐곡선의 윤곽으로 문자를 표현한다. 이 아우트라인 폰트는, 벡터 데이터에 기초하여 문자를 표현하는 기술로 널리 사용되고 있다. 아우트라인 폰트는, 예를 들면, TrueType 폰트 및 PostScript 폰트이다. TrueType 폰트의 곡선에서는, 2차의 B-스프라인(spline) 곡선이 사용된다(수학식1 참조). PostScript 폰트의 곡선에서는, 베지 곡선이 사용된다(수학식2 참조).An outline font expresses a character by the outline of a closed curve. This outline font is widely used as a technique of expressing a character based on vector data. The outline fonts are, for example, TrueType fonts and PostScript fonts. For TrueType font curves, a second order B-spline curve is used (see Equation 1). For curves in PostScript fonts, a Bezier curve is used (see Equation 2).

Figure 112007002201208-PCT00001
Figure 112007002201208-PCT00001

Figure 112007002201208-PCT00002
Figure 112007002201208-PCT00002

Figure 112007002201208-PCT00003
Figure 112007002201208-PCT00003

Figure 112007002201208-PCT00004
Figure 112007002201208-PCT00004

Figure 112007002201208-PCT00005
Figure 112007002201208-PCT00005

Figure 112007002201208-PCT00006
Figure 112007002201208-PCT00006

고해상도의 표시장치에 문자를 표시하는 경우에, 이러한 폰트는 적합하다. 특히, 문자를 종이에 인쇄하는 경우에, 이러한 폰트는 알맞다. 또한, 수학식1 및 수학식2에서 표현되는 곡선은, 곡선의 양단(시점과 종점)은 통과하지만, 시점과 종점간의 점(제어점)은 통과하지 않는다.This font is suitable for displaying characters on a high resolution display device. Especially when printing characters on paper, such fonts are suitable. Further, the curves represented by the equations (1) and (2) pass both ends (starting point and end point) of the curve, but do not pass through the point (control point) between the start point and the end point.

스트로크(stroke) 폰트는, 두께를 가지지 않는 스트로크로 문자를 표시한다. 이 스트로크 폰트는, 아우트라인 폰트와 같이, 벡터 데이터에 기초하여 문자를 표시하는 기술에 널리 사용되고 있다.Stroke fonts display characters in strokes of no thickness. This stroke font is widely used in the technique which displays a character based on vector data like an outline font.

저중(低中)해상도의 표시장치에 문자를 표시하는 경우에, 이 폰트는 적합하다. 이 스트로크 폰트를 표시장치에 표시하는 때에는, 일반적으로, 표현해야 하는 선이 곡선인지 직선인지를 묻지 않고, 복수의 점의 각각을 직선으로 잇는 것에 의해, 곡선 또는 직선을 표현하기 때문에, 아우트라인 폰트에 비해 고속으로 묘화할 수 있다.This font is suitable for displaying characters on display devices of low to medium resolution. When displaying this stroke font on a display device, in general, a curve or a straight line is represented by connecting each of a plurality of points in a straight line without asking whether the line to be expressed is a curve or a straight line. We can draw at high speed in comparison.

특허문헌1은, 2점을 잇는 직선을 고속으로 묘화하는 기술을 개시한다.Patent document 1 discloses the technique of drawing a straight line connecting two points at high speed.

이 기술은, 직선의 기울기에 기초해 상수열을 구한다. 다음으로, 상수열로부터 제어수열을 구하고, 제어수열에 기초하여, 직선을 고속으로 묘화한다.This technique finds a constant string based on the slope of the straight line. Next, a control sequence is obtained from the constant sequence, 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, the constant string {2, 1, 1, 3} is calculated based on the slope 7/18 of the straight line. Next, control sequence {1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, from constant sequence {2, 1, 1, 3} 1, 0}. When increasing the drawing position of the straight line in the x direction, when the value of the control matrix is "1", the value of y is increased by drawing the value of y, and the value of y when the value of the control matrix is "0". Draw straight lines without increasing them.

특허문헌1에는, 상수열 및 제어수열을 미리 계산해 놓는 것도 개시되어 있다.Patent Document 1 also discloses calculating a constant sequence and a control sequence in advance.

특허문헌2는, 곡선을 고속으로 묘화하는 기술을 개시한다. 이 기술은, 매개변수에 관한 값을 미리 계산하여, 기억해 두고, 곡선을 베지 곡선 등으로 표현하는 때에, 이들 값을 이용한다.Patent document 2 discloses the technique of drawing a curve at high speed. This technique uses these values when the values relating to the parameters are calculated in advance and stored, and the curves are represented by a Bezier curve or the like.

예를 들면, 수학식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 Equation 2, the possible values of t are (0, 1/1024, 2/1024, 3/1024,…, 1023/1024, 1024/1024). do. 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 is calculated in advance, and these relationships are tabled. 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 . As described above, according to the technique disclosed in Patent Document 2, the calculation shown in Equation 2 can be processed at high speed.

특허문헌1: 일본공개특허 평9-161082호 공보Patent Document 1: Japanese Patent Application Laid-Open No. 9-161082

특허문헌2: 일본공개특허 평1-255076호 공보Patent Document 2: Japanese Patent Application Laid-Open No. 1-255076

〈발명이 해결하고자 하는 과제〉〈Problems to Solve Invention〉

그러나, 종래의 기술에는, 이하에 나타나는 문제점이 있다.However, the prior art has a problem shown below.

중저해상도의 표시장치에 아우트라인 폰트를 표시하는 경우에는, 선폭이 불규칙하게 분포하고 선이 찌그러지는 것이 발생하기 쉽고, 문자의 품위가 좋지 않다.When an outline font is displayed on a display device of medium and low resolution, line widths are irregularly distributed and line distortion is likely to occur, resulting in poor character quality.

특허문헌2의 기술에는, 복수의 점의 각각을 묘화할 때마다 부동 소수점 연산을 수반한 계산이 발생하여, 표시의 고속화에 한계가 있다. 일반적으로, CPU의 부동 소수점 연산은, CPU의 정수연산보다 느리다.In the technique of Patent Document 2, each time a plurality of points are drawn, calculations involving floating point arithmetic occur, thereby limiting the speed of display. In general, CPU floating point operations are slower than CPU integer operations.

표시장치에 스트로크 폰트를 표시하는 경우에는, 문자의 곡선부분에 덜커덩거림이 두드러진다. 스트로크 폰트는, 문자의 곡선부분을 직선으로 표현하기 때문이다. 특히, 문자를 크게 해나가면, 덜커덩거림은 현저해진다.When the stroke font is displayed on the display device, a lump is noticeable in the curved portion of the character. This is because the stroke font expresses curved portions of characters in a straight line. In particular, if you increase the size of the character, the lump becomes noticeable.

문자의 곡선부분을 2차의 B-스플라인 곡선 또는 베지 곡선으로 표현하는 것으로는, 두께가 없는 스트로크 폰트를 디자인하는 것이 어렵다. 선이 곡선의 양단 사이의 제어점을 통과하지 않기 때문이다. 제어점을 전부 통과하는 곡선보간으로서, 3차 스플라인을 이용한 곡선보간이 있다. 그러나, 이 보간은, 단점(端点)에 대해 제약조건을 붙일 필요가 있고, 조건부가 어려운 문제가 있다. 또, 고속화가 어려운 문제가 있다.It is difficult to design a stroke font with no thickness by expressing the curved portion of the character as a secondary B-spline curve or a Bezier curve. This is because the line does not pass through the control points between the ends of the curve. As curve interpolation passing through all control points, there is curve interpolation using cubic splines. However, this interpolation needs to put a constraint on the disadvantage, and there is a problem that the conditional part is difficult. In addition, there is a problem that the speed is difficult.

본 발명은 상기 문제점을 감안하여 이루어진 것으로, 고속으로 선을 묘화할 수 있고, 또한 선을 나타내는 데이터의 기록용량을 적게 할 수 있는 문자도형 표시장치, 프로그램 및 기록매체를 제공하는 것으로 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object thereof is to provide a character display display apparatus, a program and a recording medium which can draw lines at high speed and reduce the recording capacity of data representing lines.

〈문제를 해결하기 위한 수단〉〈Means for solving problems〉

본 발명의 표시장치는, 선을 표시하는 표시 디바이스와, 상기 표시 디바이스를 제어하는 제어부를 구비한 표시장치에 있어서, 상기 제어부는, 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하고, 미리 준비된 적어도 하나의 선의 패턴에 있어, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하고, 상기 선택된 선의 패턴에 따라, 상기 제1점과 상기 제2점을 통과하는 선을 상기 표시 디바이스에 표시하고, 이것에 의해, 상기 목적이 달성된다.The display device of the present invention is a display device including a display device for displaying a line and a control unit for controlling the display device, wherein the control unit is configured for the given first point, second point, and third point. Determining a first positional relationship between at least one of the first point and the second point and the third point, and at least one passing through the first point and the second point in a pattern of at least one line prepared in advance Selecting a pattern of one line corresponding to the determined first positional relationship among the pattern of lines of, and displaying a line passing through the first point and the second point on the display device according to the pattern of the selected line, Thereby, the said objective is achieved.

상기 제1위치관계와 상기 선의 패턴과의 대응관계를 나타내는 패턴정보를 유지하는 유지부를 더 구비하고, 상기 선의 패턴의 선택은, 상기 유지부에 유지되어 있는 상기 패턴정보를 참조하여 행하여져도 된다.A holding part for holding pattern information indicating a correspondence relationship between the first positional relationship and the pattern of the line may be further provided, and the selection of the pattern of the line may be performed with reference to the pattern information held in the holding part.

상기 제1위치관계는, 상기 제1점과 상기 제2점을 잇는 제1직선과 상기 제2점과 상기 제3점을 잇는 제2직선과의 각도에 따라 결정되어도 좋다.The first positional relationship may be determined according to the angle between the first straight line connecting the first point and the second point and the second straight line connecting the second point and the third point.

상기 제어부는, 상기 제1점, 상기 제2점 및 제4점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제4점과의 제2위치관계를 결정하고, 상기 제어부는, 상기 적어도 하나의 선의 패턴 중에서, 상기 결정된 제2위치관계에 대응하는 하나의 선의 패턴을 선택하고, 상기 제2점의 주위에는, 복수의 영역이 할당되고, 상기 제3점과 상기 제4점은, 상기 복수의 영역 중 같은 영역에 부여되고, 상기 선택된 제1위치관계에 대응하는 하나의 선의 패턴과 상기 선택된 제2위치관계에 대응하는 하나의 선의 패턴은, 동일하여도 된다.The controller 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. Selecting one line pattern corresponding to the determined second positional relationship among the at least one line pattern, and a plurality of areas are allocated around the second point, and the third point and the fourth point. Is given to the same area among the plurality of areas, and the pattern of one line corresponding to the selected first positional relationship and the pattern of one line corresponding to the selected second positional relationship may be the same.

상기 제1점은 원점에 부여되고, 상기 제2점은 제1상한에 부여되어도 된다.The said 1st point may be given to an origin, and the said 2nd point may be given to a 1st upper limit.

상기 제2점의 주위에는, 복수의 영역이 할당되고, 상기 제3점은, 상기 복수의 영역 중 하나에 부여되고, 상기 복수의 영역 중 하나의 영역과, 상기 하나의 영역과는 다른 영역은, 다른 크기를 가져도 좋다.A plurality of areas are allocated around the second point, and the third point is given to one of the plurality of areas, one of the plurality of areas, and an area different from the one area. May have different sizes.

상기 제2점의 주위의 일부에만, 복수의 영역이 할당되고, 상기 제3점은, 상기 복수의 영역 중 하나에 부여되어도 된다.A plurality of areas may be allocated to only a part of the surroundings of the second point, and the third point may be provided to one of the plurality of areas.

본 발명의 프로그램은, 선을 표시하는 표시 디바이스를 구비한 정보표시장치에 표시처리를 실행시키는 프로그램에 있어서, 상기 표시처리는, 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하는 단계와, 미리 준비된 적어도 하나의 선의 패턴에 있어서, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 단계와, 상기 선택된 선의 패턴에 따라, 상기 제1점과 제2점을 통과하는 선을 상기 표시 디바이스에 표시하는 단계를 포함하고, 이에 의해, 상기 목적이 달성된다.The program of the present invention is a program for causing a display process to be executed in an information display apparatus having a display device for displaying lines, wherein the display process is performed for the given first, second and third points. Determining a first positional relationship between at least one of the one point and the second point and the third point, and at least one passing through the first point and the second point in a pattern of at least one line prepared in advance Selecting a pattern of one line corresponding to the determined first positional relationship among the patterns of one line, and displaying a line passing through the first point and the second point according to the selected line pattern on the display device And the above object is achieved.

본 발명의 기록매체는, 선을 표시하는 표시 디바이스를 구비한 정보표시장치에 의해 독취가능한 기록매체에 있어서, 상기 기록매체는, 상기 정보표시장치에 표시처리를 실행시키는 프로그램을 기록하고, 상기 표시처리는, 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하는 단계와, 미리 준비된 적어도 하나의 선의 패턴에 있어서, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 단계와, 상기 선택된 선의 패턴에 따라, 상기 제1점과 상기 제2점을 통과하는 선을 상기 표시 디바이스에 표시하는 단계를 포함하고, 이에 의해, 상기 목적이 달성된다.A recording medium of the present invention is a recording medium that can be read by an information display apparatus having a display device for displaying a line, wherein the recording medium records a program for executing display processing on the information display apparatus, and displays the display medium. The processing includes, for a given first point, second point and third point, determining a first positional relationship between at least one of the first point and the second point and the third point, and at least prepared in advance. Selecting a pattern of one line corresponding to the determined first positional relationship among the patterns of at least one line passing through the first point and the second point in the pattern of one line; Accordingly, the method includes displaying a line passing through the first point and the second point on the display device, whereby the object is achieved.

〈발명의 효과〉<Effects of the Invention>

본 발명의 표시장치, 프로그램 및 기록매체에 의하면, 제1점과 제2점을 통과하는 선의 궤적을 계산에 의해 구하지 않고, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 위치관계에 대응하는 하나의 선의 패턴을 선택하는 것에 의해, 제1점과 제2점을 통과하는 선을 표시할 수 있다. 따라서, 복잡한 계산이 필요한 제1점과 제2점을 통과하는 선의 궤적의 계산을 행할 필요 없이, 제1점과 제2점을 통과하는 선을 고속으로 표시할 수 있다.According to the display device, the program, and the recording medium of the present invention, without determining the trajectory of the line passing through the first point and the second point by calculation, it is determined from among the patterns of at least one line passing through the first point and the second point. By selecting one line pattern corresponding to the positional relationship, a line passing through the first point and the second point can be displayed. Therefore, the line passing through the first point and the second point can be displayed at high speed without the need to calculate the trajectory of the line passing through the first point and the second point requiring complicated calculation.

본 발명에서는, 제1점과 제2점을 통과하는 선의 패턴과 3점의 위치관계와의 대응을 나타내는 테이블을 이용하여, 3점을 잇는 곡선을 묘화한다. 따라서, 테이블의 독출만으로 곡선의 묘화가 가능해지고, 복잡한 연산이 발생하지 않는다. 그 결과, 제1점과 제2점을 통과하는 선을 고속으로 묘화할 수 있다.In this invention, the curve which connects three points is drawn using the table which shows the correspondence of the pattern of the line which passes through a 1st point and a 2nd point, and the positional relationship of 3 points. Therefore, the curve can be drawn only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

더욱이, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도를 분류하고, 테이블화한다. 그 결과, 용량을 적게할 수 있다.Furthermore, 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 is classified and tabulated. As a result, the capacity can be reduced.

또, 제2점이 제1상한에 있는 경우에만, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선의 각도의 분류로 테이블화를 행한다. 따라서, 3점의 위치의 조합을 줄일 수 있다. 그 결과, 더욱 용량을 적게할 수 있다.Moreover, only when a 2nd point exists in a 1st upper limit, table-taking is performed by classifying the angle of the straight line which passes through a 1st point and a 2nd point, and the straight line which passes through a 2nd point and a 3rd point. Therefore, the combination of three positions can be reduced. As a result, the capacity can be further reduced.

도1은 3점을 통과하는 곡선의 일예를 나타내는 도면이다.1 is a diagram showing an example of a curve passing through three points.

도2는 3점을 통과하는 곡선의 다른 일예를 나타내는 도면이다.2 is a diagram illustrating another example of a curve passing through three points.

도3은 3점을 통과하는 곡선의 또 다른 일예를 나타내는 도면이다.3 is a view showing another example of a curve passing through three points.

도4는 3점을 통과하는 곡선의 또 다른 일예를 나타내는 도면이다.4 is a view showing another example of a curve passing through three points.

도5는 3점을 통과하는 곡선의 또 다른 일예를 나타내는 도면이다.5 is a view showing another example of a curve passing through three points.

도6은 3점을 통과하는 곡선의 또 다른 일예를 나타내는 도면이다.6 is a view showing another example of a curve passing through three points.

도7은 제2점의 주위에 할당된 영역1~영역28을 나타내는 도면이다.Fig. 7 is a diagram showing areas 1 to 28 allocated around the second point.

도8은 본 발명의 실시예의 문자표시장치(100)의 구성을 나타내는 도면이다.8 is a diagram showing the configuration of the character display apparatus 100 of the embodiment of the present invention.

도9는 문자 데이터(42)의 일예를 나타내는 도면이다.9 is a diagram illustrating an example of the character data 42.

도10은 문자 데이터(42)의 표시 일예를 나타내는 도면이다.10 is a diagram illustrating an example of display of the character data 42.

도11은 직선 테이블(43)의 일예를 나타내는 도면이다.11 is a diagram illustrating an example of the straight table 43.

도12는 곡선 테이블(44)의 일예를 나타내는 도면이다.12 is a diagram illustrating an example of the curve table 44.

도13은 제어열이 가지는 값을 나타내는 도면이다.13 is a diagram showing a value of a control string.

도14는 문자표시처리 순서를 나타내는 플로우 챠트이다.14 is a flowchart showing the character display processing procedure.

도15는 단계 S104에서 실행되는 묘화 데이터화 처리 순서를 나타내는 플로우 챠트이다.FIG. 15 is a flowchart showing a drawing data drawing processing procedure executed in step S104.

도16은 단계 S203에서 실행되는 직선묘화처리 순서를 나타내는 플로우 챠트이다.16 is a flowchart showing the linear drawing processing procedure executed in step S203.

도17은 단계 S204에서 실행되는 곡선묘화처리 순서를 나타내는 플로우 챠트 이다.17 is a flowchart showing the curve drawing processing procedure executed in step S204.

도18은 단계 S409에서 실행되는 제1상한묘화처리 순서를 나타내는 플로우 챠트이다.18 is a flowchart showing a first upper limit drawing processing procedure executed in step S409.

도19는 단계 S410에서 실행되는 제2상한묘화처리 순서를 나타내는 플로우 챠트이다.19 is a flowchart showing the second upper limit drawing processing procedure executed in step S410.

도20은 단계 S411에서 실행되는 제3상한묘화처리 순서를 나타내는 플로우 챠트이다.20 is a flowchart showing the third upper limit drawing processing procedure executed in step S411.

도21은 단계 S412에서 실행되는 제4상한묘화처리 순서를 나타내는 플로우 챠트이다.21 is a flowchart showing the fourth upper limit drawing processing procedure executed in step S412.

도22는 좌표데이터, 스케일화 데이터 및 양자화 데이터를 나타내는 도면이다.22 is a diagram showing coordinate data, scaled data and quantized data.

도23은 도22에 나타난 양자화 데이터에 기초하여 묘화한 결과를 나타내는 도면이다.FIG. 23 is a diagram showing a result of drawing based on the quantized data shown in FIG.

도24는 테이블의 편집처리 순서를 나타내는 플로우 챠트이다.Fig. 24 is a flowchart showing the procedure of editing the table.

도25는 표시점을 변경한 후의 선의 패턴을 나타낸 도면이다.Fig. 25 is a view showing a pattern of lines after changing display points.

도26은 표시점을 변경한 후의 곡선묘화 테이블을 나타내는 도면이다.Fig. 26 is a diagram showing a curve drawing table after changing the display point.

도27은 tan-1의 값과 tan-1의 인수와의 대응을 나타내는 도면이다.27 is a diagram showing the relationship between the acquisition of the value of tan -1 and tan -1.

도28은 제2점의 주위에 할당된 영역의 일예를 나타내는 도면이다.Fig. 28 is a diagram showing an example of an area allocated around the second point.

〈부호의 설명〉<Explanation of sign>

10 : 입력 디바이스10: input device

20 : 제어부20: control unit

21 : CPU21: CPU

22 : 주메모리22: main memory

30 : 표시 디바이스30: display device

40 : 보조기억장치40: auxiliary memory device

41 : 문자표시 프로그램41: character display program

42 : 문자 데이터42: character data

43 : 직선 테이블43: straight table

44 : 곡선 테이블44: curve table

100 : 문자표시장치1100: character display device 1

(실시예)(Example)

1. 발명의 원리1. Principle of Invention

이하, 도면을 참조로, 본 발명의 원리를 설명한다.Hereinafter, the principle of the present invention will be described with reference to the drawings.

본 발명은 곡선을 묘화할 때에, 3점을 잇는 곡선에 주목하고, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 위치관계에 대응하는 하나의 선의 패턴을 선택하는 것에 의해, 제1점과 제2점을 통과하는 선을 표시할 수 있다. 제1점과 제2점을 통과하는 선의 궤적을 계산할 것 없이, 제1점과 제2점을 통과하는 선의 패턴을 선택하는 것에 의해, 제1점과 제2점을 통과하는 선을 고속으로 표시할 수 있다.In drawing the curve, the present invention pays attention to the curve connecting three points, and by selecting a pattern of one line corresponding to the determined positional relationship among the patterns of at least one line passing through the first point and the second point. , A line passing through the first point and the second point may be displayed. Displays lines passing through the first and second points at high speed by selecting a pattern of lines passing through the first and second points without calculating the trajectory of the lines passing through the first and second points. can do.

또한, 위치관계와 선의 패턴과의 대응관계를 나타내는 패턴정보를 유지하는 유지부를 더 구비하고, 선의 패턴의 선택은, 유지부에 유지되어 있는 패턴정보를 참조하여 행한다. 패턴정보를 테이블로 표현하고, 이 테이블에 기초하여 곡선을 묘화한다.Further, a holding unit for holding pattern information indicating a correspondence between the positional relationship and the line pattern is further provided, and the selection of the line pattern is performed with reference to the pattern information held in the holding unit. The pattern information is represented by a table, and a curve is drawn based on this table.

패턴정보를 테이블로 표현하고, 이러한 테이블에 기초하여 곡선을 묘화하는 이유를 이하에 나타낸다.The reason why pattern information is represented by a table and a curve is drawn based on this table is shown below.

제1점은, 원점(0, 0)으로 한다. 제2점은, 제1점에서의 x방향의 거리의 증감 및 y방향의 거리의 증감이 ±d 이내인 것으로 한다. 제3점은, 제2점에서의 x방향의 거리의 증감 및 y방향의 거리의 증감이 ±d 이내인 것으로 한다.The first point is the origin (0, 0). The second point is assumed that the increase and decrease in the distance in the x direction and the increase and decrease in the distance in the y direction are within ± d. The third point is assumed that the increase and decrease of the distance in the x direction and the increase and decrease of the distance in the y direction are within ± d.

이러한 경우에는, 제1점과 제2점과의 조합은 (2d+1)×(2d+1) 가지이다. 제2점과 제3점의 조합도 (2d+1)×(2d+1) 가지이다. 따라서, 3점의 조합은, (2d+1)4 가지이다. 이와 같이, 3점의 위치의 조합은, d에 따라 극적으로 증가한다. 예를 들어, d=5인 경우에는, 14,641 가지이지만, d=10인 경우에는, 194481 가지이고, d=20인 경우에는, 2825761 가지이다. 문자표시장치에 저장 가능한 데이터의 용량에는 한계가 있기 때문에, 3점의 위치의 조합이 많은 경우에는, 이러한 조합을 테이블로 표현하고, 이러한 테이블을 문자표시장치에 저장하는 것은, 곤란하다.In this case, the combination of the first point and the second point is (2d + 1) × (2d + 1) branches. The combination of a 2nd point and a 3rd point also has (2d + 1) * (2d + 1) branches. Therefore, the combination of three points is four (2d + 1). In this way, the combination of the positions of the three points increases dramatically with d. For example, when d = 5, it is 14,641 branches, but when d = 10, it is 194481 branches, and when d = 20, it is 2825761 branches. Since the capacity of data that can be stored in the character display apparatus is limited, it is difficult to express such a combination as a table and store such a table in the character display apparatus when there are many combinations of three points.

상술한 바와 같이, 본 발명은 2개의 다른 곡선(제1곡선, 제2곡선)을 표시하는 경우에도, 제1곡선의 제1점 및 제2점과 제2곡선의 제1점 및 제2점이 같고, 제1곡선의 제1점과 제2점을 통과하는 직선과 제1곡선의 제2점과 제3점을 통과하는 직 선과의 각도와, 제2곡선의 제1점과 제2점을 통과하는 직선과 제2곡선의 제2점과 제3점을 통과하는 직선과의 각도가 소정의 값보다 가까운 경우에는, 제1점과 제2점을 통과하는 선의 패턴은, 같은 패턴으로 하여도, 제1곡선과 제2곡선을 보는 자에게는 위화감이 없다는 것에 착안한다.As described above, in the present invention, even when displaying two different curves (first curve, second curve), the first point and the second point of the first curve and the first point and the second point of the second curve The same as the straight line passing through the first and second points of the first curve and the straight line passing through the second and third points of the first curve, and the first and second points of the second curve. If the angle between the straight line passing through and the straight line passing through the second point and the third point of the second curve is closer than the predetermined value, the pattern of the line passing through the first point and the second point may be the same pattern. For those who see the first and second curves, I notice that there is no discomfort.

도1은, 3점을 통과하는 곡선의 일예를 나타낸다.1 shows an example of a curve passing through three points.

이 곡선은 제1점(0, 0), 제2점(7, 4), 제3점(10, 10)을 통과한다. 도1에 있어서, 검정색으로 칠한 점은, 이러한 3점이고, 해치(hatch)가 많은 점은, 제1점과 제2점을 통과하는 선에 포함되는 점이고, 해치가 적은 점은, 제2점과 제3점을 통과하는 선에 포함되는 점이다. 또 제1점과 제2점을 통과하는 직선과, 제2점과 제3점을 통과하는 직선이 나타나 있다.This curve passes through the first point (0, 0), the second point (7, 4), and the third point (10, 10). In Fig. 1, the points painted in black are these three points, and the points with many hatches are included in the line passing through the first point and the second point, and the points with few hatches are the second point. It is included in the line passing through the third point. In addition, a straight line passing through the first point and the second point and a straight line passing through the second point and the third point are shown.

도2는, 3점을 통과하는 곡선의 다른 일예를 나타낸다.2 shows another example of a curve passing through three points.

이 곡선은, 제1점(0, 0), 제2점(7, 4), 제3점(13, 16)을 통과한다. 제1점(0, 3) 및 제2점(7, 4)는, 도1의 제1점 및 제2점과 같고, 제3점(13, 16)은, 도1의 제2점과 제3점을 통과하는 직선의 연장선상의 점이다.This curve passes through the first points (0, 0), the second points (7, 4), and the third points (13, 16). The first point (0, 3) and the second point (7, 4) are the same as the first point and the second point in FIG. 1, and the third point (13, 16) is the second point and the first point in FIG. It is a point on an extension line of a straight line passing through three points.

도1의 선의 패턴과 도2의 선의 패턴을 비교한 경우, 제2점과 제3점을 통과하는 선의 패턴은 다르지만, 제1점과 제2점을 통과하는 선의 패턴은 같다.When the pattern of the line of FIG. 1 and the pattern of the line of FIG. 2 are compared, the pattern of the line passing through the second point and the third point is different, but the pattern of the line passing through the first point and the second point is the same.

도3은 3점을 통과하는 곡선의 또 다른 일예를 나타낸다.3 shows another example of a curve passing through three points.

이 곡선은, 제1점(0, 0), 제2점(7, 4), 제3점(12, 17)을 통과한다. 제1점(0, 0) 및 제2점(7, 4)은, 도2의 제1점 및 제2점과 같고, 제3점(12, 17)은, 도2의 제3점의 왼쪽 위의 점이다. 도2의 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도와, 도3의 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도는, 비슷하다.This curve passes through the first points (0, 0), the second points (7, 4), and the third points (12, 17). The first point (0, 0) and the second point (7, 4) are the same as the first point and the second point of FIG. 2, and the third points (12, 17) are left of the third point of FIG. This is the above point. The angle between the straight line passing through the first and second points of FIG. 2 and the straight line passing through the second and third points, the straight line and the second point passing through the first and second points of FIG. The angle with the straight line passing through a 3rd point is similar.

도2의 선의 패턴과 도3의 선의 패턴을 비교한 경우, 제2점과 제3점을 통과하는 선의 패턴은 다르지만, 제1점과 제2점을 통과하는 선의 패턴은 같다.When the pattern of the line of FIG. 2 and the pattern of the line of FIG. 3 are compared, the pattern of the line passing through the second point and the third point is different, but the pattern of the line passing through the first point and the second point is the same.

도4는 3점을 통과하는 곡선의 또 다른 일예을 나타낸다.4 shows another example of a curve passing through three points.

이 곡선은, 제1점(0, 0), 제2점(7, 4), 제3점(14, 16)을 통과한다. 제1점(0, 0) 및 제2점(7, 4)은, 도2의 제1점 및 제2점과 같고, 제3점(14, 16)은, 도2의 제3점의 오른쪽 아래의 점이다.This curve passes through the first points (0, 0), the second points (7, 4), and the third points (14, 16). The first point (0, 0) and the second point (7, 4) are the same as the first point and the second point in FIG. 2, and the third point (14, 16) is the right of the third point in FIG. Below is the point.

도2의 선의 패턴과 도4의 선의 패턴을 비교한 경우, 제2점과 제3점을 통과하는 선의 패턴은 다르지만, 제1점과 제2점을 통과하는 선의 패턴은 같다.When the pattern of the line of FIG. 2 is compared with the pattern of the line of FIG. 4, the pattern of the line passing through the second point and the third point is different, but the pattern of the line passing through the first point and the second point is the same.

도1~도4를 참조로 하여 설명한 바와 같이, 다른 곡선을 묘화하는 경우에 제1점과 제2점을 통과하는 선의 패턴을 같게 하여도, 곡선을 보는 자에게는 위화감이 생기지 않는다.As described with reference to Figs. 1 to 4, in the case of drawing another curve, even if the pattern of the line passing through the first point and the second point is the same, there is no discomfort to the person viewing the curve.

도5는, 3점을 통과하는 곡선의 또 다른 일예를 나타낸다. 이 곡선은, 제1점(0, 0), 제2점(7, 4), 제3점(5, 12)을 통과한다.5 shows another example of a curve passing through three points. This curve passes through the first point (0, 0), the second point (7, 4), and the third point (5, 12).

도6은, 3점을 통과하는 곡선의 또 다른 일예를 나타낸다. 이 곡선은, 제1점(0, 0), 제2점(7, 4), 제3점(14, 6)을 통과한다.6 shows another example of a curve passing through three points. This curve passes through the first points (0, 0), the second points (7, 4), and the third points (14, 6).

도5 및 도6에서 나타난 제1점(0, 0), 제2점(7, 4)은, 도1~도4에서 나타난 제1점, 제2점과 같지만, 제1점과 제2점을 통과하는 직선과, 제2점과 제3점을 통과하는 직선의 각도가 도1~도4에서 나타난 각도와 크게 다르고, 제1점과 제2점을 통과 하는 선의 궤적은 도1~도4와 다르다.The first point (0, 0) and the second point (7, 4) shown in Figs. 5 and 6 are the same as the first point and the second point shown in Figs. 1 to 4, but the first point and the second point. The angle of the straight line passing through and the straight line passing through the second and third points is significantly different from the angle shown in FIGS. 1 to 4, and the trajectory of the line passing through the first and second points is shown in FIGS. Is different from

도7은, 제2점의 주위에 할당된 영역1~영역28을 나타낸다.7 shows the area 1 to the area 28 allocated around the second point.

영역1~영역28은, 제2점의 주위의 영역을 28등분할한 것에 의해 할당된다. 같은 영역에 제3점이 있는 경우에는, 제1점과 제2점을 통과하는 선의 패턴을 같게 하는 것으로, 3점의 조합을 적게 한다. 예를 들면, 제1곡선에는, 제3점이 영역1내의 위치 A에 있고, 제2곡선에는, 제3점이 영역1내에 있어, 위치 A와는 다른 위치 B에 있는 경우에는, 제1곡선의 제1점과 제2점을 통과하는 선의 패턴과 제2곡선의 제1점과 제2점을 통과하는 선의 패턴을 같게 한다.Area 1 to area 28 are allocated by dividing the area around the second point by 28 equally. When there are 3rd points in the same area, the combination of 3 points is reduced by making the pattern of the line which passes a 1st point and a 2nd point the same. For example, in the first curve, when the third point is at the position A in the region 1, and in the second curve, the third point is in the region 1 and the position B is different from the position A, the first curve is the first curve. The pattern of the line passing through the point and the second point is the same as the pattern of the line passing through the first and second points of the second curve.

제2점의 주위에 영역1~영역28이 할당되고, 제1점이 원점(0, 0), 제2점이 (X, Y)(X≤±d, Y≤±d: 제1점에서의 x방향의 거리 및 y방향의 거리의 증감이 ±d 이내)인 경우에는, 제3점의 위치는, 영역1~영역28의 어디엔가 있다. 따라서, 3점의 조합은 (2d+1)2×28 가지이다.Area 1 to area 28 are allocated around the second point, the first point is the origin (0, 0), and the second point is (X, Y) (X≤ ± d, Y≤ ± d: x at the first point When the increase and decrease of the distance in the direction and the distance in the y direction are within ± d), the position of the third point is somewhere in the region 1 to the region 28. Thus, a combination of three points (2d + 1) is 2 × 28 branches.

더욱이, 제2점이 제1상한에 있는 경우에만, 위치관계와 선의 패턴과의 대응관계를 나타내는 테이블을 생성하고, 제2점이 제1상한 이외의 상한에 있는 경우, 이 테이블을 이용하여 위치관계와 선의 패턴과의 대응관계를 구하는 것에 의해, 테이블의 수를 줄이는 것이 가능하다.Moreover, only when the second point is at the first upper limit, a table indicating a correspondence between the positional relationship and the line pattern is generated, and when the second point is at an upper limit other than the first upper limit, the table is used to It is possible to reduce the number of tables by finding a correspondence with the line pattern.

제2점이 제1상한에 있는 경우에만, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도와 제1점과 제2점을 통과하는 곡선의 패턴과의 대응관계를 테이블로 표현한다. 제2점이 제2상한에 있는 경우는 y축에 대한 대칭성 을 고려하고, 제2점이 제3상한에 있는 경우는 원점에 대한 대칭성을 고려하고, 제2점이 제4상한에 있는 경우는 x축에 대한 대칭성을 고려한다. 이 경우, 3점의 조합은, (d+1)2×28 가지이다. 예를 들어, d=5인 경우에는, 조합은 1008 가지, d=10인 경우에는, 조합은 3388 가지, d=20인 경우에는, 조합은 12348 가지이고, 이러한 조합을 표현한 테이블을 저장하기 위해 필요한 용량을 작게 할 수 있다.Only when the second point is at the first upper limit, the angle of the straight line passing through the first point and the second point and the straight line passing through the second point and the third point and the curve passing through the first point and the second point The correspondence with patterns is expressed in a table. If the second point is at the second upper limit, consider symmetry with respect to the y axis. If the second point is at the third upper limit, consider the symmetry with respect to the origin. If the second point is at the fourth upper limit, Consider symmetry for The combination of this case, the three points, (d + 1) is 2 × 28 branches. For example, in the case of d = 5, there are 1008 combinations, in the case of d = 10, there are 3388 combinations, and in the case of d = 20, there are 12348 combinations. The required dose can be made small.

더욱이, 제2점의 주위에 할당된 영역은, 28분할에 한정되지 않는다. 분할수는 임의이다. 분할수를 늘리면 테이블의 용량은 증가하지만, 곡선의 품위를 올리는 것이 가능하다. 또 균등한 분할에 한정되지 않는다. 각도가 좁은 곳에서는, 촘촘하게 분할하고, 각도가 넓은 곳에서는 넓직하게 분할해도 된다.Moreover, the area allocated around the second point is not limited to 28 divisions. The number of divisions is arbitrary. Increasing the number of partitions increases the capacity of the table, but it is possible to increase the quality of the curve. Moreover, it is not limited to equal division. In a narrow angle, it may be divided finely, and in a wide angle, it may be broadly divided.

도28은, 제2점의 주위에 할당된 영역의 일예를 나타낸다.Fig. 28 shows an example of the area allocated around the second point.

도28(a)는, 크기가 다른 복수의 영역(분할형태1)을 나타낸다.Fig. 28A shows a plurality of regions (divided form 1) having different sizes.

제2점의 주위에는, 복수의 영역1~영역8이 할당되어 있다. 제3점은, 영역2에 주어져 있다. 예를 들어, 영역1과 영역4는 다른 크기이다.A plurality of areas 1 to 8 are allocated around the second point. The third point is given to the area 2. For example, region 1 and region 4 are of different sizes.

도28(b)는, 제2점의 주위의 일부에만 할당된 영역(분할형태2)을 나타낸다.Fig. 28 (b) shows an area (divided form 2) allocated only to a part around the second point.

제2점의 주위에는, 복수의 영역1~영역5가 할당되어 있다. 그러나, 그 이외의 부분(사선부분)에는, 영역이 할당되어 있지 않다.A plurality of areas 1 to 5 are allocated around the second point. However, no area is allocated to the other portion (the diagonal portion).

표시대상에 따라, 제2점의 주위의 분할형태를 선택할 수 있다. 예를 들어, 한자를 표시하는 경우에는, 분할형태1을 선택한다. 가타카나를 표시하는 경우에는, 분할형태2를 선택한다. 더욱이, 「표시대상」이란, 표시 디바이스에 표시되는 대상 을 의미한다. 예를 들어, 문자(한자, 히라가나, 가타카나, 알파벳 등), 도형, 기호이다.According to the display object, the division form around the 2nd point can be selected. For example, when displaying Chinese characters, division type 1 is selected. When displaying katakana, the division type 2 is selected. Moreover, "display object" means an object displayed on a display device. For example, characters (kanji, hiragana, katakana, alphabet, etc.), figures, and symbols.

이하, 도면을 참조하여 본 발명의 실시의 형태를 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described with reference to drawings.

2. 문자표시장치2. Character display device

도8은, 본 발명의 실시예의 문자표시장치(100)의 구성을 나타낸다.8 shows the configuration of the character display apparatus 100 of the embodiment of the present invention.

문자표시장치(100)는, 예를 들어 퍼스널 컴퓨터일 수 있다. 퍼스널 컴퓨터로서는, 데스크탑형, 랩탑형 등 임의의 타입의 컴퓨터가 사용될 수 있다. 혹은, 문자표시장치는, 워드프로세서이어도 된다.The character display apparatus 100 may be a personal computer, for example. As the personal computer, any type of computer such as a desktop type or a laptop type can be used. Alternatively, the character display device may be a word processor.

더욱이, 문자표시장치는, 표시 디바이스를 구비한 전자기기, 정보기기 등 임의의 정보표시단말일 수 있다. 예를 들어, 문자표시장치는, 액정표시 디바이스를 구비한 전자기기, 형태정보 툴인 휴대정보단말, PHS를 포함하는 휴대전화 또는 일반의 전화기/FAX 등의 통신기기이어도 된다.In addition, the character display apparatus may be any information display terminal such as an electronic device or an information device having a display device. For example, the character display apparatus may be an electronic apparatus provided with a liquid crystal display device, a portable information terminal serving as a form information tool, a mobile telephone including a PHS, or a communication apparatus such as a general telephone / FAX.

문자표시장치(100)는, 입력 디바이스(10)와, 선을 표시하는 표시 디바이스(30)와, 표시 디바이스(30)를 제어하는 제어부(20)와, 보조기억장치(40)를 포함한다.The character display device 100 includes an input device 10, a display device 30 for displaying lines, a controller 20 for controlling the display device 30, and an auxiliary memory device 40.

입력 디바이스(10)는, 표시 디바이스(30)에 표시해야 하는 문자를 표현하는 정보를 제어부(20)에 입력하기 위해 사용된다. 문자를 표현하는 정보는, 예를 들어, 문자를 인식하는 코드와 문자의 크기를 나타내는 사이즈 정보를 포함한다.The input device 10 is used to input the information which represents the character which should be displayed on the display device 30 to the control part 20. FIG. The information representing the character includes, for example, a code for recognizing the character and size information indicating the size of the character.

입력 디바이스(10)로는, 코드와 사이즈를 입력하는 것이 가능한 임의의 타입의 입력 디바이스가 사용될 수 있다. 키보드, 마우스 또는 펜 입력장치 등의 입력 디바이스가 사용될 수 있다. 문자표시장치(100)가 휴대전화인 경우에는, 통신 상대의 전화번호를 지정하기 위한 숫자키가 코드나 사이즈를 입력하기 위해 사용되어도 된다. 문자표시장치(100)가 인터넷을 포함하는 통신회선에 접속하기 위한 수단을 구비하고 있는 경우에는, 그 통신회선으로부터 수신한 전자메일에 포함되는 메시지가 표시 디바이스(30)에 표시되어도 된다. 이 경우에는, 그 통신회선에 접속하기 위한 수단이, 입력 디바이스(10)로서 기능한다.As the input device 10, any type of input device capable of inputting a code and a size can be used. An input device such as a keyboard, mouse or pen input device can be used. In the case where the character display apparatus 100 is a cellular phone, a numeric key for designating a telephone number of a communication partner may be used to input a code or a size. When the character display apparatus 100 is provided with the means for connecting to the communication line containing the internet, the message contained in the e-mail received from the communication line may be displayed on the display device 30. In this case, the means for connecting to the communication line functions as the input device 10.

보조기억장치(40)에는, 문자표시 프로그램(41)과, 프로그램을 실행하기 위해 필요한 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)이 저장되어 있다.In the auxiliary memory device 40, a character display program 41, character data 42, a straight line table 43, and a curve table 44 necessary for executing the program are stored.

문자표시 프로그램(41)은, 표시 디바이스에 출력하는 사이즈에 맞게 문자 데이터(42)를 스케일링하는 스케일링 프로그램(41a)과, 스케일링된 결과를 양자화하는 양자화 프로그램(41b)과, 양자화된 결과가 표시 디바이스에 표시가능하게 되도록 양자화된 결과를 묘화 데이터화하는 묘화 데이터화 프로그램(41c)을 포함한다.The character display program 41 includes a scaling program 41a for scaling the character data 42 in accordance with a size output to the display device, a quantization program 41b for quantizing the scaled result, and a quantized result in the display device. And a drawing data drawing program 41c for drawing data of the quantized results so that they can be displayed on the screen.

보조기억장치(40)로는, 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)을 저장하는 것이 가능한 임의의 타입의 보조기억장치가 사용될 수 있다. 보조기억장치(40)에서, 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)을 저장하는 기억매체로서는, 임의의 기록매체가 사용될 수 있다. 예를 들어, CD-ROM, CD-R, MO, DVD, IC카드가 바람직하게 사용될 수 있다.As the auxiliary memory device 40, any type of auxiliary memory device capable of storing the character display program 41, the character data 42, the straight line table 43, and the curve table 44 can be used. In the auxiliary memory device 40, any recording medium can be used as the storage medium for storing the character display program 41, the character data 42, the straight line table 43, and the curve table 44. As shown in FIG. For example, a CD-ROM, CD-R, MO, DVD, IC card can be preferably used.

더욱이, 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)은, 보조기억장치(40)에 구비된 기록매체에 저장되는 것에 한정하지 않 는다. 예를 들어, 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)은, 주메모리(22)에 저장되어도 되고, ROM(도시되지 않음)에 저장되어도 된다. ROM은, 예를 들어 마스크ROM, EPROM, EEPROM, 프락시ROM일 수 있다. 이러한 데이터를 ROM에 저장하는 경우에는, 그 ROM을 교환하는 것만으로 여러가지 처리의 변화(variation)를 용이하게 실현할 수 있다. 예를 들어, ROM은, 문자표시장치가 휴대형의 정보단말 또는 휴대전화인 경우에도 바람직하게 적용될 수 있다.Furthermore, the character display program 41, character data 42, straight line table 43, and curve table 44 are not limited to those stored in the recording medium provided in the auxiliary memory device 40. For example, the character display program 41, the character data 42, the straight line table 43, and the curve table 44 may be stored in the main memory 22 or in a ROM (not shown). . The ROM may be, for example, a mask ROM, EPROM, EEPROM, proxy ROM. When such data is stored in the ROM, variations in various processes can be easily realized by simply replacing the ROM. For example, the ROM can be preferably applied to the case where the character display device is a portable information terminal or a cellular phone.

더욱이, 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)은, 상기 디스크나 카드 등의 기억장치나 반도체메모리 등과 같은 프로그램이나 데이터를 고정적으로 유지하는 기억매체에 유지될 수 있다. 문자표시장치가 인터넷을 포함하는 통신회선에 접속하기 위한 수단을 구비하고 있는 경우에는, 그 통신회선부터 문자표시 프로그램(41), 문자 데이터(42), 직선 테이블(43) 및 곡선 테이블(44)의 적어도 일부를 다운로드할 수 있다. 이 경우, 다운로드에 필요한 로더 프로그램은, ROM(도시되지 않음)에 미리 저장되어 있어도 되고, 보조기억장치(40)에서 제어부(20)로 인스톨되어도 된다.Further, the character display program 41, character data 42, straight line table 43, and curve table 44 are memories that hold fixed programs or data such as storage devices such as disks and cards or semiconductor memories. Can be retained in the medium. When the character display apparatus is provided with means for connecting to a communication line including the Internet, the character display program 41, the character data 42, the straight line table 43, and the curve table 44 from the communication line. You can download at least part of. In this case, the loader program required for download may be stored in advance in a ROM (not shown), or may be installed in the control unit 20 by the auxiliary storage device 40.

제어부(20)는, CPU(21)와 주메모리(22)를 포함한다.The control unit 20 includes a CPU 21 and a main memory 22.

CPU(21)는, 문자표시장치의 전체를 제어 및 감시하고, 보조기억장치(40)에 저장되어 있는 문자표시 프로그램(41)을 실행한다.The CPU 21 controls and monitors the entire character display device and executes the character display program 41 stored in the auxiliary memory device 40.

주메모리(22)는, 입력 디바이스(10)로부터 입력된 데이터 및 출력 디바이스(30)에 표시하기 위한 데이터나 문자표시 프로그램(41)을 실행하는 것에 필요한 데이터를 일시적으로 저장한다. 주메모리(22)는, CPU(21)에 의해 제어된다.The main memory 22 temporarily stores data input from the input device 10 and data for display on the output device 30 or data necessary for executing the character display program 41. The main memory 22 is controlled by the CPU 21.

CPU(21)는, 주메모리(22)에 저장된 각종 데이터에 기초하여 문자표시 프로그램(41)을 실행하는 것에 의해, 묘화 데이터를 생성한다. 생성된 묘화 데이터는, 주메모리(22)에 일단 저장된 후, 표시 디바이스(30)에 출력된다. 묘화 데이터가 표시 디바이스(30)에 출력되는 타이밍은, CPU(21)에 의해 제어된다.The CPU 21 generates the drawing data by executing the character display program 41 based on various data stored in the main memory 22. The generated drawing data is stored in the main memory 22 once and then output to the display device 30. The timing at which the drawing data is output to the display device 30 is controlled by the CPU 21.

도9는, 문자 데이터(42)의 일예를 나타낸다. 구체적으로는, 도9에 나타난 문자 데이터는, 문자 「大」의 벡터 데이터이고, 256 메쉬(mesh)의 해상도를 가진다. 도9에 나타난 문자 데이터는, 복수의 좌표 데이터를 포함한다.9 shows an example of the character data 42. Specifically, the character data shown in Fig. 9 is vector data of the character "大" and has a resolution of 256 mesh. The character data shown in Fig. 9 includes a plurality of coordinate data.

라인No는, 문자 「大」를 구성하는 라인에 부여된 번호이다. X는, 문자 「大」를 구성하는 라인상의 점의 X좌표치를 나타낸다. Y는, 문자 「大」를 구성하는 라인상의 점의 Y좌표치를 나타낸다.Line No is a number given to the line which comprises the character "大". X represents the X coordinate value of the point on the line which comprises the character "大". Y represents the Y coordinate value of the point on the line which comprises the character "大".

문자 「大」는, 3개의 라인으로 구성되어 있다. 3개의 라인의 각각은, 위치를 표현하는 좌표 데이터를 복수 가진다. 라인No 1은, (8, 184)와, (247, 184)의 2점을 잇고, 라인No 2는, (127, 246), (127, 181), (103, 106), (61, 49) 및 (11, 14)의 5점을 잇고, 라인No 3은, (127, 181), (144, 127), (176, 73), (208, 40) 및 (246, 14)를 잇는다.The character "大" is comprised of three lines. Each of the three lines has a plurality of coordinate data representing a position. Line No 1 connects (8, 184) with two points (247, 184), and Line No 2 is (127, 246), (127, 181), (103, 106), (61, 49). ) And (11, 14), and the line No 3 connects (127, 181), (144, 127), (176, 73), (208, 40), and (246, 14).

도10은, 문자 데이터(42)의 표시의 일예이다. 구체적으로는, 도9에 나타난 문자 데이터의 표시이다.10 is an example of the display of the character data 42. Specifically, it is a display of character data shown in FIG.

도11은, 직선 테이블(43)의 일예를 나타낸다. 직선 테이블(43)은, 보조기억장치(40)에 저장되어 있다(도8 참조).11 shows an example of the straight table 43. The straight table 43 is stored in the auxiliary memory device 40 (see Fig. 8).

「인덱스」는, 테이블의 레코드 번호를 나타내고, 「(dx, dy)」는 제1점으로 부터의 x방향의 증가분 및 y방향의 증가분을 나타낸다."Index" shows the record number of a table, and "(dx, dy)" shows the increase of the x direction from the 1st point, and the increase of the y direction.

본실시예에서는, 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 and the increase in the y direction are arbitrary.

「제어열」은, 「0」과 「1」로 표현된다. dx≥dy의 경우에는, x방향으로 1 증가한 경우의 y의 증가분을 「0」 및 「1」로 나타낸다. 「0」은, x방향으로 1 증가한 경우에는 y방향의 증가는 0인 것을 나타내고, 「1」은, x방향으로 1 증가한 경우에는 y방향의 증가는 1인 것을 나타낸다."Control string" is represented by "0" and "1". In the case of dx≥dy, the increment of y in the case of increasing by one in the x direction is represented by &quot; 0 &quot; "0" indicates that the increase in the y direction is 0 when 1 increases in the x direction, and "1" indicates that the increase in the y direction is 1 when the number increases by 1 in the x direction.

예를 들어, (dx, dy)=(2, 1)의 경우에는, 제어열은 {0, 1}이다. 이 제어열 {0, 1}은, 제1점으로부터 x방향으로 1 증가한 경우에는, y방향의 증가는 0이고, 다음으로 x방향으로 1 증가한 경우에는, y방향의 증가가 1인 것을 나타낸다. 이 제어열에 따라 표현되는 선의 패턴은, 제1점과 제2점을 통과하는 선의 패턴을 나타낸다.For example, in the case of (dx, dy) = (2, 1), the control string is {0, 1}. This control sequence {0, 1} indicates that the increase in the y direction is 0 when the value increases by 1 in the x direction from the first point, and the increase in the y direction is 1 when the value increases by 1 in the x direction. The pattern of lines represented by this control sequence represents the pattern of lines passing through the first point and the second point.

도12는, 곡선 테이블(44)의 일예를 나타낸다. 곡선 테이블(44)은, 보조기억장치(40)에 저장되어 있다(도8 참조).12 shows an example of the curve table 44. The curve table 44 is stored in the auxiliary memory device 40 (see Fig. 8).

도13은, 제어열이 가지는 값을 나타낸다.13 shows the value of the control string.

「인덱스」는, 테이블의 레코드 번호를 나타내고, 「(dx, dy)」는 제1점으로부터의 x방향의 증가분 및 y방향의 증가분을 나타낸다."Index" shows the record number of a table, and "(dx, dy)" shows the increase of the x direction from the 1st point, and the increase of the y direction.

본실시예에서는, x방향의 증가 및 y방향의 증가는 15 이내이지만, x방향의 증가 및 y방향의 증가는 20 이내에 한하지 않는다. x방향의 증가 및 y방향의 증가 는, 임의이다. 곡선 테이블의 x방향의 증가 및 y방향의 증가의 범위가 직선 테이블의 x방향의 증가 및 y방향의 증가의 범위보다 작은 것은, 일반적으로, 문자가 가지는 곡선의 2점간의 거리는, 문자가 가지는 직선의 2점간의 거리보다 작기 때문이다.In this embodiment, the increase in the x direction and the increase in the y direction are within 15, 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 and the increase in the y direction are arbitrary. The range of the increase in the x-direction and the increase in the y-direction of the curve table is smaller than the range of the increase in the x-direction and the y-direction of the straight table. In general, the distance between two points of the curve of the letter is a straight line of the letter. This is because the distance between two points is smaller than.

「각도」는, 제3점이 영역1~28의 어디에 있는지를 나타낸다(도7 참조)."Angle" shows where the 3rd point is in areas 1-28 (refer FIG. 7).

「제어열」은, 「0」~「7」로 표현된다(도13 참조). 「0」은 제2점에 대해 오른쪽(우)으로의 이동을 나타내고 「1」은 오른쪽 위(우상)로의 이동을 나타내고, 「2」는 위(상)로의 이동을 나타내고, 「3」은 왼쪽 위(좌상)로의 이동을 나타내고, 「4」는 왼쪽(좌)으로의 이동을 나타내고, 「5」는 왼쪽 아래(좌하)로의 이동을 나타내고, 「6」은 아래(하)로의 이동을 나타내고, 「7」은 오른쪽 아래(우하)로의 이동을 나타낸다. 예를 들어, (dx, dy)=(7, 4)이고, 제3점이 영역2에 있는 경우에는, 제어열은 {0, 0, 1, 0, 1, 1, 1}이다(도12 참조). 이 제어열은, 제1점으로부터의 이동이 우, 우, 우상, 우, 우상, 우상, 우상인 것을 나타낸다. 이 이동에 따라 표현되는 선의 패턴은, 3점이 제1점(0, 0), 제2점(7, 4), 제3점(10, 10)인 경우의 제1점과 제2점을 통과하는 선의 패턴을 나타낸다(도1 참조)."Control string" is represented by "0"-"7" (refer FIG. 13). "0" represents movement to the right (right) with respect to the second point, "1" represents movement to the upper right (right), "2" represents movement to the upper (up), and "3" represents the left "4" represents the movement to the left (left), "5" represents the movement to the bottom left (bottom), "6" represents the movement to the bottom (bottom), "7" shows the movement to the lower right (lower right). For example, when (dx, dy) = (7, 4) and the third point is in the area 2, the control string is {0, 0, 1, 0, 1, 1, 1} (see Fig. 12). ). This control sequence indicates that the movement from the first point is the right, the right, the right, the right, the right, the right and the right. The pattern of lines represented by this movement passes through the first point and the second point when three points are the first point (0, 0), the second point (7, 4), and the third point (10, 10). The pattern of the line shown is shown (refer FIG. 1).

도12를 참조로 하여 설명한 바와 같이, 곡선 테이블(44)에 포함되는 정보는, 제2점과 제3점과의 위치관계와 선의 패턴과의 대응관계를 나타낸다. 이 곡선 테이블(44)은, 미리 보조기억장치(40)에 준비되어 있다.As described with reference to Fig. 12, the information included in the curve table 44 indicates the correspondence between the positional relationship between the second point and the third point and the line pattern. The curve table 44 is prepared in the auxiliary memory device 40 in advance.

더욱이, 곡선 테이블(44)에 포함되는 「제어열」에 따라 표현되는 선의 패턴은, 곡선에 한하지 않는다. 「제어열」에 따라 표현되는 선의 패턴은, 직선일 수 있다. 이와 같은 제어열은, 예를 들어, {1, 1, 1, 1}이다.Moreover, the pattern of the line | wire represented by the "control column" contained in the curve table 44 is not limited to a curve. The pattern of lines represented according to the "control column" may be a straight line. Such a control string is {1, 1, 1, 1}, for example.

이상, 도1~도13 및 도28을 참조하여, 본발명의 실시예의 문자표시장치(100)를 설명하였다.1 to 13 and 28, the character display device 100 of the embodiment of the present invention has been described.

예를 들어, 도1~도13 및 도28의 예에서는, 표시 디바이스(30)가 「선을 표시하는 표시 디바이스」에 대응하고, 제어부(20)가 「표시 디바이스를 제어하는 제어부」, 「주어진 제1점, 제2점 및 제3점에 대하여, 제1점 및 제2점 중 적어도 하나와 제3점의 제1위치관계를 결정하는 제어부」, 「미리 준비된 적어도 하나의 선의 패턴에 있어서, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 제어부」 및 「선택된 선의 패턴에 대해, 제1점과 제2점을 통과하는 선을 표시 디바이스에 표시하는 제어부」에 대응한다. 또, 직선 테이블(42) 및 곡선 테이블(44)을 기억하는 보조기억장치(40)가 「제1위치관계와 선의 패턴과의 대응관계를 나타내는 패턴정보를 유지하는 유지부」에 대응한다.For example, in the example of FIGS. 1-13 and FIG. 28, the display device 30 respond | corresponds to the "display device which displays a line", and the control part 20 is a "controller which controls a display device", A control unit for determining a first positional relationship between at least one of the first point and the second point and the third point with respect to the first point, the second point, and the third point, in the pattern of at least one line prepared in advance, A control unit for selecting a pattern of one line corresponding to the determined first positional relationship among the patterns of at least one line passing through the first point and the second point, and the first point and the second point for the selected line pattern. Control unit for displaying the line passing through the display device. The auxiliary storage device 40 which stores the straight table 42 and the curve table 44 corresponds to the "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 28 are merely examples of functions of the character display apparatus of the present invention. As long as the functions of the above-described means are achieved, a character display device having any configuration can be included within the scope of the present invention.

예를 들어, 직선 테이블(42) 및 곡선 테이블(44)이 표시장치의 외부에서 표시장치에 입력되어도 된다. 예를 들어, 네트워크를 통해 표시장치와 연결된 유지부에 직선 테이블(42) 및 곡선 테이블(44)이 유지되어 있는 경우에는, 직선 테이블(42) 및 곡선 테이블(44)이 표시장치의 외부에서 표시장치로 입력된다.For example, the straight table 42 and the curve table 44 may be input to the display device from the outside of the display device. For example, when the straight table 42 and the curve table 44 are held in the holding portion connected to the display device via a network, the straight table 42 and the curve table 44 are displayed outside of the display device. Is entered into the device.

예를 들어, 상술한 각 수단은, 하드웨어에 의해 실현되어도 되고, 소프트웨어에 의해 실현되어도 되고, 하드웨어와 소프트웨어에 의해 실현되어도 된다.For example, the above-mentioned means may be implemented by hardware, may be implemented by software, and may be implemented by hardware and software.

예를 들어, 문자표시장치에는, 문자표시처리 순서를 실행시키기 위한 프로그램(이하, 문자표시처리 프로그램이라고 한다)이 저장되어 있다. 문자표시처리 프로그램은, 컴퓨터의 출하시에, 문자표시장치에 포함되는 프로그램 저장수단에 미리 저장되어 있어도 된다.For example, the character display apparatus stores a program (hereinafter referred to as a character display processing program) for executing the character display processing procedure. The character display processing program may be stored in advance in the program storage means included in the character display apparatus at the time of shipment of the computer.

혹은, 컴퓨터의 출하 후에, 문자표시처리 프로그램을 프로그램 저장수단에 저장하도록 해도 된다. 예를 들어, 유저가 인터넷상의 특정 웹사이트로부터 문자표시처리 프로그램을 유료 또는 무료로 다운로드하고, 그 다운로드된 프로그램을 컴퓨터에 인스톨하도록 해도 된다. 문자표시처리 프로그램이 플렉서블(flexible) 디스크, CD-ROM, DVD-ROM 등의 컴퓨터 독취가능한 기록매체에 기록되어 있는 경우에는, 입력장치(예를 들어, 디스크 드라이브 장치)를 이용하여 문자표시처리 프로그램을 컴퓨터에 인스톨하도록 해도 된다. 인스톨된 프로그램은, 프로그램 저장수단에 저장된다.Alternatively, the character display processing program may be stored in the program storage means after shipment of the computer. For example, the user may download the character display processing program for a fee or free from a specific website on the Internet, and install the downloaded program on a computer. When the character display processing program is recorded on a computer-readable recording medium such as a flexible disk, CD-ROM, DVD-ROM, or the like, the character display processing program using an input device (for example, a disk drive device) is used. May be installed on a computer. The installed program is stored in the program storage means.

더욱이, 문자표시처리 순서의 상세는, 후술된다.Further, the details of the character display processing procedure will be described later.

도1~도13 및 도28을 참조하여 설명한 바와 같이, 본 발명의 표시장치에 따르면, 제1점과 제2점을 통과하는 선의 궤적을 계산에 의해 구하는 것이 아니라, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 위치관계에 대응하는 하나의 선의 패턴을 선택하는 것에 의해, 제1점과 제2점을 통과하는 선을 표시할 수 있다. 따라서, 복잡한 계산이 필요한 제1점과 제2점을 통과하는 선의 궤적 의 계산을 행할 필요가 없고, 제1점과 제2점을 통과하는 선을 고속으로 표시할 수 있다.As described with reference to Figs. 1 to 13 and 28, according to the display device of the present invention, the trajectory of the line passing through the first point and the second point is not calculated by calculation, but the first point and the second point. A line passing through the first point and the second point can be displayed by selecting a pattern of one line corresponding to the determined positional relationship among the patterns of the at least one line passing therethrough. Therefore, it is not necessary to calculate the trajectory of the line passing through the first point and the second point requiring complicated calculation, and the line passing through the first point and the second point can be displayed at high speed.

본 발명에서는, 제1점과 제2점을 통과하는 선의 패턴과 3점의 위치관계와의 대응을 나타내는 테이블을 이용하여, 3점을 잇는 곡선을 묘화한다. 따라서, 테이블의 독출만으로 곡선의 묘화가 가능해지고, 복잡한 연산이 발생하지 않는다. 그 결과, 제1점과 제2점을 통과하는 선을 고속으로 묘화할 수 있다.In this invention, the curve which connects three points is drawn using the table which shows the correspondence of the pattern of the line which passes through a 1st point and a 2nd point, and the positional relationship of 3 points. Therefore, the curve can be drawn only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

더욱이, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도를 분류하고, 테이블화한다. 그 결과, 용량을 적게할 수 있다.Furthermore, 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 is classified and tabulated. As a result, the capacity can be reduced.

또, 제2점이 제1상한에 있는 경우에만, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선의 각도의 분류와 테이블화를 행한다. 따라서, 3점의 위치의 조합을 줄이는 것이 가능하다. 그 결과, 더욱 용량을 적게할 수 있다.Moreover, only when the 2nd point exists in a 1st upper limit, sorting and tabulating the angle of the straight line which passes through a 1st point and a 2nd point, and the straight line which passes through a 2nd point and a 3rd point are performed. Therefore, it is possible to reduce the combination of the positions of the three points. As a result, the capacity can be further reduced.

3. 표시방법3. How to display

도14는, 문자표시처리 순서를 나타낸다. CPU(121)가 문자표시 프로그램(141)을 실행하는 것에 의해, 문자표시처리가 행해진다.14 shows a character display processing procedure. The character display processing is performed by the CPU 121 executing the character display program 141.

이하, 도8 및 도14를 참조하여 문자표시처리 순서를 단계마다 설명한다.Hereinafter, the character display processing procedure will be described step by step with reference to Figs.

단계 S101: 입력 디바이스(10)로부터 입력된 지시에 따라, 문자 데이터(42)로부터 지정된 문자를 표현하는 문자 데이터가 지어진다. 예를 들어, 지어진 문자 데이터는, 복수의 좌표 데이터를 포함한다(도9 참조).Step S101: In accordance with an instruction input from the input device 10, character data representing a character designated from the character data 42 is built. For example, the written character data contains a plurality of coordinate data (see Fig. 9).

단계 S102: 지어진 문자 데이터에 포함된 좌표 데이터가 출력 사이즈에 적합하도록 스케일링된다. 출력 사이즈가 n 도트인 경우에는, 좌표 데이터 (x, y)는 소 정의 계산에 따라 스케일링되고, 스케일화 데이터 (X, Y)로 변경된다. 소정의 계산은, X=(n-1)×x/255, Y=(n-1)×y/255이다.Step S102: The coordinate data contained in the built character data is scaled to fit the output size. In the case where the output size is n dots, the coordinate data (x, y) is scaled in accordance with a predetermined calculation and changed to scaled data (X, Y). The predetermined calculation is 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 by a predetermined calculation and changed to scaled data (see Fig. 22).

단계 S103: 스케일화 데이터는 양자화되고, 양자화 데이터로 변경된다. 예를 들어, 양자화하는 방법으로서, 사사오입(四捨五入)이 있다. 예를 들어, 좌표 데이터 (x, y)(도9 참조)가 소정의 계산에 의해 스케일링되고, 더욱이 양자화되는 것에 의해, 양자화 데이터로 변경된다(도22 참조).Step S103: The scaled data is quantized and changed into quantized data. For example, there is a rounding off method as a quantization method. For example, the coordinate data (x, y) (see Fig. 9) is scaled by a predetermined calculation, and further quantized, thereby changing to quantized data (see Fig. 22).

또한, 양자화하는 방법은, 사사오입에 한정되지 않는다. 본원과 동 출원인에 의한 출원(일본 특허출원 제2003-137918호 명세서)에는, 양자화하는 다른 방법이 개시되어 있다. 개시된 방법에는, 양자화 오차를 억제하는 방법이 포함된다.In addition, the method of quantization is not limited to rounding off. Another method of quantization is disclosed in this application and the application by the applicant (Japanese Patent Application No. 2003-137918). The disclosed method includes a method of suppressing quantization error.

단계 S104: 직선 테이블(43) 및 곡선 테이블(44)을 참조하여, 양자화 데이터로부터 묘화 데이터를 구한다.Step S104: With reference to the straight line table 43 and the curve table 44, drawing data is obtained from the quantization data.

단계 S105: 묘화 데이터에 기초하여, 이미지를 표시 데이터(30)에 표시한다.Step S105: Based on the drawing data, an image is displayed in the display data 30. FIG.

이미지를 표시 디바이스(30)에 표시한 후, 처리를 종료한다.After the image is displayed on the display device 30, the process ends.

도15는, 단계 S104에서 실행되는 묘화 데이터화 처리 순서를 나타낸다.Fig. 15 shows a drawing data processing procedure performed in step S104.

이하, 도15를 참조하여 묘화 데이터화 처리 순서를 단계마다 설명한다.The drawing data processing procedure will be described step by step with reference to FIG.

단계 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: Quantization data is taken out. For example, in the case of the character "大", the quantized data corresponding to the called line No is taken out (refer FIG. 22). First, line No. 1 is called, and corresponding quantization data ((1, 25), (34, 25)) is taken out. Next, line No 2 is called, and corresponding quantization data ((17, 34), (17, 25), (14, 15), (8, 7), (2, 2) is taken out. Finally, line No. 3 is called, and corresponding quantization data (17, 25), (20, 17), (24, 10), (29, 5), (34, 2) is retrieved.

단계 S202: 호출된 라인No에 대응하는 양자화 데이터에 3점 이상의 좌표점이 포함되었는지 아닌지가 판정된다.Step S202: It is determined whether three or more coordinate points are included in the quantized data corresponding to the called line No.

3점 이상의 좌표점이 포함되었다고 판정된 경우(예)에는, 처리는, 단계 S204로 진행한다. 3점 이상의 좌표점이 포함되지 않았다고 판정된 경우(아니오)에는, 처리는, 단계 S203으로 진행한다.If it is determined that three or more coordinate points are included (Yes), the processing proceeds to step S204. If it is determined that three or more coordinate points are not included (NO), the process proceeds to step S203.

단계 S203: 호출된 라인No에 따라 나타내지는 라인이 직선으로 묘화되도록 묘화 데이터가 구해진다. 직선 테이블(43)을 참조하여, 양자화 데이터로부터 묘화 데이터가 구해진다.Step S203: Drawing data is obtained so that the line represented by the called line No is drawn in a straight line. With reference to the straight line table 43, drawing data is obtained from the quantized data.

단계 S204: 호출된 라인No에 따라 나타내지는 라인이 곡선으로 묘화되도록 묘화 데이터가 구해진다. 곡선 테이블(44)을 참조하여, 양자화 데이터로부터 묘화 데이터가 구해진다.Step S204: Drawing data is obtained so that the line represented in accordance with the called line No is drawn in a curve. With reference to the curve table 44, drawing data is calculated | required from quantization data.

단계 S205: 호출해야할 라인이 있는지 아닌지 판정한다.Step S205: Determine whether there is a line to call.

호출해야할 라인이 있다고 판정된 경우(예)에는, 처리는, 단계 S201로 진행한다. 호출해야할 라인이 없다고 판정된 경우(아니오)에는, 처리는 종료한다.If it is determined that there is a line to be called (YES), the processing proceeds to step S201. If it is determined (No) that there are no lines to call, the process ends.

도16은, 단계 S203에서 실행되는 직선묘화처리 순서를 나타낸다.16 shows the linear drawing processing procedure executed in step S203.

이하, 도16을 참조하여 직선묘화처리 순서를 단계마다 설명한다.Hereinafter, the linear drawing processing procedure will be explained step by step with reference to FIG.

단계 S301: 주어진 2점의 좌표점 (x1, y1), (x2, y2)의 다음의 값을 구한다. dx←abs(x2-x1)에 따라, x1과 x2와의 거리 dx를 구하고, dy←abs(y2-y1)에 따라, y1과 y2와의 거리 dy를 구한다.Step S301: Find the next values of the given coordinate points (x 1 , y 1 ), (x 2 , y 2 ) of the two points. According to dx ← abs (x 2 -x 1 ), the distance dx between x 1 and x 2 is obtained, and according to dy ← abs (y 2 -y 1 ), the distance dy between y 1 and y 2 is obtained.

덧붙여, 함수 abs(t)는 t의 절대값을 나타낸다.In addition, the function abs (t) represents the absolute value of t.

또, 묘화위치를 나타내는 변수를 (x, y)로 표현한 경우, x←x1 및 y←y1은 제1점을 묘화개시위치로 설정하는 처리를 나타낸다.In addition, when the variable which shows a drawing position is represented by (x, y), x ← x 1 and y ← y 1 represent the process of setting a 1st point as a drawing start position.

단계 S302: 제1점 (x, y)를 묘화 데이터화한다.Step S302: Draw data of the first point (x, y).

단계 S303: 직선 테이블(43)로부터 제어열을 취득한다. 직선 테이블로의 접근(access)은, 다음의 계산으로 행해진다.Step S303: Obtain the control string from the straight table 43. Access to the straight line table is performed by the following calculation.

테이블의 범위를 n이라 하면, 직선 테이블(43) 중의 ((n+1)×dy+dx+1) 번째의 제어열을 취득한다. 본 실시예에서는 테이블의 범위를 20으로 하고 있기 때문에, (20+1)×dy+dx+1) 번째의 제어열을 취득한다.If the range of the table is n, the ((n + 1) x dy + dx + 1) th control string in the straight line table 43 is obtained. In this embodiment, since the range of the table is set to 20, the (20 + 1) × dy + dx + 1) th control string is obtained.

단계 S304: x1 및 x2 중 어느 것이 큰지를 판정한다.Step S304: Determine which of x 1 and x 2 is large.

x2가 x1 이상이라고 판정된 경우(예)에는, 처리는 단계 S305로 진행한다. x2가 x1보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S306으로 진행한다.If x 2 is determined to be x 1 or more (Yes), the processing proceeds to step S305. If x 2 is determined to be less than x 1 (no), the process proceeds to step S306.

단계 S305: 변수 incx에 값 「1」을 세트(set)한다. 변수 incx에 의해, x방향의 증감이 제어된다.Step S305: The value "1" is set in the variable incx. By the variable incx, the increase and decrease in the x direction is controlled.

단계 S306: 변수 incx에 값 「-1」을 세트한다. 변수 incx에 의해, x방향의 증감이 제어된다.Step S306: The value "-1" is set in the variable incx. By the variable incx, the increase and decrease in the x direction is controlled.

단계 S307: y1 및 y2 중 어느 것이 큰지를 판정한다.Step S307: Determine which of y 1 and y 2 is large.

y2가 y1 이상이라고 판정된 경우(예)에는, 처리는 단계 S308로 진행한다. y2가 y1보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S309로 진행한다.If y 2 is determined to be greater than or equal to y 1 (YES), the processing proceeds to step S308. If y 2 is determined to be less than y 1 (no), the process proceeds to step S309.

단계 S308: 변수 incy에 값 「1」을 세트한다. 변수 incy에 의해, y방향의 증감이 제어된다.Step S308: The value "1" is set in the variable incy. The variable incy controls the increase and decrease in the y direction.

단계 S309: 변수 incy에 값 「-1」을 세트한다. 변수 incy에 의해, y방향의 증감이 제어된다.Step S309: The value "-1" is set in the variable incy. The variable incy controls the increase and decrease in the y direction.

단계 S310: dx 및 dy 중 어느 것이 큰지를 판정한다.Step S310: Determine which of dx and dy is large.

dx가 dy 이상이라고 판정된 경우(예)에는, 처리는 단계 S311로 진행한다. dx가 dy보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S314로 진행한다.If dx is determined to be dy or more (YES), the processing proceeds to step S311. If dx is determined to be less than dy (no), the process proceeds to step S314.

단계 S311: 제어열이 끝인지 아닌지가 판정된다. 제어열이 끝이라고 판정된 경우(예)에는, 처리는 종료한다. 제어열이 끝이 아니라고 판정된 경우(아니오)에는, 처리는 단계 S312로 진행한다.Step S311: It is determined whether or not the control sequence is over. If it is determined that the control string is over (Yes), the process ends. If it is determined that the control string is not end (No), the processing proceeds to step S312.

단계 S312: (x, y)의 다음의 점을 계산한다. 구체적으로는 x에 x의 증감을 제어하는 incx의 값을 더하고(x의 다음 값=x+incx), y에 y의 증감을 제어하는 incy에 제어열의 값(△y)을 곱한 값을 더한다(y의 다음 값=y+incy×△y).Step S312: The next point of (x, y) is calculated. Specifically, x is added to the value of incx controlling the increase and decrease of x (next value of x = x + incx), and y is added to the incy controlling the increase and decrease of y and multiplied by the value (△ y) of the control string ( next value of y = y + incy × Δy).

단계 S313: (x+incx) 및 (y+incy×△y)를 묘화 데이터화한다. 구체적으로는 점 (x+incx, y+incy×△y)를 플랏(plot)한다. 그후, 처리는 단계 S311로 진행한다.Step S313: Write data of (x + incx) and (y + incy × Δy). Specifically, the points (x + incx, y + incy × Δy) are plotted. The process then proceeds to step S311.

단계 S314: 제어열이 끝인지 아닌지가 판정된다. 제어열이 끝이라고 판정된 경우(예)에는, 처리는 종료한다. 제어열이 끝이 아니라고 판정된 경우(아니오)에는, 처리는 단계 S315로 진행한다.Step S314: It is determined whether or not the control sequence is over. If it is determined that the control string is over (Yes), the process ends. If it is determined that the control sequence is not end (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, x is added to the incx controlling the increase and decrease of x and the value of multiplying the control string value (Δx) (next value of x = x + incx × Δx), and the value of incy controlling y to increase and decrease of y. Add (y next value of y = y + incy).

단계 S316: (x+incx×△x) 및 (y+incy)를 묘화 데이터화한다. 구체적으로는, 점 (x+incx×△x, y+incy)를 플랏(plot)한다. 그후, 처리는 단계 S314로 진행한다.Step S316: Write data of (x + incx × Δx) and (y + incy). Specifically, the points (x + incx × Δx, y + incy) are plotted. The process then proceeds to step S314.

도17은, 단계 S204에서 실행되는 곡선묘화처리 순서를 나타낸다.Fig. 17 shows the curve drawing processing procedure executed in step S204.

이하, 도17을 참조하여 곡선묘화처리 순서를 단계마다 설명한다.The following describes the curve drawing processing procedure step by step with reference to FIG.

단계 S401: 주어진 좌표점으로부터 3점을 꺼낸다. 예를 들어, 주어진 좌표점이 5점((a1, b1), (a2, b2), (a3, b3), (a4, b4), (a5, b5))인 경우에는, 최초의 호출로는 (a1, b1), (a2, b2), (a3, b3)의 3점이 꺼내어지고, 다음의 호출로는 (a2, b2), (a3, b3), (a4, b4)가 꺼내어진다. 이와 같이 연속한 3점을 1점씩, 어긋나게 하여 꺼낸다.Step S401: Three points are taken out from a given coordinate point. For example, given coordinate points 5 points ((a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 )) If, the first call gets three points (a 1 , b 1 ), (a 2 , b 2 ), (a 3 , b 3 ), and the next call (a 2 , b 2 ) , (a 3 , b 3 ), (a 4 , b 4 ) are taken out. In this way, three consecutive points are shifted by one point and taken out.

단계 S402: 꺼낸 3점의 좌표점 (x1, y1), (x2, y2), (x3, y3)의 다음 값을 구한다. dx←abs(x2-x1)에 의해, x1과 x2의 거리 dx를 구하고, dy←abs(y2-y1)에 의해, y1과 y2와의 거리 dy를 구한다.Step S402: Find the next value of the three coordinate points (x 1 , y 1 ), (x 2 , y 2 ), and (x 3 , y 3 ) of the three points taken out. The distance dx between x 1 and x 2 is determined by dx ← abs (x 2 -x 1 ), and the distance dy between y 1 and y 2 is obtained by dy ← abs (y 2 -y 1 ).

여기서, 묘화위치를 나타내는 변수를 (x, y)로 표현한 경우, x←x1 및 y←y1은, 제3점 중 제1점을 묘화개시위치로 설정하는 처리를 나타낸다.Here, when the image of the variable representing the imaging location with (x, y), x ← x ← y 1 and y is 1, a indicates the processing for setting the first point in the three points to the drawing start position.

단계 S403: 꺼낸 3점 중, 제1점 (x, y)를 묘화 데이터화한다.Step S403: Of the three points taken out, first data (x, y) is drawn into the drawing data.

단계 S404: 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도로부터 각도패턴을 구한다.Step S404: The angle pattern is obtained from 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×Π)으로 하여 계산할 수 있다.It can be calculated by setting the angle pattern a = round (((Θ 21 ) × 28) / (2 × Π).

여기에서, 각도 Θ1은, 제1점과 제2점을 통과하는 직선과 x축과의 각도(Θ1 = tan-1((y2-y1)/(x2-x1)))이고, 각도 Θ2는, 제2점과 제3점을 통과하는 직선과 x축과의 각도(Θ2=tan-1((y3-y2)/(x3-x2))이다.Here, the angle Θ 1 is an angle between the straight line passing through the first point and the second point and the x axis (Θ 1 = tan -1 ((y 2 -y 1 ) / (x 2 -x 1 ))) The angle Θ 2 is an angle between the straight line passing through the second point and the third point and the x-axis (Θ 2 = tan -1 ((y 3 -y 2 ) / (x 3 -x 2 )).

함수 round(t)는 t의 사사오입을 나타낸다. tan-1의 계산은 처리가 복잡하지만, 본 발명의 경우, 최종적으로 28분할된 어느쪽으로든 각도패턴을 맞추면 되기 때문에, 정밀도의 요구는 높지 않다. 따라서, tan-1의 인수를 몇 패턴으로 분류한 테이블을 이용하여, tan-1의 계산을 고속화하는 것도 가능하다.The function round (t) represents the rounding of t. The calculation of tan -1 is a complicated process, but in the case of the present invention, since the angular pattern must be matched to either of the 28 divided parts, the demand for precision is not high. Therefore, it is also possible to speed up the calculation of tan -1 using the table which classified the factor of tan -1 into several patterns.

여기서, tan-1의 인수와 tan-1의 값과의 대응을 나타내는 테이블을 이용하여 tan-1의 계산을 고속화하는 방법의 상세는, 후술한다.Here, by using a table showing the relationship between the argument tan -1 of the value of tan -1 Details of how to speed up the calculation of tan -1 will be described later.

이상, 단계 S401~단계 S404를 참조하여 설명한 바와 같이, 단계 S401~단계 S404를 실행하는 것에 의해, 주어진 제1점, 제2점 및 제3점에 대해, 제1점 및 제2점 중 적어도 하나와 제3점과의 위치관계가 결정된다.As described above with reference to step S401 to step S404, at least one of the first point and the second point for the given first point, the second point, and the third point by executing step S401 to step S404. And the positional relationship with the third point is determined.

단계 S405: 곡선 테이블(44)로부터 제어열을 취득(선택)한다. 곡선 테이블로의 접근은, 다음의 계산으로 행해진다.Step S405: Obtain (select) a control sequence 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 n, the number of divisions is t, and the angle pattern is a, the control string for the ((n + 1) x t x dy + t x dx + a) th of the curve table 44 is obtained. In the present embodiment, the range of the table is set to 15 and the number of divisions is set to 28. Thus, the ((15 + 1) x28xdy + 28xdx + a) th control string is obtained.

단계 S405를 참조하여 설명한 바와 같이, 단계 S405를 실행하는 것에 의해, 제2점과 제3점과의 위치관계와 선의 패턴과의 대응관계를 나타내는 정보가 포함된 곡선 테이블(44)로부터, 원하는 선의 패턴을 나타내는 제어열이 선택된다.As described with reference to step S405, by executing step S405, the desired line is selected from the curve table 44 including information indicating the positional relationship between the second point and the third point and the correspondence between the line pattern. The control string representing the pattern is selected.

단계 S406: x1 및 x2 중 어느 것이 큰지를 판정한다.Step S406: Determine which of x 1 and x 2 is large.

x2가 x1 이상이라고 판정된 경우(예)에는, 처리는 단계 S407로 진행한다. x2가 x1보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S408로 진행한다.If x 2 is determined to be x 1 or more (Yes), the processing proceeds to step S407. If x 2 is determined to be less than x 1 (no), the process proceeds to step S408.

단계 S407: y1 및 y2 중 어느 것이 큰지를 판정한다.Step S407: Determine which of y 1 and y 2 is large.

y2가 y1 이상이라고 판정된 경우(예)에는, 처리는 단계 S409로 진행한다. y2가 y1보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S410으로 진행한다.If y 2 is determined to be equal to or greater than y 1 (YES), the processing proceeds to step S409. If y 2 is determined to be less than y 1 (no), the process proceeds to step S410.

단계 S408: y1 및 y2 중 어느 것이 큰지를 판정한다.Step S408: Determine which of y 1 and y 2 is large.

y2가 y1 이상이라고 판정된 경우(예)에는, 처리는 단계 S411로 진행한다. y2가 y1보다 작다고 판정된 경우(아니오)에는, 처리는 단계 S412로 진행한다.If y 2 is determined to be equal to or greater than y 1 (YES), the processing proceeds to step S411. If y 2 is determined to be less than y 1 (no), the process proceeds to step S412.

단계 S409: 제1점을 원점으로 한 경우에는, 제2점이 제1상한에 있는 경우의 제1상한묘화를 한다.Step S409: When the first point is the origin, first upper limit drawing is performed when the second point is at the first upper limit.

단계 S410 : 제1점을 원점으로 한 경우에는, 제2점이 제2상한에 있는 경우의 제2상한묘화를 한다.Step S410: When the first point is the origin, a second upper limit drawing is performed when the second point is at the second upper limit.

단계 S411: 제1점을 원점으로 한 경우에는, 제2점이 제3상한에 있는 경우의 제3상한묘화를 한다.Step S411: When the first point is the origin, a third upper limit drawing is performed when the second point is in the third upper limit.

단계 S412: 제1점을 원점으로 한 경우에는, 제2점이 제4상한에 있는 경우의 제4상한묘화를 한다.Step S412: When the first point is the origin, a fourth upper limit drawing is performed when the second point is at the fourth upper limit.

단계 S413: 플래그(flag)가 세트되어 있는지를 판정한다. 플래그가 세트되어 있다고 판정된 경우(예)에는, 처리는 종료한다. 플래그가 세트되어 있지 않다고 판정된 경우(아니오)에는, 처리는 단계 S414로 진행한다.Step S413: It is determined whether a flag is set. If it is determined that the flag is set (YES), the process ends. If it is determined that the flag is not set (no), the process proceeds to step S414.

단계 S414: 단계 S401을 실행하는 것에 따라 취득된 3점이 최후의 3점인가를 판정한다.Step S414: By executing step S401, it is determined whether the acquired three points are the last three points.

예를 들어, 곡선묘화처리에 주어진 좌표점이 (a1, b1), (a2, b2), (a3, b3), (a4, b4), (a5, b5)의 5점인 경우에는, 단계 S401에서 꺼낸 3점이 최후의 3점 (a3, b3), (a4, b4), (a5, b5)인지 아닌지를 판정한다.For example, the coordinate points given in 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 5 points of, it is determined whether or not the three points taken out in step S401 are the last three points (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ).

최후의 3점이라고 판정된 경우(예)에는, 처리는 단계 S415로 진행한다. 최후의 3점이 아니라고 판정된 경우(아니오)에는, 처리는 단계 S401로 진행한다.If it is determined that it is the last three points (Yes), the processing proceeds to step S415. If it is determined not to be the last three points (No), the process proceeds to step S401.

단계 S415: 플래그를 세트하고, 3점을 반대로 세트한다.Step S415: Set a flag, and set three points in reverse.

예를 들어, 최후의 3점이 (a3, b3), (a4, b4), (a5, b5)의 순으로 세트되어 있는 경우에는, 최후의 3점을 (a5, b5), (a4, b4), (a3, b3)의 순으로 세트하도록 변경한다. (a4, b4)와 (a5, b5)가 묘화되지 않게 되는 것을 막기 위해서이다.For example, when the last three points are set in the order (a 3 , b 3 ), (a 4 , b 4 ), (a 5 , b 5 ), the last three points are (a 5 , b 5 ), (a 4 , b 4 ), (a 3 , b 3 ) This is to prevent (a 4 , b 4 ) and (a 5 , b 5 ) from being drawn.

순서대로 3점을 꺼내어 처리를 하는 경우(단계 S401 참조)에서, 묘화되는 것은, 3점 중, 제1점과 제2점 사이고, 제2점과 제3점의 사이는 묘화되지 않는다. 최종적으로 최후의 구간(((a4, b4)와 (a5, b5)의 사이)이 묘화되지 않는 것을 방지하기 위해, 최후에 점 (a3, b3)과 점 (a5, b5)을 교체하고, 최후의 구간을 묘화한다.In the case where three points are taken out in order and are processed (see step S401), the drawing is performed between the first point and the second point among the three points, and is not drawn between the second point and the third point. Finally, to prevent the last section (between ((a 4 , b 4 ) and (a 5 , b 5 )) being drawn, the points (a 3 , b 3 ) and points (a 5 , b 5 ) is replaced and the last section is drawn.

더욱이, 본 실시예에서는, 최후의 3점을 반대로 세트했지만, 「단계 S414의 처리」를 「취득된 3점이 라인의 한가운데보다 전인가 아닌가를 판정하는 처리」로 변경하여도 좋다. 이 경우에는, 취득된 3점이 한가운데보다 전이라고 판정된 경우에는, 제1점으로부터 순서대로 3점을 꺼내고(단계 S401 참조), 취득된 3점이 한가운데보다도 전은 아니라고 판정한 경우에는, 최후의 점으로부터 역순으로 3점을 꺼낸다.Furthermore, in the present embodiment, the last three points are set in reverse, but the processing in step S414 may be changed to the processing for determining whether the acquired three points are earlier than the middle of the line. In this case, when it is determined that the acquired three points are earlier than the middle, three points are taken out in order from the first point (see step S401), and when it is determined that the acquired three points are not earlier than the middle, the last point 3 points are taken out in reverse order.

도27은, tan-1의 값과 tan-1의 인수와의 대응을 나타낸다. tan-1의 값은, 각도(도)이고, tan-1의 인수는, dy/dx이다. 각도 θ는, (no×360)/56으로 나타내진다.Figure 27 shows the response of the acquisition of the value of tan -1 tan -1. The value of tan -1 is an angle (degrees), and the argument of tan -1 is dy / dx. The angle θ is represented by (no × 360) / 56.

tan-1의 값과 tan-1의 인수와의 대응을 나타내는 테이블을 사용하는 것으로, tan-1의 계산을 행할 필요가 없어진다. 단, tan-1의 값은, 0~180°(제1상한, 제2상한만)이고, 180°<tan-1<360°에 대응하는 tan-1의 인수는, 계산하여 구한다. 예를 들어, (0, 0)과 (10, 5)를 통과하는 직선은 dy/dx=0.5(dy=5, dx=10)이기 때문에, no4와 no5의 사이에 있는 것을 안다. 이 실시예에서는 작은 쪽의 no를 택한다고 하면, no=4가 된다. 또 (0, 0)과 (-10, -5)를 통과하는 직선은 dy/dx=0.5(dy=5, dx=10)이기 때문에, no=4가 되지만, 제3상한의 값이기 때문에, 28을 가산하여 no=32가 된다. 즉, Θ1= tan-1((y2-y1)/(x2-x1))은, 제1점과 제2점을 통과하는 직선과 수평선과의 각도를 구하는 것에 상당하지만, 정밀도를 내리는 것이 허락되는 경우에는, 테이블의 no를 구하는 것으로 치환하는 것이 가능하다.By using the table showing the relationship between the tan -1 value and argument tan -1 of the, there is no need to perform the calculation of tan -1. However, the value of tan -1 is 0-180 degrees (only a 1st upper limit and a 2nd upper limit), and the factor of tan -1 corresponding to 180 degrees <tan -1 <360 degrees is calculated and calculated | required. For example, the straight line passing through (0, 0) and (10, 5) is found to be between no4 and no5 because dy / dx = 0.5 (dy = 5, dx = 10). In this embodiment, assuming that the smaller no is selected, no = 4. In addition, since the straight line passing through (0, 0) and (-10, -5) is dy / dx = 0.5 (dy = 5, dx = 10), no = 4, but because it is the third upper limit value, 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. If it is allowed to lower, we can replace it by finding the no of 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)로 치환할 수 있다.The value of tan -1 ((y 2 -y 1 ) / (x 2 -x 1 )) as a table is called no 1 , and tan -1 ((y 3 -y 2 ) / (x 3 -x 2) If the value of)) is obtained from the table as no 2 , the calculation of a = round (((Θ 21 ) × 28) / (2 × Π)) yields a = round (abs (no 2 -no 1 ) / 2).

이하, 도1~도4를 참조하여 구체적으로 설명한다.Hereinafter, the present invention will be described in detail 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)).1 shows curves passing through (0, 0), (7, 4), and (10, 10). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 9. This is because (10-4) / (10-7) = 2. The angle pattern a is 3 (a = round (abs (9-4) / 2)).

도2는 (0, 0), (7, 4), (13, 16)을 통과하는 곡선을 나타낸다. no1의 값은 4이다. (4-0)/(7-0)=0.571이기 때문이다. no2의 값은 9이다. (16-4)/(13-7)=2이기 때문이다. 각도패턴 a는, 3이다(a=round(abs(9-4)/2)).2 shows curves passing through (0, 0), (7, 4), (13, 16). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 9. This is because (16-4) / (13-7) = 2. The angle pattern a is 3 (a = round (abs (9-4) / 2)).

도3은 (0, 0), (7, 4), (12, 17)을 통과하는 곡선을 나타낸다. no1의 값은 4이다. (4-0)/(7-0)=0.571이기 때문이다. no2의 값은 10이다. (17-4)/(12-7)=2.6이기 때문이다. 각도패턴 a는, 3이다(a=round(abs(10-4)/2)).3 shows curves passing through (0, 0), (7, 4), (12, 17). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 10. (17-4) / (12-7) = 2.6. The angle pattern a is 3 (a = round (abs (10-4) / 2).

도4는 (0, 0), (7, 4), (14, 16)을 통과하는 곡선을 나타낸다. no1의 값은 4이다. (4-0)/(7-0)=0.571이기 때문이다. no2의 값은 15이다. (14-4)/(6-7)=-10이기 때문이다. 각도패턴 a는, 6이다(a=round(abs(15-4)/2)).4 shows curves passing through (0, 0), (7, 4), (14, 16). The value of no 1 is 4. This is because (4-0) / (7-0) = 0.571. The value of no 2 is 15. This is because (14-4) / (6-7) =-10. The angle pattern a is 6 (a = round (abs (15-4) / 2)).

이와 같은 테이블을 이용하는 경우에는, 복잡한 삼각함수를 계산하지 않고 각도패턴을 구할 수 있다.In the case of using such a table, an angular pattern can be obtained without calculating a complicated trigonometric function.

도18은 단계 S409에서 실행되는 제1상한묘화처리 순서를 나타낸다.18 shows the first upper limit drawing processing procedure executed in step S409.

이하, 도18을 참조하여 제1상한묘화처리 순서를 단계마다 설명한다.Hereinafter, with reference to FIG. 18, the 1st upper limit drawing process sequence is demonstrated for every step.

단계 S501: 단계 S405에서 취득한 제어열이 끝인지 아닌지를 판정한다.Step S501: It is determined whether or not the control sequence acquired in step S405 is the end.

제어열이 끝이라고 판정된 경우(예)에는, 처리는 종료한다. 끝이 아니라고 판정된 경우(아니오)에는, 처리는 단계 S502로 진행한다.If it is determined that the control string is over (Yes), the process ends. If it is determined not to end (NO), the process proceeds to step S502.

단계 S502: 제어열의 값(값「0」~「7」: 도13 참조)에 대응하여, 처리는 나 뉜다.Step S502: In response to the values of the control string (values "0" to "7": see FIG. 13), the process is divided.

제어치「0」인 경우에는, 처리는 단계 S503으로 진행한다. 제어치「1」인 경우에는, 처리는 단계 S504로 진행한다. 제어치「2」인 경우에는, 처리는 단계 S505로 진행한다. 제어치「3」인 경우에는, 처리는 단계 S506으로 진행한다. 제어치「4」인 경우에는, 처리는 단계 S507로 진행한다. 제어치「5」인 경우에는, 처리는 단계 S508로 진행한다. 제어치「6」인 경우에는, 처리는 단계 S509로 진행한다. 제어치「7」인 경우에는, 처리는 단계 S510으로 진행한다. If control value "0", the process proceeds to step S503. In the case of control value "1", the process proceeds to step S504. If control value "2", the process proceeds to step S505. In the case of control value "3", the process proceeds to step S506. In the case of control value "4", the process proceeds to step S507. If control value "5", the process proceeds to step S508. If control value "6", the process proceeds to step S509. If control value "7", the process proceeds to step S510.

단계 S503: x방향의 값을 제어하는 x의 값을 1 증가시킨다. 처리는 단계 S511로 진행한다.Step S503: The value of x controlling the value in the x direction is increased by one. The process proceeds to step S511.

단계 S504: x방향의 값을 제어하는 x의 값을 1 증가시키고, y방향의 값을 제어하는 y의 값을 1 증가시킨다. 처리는 단계 S511로 진행한다.Step S504: Increase the value of x controlling the value in the x direction by 1 and increase the value of y controlling the value in the y direction by 1. The process proceeds to step S511.

단계 S505: y방향의 값을 제어하는 y의 값을 1 증가시킨다. 처리는 단계 S511로 진행한다.Step S505: The value of y for controlling the value in the y direction is increased by one. The process proceeds to step S511.

단계 S506: x방향의 값을 제어하는 x의 값을 1 감소시키고, y방향의 값을 제어하는 y의 값을 1 증가시킨다. 처리는 단계 S511로 진행한다.Step S506: Decrease the value of x for controlling the value in the x direction by 1 and increase the value of y for controlling the value in the y direction by 1. The process proceeds to step S511.

단계 S507: x방향의 값을 제어하는 x의 값을 1 감소시킨다. 처리는 단계 S511로 진행한다.Step S507: Decrease the value of x by 1 to control the value in the x direction. The process proceeds to step S511.

단계 S508: x방향의 값을 제어하는 x의 값을 1 감소시키고, y방향의 값을 제어하는 y의 값을 1 감소시킨다. 처리는 단계 S511로 진행한다.Step S508: Decrease the value of x for controlling the value in the x direction by 1 and decrease the value of y for controlling the value in the y direction by 1. The process proceeds to step S511.

단계 S509: y방향의 값을 제어하는 y의 값을 1 감소시킨다. 처리는 단계 S511로 진행한다.Step S509: Decrease the value of y by one that controls the value in the y direction. The process proceeds to step S511.

단계 S510: x방향의 값을 제어하는 x의 값을 1 증가시키고, y방향의 값을 제어하는 y의 값을 1 시킨다. 처리는 단계 S511로 진행한다.Step S510: Increase the value of x for controlling the value in the x direction by 1 and make the value of y for controlling the value in the y direction be 1. The process proceeds to step S511.

단계 S511: 단계 S503~단계 S510에서 계산된 점 (x, y)를 묘화 데이터화한다. 예를 들어, 점 (x, y)를 플랏한다.Step S511: Draw data of the points (x, y) calculated in steps S503 to S510. For example, plot the point (x, y).

도19는, 단계 S410에서 실행되는 제2상한묘화처리 순서를 나타낸다.19 shows a second upper limit drawing processing procedure executed in step S410.

제2상한은, 제1상한에 대하여 y축대칭이다. 따라서, 제1상한묘화처리 순서(도18 참조)와의 처리 순서의 차이는, 제어치에 따른 x의 증감이 반대가 되는 것 뿐이기 때문에, 단계 S601~단계 S611의 설명은 생략한다.The second upper limit is y-axis symmetry with respect to the first upper limit. Therefore, since the difference in the processing order from the first upper limit drawing processing order (see Fig. 18) is only that the increase and decrease of x according to the control value is reversed, the description of steps S601 to S611 is omitted.

도20은, 단계 S411에서 실행되는 제3상한묘화처리 순서를 나타낸다.20 shows the third upper limit drawing processing procedure executed in step S411.

제3상한은, 제1상한에 대하여 원점대칭이다. 따라서, 제1상한묘화처리 순서(도18 참조)와의 처리 순서의 차이는, 제어치에 따른 x의 증감 및 y의 증감이 각각 반대가 되는 것 뿐이기 때문에, 단계 S701~단계 S711의 설명은 생략한다.The third upper limit is origin symmetry with respect to the first upper limit. Therefore, the difference in the processing order from the first upper limit drawing processing order (see Fig. 18) is that the increase and decrease of x and the increase and decrease of y according to the control value are reversed, respectively, and thus the description of steps S701 to S711 is omitted. do.

도21은, 단계 S412에서 실행되는 제4상한묘화처리 순서를 나타낸다.21 shows a fourth upper limit drawing processing procedure executed in step S412.

제4상한은, 제1상한에 대하여 x축대칭이다. 따라서, 제1상한묘화처리 순서(도18 참조)와의 처리 순서의 차이는, 제어치에 따른 y의 증감이 반대로 되는 것 뿐이기 때문에, 단계 S801~단계 S811의 설명은 생략한다.The fourth upper limit is x-axis symmetry with respect to the first upper limit. Therefore, since the difference in the processing order from the first upper limit drawing processing order (see Fig. 18) is merely reversed by the increase and decrease of y according to the control value, the description of steps S801 to S811 is omitted.

도22는, 좌표 데이터, 스케일화 데이터 및 양자화 데이터를 나타낸다.22 shows coordinate data, scaled data, and quantized data.

벡터 데이터(도9 참조)를 스케일 처리, 양자화 처리한 결과이다.The result of scaling and quantization of vector data (see Fig. 9) is shown.

도23은, 도22에 나타난 양자화 데이터에 기초하여 묘화한 결과를 나타낸다.FIG. 23 shows the result of drawing based on the quantized data shown in FIG.

양자화 데이터(도22 참조)를 묘화 데이터화 처리(도15 참조)에 의해 묘화한 결과를 나타낸다. 곡선묘화에 의해, 문자가 고품위로 묘화될 수 있다.The result of drawing quantization data (refer to FIG. 22) by the drawing data drawing process (refer to FIG. 15) is shown. By curve drawing, a character can be drawn with high quality.

도24는, 테이블의 편집처리 순서를 나타낸다.Fig. 24 shows the procedure of editing the table.

도25는, 표시점을 변경한 후의 선의 패턴을 나타낸다.25 shows the pattern of lines after changing the display point.

도26은, 표시점을 변경한 후의 곡선묘화 테이블을 나타낸다.Fig. 26 shows a curve drawing table after changing the display point.

이하, 도1, 도12, 도24~도26을 참조하여 테이블의 편집처리 순서를 단계마다 설명한다.1, 12, and 24 to 26, the procedure of editing the table will be described step by step.

단계 S901: 3점을 통과하는 제어열을 호출하고, 선의 패턴을 편집화면에 표시한다. 편집화면에 표시된 선의 패턴은, 예를 들어, 도1에 나타내어진다. 2점을 통과하는 선의 패턴이 편집화면에 표시되어 있다.Step S901: Call the control string passing through three points, and display the pattern of lines on the edit screen. The pattern of lines displayed on the edit screen is shown in FIG. 1, for example. The pattern of lines passing through two points is displayed on the edit screen.

단계 S902: 표시된 선의 패턴을 화면을 보면서 변경한다. 예를 들어, 도1에 나타난 선의 패턴을 도25에 나타난 선의 패턴으로 편집한다.Step S902: The pattern of the displayed line is changed while viewing the screen. For example, the pattern of lines shown in FIG. 1 is edited into the pattern of lines shown in FIG.

단계 S903: 변경된 선의 패턴 중 제1점과 제2점을 통과하는 선의 패턴만을 제어열에 나타내고, 테이블을 고쳐쓴다. 도12에서 나타난 곡선 테이블의 1990번째의 제어열 {0, 0, 1, 0, 1, 1, 1}이 도26에 나타난 곡선 테이블의 1990번째의 제어열 {0, 1, 0, 1, 0, 1, 1}로 고쳐 써진다.Step S903: Only the patterns of the lines passing through the first and second points of the changed line patterns are represented in the control sequence, and the table is rewritten. The 1990th control sequence {0, 0, 1, 0, 1, 1, 1} of the curve table shown in FIG. 12 is the 1990th control sequence {0, 1, 0, 1, 0} of the curve table shown in FIG. , 1, 1}.

이와 같이, 곡선 테이블의 내용은 변경가능하다. 다만 변경결과는, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선의 각도가 같은 각도패턴으로 분할하는 모든 경우에 영향을 준다.In this way, the contents of the curve table can be changed. However, the change result affects all the 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 will now be described with reference to FIGS. 14 to 21 and 24.

예를 들어, 도14~도21 및 도24의 예에서는, 단계 S401~단계 S404가 「주어진 제1점, 제2점 및 제3점에 대해, 제1점 및 제2점 중 적어도 하나와 제3점과의 제1위치관계를 결정하는 단계」에 대응하고, 단계 S405가 「미리 준비된 적어도 하나의 선의 패턴에 있어서, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 단계」에 대응하고, 단계 S409~단계 S412가 「선택된 선의 패턴에 따라, 제1점과 제2점을 통과하는 선을 표시 디바이스에 표시하는 단계」에 대응한다. 그러나, 도14~도21 및 도24의 예는, 본 발명의 표시순서의 일예를 나타낸 것에 지나지 않는다. 상술한 각 단계가 실행되는 한, 임의의 단계를 가지는 표시순서가 본 발명의 범위에 포함될 수 있다.For example, in the examples of FIGS. 14 to 21 and 24, steps S401 to S404 are &quot; at least one of the first and second points and the first point, the second point, and the third point. Corresponds to the step of determining the first positional relationship with the three points, and in step S405, in the at least one line pattern prepared in advance, among the patterns of at least one line passing through the first point and the second point, Corresponding to the step of selecting a pattern of one line corresponding to the one-position relationship, and in steps S409 to S412, displaying the line passing through the first point and the second point on the display device according to the selected line pattern. Corresponds to. However, the examples of Figs. 14 to 21 and 24 are merely examples of the display procedure of the present invention. As long as each of the above-described steps is executed, a display order having any steps can be included in the scope of the present invention.

본 발명의 프로그램 및 기록매체에 의하면, 제1점과 제2점을 통과하는 선의 궤적을 계산에 의해 구하지 않고, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 위치관계에 대응하는 하나의 선의 패턴을 선택하는 것에 따라, 제1점과 제2점을 통과하는 선을 표시할 수 있다. 따라서, 복잡한 계산이 필요해지는 제1점과 제2점을 통과하는 선의 궤적의 계산을 행할 필요 없이, 제1점과 제2점을 통과하는 선을 고속으로 표시할 수 있다.According to the program and the recording medium of the present invention, without determining the trajectory of the line passing through the first point and the second point by calculation, the positional relationship is determined from among the patterns of at least one line passing through the first point and the second point. By selecting a pattern of one corresponding line, a line passing through the first point and the second point can be displayed. Therefore, the line passing through the first point and the second point can be displayed at high speed without the need to calculate the trajectory of the line passing through the first point and the second point where complicated calculation is required.

상술한 실시예에서는, 문자를 표시하는 경우를 예로 설명하였으나, 본 발명은 이것에 한정되지 않는다. 문자를 대신하여, 혹은 문자에 부가하여, 도형을 표시하는 경우에도 본 발명을 적용할 수 있다. 이 경우, 문자표시 프로그램(41)을 대신하여, 혹은 문자표시 프로그램(41)에 부가하여 도형표시 프로그램을 사용하도록 하고, 문자 데이터(42)를 대신하여, 혹은 문자 데이터(42)에 부가하여 도형 데이터를 사용하도록 하면 된다. 도형표시 프로그램도 또한, 문자표시 프로그램(41)과 같은 단계를 포함할 수 있다. 도형에는, 예를 들어, 문자의 일부, 모양, 기호 등이 포함된다.In the above-described embodiment, the case in which characters are displayed has been described as an example, but the present invention is not limited thereto. The present invention can be applied to the case where a figure is displayed instead of or in addition to a character. In this case, instead of the character display program 41 or in addition to the character display program 41, a graphic display program is used, and instead of the character data 42 or in addition to the character data 42, You can use the data. The figure display program may also include the same steps as the character display program 41. The figure includes, for example, a part of a character, a shape, a symbol, and the like.

이상과 같이, 본 발명의 바람직한 실시예를 이용하여 본 발명을 예시하였지만, 본 발명은, 이 실시예에 한정하여 해석되어야 하는 것은 아니다. 본 발명은, 특허청구범위에 의해서만 그 범위가 해석되어야 하는 것으로 이해된다. 당업자는, 본 발명의 구체적인 바람직한 실시예의 기재로부터, 본 발명의 기재 및 기술상식에 기초하여 등가인 범위를 실시할 수 있는 것으로 이해된다. 본 명세서에서 인용한 특허, 특허출원 및 문헌은, 그 내용 자체가 구체적으로 본 명세서에 기재되어 있는 것과 같이 그 내용이 본 명세서에 대한 참고로서 원용되어야 하는 것으로 이해된다.As mentioned above, although this invention was illustrated using the preferable Example of this invention, this invention is not limited to this Example and should not be interpreted. It is understood that the scope of the present invention should be interpreted only by the claims. It is understood that those skilled in the art can implement equivalent ranges from the description of the specific preferred embodiments of the present invention based on the description of the present invention and common technical knowledge. It is understood that the patents, patent applications, and documents cited herein are to be incorporated by reference as if their content were specifically described herein.

본 발명의 표시장치, 프로그램 및 기록매체에 의하면, 제1점과 제2점을 통과하는 선의 궤적을 계산에 따라 구하지 않고, 제1점과 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 결정된 위치관계에 대응하는 하나의 선의 패턴을 선택하는 것에 의해, 제1점과 제2점을 통과하는 선을 표시할 수 있다. 따라서, 복잡한 계산이 필요해지는 제1점과 제2점을 통과하는 선의 궤적의 계산을 행할 필요없이, 제1점과 제2점을 통과하는 선을 고속으로 표시할 수 있다.According to the display device, the program and the recording medium of the present invention, without determining the trajectory of the line passing through the first point and the second point according to the calculation, the pattern of at least one line passing through the first point and the second point is determined. By selecting one line pattern corresponding to the positional relationship, a line passing through the first point and the second point can be displayed. Therefore, the line passing through the first point and the second point can be displayed at high speed without the need to calculate the trajectory of the line passing through the first point and the second point where complicated calculation is required.

본 발명에서는, 제1점과 제2점을 통과하는 선의 패턴과 제3점의 위치관계와의 대응을 나타내는 테이블을 이용하여, 3점을 잇는 곡선을 묘화한다. 따라서, 테 이블의 독출만으로 곡선의 묘화가 가능해지고, 복잡한 연산이 발생하지 않는다. 그 결과, 제1점과 제2점을 통과하는 선을 고속으로 묘화할 수 있다.In the present invention, a curve connecting three points is drawn by using a table indicating the correspondence between the pattern of lines passing through the first point and the second point and the positional relationship between the third point. Therefore, the drawing of the curve is possible only by reading the table, and no complicated calculation occurs. As a result, a line passing through the first point and the second point can be drawn at high speed.

더욱이, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선과의 각도를 분류하고, 테이블화한다. 그 결과, 용량을 적게할 수 있다.Furthermore, 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 is classified and tabulated. As a result, the capacity can be reduced.

또, 제2점이 제1상한에 있는 경우에만, 제1점과 제2점을 통과하는 직선과 제2점과 제3점을 통과하는 직선의 각도의 분류와 테이블화를 행한다. 따라서, 3점의 위치의 조합을 줄일 수 있다. 그 결과, 더욱 용량을 적게할 수 있다.Moreover, only when the 2nd point exists in a 1st upper limit, sorting and tabulating the angle of the straight line which passes through a 1st point and a 2nd point, and the straight line which passes through a 2nd point and a 3rd point are performed. Therefore, the combination of three positions can be reduced. As a result, the capacity can be further reduced.

Claims (9)

선을 표시하는 표시 디바이스와,A display device displaying a line, 상기 표시 디바이스를 제어하는 제어부A controller for controlling the display device 를 구비한 표시장치에 있어서,In the display device provided with: 상기 제어부는, 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하고,The controller determines, for a given first point, second point, and third point, a first positional relationship between at least one of the first point and the second point and the third point, 미리 준비된 적어도 하나의 선의 패턴에 있어, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하고,A pattern of one line corresponding to the determined first positional relationship is selected from among patterns of at least one line passing through the first point and the second point in a pattern of at least one line prepared in advance, 상기 선택된 선의 패턴에 따라, 상기 제1점과 상기 제2점을 통과하는 선을 상기 표시 디바이스에 표시하는, 표시장치.And a line passing through the first point and the second point on the display device according to the pattern of the selected line. 제1항에 있어서, 상기 제1위치관계와 상기 선의 패턴과의 대응관계를 나타내는 패턴정보를 유지하는 유지부를 더 구비하고,2. The apparatus according to claim 1, further comprising a holding unit for holding pattern information indicating a correspondence between the first positional relationship and the pattern of the line, 상기 선의 패턴의 선택은, 상기 유지부에 유지되어 있는 상기 패턴정보를 참조하여 행하여지는, 표시장치.The selection of the pattern of the line is performed with reference to the pattern information held in the holding portion. 제1항에 있어서, 상기 제1위치관계는, 상기 제1점과 상기 제2점을 잇는 제1직선과 상기 제2점과 상기 제3점을 잇는 제2직선과의 각도에 따라 결정되는, 표시 장치.The method of claim 1, wherein the first positional relationship is determined according to an angle between a first straight line connecting the first point and the second point and a second straight line connecting the second point and the third point, Display device. 제3항에 있어서, 상기 제어부는, 상기 제1점, 상기 제2점 및 제4점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제4점과의 제2위치관계를 결정하고,The said control part is a said 2nd positional relationship of the said 4th point and at least one of the said 1st point and said 2nd point with respect to the said 1st point, said 2nd point, and a 4th point. Decide, 상기 제어부는, 상기 적어도 하나의 선의 패턴 중에서, 상기 결정된 제2위치관계에 대응하는 하나의 선의 패턴을 선택하고,The control unit selects a pattern of one line corresponding to the determined second positional relationship from among the at least one line pattern, 상기 제2점의 주위에는, 복수의 영역이 할당되고,A plurality of areas are allocated around the second point, 상기 제3점과 상기 제4점은, 상기 복수의 영역 중 같은 영역에 부여되고,The third point and the fourth point are given to the same area among the plurality of areas, 상기 선택된 제1위치관계에 대응하는 하나의 선의 패턴과 상기 선택된 제2위치관계에 대응하는 하나의 선의 패턴은, 동일한, 표시장치.And the pattern of one line corresponding to the selected first positional relationship and the pattern of one line corresponding to the selected second positional relationship are the same. 제1항에 있어서, 상기 제1점은 원점에 부여되고, 상기 제2점은 제1상한에 부여되는, 표시장치.The display device according to claim 1, wherein the first point is given to an origin and the second point is given to a first upper limit. 제1항에 있어서, 상기 제2점의 주위에는, 복수의 영역이 할당되고,The method of claim 1, wherein a plurality of areas are allocated around the second point, 상기 제3점은, 상기 복수의 영역 중 하나에 부여되고,The third point is given to one of the plurality of regions, 상기 복수의 영역 중 하나의 영역과, 상기 하나의 영역과는 다른 영역은, 다른 크기를 가지는, 표시장치.One display area of the plurality of areas and another area different from the one area have different sizes. 제1항에 있어서, 상기 제2점의 주위의 일부에만, 복수의 영역이 할당되고,The plurality of areas according to claim 1, wherein only a part of the periphery of the second point is allocated. 상기 제3점은, 상기 복수의 영역 중 하나에 부여되는, 표시장치.The third point is provided to one of the plurality of areas. 선을 표시하는 표시 디바이스를 구비한 정보표시장치에 표시처리를 실행시키는 프로그램에 있어서,A program for causing display processing to be performed on an information display apparatus having a display device for displaying a line, 상기 표시처리는,The display processing is 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하는 단계와,For a given first point, second point and third point, determining a first positional relationship between at least one of the first point and the second point and the third point, 미리 준비된 적어도 하나의 선의 패턴에 있어서, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 단계와,Selecting a pattern of one line corresponding to the determined first positional relationship among the patterns of at least one line passing through the first point and the second point in the at least one line pattern prepared in advance; 상기 선택된 선의 패턴에 따라, 상기 제1점과 제2점을 통과하는 선을 상기 표시 디바이스에 표시하는 단계를 포함하는, 프로그램.And displaying a line passing through the first point and the second point on the display device according to the pattern of the selected line. 선을 표시하는 표시 디바이스를 구비한 정보표시장치에 의해 독취가능한 기록매체에 있어서,A recording medium readable by an information display apparatus having a display device for displaying a line, 상기 기록매체는, 상기 정보표시장치에 표시처리를 실행시키는 프로그램을 기록하고,The recording medium records a program for executing display processing on the information display apparatus, 상기 표시처리는,The display processing is 주어진 제1점, 제2점 및 제3점에 대해, 상기 제1점 및 상기 제2점 중 적어도 하나와 상기 제3점과의 제1위치관계를 결정하는 단계와,For a given first point, second point and third point, determining a first positional relationship between at least one of the first point and the second point and the third point, 미리 준비된 적어도 하나의 선의 패턴에 있어서, 상기 제1점과 상기 제2점을 통과하는 적어도 하나의 선의 패턴 중에서, 상기 결정된 제1위치관계에 대응하는 하나의 선의 패턴을 선택하는 단계와,Selecting a pattern of one line corresponding to the determined first positional relationship among the patterns of at least one line passing through the first point and the second point in the at least one line pattern prepared in advance; 상기 선택된 선의 패턴에 따라, 상기 제1점과 상기 제2점을 통과하는 선을 상기 표시 디바이스에 표시하는 단계를 포함하는, 기록매체.And displaying a line passing through the first point and the second point on the display device according to the selected line pattern.
KR1020077000567A 2004-07-23 2005-07-21 Display apparatus, program and recording medium KR100866362B1 (en)

Applications Claiming Priority (2)

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

Publications (2)

Publication Number Publication Date
KR20070026795A true KR20070026795A (en) 2007-03-08
KR100866362B1 KR100866362B1 (en) 2008-11-03

Family

ID=35785336

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020077000567A KR100866362B1 (en) 2004-07-23 2005-07-21 Display apparatus, program and recording medium

Country Status (5)

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

Family Cites Families (5)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
JP4611031B2 (en) Handwriting input device and method
JPH03208094A (en) Treatment of outline of symbol image of various sizes and computor display device
KR100677689B1 (en) Character image generating apparatus, character image generating method, display control apparatus, display control method and computer-readable recording medium for recording character image generation program or display control program there on
US6437793B1 (en) System for rapidly performing scan conversion with anti-aliasing upon outline fonts and other graphic elements
CN1702734B (en) Rendering a graphical object when a corresponding outline lacks control points
US7453474B2 (en) Flexibly resizeable vector graphics
US7499055B2 (en) Method of font generation for displaying the thickness of strokes of characters
JP2017003987A (en) Font deformation method by changing dimensions of at least one partition of frame surrounding character
KR20060106594A (en) Character image generating system, storage medium storing character image generating program and method
JP4180043B2 (en) Three-dimensional graphic drawing processing device, image display device, three-dimensional graphic drawing processing method, control program for causing computer to execute the same, and computer-readable recording medium recording the same
US7701467B2 (en) Character display apparatus, character display method, character display program, and recording medium
KR100866362B1 (en) Display apparatus, program and recording medium
CA1200025A (en) Graphic and textual image generator for a raster scan display
US7154511B2 (en) Fast rendering of ink
WO2006051795A1 (en) Processing device, program, and recording medium
JP5114249B2 (en) Display device and display method
KR100782924B1 (en) Display controlling system for controlling font size scalably
JP2006227091A (en) Display apparatus, display method, display program and recording medium
US20170257521A1 (en) Electronic apparatus and display method of electronic apparatus
JP6085197B2 (en) Portable information processing apparatus, display processing method, and display processing program
JP6176099B2 (en) Image processing apparatus and program.
KR100702414B1 (en) Handwriting-input device and method
JP4726087B2 (en) Data processing apparatus, data processing method, electronic information device, control program, and readable recording medium
JPS6132676B2 (en)
JP2014157399A (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121002

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20131001

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20141017

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20151016

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee