JPWO2007026898A1 - Character graphic display device, character graphic display method, character graphic display program, and recording medium - Google Patents

Character graphic display device, character graphic display method, character graphic display program, and recording medium Download PDF

Info

Publication number
JPWO2007026898A1
JPWO2007026898A1 JP2007533369A JP2007533369A JPWO2007026898A1 JP WO2007026898 A1 JPWO2007026898 A1 JP WO2007026898A1 JP 2007533369 A JP2007533369 A JP 2007533369A JP 2007533369 A JP2007533369 A JP 2007533369A JP WO2007026898 A1 JPWO2007026898 A1 JP WO2007026898A1
Authority
JP
Japan
Prior art keywords
character
stroke
dot pattern
main dot
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007533369A
Other languages
Japanese (ja)
Other versions
JP4761477B2 (en
Inventor
瑞 作田
瑞 作田
安久 中村
安久 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2007533369A priority Critical patent/JP4761477B2/en
Publication of JPWO2007026898A1 publication Critical patent/JPWO2007026898A1/en
Application granted granted Critical
Publication of JP4761477B2 publication Critical patent/JP4761477B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • G09G5/246Generation of individual character patterns of ideographic or arabic-like characters
    • 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
    • G09G5/28Generation of individual character patterns for enhancement of character form, e.g. smoothing
    • 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/20Function-generator circuits, e.g. circle generators line or curve smoothing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

文字図形表示装置は、文字または図形を構成する線が斜め方向に傾いている場合にも、横線および縦線と同様の書体で表示されていると認識できるように、文字または図形を高品位に表示する。文字図形表示装置は、文字または図形を構成する線の太さと、ストロークに対応する複数のサンプル点のうち互いに隣接する2つのサンプル点の座標データとに基づいて、メインドットパターンの形状を決定するメインドットパターン形状決定手段と、決定された形状をそれぞれ有する複数のメインドットパターンを互いに重複しないように配置することによって、文字または図形を表示するための表示データを生成する表示データ生成手段とを備えている。The character / graphic display device makes it possible to recognize that a character or graphic is displayed in the same typeface as the horizontal and vertical lines even when the lines constituting the character or graphic are tilted in an oblique direction. indicate. The character graphic display device determines the shape of the main dot pattern based on the thickness of a line constituting the character or graphic and the coordinate data of two sample points adjacent to each other among a plurality of sample points corresponding to the stroke. Main dot pattern shape determining means, and display data generating means for generating display data for displaying characters or figures by arranging a plurality of main dot patterns each having the determined shape so as not to overlap each other I have.

Description

本発明は、液晶表示デバイス等のような表示デバイスを有し、表示デバイスの表示画面に文字または図形を表示することができるパーソナルコンピュータ、ワードプロセッサ等の文字図形表示装置、その文字図形表示装置の表示画面に文字または図形を表示させるための文字図形表示方法、その文字図形表示方法の各ステップをコンピュータに実行させるための文字図形表示プログラム、その文字図形表示プログラムが記録されたコンピュータ読み取り可能な記録媒体に関する。   The present invention has a display device such as a liquid crystal display device and the like, and can display characters or graphics on the display screen of the display device. Character graphic display device such as a word processor, and display of the character graphic display device Character graphic display method for displaying characters or figures on a screen, character graphic display program for causing a computer to execute each step of the character graphic display method, and computer-readable recording medium on which the character graphic display program is recorded About.

パーソナルコンピュータ、携帯電話等の文字表示装置に設けられた表示デバイスは、複数の画素が設けられた表示画面を備えており、各画素の輝度を制御することによって、表示画面に文字、図形等の画像が表示される。このような表示デバイスにおいて、表示画面に文字を表示する場合には、表示される文字を構成する画素を、文字を構成する線の幅(太さ)を任意の画素数として選択することによって、任意のサイズで文字を表示することができる。   A display device provided in a character display device such as a personal computer or a mobile phone includes a display screen provided with a plurality of pixels. By controlling the luminance of each pixel, characters, graphics, etc. are displayed on the display screen. An image is displayed. In such a display device, when displaying characters on the display screen, by selecting the pixels constituting the displayed characters as the width (thickness) of the lines constituting the characters as an arbitrary number of pixels, Characters can be displayed in any size.

表示画面に文字を表示する場合には、例えば、文字の骨格(芯)形状を定義する骨格データに基づいて、表示画面における画素が選択される。骨格データとは、文字の骨格(芯)形状を構成する全ての線分(ストローク)に関する座標データであり、所定の骨格平面座標において各ストロークの形状が特定されるように各ストローク上に設定された複数のサンプル点の座標データによって構成されている。そして、表示される各文字毎に、骨格データに基づいて各文字の骨格形状を構成する全てのストロークのサンプル点の座標値をスケーリングして、表示画面における座標系(実ピクセル座標系)において各サンプル点に対応する画素をそれぞれ求めて、表示サイズに基づいて設定された所定の線幅になるように、その画素の周辺の画素の輝度値を設定する。これにより、表示画面に所定サイズで文字を表示することができる。   When displaying a character on the display screen, for example, a pixel on the display screen is selected based on skeleton data that defines the skeleton (core) shape of the character. Skeletal data is coordinate data relating to all line segments (strokes) constituting the skeleton (core) shape of a character, and is set on each stroke so that the shape of each stroke is specified in predetermined skeleton plane coordinates. The coordinate data of a plurality of sample points. Then, for each character to be displayed, the coordinate values of the sample points of all the strokes constituting the skeleton shape of each character are scaled based on the skeleton data, and each coordinate value in the display screen (real pixel coordinate system) The pixels corresponding to the sample points are obtained, and the luminance values of the pixels around the pixels are set so as to have a predetermined line width set based on the display size. Thereby, characters can be displayed on the display screen in a predetermined size.

このような文字表示方法によれば、任意のサイズで文字を表示することができるために、表示画面のサイズに対応した表示サイズで文字を表示することができる。従って、例えば表示画面が大きい場合にも、表示画面のサイズに対応させて表示される文字を構成する各線の幅を太く表示して、表示文字のサイズを大きくすることができる。   According to such a character display method, since characters can be displayed in an arbitrary size, characters can be displayed in a display size corresponding to the size of the display screen. Therefore, for example, even when the display screen is large, the width of each line constituting the character displayed in correspondence with the size of the display screen can be displayed thick to increase the size of the display character.

また、このように文字の線幅を太く表示する場合には、表示される文字の視認性を向上させるために、表示文字を構成する骨格画素のみならず、その周辺の画素の輝度値を制御する処理も行われており、これにより、表示文字を構成する線を滑らかに、しかも均整のとれた線幅に表示することができる。しかしながら、このような処理を実行する場合には、CPU等の演算制御装置に対する負荷が大きくなるという問題がある。このために、例えば、携帯電話機のような各種機能が設けられている機器の場合には、演算制御装置に対する負荷をできるだけ低減する必要があり、上述したような処理を効率的に行うことが可能なアルゴリズムが要求されている。   In addition, when the line width of the character is displayed thickly in this way, in order to improve the visibility of the displayed character, the brightness value of not only the skeleton pixels constituting the display character but also the surrounding pixels is controlled. Thus, the lines constituting the display characters can be displayed smoothly and with a well-balanced line width. However, when such a process is executed, there is a problem that a load on an arithmetic control device such as a CPU increases. For this reason, for example, in the case of a device having various functions such as a mobile phone, it is necessary to reduce the load on the arithmetic and control unit as much as possible, and the above-described processing can be performed efficiently. A simple algorithm is required.

特許文献1(特開2000−267644公報)には、表示文字の骨格画素の周辺画素の輝度値を効率よく制御する方法が開示されている。この特許文献1に開示された方法では、異なる解像度のそれぞれに対して設定された複数のフォントデータを処理装置に記憶し、記憶されたフォントデータの中から2種類のフォントデータを選択し、選択された2種類のフォントデータから所望サイズのフォントデータを補間処理で求めることによって、ストロークの間隔を調整して、中間サイズ用フォントデータを生成し、生成された中間サイズ用フォントデータを多階調データに変換するようになっている。また、ストロークデータから任意の線幅のビットマップデータを生成する際に、ストロークの始点に対して、表示される文字の線幅に対応する一辺が所定画素数の正方形を構成する画素を設定し、以降は、設定された正方形を構成する画素と、ストロークのサンプル点との位置関係によって、表示に必要な画素を設定することによって、各サンプル点に対してそれぞれ設定される正方形を構成する画素が重複して設定されないようにすることによって、処理効率を向上させている。
特開2000−267644公報
Patent Document 1 (Japanese Patent Laid-Open No. 2000-267644) discloses a method for efficiently controlling luminance values of peripheral pixels of a skeleton pixel of a display character. In the method disclosed in Patent Document 1, a plurality of font data set for each of different resolutions is stored in a processing device, and two types of font data are selected from the stored font data and selected. By calculating the desired size font data from the two types of font data by interpolation processing, the stroke interval is adjusted to generate intermediate size font data, and the generated intermediate size font data is multi-tone It is designed to convert to data. In addition, when generating bitmap data with an arbitrary line width from stroke data, pixels that form a square with a predetermined number of pixels on one side corresponding to the line width of the displayed character are set for the start point of the stroke. In the following, by setting the pixels necessary for display according to the positional relationship between the pixels forming the set square and the sample points of the stroke, the pixels forming the square set for each sample point respectively By preventing duplicates from being set, the processing efficiency is improved.
JP 2000-267644 A

しかしながら、上記特許文献1に開示されている従来技術では、ストロークの傾きが変化しても、設定される画素によって形成される正方形の形状は変化せずに一定になっている。このために、水平方向および垂直方向に沿った線分(横線および縦線)におけるそれぞれの端点では、コーナー部が水平方向および垂直方向にそれぞれ沿った辺によって直角に形成されことによって、ゴシック体のように各端点が明確に表示されることになるが、斜め方向の線分については、それぞれの端点において、同様に、コーナー部が水平方向および垂直方向にそれぞれ沿った辺によって直角に形成されることによって、斜め方向に対して直角になっている各コーナー部分が、横線および縦線におけるそれぞれの端点のコーナー部よりも強調されて表示されることになり、文字を構成するストローク(線分)の傾き角度によっては、表示される文字の書体が横線および縦線の場合と比較して大きく変化していると認識されるおそれがある。   However, in the conventional technique disclosed in Patent Document 1, the shape of the square formed by the set pixels remains constant even when the stroke inclination changes. For this reason, at each end point in a line segment (horizontal line and vertical line) along the horizontal direction and the vertical direction, corner portions are formed at right angles by sides along the horizontal direction and the vertical direction, respectively. Each end point is clearly displayed as described above, but for the diagonal line segment, similarly, at each end point, the corner portion is formed at right angles by sides along the horizontal direction and the vertical direction, respectively. As a result, the corners that are perpendicular to the diagonal direction are displayed more emphasized than the corners of the end points of the horizontal and vertical lines, and the strokes (line segments) that make up the character Depending on the angle of inclination, it may be recognized that the typeface of the displayed character has changed significantly compared to the case of horizontal and vertical lines. .

さらに、前記特許文献1に開示されている従来技術では、ストロークの傾き角度の大きさにかかわらず、同一サイズの正方形が描画されるが、表示される線幅の太さは傾き角度によって変化するために、文字の線幅にばらつきが生じるという問題もある。   Furthermore, in the conventional technique disclosed in Patent Document 1, a square of the same size is drawn regardless of the magnitude of the stroke inclination angle, but the thickness of the displayed line width varies depending on the inclination angle. Therefore, there is a problem that the line width of the character varies.

本発明は、上記従来の問題を解決するものであり、その目的は、文字または図形を構成する線分が斜め方向に傾いている場合にも、横線および縦線と同様の書体で表示されていると認識できるように、文字または図形を高品位に表示することが可能な文字図形表示装置、文字図形表示方法、文字図形表示プログラムおよびその文字図形表示プログラムが記録された記録媒体を提供することにある。   The present invention solves the above-described conventional problems, and its purpose is to display characters in the same typeface as horizontal and vertical lines even when the line segments constituting characters or figures are inclined in an oblique direction. To provide a character graphic display device, a character graphic display method, a character graphic display program, and a recording medium on which the character graphic display program is recorded so that the character or graphic can be displayed with high quality It is in.

本発明の文字図形表示装置は、文字または図形を表示画面に表示する文字図形表示装置であって、表示されるべき文字または図形の骨格を表す骨格データを取得する骨格データ取得手段であって、該骨格データは、該文字または該図形のストロークを表すストロークデータを含み、該ストロークデータは、該ストロークに対応する複数のサンプル点の座標データを含む、骨格データ取得手段と、該文字または該図形を構成する線の太さと、該ストロークに対応する該複数のサンプル点のうち互いに隣接する2つのサンプル点の座標データとに基づいて、メインドットパターンの形状を決定するメインドットパターン形状決定手段と、該決定された形状をそれぞれ有する複数のメインドットパターンを互いに重複しないように配置することによって、該文字または該図形を表示するための表示データを生成する表示データ生成手段とを備えている。   The character graphic display device of the present invention is a character graphic display device for displaying a character or a graphic on a display screen, and is a skeleton data acquisition means for acquiring skeleton data representing the skeleton of the character or graphic to be displayed, The skeleton data includes stroke data representing strokes of the character or the figure, and the stroke data includes skeleton data acquisition means including coordinate data of a plurality of sample points corresponding to the stroke, the character or the figure Main dot pattern shape determining means for determining the shape of the main dot pattern on the basis of the thickness of the line constituting the stroke and the coordinate data of two sample points adjacent to each other among the plurality of sample points corresponding to the stroke; The plurality of main dot patterns each having the determined shape are arranged so as not to overlap each other. Te, and a display data generating means for generating display data for displaying the character or figure shape.

好ましくは、前記表示データ生成手段は、前記複数のメインドットパターンによって形成される段差を埋めるように少なくとも1つのサブドットパターンを配置することによって、前記表示データを生成する。   Preferably, the display data generation unit generates the display data by arranging at least one sub-dot pattern so as to fill a step formed by the plurality of main dot patterns.

好ましくは、前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線の傾きに応じて、前記メインドットパターンの形状を正方形および菱形の一方に決定する。   Preferably, the main dot pattern shape determining means determines the shape of the main dot pattern as one of a square and a rhombus according to the slope of a straight line connecting the two sample points.

好ましくは、前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線が斜め線であるか否かを判定し、該2つのサンプル点を結ぶ直線が斜め線であると判定された場合には、前記メインドットパターンの形状を菱形に決定し、該2つのサンプル点を結ぶ直線が斜め線でないと判定された場合には、前記メインドットパターンの形状を正方形に決定する。   Preferably, the main dot pattern shape determining means determines whether or not the straight line connecting the two sample points is an oblique line, and it is determined that the straight line connecting the two sample points is an oblique line In this case, the shape of the main dot pattern is determined to be a rhombus, and when it is determined that the straight line connecting the two sample points is not an oblique line, the shape of the main dot pattern is determined to be a square.

好ましくは、前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線の傾きθが、0°≦θ<25°、65°≦θ<113°、155°≦θ<205°、245°≦θ<295°または335°≦θ<360°の場合には、該2つのサンプル点を結ぶ直線が斜め線でないと判定し、それ以外の場合には、該2つのサンプル点を結ぶ直線が斜め線であると判定する。   Preferably, the main dot pattern shape determining means has an inclination θ of a straight line connecting the two sample points of 0 ° ≦ θ <25 °, 65 ° ≦ θ <113 °, 155 ° ≦ θ <205 °, 245 If ° ≦ θ <295 ° or 335 ° ≦ θ <360 °, it is determined that the straight line connecting the two sample points is not an oblique line, and otherwise, the straight line connecting the two sample points Is an oblique line.

好ましくは、前記メインドットパターン形状決定手段は、前記文字または前記図形を構成する線の太さに応じて、前記メインドットパターンの各辺の画素数を決定する。   Preferably, the main dot pattern shape determining means determines the number of pixels on each side of the main dot pattern according to the thickness of a line constituting the character or the graphic.

好ましくは、前記文字または前記図形を構成する線の太さは、該文字または該図形のサイズ、または、該文字または該図形を構成する線の本数に応じて設定される。   Preferably, the thickness of the line constituting the character or the figure is set according to the size of the character or the figure or the number of lines constituting the character or the figure.

好ましくは、前記表示データ生成手段は、前記表示画面がスクロール中である場合、または、ストロークの傾きが所定の方向に近い場合には、前記サブドットパターンを配置しない。   Preferably, the display data generation unit does not arrange the sub-dot pattern when the display screen is being scrolled or when the inclination of the stroke is close to a predetermined direction.

好ましくは、前記メインドットパターン形状決定手段が、前記メインドットパターンの形状を正方形に決定した場合において、前記表示データ生成手段は、前記2つのサンプル点のうちの一方のサンプル点に対応する前記表示画面における画素を中心として、各辺が所定の画素数の正方形のメインドットパターンを配置し、前記表示画面において前記2つのサンプル点を結ぶ直線に対応する画素上で、該配置されたメインドットパターンの中心画素からX座標値またはY座標値の差が該所定の画素数である画素を中心として、各辺が該所定の画素数の正方形のメインドットパターンを配置することによって、前記表示データを生成する。   Preferably, when the main dot pattern shape determining unit determines the shape of the main dot pattern to be square, the display data generating unit is configured to display the display corresponding to one sample point of the two sample points. A square main dot pattern having a predetermined number of pixels around each pixel on the screen is arranged, and the arranged main dot pattern on the pixel corresponding to the straight line connecting the two sample points on the display screen By placing a square main dot pattern having a predetermined number of pixels on each side with a pixel whose X coordinate value or Y coordinate value is the predetermined number of pixels from the center pixel of Generate.

好ましくは、前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの左右にそれぞれ段差部が形成されている場合には、該2つのメインドットパターンのそれぞれの中心画素のY座標の差をΔYとして、互いに直交する2辺の長さが│ΔY│−1である直角二等辺三角形に含まれる全ての画素をサブドットパターンとして設定し、前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの上下にそれぞれ段差部が形成されている場合には、該2つのメインドットパターンのそれぞれの中心画素のX座標の差をΔXとして、互いに直交する2辺の長さが│ΔX│−1である直角二等辺三角形に含まれる全ての画素をサブドットパターンとして設定する。   Preferably, when the step portions are formed on the left and right sides of the two main dot patterns arranged adjacent to each other, the display data generation unit is configured to display Y of each central pixel of the two main dot patterns. All the pixels included in a right-angled isosceles triangle whose length of two sides orthogonal to each other is | ΔY | −1 are set as a sub-dot pattern, where the difference in coordinates is ΔY, and the display data generating means is adjacent to each other When two step portions are formed above and below the two main dot patterns, the two sides perpendicular to each other with ΔX being the difference in the X coordinate of the center pixel of each of the two main dot patterns All pixels included in a right isosceles triangle whose length is | ΔX | −1 are set as sub-dot patterns.

好ましくは、前記メインドットパターン形状決定手段が、前記メインドットパターンの形状を菱形に決定した場合において、前記表示データ生成手段は、前記文字または前記図形を構成する線の太さをWとして、画素数Wに(2)1/2を乗じた値に最も近い奇数を画素数W’として求め、2本の対角線の長さがそれぞれ前記画素数W’である菱形形状のメインドットパターンを配置することによって、前記表示データを生成する。Preferably, when the main dot pattern shape determining unit determines the shape of the main dot pattern to be a rhombus, the display data generating unit sets the thickness of a line constituting the character or the graphic as W, The odd number closest to the value obtained by multiplying the number W by (2) 1/2 is obtained as the number of pixels W ′, and a rhombus-shaped main dot pattern in which the lengths of two diagonal lines are each the number of pixels W ′ is arranged. Thus, the display data is generated.

好ましくは、前記表示データ生成手段は、前記表示画面において前記2つのサンプル点を結ぶ直線に対応する画素上で、前記配置されたメインドットパターンの中心画素とのX座標値の差の絶対値とY座標値の差の絶対値との和が前記画素数W’以上となる画素を中心として、前記菱形形状のメインドットパターンを配置する。   Preferably, the display data generation unit is configured to calculate an absolute value of a difference in X coordinate values from a center pixel of the arranged main dot pattern on a pixel corresponding to a straight line connecting the two sample points on the display screen. The rhombus-shaped main dot pattern is arranged centering on a pixel whose sum of absolute difference of Y coordinate values is equal to or greater than the number of pixels W ′.

好ましくは、前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの対応する辺に沿って、該2つのメインドットパターンが互いにずれることにより段差が形成されている場合には、該2つのメインドットパターンの対応する辺における両側において最も外側に位置する各端部の画素のX座標値を、それぞれ、X1およびX2(但しX1<X2)として、X座標値がX1以上X2以下の範囲で、それぞれの段差部内に位置する全ての画素をサブドットパターンとして設定する。   Preferably, the display data generating means is configured such that when the two main dot patterns are displaced from each other along the corresponding sides of the two main dot patterns arranged adjacent to each other, a step is formed. The X coordinate values of the pixels at the outermost positions on both sides of the corresponding sides of the two main dot patterns are X1 and X2 (where X1 <X2), respectively, and the X coordinate value is X1 or more and X2 In the following range, all the pixels located in each stepped portion are set as sub-dot patterns.

好ましくは、前記表示データ生成手段は、前記ストロークの終点が他のストロークの始点と重なる場合には、該ストロークの終点および該他のストロークの始点の位置に合成パターンを配置することによって、前記表示データを生成し、該合成パターンは、該ストロークの終点に配置されるべきメインドットパターンと該他のストロークの始点に配置されるべきメインドットパターンとをあらかじめ合成したものである。   Preferably, when the end point of the stroke overlaps with the start point of another stroke, the display data generating means arranges the display by arranging a composite pattern at the position of the end point of the stroke and the start point of the other stroke. Data is generated, and the composite pattern is obtained by previously synthesizing the main dot pattern to be arranged at the end point of the stroke and the main dot pattern to be arranged at the start point of the other stroke.

本発明の文字図形表示方法は、文字または図形を表示画面に表示する表示する文字図形表示方法であって、表示されるべき文字または図形の骨格を表す骨格データを取得するステップであって、該骨格データは、該文字または該図形のストロークを表すストロークデータを含み、該ストロークデータは、該ストロークに対応する複数のサンプル点の座標データを含む、ステップと、該文字または該図形を構成する線の太さと、該ストロークに対応する該複数のサンプル点のうち互いに隣接する2つのサンプル点の座標データとに基づいて、メインドットパターンの形状を決定するステップと、該決定された形状をそれぞれ有する複数のメインドットパターンを互いに重複しないように配置することによって、該文字または該図形を表示するための表示データを生成するステップとを包含する。   The character graphic display method of the present invention is a character graphic display method for displaying a character or graphic on a display screen, and is a step of acquiring skeleton data representing the skeleton of the character or graphic to be displayed, The skeleton data includes stroke data representing strokes of the character or the figure, and the stroke data includes coordinate data of a plurality of sample points corresponding to the stroke, and lines constituting the character or the figure And determining the shape of the main dot pattern based on the thickness of each of the sample points and the coordinate data of two sample points adjacent to each other among the plurality of sample points corresponding to the stroke, and the determined shape, respectively. To display the character or the figure by arranging a plurality of main dot patterns so as not to overlap each other Comprising the steps of generating the display data.

また、本発明は、前記文字図形表示方法の各ステップをコンピュータによって実行させるための文字図形表示プログラムである。   The present invention is a character graphic display program for causing a computer to execute each step of the character graphic display method.

また、本発明は、前記文字図形表示プログラムが記録されたコンピュータ読み取り可能な記録媒体である。   Further, the present invention is a computer-readable recording medium on which the character graphic display program is recorded.

本発明によれば、文字または図形を構成する線の太さに応じてストローク上にメインドットパターンを配置するとともに、各メインドットパターンの間にメインドットパターンの位置関係に基づいて形状が決定されるサブドットパターンを配置することによって、任意の太さのストロークを、ストロークの傾きに適した太さおよび端点を有するように表示することができ、文字の視認性を向上させることが可能となる。さらに、メインドットパターンおよびサブドットパターンを互いに重ならないように配置することによって、冗長な処理を回避して、高速に文字表示を行うことが可能となる。さらに、画面スクロール中には、サブドットパターンを配置せず、メインドットパターンによって文字のおおまかな形状のみを設定することにより、高速に文字表示を行うことが可能となる。   According to the present invention, the main dot pattern is arranged on the stroke according to the thickness of the line constituting the character or figure, and the shape is determined based on the positional relationship of the main dot pattern between the main dot patterns. By arranging the sub-dot pattern, it is possible to display a stroke having an arbitrary thickness so as to have a thickness and an end point suitable for the inclination of the stroke, thereby improving the visibility of characters. . Furthermore, by disposing the main dot pattern and the sub dot pattern so as not to overlap each other, redundant processing can be avoided and character display can be performed at high speed. Furthermore, during the screen scrolling, it is possible to display characters at high speed by setting only the rough shape of the characters according to the main dot pattern without arranging the sub-dot pattern.

従って、本発明によれば、携帯電話機などのように、処理速度が低い機器に文字表示装置が搭載される場合でも、負荷を低くして、高速に、高品位な文字表示を行うことが可能となる。   Therefore, according to the present invention, even when a character display device is mounted on a device with a low processing speed such as a mobile phone, it is possible to display a high-quality character at high speed with a low load. It becomes.

図1は、本発明の実施形態に係る文字表示装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a character display device according to an embodiment of the present invention. 図2は、図1の文字表示装置における骨格データの構造例を示す図である。FIG. 2 is a diagram illustrating a structure example of skeleton data in the character display device of FIG. 図3は、漢字「木」の骨格形状を表す骨格データの一例を示す図である。FIG. 3 is a diagram illustrating an example of skeleton data representing the skeleton shape of the Chinese character “tree”. 図4は、図3の漢字「木」の骨格データの骨格を座標平面上に表示した例を示す図である。FIG. 4 is a diagram illustrating an example in which the skeleton of the skeleton data of the Chinese character “tree” in FIG. 3 is displayed on the coordinate plane. 図5は、本発明の実施形態に係る文字表示プログラムによる処理手順について説明するためのフローチャートである。FIG. 5 is a flowchart for explaining a processing procedure by the character display program according to the embodiment of the present invention. 図6は、図5のステップS1050の処理手順について説明するためのフローチャートである。FIG. 6 is a flowchart for explaining the processing procedure of step S1050 of FIG. 図7は、ストロークデータの一例を示す図である。FIG. 7 is a diagram illustrating an example of stroke data. 図8は、図7の骨格データ構造におけるストロークAから、実ピクセル座標系における表示データ(画素データ)を生成処理する場合の説明図である。FIG. 8 is an explanatory diagram in the case where display data (pixel data) in the real pixel coordinate system is generated from the stroke A in the skeleton data structure of FIG. 図9は、図7の骨格データ構造におけるストロークBから、実ピクセル座標系における表示データを生成処理する場合の説明図である。FIG. 9 is an explanatory diagram for generating display data in the real pixel coordinate system from the stroke B in the skeleton data structure of FIG. 図10は、図10は、図7の骨格データ構造におけるストロークCから、実ピクセル座標系における表示データを生成処理する場合の説明図である。FIG. 10 is an explanatory diagram when display data in the real pixel coordinate system is generated from the stroke C in the skeleton data structure of FIG. 図11は、図6のステップS2030の処理手順について説明するためのフローチャートである。FIG. 11 is a flowchart for explaining the processing procedure of step S2030 of FIG. 図12は、図7および図8に示されるストロークAを、表示太さを示すドット数Wが「9」の場合において、ストロークAの始点Psと終点Peとを結ぶ直線(ストローク)上に位置するサンプル点から最初に選択された座標位置P2の画素と、始点Psに対応する画素とをそれぞれ中心として、一辺が9ドットの正方形のメインドットパターンによって表示した状態を示す図である。FIG. 12 shows the position of the stroke A shown in FIGS. 7 and 8 on a straight line (stroke) connecting the start point Ps and the end point Pe of the stroke A when the number of dots W indicating the display thickness is “9”. It is a figure which shows the state displayed by the main dot pattern of a 9-dot square centering on the pixel of the coordinate position P2 initially selected from the sample point to perform, and the pixel corresponding to the starting point Ps, respectively. 図13は、図7のストロークAを、9ドットの表示太さで表示する場合に生成される表示データに基づいて表示デバイス2を制御して得られる表示状態を示す図である。FIG. 13 is a diagram illustrating a display state obtained by controlling the display device 2 based on display data generated when the stroke A of FIG. 7 is displayed with a display thickness of 9 dots. 図14は、図6のステップS2040の処理手順について説明するためのフローチャートである。FIG. 14 is a flowchart for explaining the processing procedure of step S2040 of FIG. 図15は、図7のストロークBを、太さWを9ドットとして処理する場合における、座標データ1のサンプル点(始点Ps)に対応する座標位置を中心として設定された菱形形状のメインドットパターンをそれぞれ示す図である。FIG. 15 shows a rhombus-shaped main dot pattern set around the coordinate position corresponding to the sample point (start point Ps) of coordinate data 1 when the stroke B in FIG. 7 is processed with a thickness W of 9 dots. FIG. 図16は、図7のストロークCを、太さWを9ドットとして処理する場合における、座標データ1のサンプル点(始点Ps)に対応する座標位置を中心として設定された菱形形状のメインドットパターンをそれぞれ示す図である。FIG. 16 is a rhombus-shaped main dot pattern set around the coordinate position corresponding to the sample point (start point Ps) of coordinate data 1 when the stroke C in FIG. 7 is processed with a thickness W of 9 dots. FIG. 図17は、図7に示されたストロークBを、9ドットの表示太さで表示する場合に生成される表示データに基づいて表示デバイス2を制御して得られる表示状態をそれぞれ示す図である。FIG. 17 is a diagram illustrating display states obtained by controlling the display device 2 based on display data generated when the stroke B illustrated in FIG. 7 is displayed with a display thickness of 9 dots. . 図18は、図7に示されたストロークCを、9ドットの表示太さで表示する場合に生成される表示データに基づいて表示デバイス2を制御して得られる表示状態をそれぞれ示す図である。FIG. 18 is a diagram showing display states obtained by controlling the display device 2 based on display data generated when the stroke C shown in FIG. 7 is displayed with a display thickness of 9 dots. . 図19は、2本のストロークA、Cによる折れ線を描画する様子を表す図である。FIG. 19 is a diagram illustrating a state in which a polygonal line with two strokes A and C is drawn. 図20は、正方形と菱形とを合成したパターンを表す図である。FIG. 20 is a diagram illustrating a pattern in which squares and rhombuses are combined. 図21は、図11におけるステップS3010の描画処理の詳細を説明する図である。FIG. 21 is a diagram for explaining the details of the drawing process in step S3010 in FIG. 図22は、図11におけるステップS3110の描画処理の詳細を説明する図である。FIG. 22 is a diagram for explaining the details of the drawing process in step S3110 in FIG. 図23は、図14におけるステップS4020の描画処理の詳細を説明する図である。FIG. 23 is a diagram for explaining the details of the drawing process in step S4020 in FIG. 図24は、図14におけるステップS4110の描画処理の詳細を説明する図である。FIG. 24 is a diagram for explaining the details of the drawing process in step S4110 in FIG.

符号の説明Explanation of symbols

1 文字表示装置
2 表示デバイス
3 制御部
4 CPU
5 主メモリ
6 入力デバイス
7 補助記憶装置
8 文字表示プログラム
9 骨格データ
1 Character display device 2 Display device 3 Control unit 4 CPU
5 Main memory 6 Input device 7 Auxiliary storage device 8 Character display program 9 Skeletal data

以下に、本発明の実施形態について、図面を参照しながら説明する。以下の説明では、本発明の実施形態として文字表示装置を例示して説明するが、これは、本発明が、文字のみを表示することが可能な文字表示装置に限定されることを意図したものではない。文字および図形は同様に扱えることが自明であることから、文字または図形(すなわち、文字のみ、または、図形のみ、または、文字および図形の両方)を表示することが可能な文字図形表示装置に本発明を適用することができることもまた自明である。このような文字図形表示装置もまた本発明の範囲内である。   Embodiments of the present invention will be described below with reference to the drawings. In the following description, a character display device is illustrated and described as an embodiment of the present invention. However, this is intended to limit the present invention to a character display device capable of displaying only characters. is not. Since it is obvious that characters and figures can be handled in the same manner, the present invention is applied to a character graphic display device capable of displaying characters or figures (that is, only letters, only figures, or both letters and figures). It is also obvious that the invention can be applied. Such a character graphic display device is also within the scope of the present invention.

図1は、本発明の文字表示装置の実施形態の一例の構成を示すブロック図である。この文字表示装置1は、例えば、パーソナルコンピュータであり、文字等の所定の画像がカラー表示可能な表示画面を有する表示デバイス2と、表示デバイス2の表示画面に文字等の所定の画像が表示されるように表示デバイス2を制御する制御部3とを備えている。制御部3は、CPU4と主メモリ5とを有しており、主メモリ5に、表示デバイス2と、入力デバイス6と、補助記憶装置7とがそれぞれ接続されている。   FIG. 1 is a block diagram showing a configuration of an example of an embodiment of a character display device of the present invention. The character display device 1 is, for example, a personal computer, and a display device 2 having a display screen capable of displaying a predetermined image such as a character in color, and a predetermined image such as a character displayed on the display screen of the display device 2. And a control unit 3 that controls the display device 2. The control unit 3 includes a CPU 4 and a main memory 5, and a display device 2, an input device 6, and an auxiliary storage device 7 are connected to the main memory 5.

表示デバイス2の表示画面は、複数の正方形の画素(ピクセル)がマトリクス状に設けられており、制御部3が、各画素の輝度値をそれぞれ独立して制御することによって、表示画面に文字等が表示される。   The display screen of the display device 2 is provided with a plurality of square pixels (pixels) in a matrix, and the control unit 3 controls the luminance value of each pixel independently, whereby characters or the like are displayed on the display screen. Is displayed.

なお、表示デバイス2が一般的なカラー液晶表示デバイスである場合、1つの画素に対して、赤色、青色および緑色にそれぞれ発光する3つのサブピクセルが割り当てられる。そして、各サブピクセルの明るさの度合いを表す輝度値を、制御部3によって制御することにより、各画素のそれぞれの色が制御され、文字等がカラー表示される。   When the display device 2 is a general color liquid crystal display device, three sub-pixels that emit red, blue, and green light are assigned to one pixel. Then, by controlling the luminance value indicating the brightness level of each sub-pixel by the control unit 3, the color of each pixel is controlled, and characters and the like are displayed in color.

補助記憶装置7には、制御部3によって表示デバイス2に文字の表示動作を実行させる文字表示プログラム8と、表示デバイス2に表示される全ての文字に対して、それぞれの骨格形状を定義する骨格データとが記憶されている。骨格データとは、文字の骨格(芯)形状を構成する全ての線分(ストローク)に関するデータであり、表示デバイス2おいて表示可能な全ての文字について、各文字毎にそれぞれの骨格データが設定されている。   The auxiliary storage device 7 includes a character display program 8 for causing the display device 2 to perform a character display operation by the control unit 3, and a skeleton that defines each skeleton shape for all characters displayed on the display device 2. Data is stored. Skeletal data is data related to all the line segments (strokes) that make up the skeleton (core) shape of the character. For every character that can be displayed on the display device 2, the skeleton data is set for each character. Has been.

制御部3に設けられたCPU4は、文字表示装置1の全体を監視して制御するとともに、補助記憶装置7に格納された文字表示プログラム8を、主メモリ5に格納して、その文字表示プログラム8を実行することによって、表示デバイス2の表示画面に、画像としての文字を表示する。   The CPU 4 provided in the control unit 3 monitors and controls the entire character display device 1, and stores the character display program 8 stored in the auxiliary storage device 7 in the main memory 5, and the character display program 8 is executed, characters as images are displayed on the display screen of the display device 2.

制御部3に設けられた主メモリ5は、入力デバイス6から入力されるデータ、表示デバイス2に文字を表示するための骨格データ、文字表示プログラム8を実行するために必要な文字表示プログラム等を一時的に格納する。主メモリ5は、CPU4によってアクセスされる。   The main memory 5 provided in the control unit 3 stores data input from the input device 6, skeleton data for displaying characters on the display device 2, a character display program necessary for executing the character display program 8, and the like. Store temporarily. The main memory 5 is accessed by the CPU 4.

CPU4は、補助記憶装置7に格納された文字表示プログラム8を主メモリ5に格納して、入力デバイス6から入力される文字情報に基づいて、主メモリ5に格納された文字表示プログラム8を実行することにより、文字パターン(画素データ)を生成する。生成される文字パターンは、入力デバイス6から入力された文字情報に基づいて、表示デバイス2の表示画面上に設けられた所定個数の画素のそれぞれに対して輝度値を設定したものである。生成された文字パターンは、主メモリ5に一旦格納された後、表示デバイス2に出力される。文字パターンが表示デバイス2に出力されるタイミングは、CPU4によって制御される。   The CPU 4 stores the character display program 8 stored in the auxiliary storage device 7 in the main memory 5 and executes the character display program 8 stored in the main memory 5 based on the character information input from the input device 6. By doing so, a character pattern (pixel data) is generated. The generated character pattern is obtained by setting a luminance value for each of a predetermined number of pixels provided on the display screen of the display device 2 based on character information input from the input device 6. The generated character pattern is temporarily stored in the main memory 5 and then output to the display device 2. The timing at which the character pattern is output to the display device 2 is controlled by the CPU 4.

入力デバイス6にて入力される文字情報には、例えば、文字を識別する文字コード、文字の大きさを示す文字サイズ等が含まれる。入力デバイス6としては、文字コード、文字の大きさ等を入力することが可能な任意のタイプの入力デバイスを使用することができる。例えば、キーボード、マウス、ペン入力装置等が、入力デバイス6として好適に使用される。   The character information input by the input device 6 includes, for example, a character code for identifying the character, a character size indicating the character size, and the like. As the input device 6, any type of input device capable of inputting a character code, a character size, and the like can be used. For example, a keyboard, a mouse, a pen input device, and the like are preferably used as the input device 6.

補助記憶装置7としては、文字表示プログラム8および骨格データ9を格納することが可能な任意のタイプの記憶装置を使用することができ、例えば、制御装置3に対して着脱可能になった記録媒体が補助記憶装置7として使用することができる。このような記録媒体としては、ハードディスク、CD−ROM、MO、フロッピー(登録商標)ディスク、MD、DVD、ICカード、光カード等が挙げられる。   As the auxiliary storage device 7, any type of storage device capable of storing the character display program 8 and the skeleton data 9 can be used. For example, a recording medium that is detachable from the control device 3 Can be used as the auxiliary storage device 7. Examples of such a recording medium include a hard disk, CD-ROM, MO, floppy (registered trademark) disk, MD, DVD, IC card, optical card, and the like.

なお、文字表示プログラム8および骨格データ9は、補助記憶装置7に格納されることに限定されない。例えば、文字表示プログラム8および骨格データ9は、主メモリ5に格納されてもよく、また、ROM(図示せず)に格納されてもよい。ROMは、例えば、マスクROM、EPROM、EEPROM、フラッシュROMなどであってもよい。ROM方式の場合には、そのROMを交換するだけで、各種処理のバリエーションを容易に実現することができる。従って、ROM方式は、携帯型の端末装置や携帯電話機などに対して好適に適用することができる。   The character display program 8 and the skeleton data 9 are not limited to being stored in the auxiliary storage device 7. For example, the character display program 8 and the skeleton data 9 may be stored in the main memory 5 or may be stored in a ROM (not shown). The ROM may be, for example, a mask ROM, EPROM, EEPROM, flash ROM, or the like. In the case of the ROM method, various processing variations can be easily realized by simply replacing the ROM. Therefore, the ROM method can be suitably applied to a portable terminal device, a mobile phone, and the like.

さらに、文字表示プログラム8および骨格データ9を格納する記録媒体は、上記ディスク、カード等の記憶装置、半導体メモリ等のように、プログラムあるいはデータを固定的に担持する媒体以外に、通信ネットワークにおいてプログラムあるいはデータを通信するために使用される通信媒体のように、プログラムあるいはデータを流動的に担持する媒体であってもよい。   Further, the recording medium for storing the character display program 8 and the skeleton data 9 is a program in a communication network other than a medium that holds the program or data fixedly, such as a storage device such as a disk or a card, a semiconductor memory, Alternatively, it may be a medium that fluidly carries a program or data, such as a communication medium used for communicating data.

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

このような文字表示装置1としては、例えばパーソナルコンピュータが挙げられる。パーソナルコンピュータの場合には、デスクトップ型、ラップトップ型のいずれであってもよい。なお、本発明の文字表示装置としては、パーソナルコンピュータに限らず、カラー表示あるいはモノクロ表示が可能な表示デバイスを有する電子機器、情報機器であってもよい。例えば、文字表示装置1は、カラー液晶表示デバイスを備えたワードプロセッサ等の電子機器、携帯情報ツールである携帯情報端末、PHS等の携帯電話機、一般の電話機、FAX等の通信機器であってもよい。   An example of such a character display device 1 is a personal computer. In the case of a personal computer, either a desktop type or a laptop type may be used. The character display device of the present invention is not limited to a personal computer, and may be an electronic device or an information device having a display device capable of color display or monochrome display. For example, the character display device 1 may be an electronic device such as a word processor equipped with a color liquid crystal display device, a portable information terminal as a portable information tool, a mobile phone such as a PHS, a general telephone, or a communication device such as a FAX. .

図2は、図1に示す補助記憶装置7に格納されている1つの文字に対する骨格データのデータ構造の一例を示している。図2に示す骨格データ構造は、文字を特定するための文字コードと、その文字コードにて特定された1つの文字の骨格を構成する全てのストロークの総数M(Mは1以上の整数)を示すストローク総数と、それぞれのストロークを特定するために必要な情報であるストロークデータとによって構成されている。文字コードにて特定される文字の骨格データ(スケルトンデータ)は、予め定義されて補助記憶装置7に格納されている。   FIG. 2 shows an example of the data structure of the skeleton data for one character stored in the auxiliary storage device 7 shown in FIG. The skeleton data structure shown in FIG. 2 includes a character code for specifying a character and a total number M (M is an integer of 1 or more) of all strokes constituting the skeleton of one character specified by the character code. It is constituted by the total number of strokes to be shown and stroke data which is information necessary for specifying each stroke. The skeleton data (skeleton data) of the character specified by the character code is defined in advance and stored in the auxiliary storage device 7.

ストロークデータは、各ストロークを、所定の大きさを有する骨格座標平面上、例えば、座標点の個数が256×256のX−Y座標平面にて構成された骨格座標平面上において、各ストロークを特定するために必要な複数のサンプル点の座標データであり、1つの文字の骨格を形成する全てのストロークのそれぞれに対して、前記座標平面上において1つのストロークを特定するために必要とされるサンプル点の総数N(Nは1以上の整数)と、N個のサンプル点それぞれの座標値である座標データとによって構成されている。   Stroke data specifies each stroke on a skeleton coordinate plane having a predetermined size, for example, on a skeleton coordinate plane composed of XY coordinate planes having 256 × 256 coordinate points. Coordinate data of a plurality of sample points necessary for performing, and samples required for specifying one stroke on the coordinate plane for each of all strokes forming one character skeleton The total number N of points (N is an integer equal to or greater than 1) and coordinate data that is the coordinate value of each of the N sample points.

サンプル点の総数Nは、文字を構成するストロークの種類によって異なり、例えば、文字を構成する縦線および横線のような直線のストロークの場合、それぞれのストロークの始点および終点の2個のサンプル点が設定される。また、文字を構成する曲線のストロークでは、曲線が特定されるように、曲線の状態に応じて、始点および終点と、それらの間に位置する1個以上の座標点がサンプル点として設定される。従って、1つのストロークは、ストロークデータとして記録されているN個の座標データにてそれぞれ示される各サンプル点を直線で結ぶことによって前記骨格座標平面上において特定される。この骨格座標平面は、通常のX−Y座標と同様に、左下の座標を原点(0,0)とし、上方向をY座標の正方向、右方向をX座標の正方向に定義している。   The total number N of sample points varies depending on the types of strokes that make up a character. For example, in the case of straight strokes such as vertical and horizontal lines that make up a character, the two sample points at the start and end points of each stroke are Is set. Also, in the stroke of the curve constituting the character, the start point and the end point, and one or more coordinate points located between them are set as sample points according to the state of the curve so that the curve is specified. . Therefore, one stroke is specified on the skeleton coordinate plane by connecting each sample point indicated by N coordinate data recorded as stroke data with a straight line. In the skeleton coordinate plane, the lower left coordinate is defined as the origin (0, 0), the upper direction is defined as the positive direction of the Y coordinate, and the right direction is defined as the positive direction of the X coordinate, as in the normal XY coordinate system. .

このように、1つの骨格データには、M個のストロークデータ13が含まれ、M個のストロークのそれぞれに対してN個のサンプル点の座標データがそれぞれ設定されている。   Thus, one skeleton data includes M pieces of stroke data 13, and coordinate data of N sample points is set for each of the M pieces of strokes.

図3は、漢字「木」の骨格データ構造を示しており、図4は、その骨格データ(スケルトンデータ)によって骨格座標平面にて示される骨格形状を示している。   FIG. 3 shows a skeleton data structure of the Chinese character “tree”, and FIG. 4 shows a skeleton shape shown on the skeleton coordinate plane by the skeleton data (skeleton data).

図3において、漢字「木」の骨格データ9には、漢字「木」を指定するための文字コードが「4458」(JIS区点コード、44区58点)であること、ストローク数が「4」であることが示されている。そして、4個のストローク#1〜#4のそれぞれに対して、それぞれ所定の個数のサンプル点のストロークデータが設定されている。ストローク#1は、漢字「木」を構成する横線のストローク、ストローク#2は、漢字「木」を構成する縦線のストローク、ストローク#3および#4は、漢字「木」を構成する左右の各斜め線(曲線)のそれぞれのストロークである。   In FIG. 3, in the skeleton data 9 of the Chinese character “tree”, the character code for designating the Chinese character “tree” is “4458” (JIS division code, 44 divisions 58 points), and the number of strokes is “4”. Is shown. The stroke data of a predetermined number of sample points is set for each of the four strokes # 1 to # 4. Stroke # 1 is the stroke of the horizontal line that makes up the Chinese character “tree”, Stroke # 2 is the stroke of the vertical line that makes up the Chinese character “tree”, and strokes # 3 and # 4 are the left and right strokes that make up the Chinese character “wood” Each stroke of each diagonal line (curve).

ストローク#1は、直線(横線)であるので、ストロークデータとしては、始点と終点の2個のサンプル点の座標データが、その順番で格納されており、サンプル点の個数Nとして「2」が設定され、サンプル点として、始点および終点の座標データ1および2として(4,192)、(245,192)がそれぞれ設定されている。ストローク#2は、直線(縦線)であるので、ストロークデータとしては、始点と終点の2個のサンプル点の座標データがその順番で格納されており、サンプル点の数Nとして「2」が設定され、始点としての座標データ1(128,255)および終点としての座標データ2(128,0)がそれぞれ設定されている。   Since stroke # 1 is a straight line (horizontal line), as the stroke data, coordinate data of two sample points of the start point and the end point are stored in that order, and the number N of sample points is “2”. As a sample point, (4, 192) and (245, 192) are set as the coordinate data 1 and 2 of the start point and the end point, respectively. Since stroke # 2 is a straight line (vertical line), as the stroke data, coordinate data of two sample points of the start point and the end point are stored in that order, and the number N of sample points is “2”. The coordinate data 1 (128, 255) as the start point and the coordinate data 2 (128, 0) as the end point are set.

ストローク#3は、左側の斜線であり、緩やかな曲線になっているので、ストロークデータとしては、始点と終点の2個のサンプル点以外に3個のサンプル点の座標データが格納されており、サンプル点の数Nとして「5」が設定され、5個のサンプル点の座標データとして、座標データ1(121,192)、座標データ2(97,141)、座標データ3(72,103)、座標データ4(41,69)、座標データ5(4,42)が、始点から終点にかけて順番に設定されている。ストローク#4は、右側の斜線であり、緩やかな曲線になっているので、ストロークデータとしては、始点と終点の2個のサンプル点以外に3個のサンプル点が格納されており、サンプル点の数Nとして「5」が設定され、5個のサンプル点の各座標データとして、座標データ1(135,192)、座標データ2(156,146)、座標データ3(182,107)、座標データ4(213,72)、座標データ5(251,42)が、始点から終点にかけて順番に設定されている。   Stroke # 3 is a slanted line on the left side and is a gentle curve. As stroke data, coordinate data of three sample points is stored in addition to the two sample points of the start point and end point. “5” is set as the number N of sample points. As coordinate data of five sample points, coordinate data 1 (121, 192), coordinate data 2 (97, 141), coordinate data 3 (72, 103), Coordinate data 4 (41, 69) and coordinate data 5 (4, 42) are set in order from the start point to the end point. Stroke # 4 is a slanted line on the right side and has a gentle curve. Therefore, three sample points are stored as stroke data in addition to the two sample points of the start point and end point. “5” is set as the number N, and coordinate data 1 (135, 192), coordinate data 2 (156, 146), coordinate data 3 (182, 107), coordinate data are set as coordinate data of five sample points. 4 (213, 72) and coordinate data 5 (251, 42) are set in order from the start point to the end point.

図4は、図3に示す漢字「木」の骨格形状を表す全てのストロークを、骨格座標平面上に表示したものである。   FIG. 4 shows all the strokes representing the skeleton shape of the Chinese character “tree” shown in FIG. 3 on the skeleton coordinate plane.

図4において、ストローク#1は、始点(0,192)と終点(255,192)とを結ぶ直線として示され、ストローク#2は、始点(128,255)と終点(128,0)とを結ぶ直線として示される。ストローク#3は、5個のサンプル点(121,192)、(97,141)、(72,103)、(41,69)および(4,42)を順番に直線で結んだものとして示される。ストローク#4は、5個のサンプル点(135,192)、(156,146)、(182,107)、(213,72)および(251,42)を順番に直線で結んだものとして示される。   In FIG. 4, the stroke # 1 is shown as a straight line connecting the start point (0, 192) and the end point (255, 192), and the stroke # 2 has the start point (128, 255) and the end point (128, 0). Shown as a connecting straight line. Stroke # 3 is shown as five sample points (121, 192), (97, 141), (72, 103), (41, 69) and (4, 42) connected in a straight line in order. . Stroke # 4 is shown as five sample points (135, 192), (156, 146), (182, 107), (213, 72) and (251, 42) connected in sequence by a straight line. .

図5は、CPU4によって実行される、文字表示プログラム8による処理手順を説明するためのフローチャートである。以下に、文字表示プログラム8の具体的な処理手順を、各処理毎に詳細に説明する。   FIG. 5 is a flowchart for explaining a processing procedure by the character display program 8 executed by the CPU 4. Below, the concrete process sequence of the character display program 8 is demonstrated in detail for every process.

まず、入力デバイス6から文字コードおよび文字サイズ(フォントサイズ)からなる文字情報が入力されると、CPU4は、入力された文字情報を取得する(図5のステップS1000参照、以下同様)。例えば、漢字「木」を、表示デバイス2の表示画面に表示させる場合には、入力デバイス6から文字情報として、文字コードとして4458番(JIS区点コード、44区58点)が入力される。文字サイズは、実ピクセル座標系に表示される文字の全体の幅および高さのサイズが、それぞれ画素数として入力される。   First, when character information including a character code and a character size (font size) is input from the input device 6, the CPU 4 acquires the input character information (see step S1000 in FIG. 5, the same applies hereinafter). For example, when the Chinese character “Thu” is displayed on the display screen of the display device 2, No. 4458 (JIS division code, 44 divisions 58 points) is input as character information from the input device 6. As the character size, the overall width and height sizes of characters displayed in the real pixel coordinate system are input as the number of pixels, respectively.

ステップS1000にて入力された文字情報が取得されると、入力された文字コードに対応する1文字分の骨格データ9が、補助記憶装置7から読み出されて主メモリ5に格納される(ステップS1010)。漢字「木」の場合には、図3に示す漢字「木」の骨格データ9が読み出される。   When the character information input in step S1000 is acquired, the skeleton data 9 for one character corresponding to the input character code is read from the auxiliary storage device 7 and stored in the main memory 5 (step S1). S1010). In the case of the Chinese character “Tree”, the skeleton data 9 of the Chinese character “Tree” shown in FIG. 3 is read.

ステップS1010にて骨格データ9が読み出されると、骨格データ9に設定された各ストローク毎に、全てのサンプル点がスケーリングされる(ステップS1020)。スケーリングとは、ある大きさを有する座標平面上の座標を、異なる大きさの座標平面上の座標にマッピングする演算処理のことであり、本発明では、骨格座標平面における各ストロークの全てのサンプル点の座標データを、表示デバイス2の表示画面における実ピクセル座標系の座標データに変換する演算処理である。実ピクセル座標系は、それぞれが正方形になった各画素がマトリクス状に配置された表示画面における各画素を、X−Y座標における座標点の座標データとして示しており、骨格座標平面と同様に、1つの文字に対して、左下の画素を原点(0,0)とし、上方向をY座標の正方向、右方向をX座標の正方向として定義している。実ピクセル座標系の座標点は、正方形の各画素にそれぞれ対応しており、正方形の各画素によって、表示画面における1ドットがそれぞれ構成されている。   When the skeleton data 9 is read in step S1010, all sample points are scaled for each stroke set in the skeleton data 9 (step S1020). Scaling is a calculation process for mapping coordinates on a coordinate plane having a certain size to coordinates on a coordinate plane having a different size. In the present invention, all sample points of each stroke in the skeleton coordinate plane are used. Is the arithmetic processing for converting the coordinate data into coordinate data of the actual pixel coordinate system on the display screen of the display device 2. The real pixel coordinate system shows each pixel on the display screen in which each pixel, each of which is a square, is arranged in a matrix, as coordinate data of coordinate points in the XY coordinates. For one character, the lower left pixel is defined as the origin (0, 0), the upper direction is defined as the positive direction of the Y coordinate, and the right direction is defined as the positive direction of the X coordinate. The coordinate points of the real pixel coordinate system correspond to each square pixel, and one dot on the display screen is constituted by each square pixel.

なお、以下の説明においては、簡単のために、骨格座標平面の座標と、実ピクセル座標系の座標とが一致しているものとして説明する。   In the following description, for simplicity, it is assumed that the coordinates of the skeleton coordinate plane and the coordinates of the real pixel coordinate system match.

ステップS1020でのスケーリングが終了すると、入力された文字サイズに従って、骨格データに設定された各ストロークの表示太さ(線幅)Wがそれぞれ設定される(ステップS1030)。この処理の詳細については、後述する。   When the scaling in step S1020 is completed, the display thickness (line width) W of each stroke set in the skeleton data is set according to the input character size (step S1030). Details of this processing will be described later.

ステップS1030にて各ストロークの表示太さWがそれぞれ決定されると、補助記憶装置7から読み出された骨格データ構造に設定された最初のストロークのストロークデータが取り出される(ステップS1040)。   When the display thickness W of each stroke is determined in step S1030, the stroke data of the first stroke set in the skeleton data structure read from the auxiliary storage device 7 is extracted (step S1040).

ステップS1040にて、骨格データ構造から最初のストロークデータ13が取り出されると、取り出された1つのストロークのストロークデータに基づいて、実ピクセル座標系においてそのストロークを、設定された表示太さWとして表示するために必要な表示データを生成する(ステップS1050)。この処理の詳細については、後述する。   When the first stroke data 13 is extracted from the skeleton data structure in step S1040, the stroke is displayed as the set display thickness W in the actual pixel coordinate system based on the extracted stroke data of one stroke. Display data necessary for this is generated (step S1050). Details of this processing will be described later.

ステップS1050にて、最初のストロークの表示データが生成されると、骨格データ構造に含まれる全てのストロークについて、ステップS1040〜ステップS1050の処理が完了しているかが判定される(ステップS1060)。全てのストロークに対して表示データが生成されていない場合(判定結果が「偽(N)」の場合)には、ステップS1040に戻って、骨格データ構造において、すでに表示データが生成されているストローク(最初のストローク)の次のストローク(2番目のストローク)について、同様の処理が実施され、太さWの表示データ(画素データ)が生成される。このようにして、全てのストロークに対する処理が完了し、全てのストロークに対する表示データが生成されている場合(判定結果が「真(Y)」の場合)には、文字表示処理が完了し、生成された表示データが、表示デバイス2に供給されて、表示デバイス2において、設定された太さWの線幅で、文字が表示される。   When the display data of the first stroke is generated in step S1050, it is determined whether or not the processing in steps S1040 to S1050 has been completed for all the strokes included in the skeleton data structure (step S1060). When display data is not generated for all strokes (when the determination result is “false (N)”), the process returns to step S1040, and the strokes for which display data has already been generated in the skeleton data structure. The same processing is performed for the stroke (second stroke) subsequent to (first stroke), and display data (pixel data) having a thickness W is generated. In this way, when the processing for all strokes is completed and the display data for all strokes has been generated (when the determination result is “true (Y)”), the character display processing is completed and generated. The displayed display data is supplied to the display device 2, and characters are displayed on the display device 2 with the set line width W.

次に、図5に示す文字表示プログラム8の処理手順におけるステップS1030の表示太さの設定処理の詳細について説明する。   Next, details of the display thickness setting process in step S1030 in the processing procedure of the character display program 8 shown in FIG. 5 will be described.

ストロークの表示太さWは、表示画面に表示される文字のサイズが大きくなるにつれて太くなるように設定される。この場合、例えば、表示画面における実ピクセル座標系に表示される文字サイズの幅および高さのいずれかが40ドット(画素)を超えない場合には、表示太さWとして1ドットが設定される。これにより、実ピクセル座標系における正方形の各画素(1ドット)を線幅として表示デバイス2の表示画面に文字が表示される。   The display thickness W of the stroke is set so as to increase as the size of characters displayed on the display screen increases. In this case, for example, if any of the width and height of the character size displayed in the real pixel coordinate system on the display screen does not exceed 40 dots (pixels), 1 dot is set as the display thickness W. . Thereby, a character is displayed on the display screen of the display device 2 by setting each square pixel (1 dot) in the real pixel coordinate system as a line width.

表示される文字の全体幅および高さのサイズが、ともに40ドットを超えるが、いずれか一方が80ドットを超えない場合には、表示太さWとして3ドット(画素)が設定され、設定されたドット数を一辺とする1つの正方形(3ドット×3ドット)または菱形を、1つのメインドットパターンとして、そのメインドットパターンを線幅として文字を表示するための画素が設定される。以下同様に、表示される文字の全体幅および全体高さのサイズが、ともに80ドットを超えるが、いずれか一方が128ドットを超えない場合には、表示太さWとして5ドット(画素)が設定され、一辺が5ドットの正方形または菱形を1つのメインドットパターンに設定する。表示される文字の全体幅および高さのサイズが、ともに128ドットを超えるが、いずれか一方が192ドットを超えない場合には、表示太さWとして7ドット(画素)が設定されて、一辺が7ドットの正方形または菱形を1つのメインドットパターンに設定する。表示される文字の全体幅および高さのサイズが、ともに192ドットを超える場合には、表示太さWとして9ドットが設定されて、一辺が9ドットの正方形または菱形を1つのメインドットパターンに設定する。   If the overall width and height of the displayed characters both exceed 40 dots, but either one does not exceed 80 dots, 3 dots (pixels) are set and set as the display thickness W One square (3 dots × 3 dots) or rhombus with one side as the number of dots is set as one main dot pattern, and pixels for displaying characters with the main dot pattern as the line width are set. Similarly, when the overall width and height of the displayed characters both exceed 80 dots, but either one does not exceed 128 dots, the display thickness W is 5 dots (pixels). A square or rhombus with 5 dots on one side is set as one main dot pattern. If the overall width and height of the displayed characters both exceed 128 dots, but either one does not exceed 192 dots, the display thickness W is set to 7 dots (pixels) A 7-dot square or rhombus is set as one main dot pattern. If the overall width and height of the displayed characters exceed 192 dots, 9 dots are set as the display thickness W, and a square or rhombus with a side of 9 dots is used as one main dot pattern. Set.

なお、上述のストロークの表示太さWの設定方法は、表示される文字のサイズが大きくなるにつれて表示文字の線幅を太くすることにより、表示される文字サイズに適した文字の表示を得るようにした一例を示しているが、文字のサイズにかかわらずに、表示太さWを一定に設定しても良い。また、文字の画数に応じて表示太さWを小さく設定してもよい。   The above-described method for setting the display thickness W of the stroke is to obtain a character display suitable for the displayed character size by increasing the line width of the displayed character as the size of the displayed character increases. However, the display thickness W may be set constant regardless of the character size. Further, the display thickness W may be set small according to the number of strokes of characters.

次に、図5の文字表示プログラム8による処理手順における各ストロークに対する表示データの生成処理(ステップS1050)の詳細を、図6に基づいて説明する。図6は、図5に示すストロークの表示データ生成処理(ステップS1050)のサブルーチンを示すフローチャート、図7は、図6に示すストロークの表示データ生成処理が実施される文字のストロークデータの一例を示す表である。   Next, details of the display data generation processing (step S1050) for each stroke in the processing procedure by the character display program 8 of FIG. 5 will be described based on FIG. 6 is a flowchart showing a subroutine of the stroke display data generation process (step S1050) shown in FIG. 5, and FIG. 7 shows an example of character stroke data for which the stroke display data generation process shown in FIG. 6 is executed. It is a table.

まず、表示される文字の全てのストロークのストロークデータ13を、骨格データ構造から取得する(ステップS2010)。この場合、各ストローク毎に、ストロークデータとして順番に記録されている最初の2つのサンプル点の座標データ1および2番目の座標データ2がそれぞれ取得される。   First, the stroke data 13 of all the strokes of the displayed character is acquired from the skeleton data structure (step S2010). In this case, for each stroke, the coordinate data 1 and the second coordinate data 2 of the first two sample points recorded in order as stroke data are acquired.

例えば、図7に示すストロークAのストロークデータは、サンプル点の数が2個であるので、ストロークAは直線であり、ストロークAの始点を示す座標データ1(27,0)と、終点を示す座標データ2(0,9)とが取り出される。ストロークBも、同様に、サンプル点の数が2個であるので、直線の始点を示す座標データ1(12,0)と終点を示す座標データ2(0,27)とが取り出される。さらに、ストロークCも、同様にサンプル点の数が2個であるので直線であり、直線の始点を示す座標データ1(15,0)と終点を示す座標データ2(0,27)とが取り出される。   For example, since the stroke data of the stroke A shown in FIG. 7 has two sample points, the stroke A is a straight line, the coordinate data 1 (27, 0) indicating the start point of the stroke A, and the end point. Coordinate data 2 (0, 9) is extracted. Similarly, since the number of sample points is two for the stroke B, coordinate data 1 (12, 0) indicating the start point of the straight line and coordinate data 2 (0, 27) indicating the end point are extracted. Further, the stroke C is also a straight line since the number of sample points is two, and coordinate data 1 (15, 0) indicating the start point of the straight line and coordinate data 2 (0, 27) indicating the end point are extracted. It is.

なお、図8は、図7の骨格データ構造におけるストロークAから、実ピクセル座標系における表示データ(画素データ)を生成処理する場合の説明図、図9は、図7の骨格データ構造におけるストロークBから、実ピクセル座標系における表示データを生成処理する場合の説明図、図10は、図7の骨格データ構造におけるストロークCから、実ピクセル座標系における表示データを生成処理する場合の説明図である。   8 is an explanatory diagram in the case of generating display data (pixel data) in the real pixel coordinate system from the stroke A in the skeleton data structure of FIG. 7, and FIG. 9 is a stroke B in the skeleton data structure of FIG. FIG. 10 is an explanatory diagram for generating display data in the real pixel coordinate system. FIG. 10 is an explanatory diagram for generating display data in the real pixel coordinate system from the stroke C in the skeleton data structure of FIG. .

ステップS2010において、骨格データ9におけるストロークに対して、2つのサンプル点の座標データが取り出されると、取り出された2つのサンプル点を結ぶ直線が斜め線であるかの判定が実施される(ステップS2020)。   In step S2010, when the coordinate data of two sample points is extracted for the stroke in the skeleton data 9, it is determined whether the straight line connecting the two sample points extracted is an oblique line (step S2020). ).

具体的には、骨格座標平面において、座標データ1および2にて示されるサンプル点同士を結ぶ直線について、X軸の正方向に対する傾きをθとして、0≦θ<25°、65°≦θ<113°、155°≦θ<205°、245°≦θ<295°または335°≦θ<360°である場合には、斜め線ではない(縦線または横線)と判定し、それ以外の場合には斜め線であると判定する。   Specifically, in the skeleton coordinate plane, 0 ≦ θ <25 °, 65 ° ≦ θ <with respect to the straight line connecting the sample points indicated by the coordinate data 1 and 2, where θ is the inclination with respect to the positive direction of the X axis. If 113 °, 155 ° ≦ θ <205 °, 245 ° ≦ θ <295 °, or 335 ° ≦ θ <360 °, it is determined not to be a diagonal line (vertical line or horizontal line), otherwise Is determined to be a diagonal line.

このステップS2020において、座標データ1および座標データ2にてそれぞれ示されるサンプル点を結ぶ直線が斜め線として判定された場合には、ステップS2040にて、メインドットパターンを菱形に設定して表示データが生成され、斜め線でなく縦線または横線と判定された場合には、ステップS2030にて、メインドットパターンを正方形に設定して表示データが生成される。   If it is determined in step S2020 that the straight line connecting the sample points indicated by coordinate data 1 and coordinate data 2 is an oblique line, the main dot pattern is set to a rhombus in step S2040 and the display data is displayed. If it is generated and it is determined that the line is not a diagonal line but a vertical line or a horizontal line, in step S2030, the main dot pattern is set to a square and display data is generated.

図7に示すストロークデータでは、ストロークAは、図8に示すように、X軸の正方向に対する傾きθが161.6°となるため斜め線ではないと判定され、ステップS2030にて、メインドットパターンを正方形に設定して表示データが生成される。ストロークBは、図9に示すように、X軸の正方向に対する傾きθが114.0°となるため、斜め線であると判定され、ステップS2040にてメインドットパターンを菱形に設定して表示データが生成される。ストロークCでは、図10に示すように、X軸の正方向に対する傾きθが119.1°となるため、斜め線であると判定され、ステップS2040にてメインドットパターンを菱形に設定して表示データが生成される。   In the stroke data shown in FIG. 7, the stroke A is determined not to be an oblique line because the inclination θ with respect to the positive direction of the X axis is 161.6 ° as shown in FIG. 8, and the main dot is determined in step S2030. Display data is generated with the pattern set to square. As shown in FIG. 9, the stroke B has an inclination θ of 114.0 ° with respect to the positive direction of the X axis, and therefore is determined to be an oblique line. In step S2040, the main dot pattern is set to a rhombus and displayed. Data is generated. In stroke C, as shown in FIG. 10, since the inclination θ with respect to the positive direction of the X axis is 119.1 °, it is determined to be an oblique line, and the main dot pattern is set to a diamond shape in step S2040 and displayed. Data is generated.

ステップS2020において、ストロークが斜め線でないと判定されると、図5のステップS1030にて決定された表示太さWとなるように、一辺が所定のドット数の正方形のメインドットパターンによって、ステップS2020で取得された座標データ1および座標データ2のサンプル点を結ぶ直線の表示データが生成される(ステップS2030)。この処理の詳細については後述する。なお、正方形のメインドットパターンの代わりに、矩形のメインドットパターンを用いてもよい。   If it is determined in step S2020 that the stroke is not an oblique line, a square main dot pattern having a predetermined number of dots on one side is used to obtain the display thickness W determined in step S1030 in FIG. Display data of a straight line connecting the sample points of coordinate data 1 and coordinate data 2 acquired in step S2030 is generated (step S2030). Details of this processing will be described later. A rectangular main dot pattern may be used instead of the square main dot pattern.

これに対して、ステップS2020において、ストロークが斜め線と判定されると、図5のステップS1030にて決定された表示太さWとなるように、一辺が所定のドット数の菱形のメインドットパターンによって、ステップS2020で取得された2つの座標データ1および座標データ2のサンプル点を結ぶ直線の表示データが生成される(ステップS2040)。この処理の詳細についても後述する。   On the other hand, when it is determined in step S2020 that the stroke is an oblique line, a rhombus main dot pattern having a predetermined number of dots on one side so that the display thickness W is determined in step S1030 in FIG. Thus, display data of a straight line connecting the two coordinate data 1 acquired in step S2020 and the sample points of the coordinate data 2 is generated (step S2040). Details of this processing will also be described later.

ステップS2030またはステップS2040において、各ストロークにおける最初と2番目のサンプル点の座標データを結ぶ直線の表示太さWに関する表示データが得られると、各ストロークにおいて、ストロークデータとして3番目のサンプル点の座標データ3が存在するかを確認し、座標データ3が存在する場合には、ステップS2010〜ステップS2030またはステップS2040までの処理が繰り返されて、座標データ2と座標データ3との点を結ぶ直線の表示データを生成する(ステップS2050)。そして、1つのストロークについて、骨格データ構造に含まれるサンプル点を順番に結んだ直線について表示データが生成されると、図5のフローチャートにおけるステップS1050のストロークの表示データ生成処理が終了する。   In step S2030 or step S2040, when the display data regarding the display thickness W of the straight line connecting the coordinate data of the first and second sample points in each stroke is obtained, the coordinates of the third sample point are used as stroke data in each stroke. It is confirmed whether or not the data 3 exists, and if the coordinate data 3 exists, the processing from step S2010 to step S2030 or step S2040 is repeated, and a straight line connecting the points of the coordinate data 2 and the coordinate data 3 is displayed. Display data is generated (step S2050). When the display data is generated for a straight line connecting the sample points included in the skeleton data structure in order for one stroke, the display data generation processing for the stroke in step S1050 in the flowchart of FIG. 5 ends.

図11は、図6に示すステップS2020において、斜め線でないと判定されることによってステップS2030にて実施される正方形のメインドットパターンの表示データの生成処理手順を示すフローチャートである。以下に、この図11と、図7のストロークAに対する説明図である図8に基づいて、正方形のメインドットパターンによる表示データ生成処理の手順について説明する。   FIG. 11 is a flowchart illustrating a display processing procedure for generating display data of a square main dot pattern performed in step S2030 when it is determined in step S2020 shown in FIG. 6 that the line is not a diagonal line. Below, based on this FIG. 11 and FIG. 8 which is explanatory drawing with respect to the stroke A of FIG. 7, the procedure of the display data generation process by a square main dot pattern is demonstrated.

図8では、図7に示すストロークAに対して、表示太さW=9として、実ピクセル座標系において、一辺が9ドット(画素)の正方形をメインドットパターンとして設定するようになっている。   In FIG. 8, for the stroke A shown in FIG. 7, a display thickness W = 9 and a square with 9 dots (pixels) on one side is set as the main dot pattern in the real pixel coordinate system.

図6に示すステップS2020において、ストロークが斜め線でないと判定された場合には、ステップS2010にて取得された2つのサンプル点の座標データから、最初に取得された座標データ1に対応するストロークAの始点Psを中心点Fとして、図5のステップ1030で設定された表示太さWに対応する一辺がWドットの正方形のメインドットパターンを構成する画素を設定する。そして、この始点Psを、点Gに設定する(ステップS3010)。   If it is determined in step S2020 shown in FIG. 6 that the stroke is not a diagonal line, the stroke A corresponding to the coordinate data 1 acquired first from the coordinate data of the two sample points acquired in step S2010. A pixel constituting a square main dot pattern having W dots on one side corresponding to the display thickness W set in step 1030 of FIG. Then, the starting point Ps is set to the point G (step S3010).

次に、ブレゼンハムのアルゴリズムによって、点Gに対して終点Pe側に隣接するストロークA上の画素の座標を求めて新たな点Gに設定する(ステップS3020)。その後、ストロークの始点Psと終点Peとを結ぶ直線が縦線であるかを判定する(ステップS3030)。この場合、ストロークAに対応する直線とX軸となす角θが、45°≦θ<135°または225°≦θ<315°を満たす場合には縦線と判定する。なお、ストロークAに対応する直線とX軸となす角θが上記範囲に無い場合には、横線と判定される。   Next, the coordinates of the pixel on the stroke A adjacent to the end point Pe side with respect to the point G are obtained by Bresenham's algorithm and set to a new point G (step S3020). Thereafter, it is determined whether or not the straight line connecting the start point Ps and the end point Pe of the stroke is a vertical line (step S3030). In this case, if the angle θ between the straight line corresponding to the stroke A and the X axis satisfies 45 ° ≦ θ <135 ° or 225 ° ≦ θ <315 °, it is determined as a vertical line. When the angle θ between the straight line corresponding to the stroke A and the X axis is not within the above range, it is determined as a horizontal line.

始点Psと終点Peとを結ぶストロークの直線が縦線であると判定された場合には、ステップS3070に進み、縦線ではないと判定された場合には、ステップS3040に進む。   If it is determined that the straight line of the stroke connecting the start point Ps and the end point Pe is a vertical line, the process proceeds to step S3070. If it is determined that the stroke is not a vertical line, the process proceeds to step S3040.

図8に示す場合には、ストロークの始点Psと終点Peとを結ぶ直線のX軸の正方向に対する傾きθは、前述したように、θ=114.0°になっているために、縦線ではなく横線であると判定され、ステップS3040の処理が実行される。   In the case shown in FIG. 8, the inclination θ with respect to the positive direction of the X axis of the straight line connecting the start point Ps and the end point Pe of the stroke is θ = 14.0 ° as described above. Instead, it is determined that the line is a horizontal line, and the process of step S3040 is executed.

ステップS3040においては、新たに設定された点Gに対応する実ピクセル座標系のX座標値と、中心点Fに対応する実ピクセル座標系のX座標値との差の絶対値|ΔX|が、表示太さWを示すドット数(=W)と一致するかを判定する。そして、絶対値|ΔX|がドット数Wと一致する場合(|ΔX|=W)には、ステップS3050に進む。   In step S3040, the absolute value | ΔX | of the difference between the X coordinate value of the real pixel coordinate system corresponding to the newly set point G and the X coordinate value of the real pixel coordinate system corresponding to the center point F is It is determined whether or not it matches the number of dots (= W) indicating the display thickness W. If the absolute value | ΔX | matches the number of dots W (| ΔX | = W), the process proceeds to step S3050.

図8において、W=9であり、点Gは、点Fに隣接していることから、|ΔX|=1であるために、ステップS3100に進む。そして、ステップS3100において、点Gが、ストロークの終点Peに対応していないことを確認し、ステップS3020に戻って、点Gに対して終点Pe側に隣接するストロークA上の画素の座標を求め、新たな点Gとする。そして、ストロークの始点Psと終点Peとを結ぶ直線が縦線であるかを確認し(ステップS3030)、新たに設定された点Gに対応する実ピクセル座標系のX座標値と、中心点Fに対応する実ピクセル座標系のX座標値との差の絶対値|ΔX|が、表示太さWを示すドット数(=W)と一致するかを判定する(ステップS3040)。以後、ステップS3040において|ΔX|=Wでない場合には、|ΔX|=Wになるまで、ステップS3100〜ステップS3020〜S3030〜ステップS3040の処理を繰り返す。   In FIG. 8, since W = 9 and the point G is adjacent to the point F, since | ΔX | = 1, the process proceeds to step S3100. In step S3100, it is confirmed that the point G does not correspond to the stroke end point Pe, and the process returns to step S3020 to obtain the coordinates of the pixel on the stroke A adjacent to the point G on the end point Pe side. A new point G is assumed. Then, it is confirmed whether the straight line connecting the start point Ps and the end point Pe of the stroke is a vertical line (step S3030), the X coordinate value of the real pixel coordinate system corresponding to the newly set point G, and the center point F It is determined whether the absolute value | ΔX | of the difference from the X coordinate value of the real pixel coordinate system corresponding to is equal to the dot number (= W) indicating the display thickness W (step S3040). Thereafter, if | ΔX | = W is not satisfied in step S3040, the processes in steps S3100 to S3020 to S3030 to step S3040 are repeated until | ΔX | = W.

図8に、ストロークAの始点Psに対して、ブレゼンハムのアルゴリズムによって順次求められる画素の点Gを、「×」印で示す。   In FIG. 8, pixel points G that are sequentially obtained by Bresenham's algorithm with respect to the starting point Ps of the stroke A are indicated by “x” marks.

なお、ステップS3100において、点Gが、ストロークの終点Peに対応している場合には、ステップS3110に進み、点Gを中心とした一辺のドット数がWの正方形のメインドットパターンを構成する画素を設定して、図6のステップS2050に進む。   If it is determined in step S3100 that the point G corresponds to the stroke end point Pe, the process proceeds to step S3110, and the pixels constituting the square main dot pattern having the number of dots on one side W and centered on the point G are set. Is set, and the process proceeds to step S2050 of FIG.

ステップS3040において、|ΔX|=Wになると、ステップS3050に進み、設定された点Gを中心として一辺のドット数がWの正方形のメインドットパターンを構成する画素が設定される。このとき、ステップS3040において、点Gに対応する画素のX座標値と、中心点Fに対応する画素のX座標値との差の絶対値がストロークの表示太さを示すドット数Wと一致することが確認されているために、点Gを中心として設定されるメインドットパターンと、中心点Fを中心とするメインドットパターンとは重なることなく、X方向に相互に接した状態になる。そして、メインドットパターンの中心になった点Gを、新たな中心点Fとする。   In step S3040, when | ΔX | = W, the process proceeds to step S3050, and the pixels constituting the square main dot pattern with the number of dots on one side W are set centering on the set point G. At this time, in step S3040, the absolute value of the difference between the X coordinate value of the pixel corresponding to the point G and the X coordinate value of the pixel corresponding to the center point F matches the number of dots W indicating the display thickness of the stroke. Therefore, the main dot pattern set with the point G as the center and the main dot pattern with the center point F as the center do not overlap each other and are in contact with each other in the X direction. The point G that becomes the center of the main dot pattern is set as a new center point F.

図12は、図7および図8に示されるストロークAの始点Psを中心点Fとして、表示太さを示すドット数Wが「9」の場合に設定される正方形のメインドットパターン21と、そのメインドットパターンに隣接して設定された正方形のメインドットパターン22とを示している。ストロークAの始点Psを中心点Fとして設定されるメインドットパターン21は白抜きで示しており、そのメインドットパターン21に接して設定されるメインドットパターン22は黒ベタで示している。   FIG. 12 shows a square main dot pattern 21 set when the number of dots W indicating the display thickness is “9” with the start point Ps of the stroke A shown in FIGS. A square main dot pattern 22 set adjacent to the main dot pattern is shown. The main dot pattern 21 set with the start point Ps of the stroke A as the center point F is shown in white, and the main dot pattern 22 set in contact with the main dot pattern 21 is shown in black solid.

このように、ステップS3050において、一辺が表示太さWを示すドット数に等しい正方形のメインドットパターン21および22が相互に隣接して設定されると、ステップS3060において、各メインドットパターン21および22の中心である点Fおよび点GのY座標の差の絶対値|ΔY|を計算する。そして、1<|ΔY|の場合には、メインドットパターン21および22のY軸方向のずれによって形成される各段差部において、各メインドットパターン21および22にそれぞれ接するとともに、X方向およびY方向にそれぞれ相互に隣接して並んだ各「|ΔY|−1」個の画素のそれぞれのX方向およびY方向の長さを一辺とする二等辺三角形に含まれる全ての画素を、サブドットパターンとして選択する。すなわち、その二等辺三角形の内部に画素の全てが含まれている画素のみならず、その二等辺三角形の内部に画素の一部が含まれている画素もサブドットパターンとして選択する。   Thus, when the square main dot patterns 21 and 22 having one side equal to the number of dots indicating the display thickness W are set adjacent to each other in step S3050, each main dot pattern 21 and 22 is set in step S3060. The absolute value | ΔY | of the difference between the Y-coordinates of the point F and the point G that are the centers of the points is calculated. In the case of 1 <| ΔY |, the respective step portions formed by the displacement of the main dot patterns 21 and 22 in the Y-axis direction are in contact with the main dot patterns 21 and 22, respectively, and in the X and Y directions. All the pixels included in an isosceles triangle each having a length in the X direction and the Y direction of each of “| ΔY | −1” pixels arranged adjacent to each other as sub-dot patterns select. That is, not only a pixel in which all of the pixels are included in the isosceles triangle but also a pixel in which a part of the pixel is included in the isosceles triangle is selected as the sub-dot pattern.

図7のストロークAを、9ドットの表示太さで表示する図12の場合は、ストロークAの始点Psを中心点Fとした9ドット×9ドットの正方形のメインドットパターン21を構成する81個の画素の座標データと、このメインドットパターン21に隣接する9ドット×9ドットの正方形のメインドットパターン22を構成する81個の画素の座標データとが、表示データ(画素データ)として設定される。この場合、各メインドットパターン21および22のY軸方向の差の絶対値|ΔY|は「3」になっていることから、メインドットパターン21および22のY軸方向にずれて形成されるそれぞれの段差部において、各メインドットパターン21および22にそれぞれ接するとともに、X方向およびY方向に相互に隣接して並んだ2個の画素のそれぞれのX方向およびY方向の長さを一辺とする二等辺三角形に含まれる3個の画素(図12に網掛け模様にて示す)が、サブドットパターン23および24としてそれぞれ設定される。   In the case of FIG. 12 in which the stroke A of FIG. 7 is displayed with a display thickness of 9 dots, 81 dots constituting a 9 dot × 9 dot square main dot pattern 21 with the starting point Ps of the stroke A as the center point F. And the coordinate data of 81 pixels constituting the 9 dot × 9 dot square main dot pattern 22 adjacent to the main dot pattern 21 are set as display data (pixel data). . In this case, since the absolute value | ΔY | of the differences in the Y-axis direction of the main dot patterns 21 and 22 is “3”, the main dot patterns 21 and 22 are formed so as to be shifted in the Y-axis direction. In the step portion, each of the two pixels arranged in contact with each of the main dot patterns 21 and 22 and arranged adjacent to each other in the X direction and the Y direction has a length in each of the X direction and the Y direction. Three pixels included in the equilateral triangle (shown by a shaded pattern in FIG. 12) are set as sub-dot patterns 23 and 24, respectively.

このようにしてサブドットパターンが設定されると、ステップS3120において、点GがストロークAの終点Peに対応していないかを確認し、ストロークの終点Peに対応していない場合には、ステップS3020に戻り、以後、同様の処理を繰り返す。   When the sub-dot pattern is set in this way, it is checked in step S3120 whether the point G does not correspond to the end point Pe of the stroke A, and if it does not correspond to the end point Pe of the stroke, step S3020. Thereafter, the same processing is repeated.

点Gがストロークの終点Peであることが確認されると、図6のステップS2050に進み、1つのストロークに含まれる全ての座標位置についての処理が終了したことを確認する。そして、1つのストロークに含まれる全ての座標位置についての処理が終了していることが確認されると、図5のステップS1050に進み、文字を構成する他のストロークについても同様の処理が実施されて、文字を構成する全てのストロークについての表示データが生成される。   When it is confirmed that the point G is the stroke end point Pe, the process proceeds to step S2050 in FIG. 6 and it is confirmed that the processing for all coordinate positions included in one stroke is completed. When it is confirmed that the processing for all coordinate positions included in one stroke has been completed, the process proceeds to step S1050 in FIG. 5 and the same processing is performed for the other strokes constituting the character. Thus, display data for all strokes constituting the character is generated.

なお、上記の説明では、ステップS3030において、ストロークの始点Psと終点Peを結ぶ直線が縦線でなく横線とみなされる場合の処理手順を説明したが、ステップS3030において、ストロークの始点Psと終点Peを結ぶ直線が縦線であると判定される場合には、ステップS3070に進み、ステップS3070において、ステップS3020にて求められた隣接する座標位置の点Gおよび中心点Fの実ピクセル座標系におけるY座標値の差の絶対値|ΔY|が、表示太さWを示すドット数(=W)と一致するかを判定する。絶対値|ΔY|がドット数Wと一致する(|ΔY|=W)場合には、ステップS3080に進み、点Gを中心とした一辺のドット数Wの正方形のメインドットパターンを設定する。このとき、ステップS3070において、点Gおよび中心点Fに対応する画素のY座標値の差の絶対値がストロークの表示太さを示すドット数Wと一致することが確認されているために、点Gを中心として設定されるメインドットパターンは、中心点Fに対して設定されたメインドットパターンとは重なることなく、Y方向に相互に接した状態になる。   In the above description, the processing procedure in the case where the straight line connecting the stroke start point Ps and the end point Pe is regarded as a horizontal line instead of a vertical line in step S3030 has been described. In step S3030, the stroke start point Ps and end point Pe are described. When it is determined that the straight line connecting the two is a vertical line, the process proceeds to step S3070. In step S3070, the point G and the center point F of the adjacent coordinate positions obtained in step S3020 are Y in the real pixel coordinate system. It is determined whether or not the absolute value | ΔY | of the coordinate value difference matches the number of dots (= W) indicating the display thickness W. If the absolute value | ΔY | matches the number of dots W (| ΔY | = W), the process advances to step S3080 to set a square main dot pattern with the number of dots W on one side centered on the point G. At this time, since it is confirmed in step S3070 that the absolute value of the difference between the Y coordinate values of the pixels corresponding to the point G and the center point F matches the number of dots W indicating the display thickness of the stroke, The main dot pattern set with G as the center does not overlap with the main dot pattern set with respect to the center point F, and is in a state of being in contact with each other in the Y direction.

ステップS3070において、絶対値|ΔY|がドット数Wと一致しない場合には、ステップS3100に進み、ステップS3100にて点Gが、ストロークの終点Peでないことを確認し、ステップS3020に戻って、点Gに隣接する画素の座標位置をブレゼンハムのアルゴリズムによって求めて点Gとし、以後、ステップS3030〜ステップS3070の処理を繰り返す。   If the absolute value | ΔY | does not match the number of dots W in step S3070, the process proceeds to step S3100. In step S3100, it is confirmed that the point G is not the stroke end point Pe, and the process returns to step S3020. The coordinate position of the pixel adjacent to G is determined by Bresenham's algorithm as point G, and thereafter, the processing in steps S3030 to S3070 is repeated.

このようにして、ステップS3070において、一辺が表示太さWを示すドット数に等しい正方形のメインドットパターンが設定されると、ステップS3090において、点Gと直前の中心点Fとの実ピクセル座標系におけるX座標値の差の絶対値|ΔX|を演算し、1<|ΔX|の場合には、点Gを中心とするメインドットパターンと、点Fを中心とするメインドットパターンとがX軸方向にずれることによって段差部が形成されているものとして、その各段差部において、各メインドットパターンにそれぞれ接するとともに、X方向およびY方向に相互に隣接して並んだ各「|ΔX|−1」個の画素のそれぞれのX方向およびY方向の長さを一辺とする二等辺三角形に含まれる全ての画素を、サブドットパターンとして設定する。   In this manner, when a square main dot pattern having a side equal to the number of dots indicating the display thickness W is set in step S3070, the actual pixel coordinate system between the point G and the immediately preceding center point F is set in step S3090. When the absolute value | ΔX | of the difference between the X coordinate values at 1 is calculated and 1 <| ΔX |, the main dot pattern centered on the point G and the main dot pattern centered on the point F are Assuming that stepped portions are formed by shifting in the direction, each stepped portion is in contact with each main dot pattern and is adjacent to each other in the X and Y directions. "All pixels included in an isosceles triangle having the length in the X direction and the Y direction of each of the pixels as one side are set as sub-dot patterns.

なお、ステップS3060およびステップS3090によるサブドットパターンの設定処理は、表示画面がスクロール中である場合には、省略してもよい。また、ストロークの傾きが水平方向または垂直方向に近い場合においても省略されてもよい。このことにより、線分の段差を埋めるパターンが出力結果の見た目に与える影響が軽微な場面では、描画処理を少なくして描画速度を優先することが可能である。   Note that the sub-dot pattern setting process in steps S3060 and S3090 may be omitted when the display screen is being scrolled. Further, it may be omitted even when the inclination of the stroke is close to the horizontal direction or the vertical direction. This makes it possible to prioritize the drawing speed by reducing the drawing processing in a scene where the effect of the pattern filling the step of the line segment on the appearance of the output result is slight.

このようにしてサブドットパターンが選択されると、ステップS3120において、点Gがストロークの終点Peに対応していないかを確認し、ストロークの終点Peに対応していない場合には、ステップS3020に戻り、ステップS3020以降の処理を繰り返す。   When the sub-dot pattern is selected in this way, it is confirmed in step S3120 whether the point G does not correspond to the stroke end point Pe. If the point G does not correspond to the stroke end point Pe, the process proceeds to step S3020. Returning, the processing after step S3020 is repeated.

ステップS3120において、点Gがストロークの終点Peに対応していることが確認されると、前述したように、図6のステップS2050に進み、1つのストロークに含まれる全ての座標位置についての処理が終了したことを確認する。そして、1つのストロークに含まれる全ての座標位置についての処理が終了していることが確認されると、図5のステップS1050に進み、文字を構成する他のストロークについても同様の処理が実施されて、文字を構成する全てのストロークについての表示データが生成される。   If it is confirmed in step S3120 that the point G corresponds to the stroke end point Pe, as described above, the process proceeds to step S2050 in FIG. 6 to perform processing for all coordinate positions included in one stroke. Check that it has finished. When it is confirmed that the processing for all coordinate positions included in one stroke has been completed, the process proceeds to step S1050 in FIG. 5 and the same processing is performed for the other strokes constituting the character. Thus, display data for all strokes constituting the character is generated.

図13は、図7のストロークAを、9ドットの表示太さで表示する場合に生成される表示データに基づいて表示デバイス2を制御して得られる表示状態を示している。このように、文字を構成するストロークが縦線でなくて横線とみなされる場合にも、相互に隣接するメインドットパターンの間の段差部にサブドットパターンが形成されていることによって、太さWのメインドットパターン同士が、滑らかに連続して表示され、ストロークを太く表示する場合における視認性が著しく向上する。   FIG. 13 shows a display state obtained by controlling the display device 2 based on display data generated when the stroke A of FIG. 7 is displayed with a display thickness of 9 dots. As described above, even when the strokes constituting the character are regarded as horizontal lines instead of vertical lines, the thickness W is obtained by forming the sub-dot patterns at the step portions between the main dot patterns adjacent to each other. The main dot patterns are displayed smoothly and continuously, and the visibility when the stroke is displayed thickly is remarkably improved.

以上の説明は、図6のステップS2020において、ストロークデータとして順番に記録されている最初のサンプル点の座標データ1と2番目のサンプル点の座標データ2とを結ぶ直線が斜め線でない(縦線または横線)と判定された場合の処理についてであったが、以下に、図6のステップS2020において、座標データ1のサンプル点と2番目の座標データ2のサンプル点とを結ぶ直線が斜め線と判定された場合のステップS2040の具体的な処理を、図14のフローチャートに基づいて説明する。   In the above description, in step S2020 in FIG. 6, the straight line connecting the coordinate data 1 of the first sample point and the coordinate data 2 of the second sample point recorded in order as stroke data is not a diagonal line (vertical line). Or a horizontal line), a straight line connecting the sample point of the coordinate data 1 and the sample point of the second coordinate data 2 in FIG. The specific process of step S2040 when it is determined will be described based on the flowchart of FIG.

なお、この場合にも、ブレゼンハムのアルゴリズムによって、ストロークAの始点Psと終点Peとを結ぶ直線(ストローク)上に位置する座標の点Gとして、始点Psから順番に隣接する画素が設定される。図7のストロークBおよびストロークCに対して、ブレゼンハムのアルゴリズムによって抽出される点Gおよび中心点Fを、図9および図10に示す。   In this case as well, pixels adjacent in order from the start point Ps are set as the coordinate point G located on the straight line (stroke) connecting the start point Ps and the end point Pe of the stroke A by Bresenham's algorithm. A point G and a center point F extracted by Bresenham's algorithm for the stroke B and the stroke C in FIG. 7 are shown in FIGS.

始点Psと終点Peとを結ぶ直線が斜め線であると判定されると、まず、図5のフローチャートのステップS1030において、設定された表示太さWに「(2)1/2」を乗算(W×(2)1/2)し、その乗算結果に最も近い1以上の奇数W’を求める(図14のステップS4010参照、以下同様)。If it is determined that the straight line connecting the start point Ps and the end point Pe is an oblique line, first, in step S1030 of the flowchart of FIG. 5, the set display thickness W is multiplied by “(2) 1/2 ” ( W × (2) 1/2 ) to obtain one or more odd numbers W ′ closest to the multiplication result (see step S4010 in FIG. 14, the same applies hereinafter).

ステップS4010において、1以上の奇数W’が求められると、始点Ps(座標データ1のサンプル点)に対応する画素を中心点Fとして、求められたW’が、2本の各対角線のそれぞれのドット数となる菱形形状をメインドットパターンに設定する(ステップS4020)。   In step S4010, when one or more odd numbers W ′ are obtained, the obtained W ′ is determined for each of the two diagonal lines with the pixel corresponding to the start point Ps (sample point of coordinate data 1) as the center point F. A diamond shape corresponding to the number of dots is set as a main dot pattern (step S4020).

図15および16は、それぞれ、図7のストロークBおよびストロークCを、太さWを9ドットとして処理する場合における、座標データ1のサンプル点(始点Ps)に対応する座標位置を中心点Fとして設定された菱形形状のメインドットパターン21をそれぞれ白抜きで示している。それぞれの菱形形状のメインドットパターン21は、表示太さW=9であるので、ステップS4010において、W’は、9×(2)1/2=12.73に最も近い奇数である13を対角線の長さのドット数として設定している。FIGS. 15 and 16 show, as the center point F, the coordinate position corresponding to the sample point (start point Ps) of the coordinate data 1 when the stroke B and the stroke C in FIG. The set rhombus-shaped main dot pattern 21 is shown in white. Since each diamond-shaped main dot pattern 21 has a display thickness W = 9, in step S4010, W ′ is a diagonal line that is an odd number closest to 9 × (2) 1/2 = 12.73. It is set as the number of dots of length.

このようにして、ストロークの始点Psに対する菱形形状のメインドットパターンが設定されると、ブレゼンハムのアルゴリズムによって、点Gに対して終点Pe側に隣接する画素の座標を求めて、新たな点Gとする(ステップS4030)。ブレゼンハムのアルゴリズムは公知であるために説明を省略する。   In this way, when the rhombus-shaped main dot pattern for the stroke start point Ps is set, the coordinates of pixels adjacent to the point Pe side with respect to the point G are obtained by Bresenham's algorithm, and the new point G and (Step S4030). Since Bresenham's algorithm is well-known, description is abbreviate | omitted.

ステップS4030において、点G求められると、求められた点Gと中心点Fとに対応する実ピクセル座標系のX座標値の差の絶対値|ΔX|と、それぞれのY座標値の差の絶対値|ΔY|との合計が、ステップS4010で求められたW’以上(|ΔX|+|ΔY|≧W’)になっているかを判定する(ステップS4040)。   When the point G is obtained in step S4030, the absolute value | ΔX | of the difference between the X coordinate values of the real pixel coordinate system corresponding to the obtained point G and the center point F and the absolute value of the difference between the respective Y coordinate values. It is determined whether the sum of the values | ΔY | is equal to or greater than W ′ obtained in step S4010 (| ΔX | + | ΔY | ≧ W ′) (step S4040).

ステップS4040において|ΔX|+|ΔY|≧W’を満足しない場合には、ステップS4090に進み、点Gがストロークの終点Peに対応していないことを確認して、ステップS4120に戻り、点Gに対して終点Pe側に隣接する画素の座標を求めて、新たな点Gとし(ステップS4030)、|ΔX|+|ΔY|≧W’になっているかを判定する(ステップS4040)。以後、|ΔX|+|ΔY|≧W’になるまで、ステップS4090〜S4120〜ステップS4030〜ステップS4040の処理を繰り返す。   If | ΔX | + | ΔY | ≧ W ′ is not satisfied in step S4040, the process proceeds to step S4090, confirms that the point G does not correspond to the stroke end point Pe, returns to step S4120, and returns to point G40. Then, the coordinates of the pixel adjacent to the end point Pe side are obtained and set as a new point G (step S4030), and it is determined whether | ΔX | + | ΔY | ≧ W ′ (step S4040). Thereafter, the processes in steps S4090 to S4120 to S4030 to S4040 are repeated until | ΔX | + | ΔY | ≧ W ′.

そして、|ΔX|+|ΔY|≧W’を満足する点Gが得られると、その点を中心点Fとして、2本の各対角線がそれぞれドット数W’となった菱形形状をメインドットパターンに設定する(ステップS4050)。   Then, when a point G satisfying | ΔX | + | ΔY | ≧ W ′ is obtained, a rhombus shape in which each of the two diagonal lines has the number of dots W ′ with the point as the center point F is a main dot pattern. (Step S4050).

このようにして設定される菱形形状のメインドットパターンは、|ΔX|+|ΔY|≧W’を満足するために、直前に中心点Fを中心として設定された菱形形状のメインドットパターンとは重なるおそれがない。   The rhombus-shaped main dot pattern set in this way is the rhombus-shaped main dot pattern set immediately before the center point F in order to satisfy | ΔX | + | ΔY | ≧ W ′. There is no risk of overlapping.

なお、点Gがストロークの終点Peに対応していれば、その点G(終点Pe)の画素をメインドットパターン中心Fとして、2本の各対角線がそれぞれドット数W’となった菱形形状をメインドットパターンに設定し(ステップS4100)、処理を終了する。   If the point G corresponds to the stroke end point Pe, the diamond at the point G (end point Pe) is the main dot pattern center F and the two diagonal lines have the number of dots W ′. The main dot pattern is set (step S4100), and the process ends.

図7に示されたストロークBでは、図9に示すように、始点Psの座標(12,0)に対して、ブレゼンハムのアルゴリズムで求められた座標(8,9)の点Gにおいて、ΔXの絶対値とΔYの絶対値との和は13(=W’)(|ΔX|=5、|ΔY|=9)となり、ステップS4040における|ΔX|+|ΔY|≧W’の条件を満たすため、図15に示すように、座標(8,9)の点Gを中心として、各対角線が13ドットの菱形形状がメインドットパターン32(黒ベタで示す)として設定される。   In the stroke B shown in FIG. 7, as shown in FIG. 9, ΔX at the point G of the coordinates (8, 9) obtained by Bresenham's algorithm with respect to the coordinates (12, 0) of the start point Ps. The sum of the absolute value and the absolute value of ΔY is 13 (= W ′) (| ΔX | = 5, | ΔY | = 9), which satisfies the condition of | ΔX | + | ΔY | ≧ W ′ in step S4040. As shown in FIG. 15, a rhombus shape having 13 dots on each diagonal line with a point G at coordinates (8, 9) as the center is set as a main dot pattern 32 (indicated by solid black).

また、図7に示されたストロークCでは、図10に示すように、始点Psの座標(15,0)に対して、ブレゼンハムのアルゴリズムで求められた座標(10,9)の点Gにおいて、ΔXの絶対値とΔYの絶対値との和は14(|ΔX|=5、|ΔY|=9)となってW’(=13)によりも大きくなる。よって、座標(10,9)の点Gが、ステップS4040における|ΔX|+|ΔY|≧W’の条件を満たすため、図16に示すように座標(10,9)の点Gを中心とした各対角線が13ドットの菱形形状がメインドットパターン32(黒ベタで示す)として設定される。この場合、ΔXの絶対値とΔYの絶対値との和が、ドット数W’に等しくなく、1ドットの差が存在するために、それぞれが菱形形状のメインドットパターン31およびメインドットパターン32の間には、相互に対向する辺に沿って間隙(図16にハッチで示す)が形成されることになる。   Further, in the stroke C shown in FIG. 7, as shown in FIG. 10, at the point G of the coordinates (10, 9) obtained by Bresenham's algorithm with respect to the coordinates (15, 0) of the starting point Ps, The sum of the absolute value of ΔX and the absolute value of ΔY is 14 (| ΔX | = 5, | ΔY | = 9), which is larger than W ′ (= 13). Therefore, since the point G at the coordinates (10, 9) satisfies the condition | ΔX | + | ΔY | ≧ W ′ in step S4040, the point G at the coordinates (10, 9) is centered as shown in FIG. A rhombus shape with 13 diagonal lines is set as the main dot pattern 32 (indicated by a solid black pattern). In this case, the sum of the absolute value of ΔX and the absolute value of ΔY is not equal to the number of dots W ′, and there is a difference of 1 dot. A gap (indicated by hatching in FIG. 16) is formed between the sides facing each other.

このようにして、ステップS4050において、図15および図16に示すように、対角線が表示太さWに対応した長さになった菱形形状のメインドットパターン32がメインドットパターン31に隣接して設定されると、各メインドットパターン31および32における相互に近接した近接辺(間隙が形成されることなく密着した辺、または、両者の間に間隙が形成された辺、図15および図16に一括して辺Bとして示す)に沿って各メインドットパターン31および32同士がずれた状態になっており、従って、それぞれ近接辺Bと、それぞれの近接辺Bに対して直交する各メインドットパターン31および32の辺Cおよび辺Aとによって段差部がそれぞれ形成されている。そして、それらの段差部を埋めるように、サブドットパターン33(網掛け模様で示す)がそれぞれ設定される(ステップS4060)。   In this way, in step S4050, as shown in FIGS. 15 and 16, a rhombus-shaped main dot pattern 32 having a diagonal corresponding to the display thickness W is set adjacent to the main dot pattern 31. As a result, the adjacent sides of the main dot patterns 31 and 32 that are close to each other (sides that are in close contact with each other without forming a gap, or sides that are formed with a gap between them, are collectively shown in FIGS. 15 and 16. The main dot patterns 31 and 32 are shifted from each other along the side B). Accordingly, the main dot patterns 31 orthogonal to the adjacent side B and the adjacent side B, respectively. And the step part is formed by the side C and the side A of 32 respectively. Then, the sub-dot patterns 33 (indicated by the shaded pattern) are respectively set so as to fill those stepped portions (step S4060).

各サブドットパターン33は、各メインドットパターン31および32におけるそれぞれの近接辺Bにおける両側において最も外側に位置する各端部の画素のX座標値を、それぞれX1およびX2(但しX1<X2)とすると、X座標値がX1以上X2以下の範囲で、それぞれの段差部内に位置する全ての画素が、サブドットパターン33として設定される。   Each sub-dot pattern 33 has the X-coordinate values of the pixels located at the outermost positions on both sides of the adjacent sides B of the main dot patterns 31 and 32 as X1 and X2 (where X1 <X2), respectively. Then, all the pixels located in the respective step portions within the range where the X coordinate value is X1 or more and X2 or less are set as the sub dot pattern 33.

その後、点Gに対応する実ピクセル座標系のX座標値と中心点Fに対応する実ピクセル座標系の画素のX座標値との差の絶対値|ΔX|と、それぞれのY座標値の差の絶対値|ΔY|との合計が、ステップS4010で求められたW’よりも大きくなっているか(|ΔX|+|ΔY|>W’)を判定する(ステップS4070)。そして、|ΔX|+|ΔY|>W’を満足する場合には、各メインドットパターン31および32における近接辺同士が密着していないために、それらの間に間隙を形成する画素が存在することになり、その間隙を形成する画素の全てを補正用ドットパターン34として設定する(ステップS4080)。   Thereafter, the absolute value | ΔX | of the difference between the X coordinate value of the real pixel coordinate system corresponding to the point G and the X coordinate value of the pixel of the real pixel coordinate system corresponding to the center point F, and the difference between the respective Y coordinate values It is determined whether the sum of the absolute value | ΔY | and the absolute value | ΔY | is greater than W ′ obtained in step S4010 (| ΔX | + | ΔY |> W ′) (step S4070). When | ΔX | + | ΔY |> W ′ is satisfied, since the adjacent sides of the main dot patterns 31 and 32 are not in close contact with each other, there is a pixel that forms a gap therebetween. Accordingly, all of the pixels forming the gap are set as the correction dot pattern 34 (step S4080).

このようにして、メインドットパターン、サブドットパターンおよび補正用ドットパターンが設定されると、点Gがストロークの終点Peに対応しているかを確認し(ステップS4110)、ストロークの終点Peに対応していない場合には、ステップS4030に戻り、ステップS4030以降の動作が繰り返される。   When the main dot pattern, the sub dot pattern, and the correction dot pattern are set in this way, it is confirmed whether the point G corresponds to the stroke end point Pe (step S4110) and corresponds to the stroke end point Pe. If not, the process returns to step S4030, and the operations after step S4030 are repeated.

なお、ステップS4060およびステップS4080におけるサブドットパターンおよび補正用ドットパターンの設定処理は、表示画面がスクロール中である場合には、省略してもよい。また、ストロークの傾きが45度方向または135度方向または225度方向または315度方向に近い場合においても省略されてもよい。このことにより、線分の段差を埋めるパターンが出力結果の見た目に与える影響が軽微な場面では、描画処理を少なくして描画速度を優先することが可能である。   Note that the setting process of the sub-dot pattern and the correction dot pattern in steps S4060 and S4080 may be omitted when the display screen is being scrolled. Further, the stroke may be omitted even when the inclination of the stroke is close to the 45 degree direction, the 135 degree direction, the 225 degree direction, or the 315 degree direction. This makes it possible to prioritize the drawing speed by reducing the drawing processing in a scene where the effect of the pattern filling the step of the line segment on the appearance of the output result is slight.

その後、点Gがストロークの終点Peに対応していることが確認されると(ステップS4110)、図6のステップS2050に戻り、1つのストロークにおける全ての座標点に対する処理が終了したかを確認し、1つのストロークに対して全ての座標点に対する処理が終了している場合には、図5のステップS1060に戻り、1つの文字に含まれる全てのストロークに対する表示データの生成処理が終了しているかを確認し、全てのストロークに対する表示データの生成処理が終了している場合に、1つの文字に対する表示データの生成処理は完了する。   Thereafter, when it is confirmed that the point G corresponds to the end point Pe of the stroke (step S4110), the process returns to step S2050 in FIG. 6 to check whether the processing for all the coordinate points in one stroke is completed. If processing for all coordinate points for one stroke has been completed, the process returns to step S1060 in FIG. 5 to determine whether display data generation processing for all strokes included in one character has been completed. When the display data generation process for all strokes has been completed, the display data generation process for one character is completed.

なお、図17および図18は、図7に示されたストロークBおよびCを、9ドットの表示太さで表示する場合に生成される表示データに基づいて表示デバイス2を制御して得られる表示状態をそれぞれ示している。いずれの場合にも、各ストロークのそれぞれの端点においては、相互に直交する斜め線によってそれぞれのコーナー部が形成されており、しかも、各メインドットパターンの間における段差が緩和されて視認されるために、視認性が著しく向上している。   17 and 18 are displays obtained by controlling the display device 2 based on display data generated when the strokes B and C shown in FIG. 7 are displayed with a display thickness of 9 dots. Each state is shown. In any case, the respective corner portions are formed by diagonal lines orthogonal to each other at the end points of each stroke, and the steps between the main dot patterns are relaxed and visually recognized. In addition, the visibility is remarkably improved.

図19は、前記ストロークCを描画した終点Rを始点としてストロークAを描画する場合において、ストロークAおよびストロークCの各々の始点と終点とを結ぶ直線上の点を矩形で表した図である。ここで、Rで示した点においてストロークAの始点はストロークCの終点と重なっている。このように、あるストロークの始点が他のストロークの終点に重なり合っている場合の描画手順は以下のようになる。   FIG. 19 is a diagram in which a point on a straight line connecting the start point and the end point of each of stroke A and stroke C is represented by a rectangle when the stroke A is drawn starting from the end point R where the stroke C is drawn. Here, at the point indicated by R, the start point of the stroke A overlaps the end point of the stroke C. Thus, the drawing procedure when the start point of a certain stroke overlaps the end point of another stroke is as follows.

基本的に、ストロークCについては、図14で示した同様の手順に従って描画を行い、ストロークAについては、上述したように図11で示した同様の手順によって描画を行うが、点Rのように始点と終点とが重なる場合においては、始点および終点のメインドットパターン描画処理(具体的には、図11におけるステップS3010、ステップS3110、図14におけるステップS4020、ステップS4100の描画処理)が、以下の手順によって行われる。   Basically, the stroke C is drawn according to the same procedure as shown in FIG. 14, and the stroke A is drawn according to the same procedure as shown in FIG. When the start point and the end point overlap, the main dot pattern drawing process at the start point and the end point (specifically, the drawing processes at steps S3010 and S3110 in FIG. 11 and steps S4020 and S4100 in FIG. 14) are as follows. Done by the procedure.

図11におけるステップS3010の描画処理は、図21に示される手順で処理される。以下、図21の描画処理手順について説明する。   The drawing process in step S3010 in FIG. 11 is performed according to the procedure shown in FIG. The drawing process procedure of FIG. 21 will be described below.

ステップS7010:現在の処理点Gおよび直前の描画中心点Fを始点に設定する。ストロークの始点が他のストロークの終点と重なっている場合(すなわち、ストロークの始点の座標が他のストロークの終点の座標と同一である場合)には、ステップS3010の処理を終える。そうでない場合はステップS7020に進む。   Step S7010: The current processing point G and the previous drawing center point F are set as starting points. When the start point of the stroke overlaps with the end point of another stroke (that is, when the coordinates of the start point of the stroke are the same as the coordinates of the end point of the other stroke), the process of step S3010 ends. Otherwise, the process proceeds to step S7020.

ステップS7020:始点を中心に幅、高さが共にストロークの太さWの正方形を描画し、ステップS3010の処理を終える。   Step S7020: A square whose width and height are both the stroke width W is drawn around the start point, and the process of step S3010 is completed.

図11におけるステップS3110の描画処理は、図22に示される手順で処理される。以下、図22の描画処理手順について説明する。   The drawing process in step S3110 in FIG. 11 is performed according to the procedure shown in FIG. The drawing process procedure of FIG. 22 will be described below.

ステップS5010:ストロークの終点が他のストロークの始点と重なっている場合(すなわち、ストロークの終点の座標が他のストロークの始点の座標と同一である場合)には、ステップS5020に進む。そうでない場合はステップS5030に進む。   Step S5010: If the end point of the stroke overlaps the start point of another stroke (that is, if the coordinates of the end point of the stroke are the same as the coordinates of the start point of the other stroke), the process proceeds to step S5020. Otherwise, the process proceeds to step S5030.

ステップS5020:他のストロークの始点と終点が重なっているストロークが斜め線であるかどうかを図6におけるステップS2020と同様の方法によって判定する。斜め線であると判定された場合はステップS5040に進み、そうでない場合はステップS5030に進む。   Step S5020: It is determined by a method similar to step S2020 in FIG. 6 whether or not the stroke where the start point and end point of another stroke overlap is an oblique line. If it is determined that the line is an oblique line, the process proceeds to step S5040. If not, the process proceeds to step S5030.

ステップS5030:点Gを中心に幅、高さが共にストロークの太さWの正方形を描画し、ステップS3110の処理を終える。   Step S5030: A square having both a width and a height of the stroke W around the point G is drawn, and the process of step S3110 ends.

ステップS5040:点Gを中心に幅、高さが共にストロークの太さWの正方形と、高さW’の菱形との合成パターンを描画し、ステップS3110の処理を終える。   Step S5040: A combined pattern of a square having a width W and a stroke thickness W both centered on the point G and a rhombus having a height W 'is drawn, and the process of step S3110 is completed.

ここで、W’は、図14におけるステップS4010と同様の方法により求められる。   Here, W ′ is obtained by the same method as in step S4010 in FIG.

上記合成パターンは図20に示したように、正方形と菱形とを合成したもので、予めメモリ上に生成されたパターンである。すなわち、合成パターンの描画は、菱形と正方形とを重ね合わせることにより個々に描画するのではなく、予め生成している合成パターンを単純にコピーすることによって描画を行うことによって達成される。これにより、重複して画素を塗りつぶす無駄が削減されるため高速化が実現される。なお、予めメモリ上に生成した前記合成パターンを、2つの線分の傾きをパラメータとしてキャッシュメモリのような仕組みで保持しておき再利用することで、合成の処理を削減することができる。   As shown in FIG. 20, the composite pattern is a pattern generated by combining a square and a rhombus in advance on a memory. That is, the drawing of the composite pattern is achieved by drawing by simply copying a composite pattern that has been generated in advance, instead of drawing individually by superimposing the rhombus and the square. As a result, the waste of redundantly painting pixels is reduced, so that high speed is realized. It should be noted that the synthesis process can be reduced by holding and reusing the synthesis pattern generated in advance in the memory with a mechanism like a cache memory using the slopes of the two line segments as parameters.

図14におけるステップS4020の描画処理は、図23に示される手順で処理される。以下、図23の描画処理手順について説明する。   The drawing process in step S4020 in FIG. 14 is processed according to the procedure shown in FIG. The drawing process procedure of FIG. 23 will be described below.

ステップS8010:現在の処理点Gおよび直前の描画中心点Fを始点に設定する。ストロークの始点が他のストロークの終点と重なっている場合(すなわち、ストロークの始点の座標が他のストロークの終点の座標と同一である場合)には、ステップS4020の処理を終える。そうでない場合はステップS8020に進む。   Step S8010: The current processing point G and the previous drawing center point F are set as starting points. When the start point of the stroke overlaps with the end point of another stroke (that is, when the coordinates of the start point of the stroke are the same as the coordinates of the end point of the other stroke), the process of step S4020 ends. Otherwise, the process proceeds to step S8020.

ステップS8020:始点を中心に2本の対角線が共にW’の菱形を描画し、ステップ4020の処理を終える。   Step S8020: Draw a rhombus whose two diagonals are both W 'around the start point, and the process of Step 4020 is completed.

図14におけるステップS4110の描画処理は、図24に示される手順で処理される。以下、図24の描画処理手順について説明する。   The drawing process in step S4110 in FIG. 14 is performed according to the procedure shown in FIG. The drawing process procedure in FIG. 24 will be described below.

ステップS6010:ストロークの終点が他のストロークの始点と重なっている場合(すなわち、ストロークの終点の座標が他のストロークの始点の座標と同一である場合)には、ステップS6020に進む。そうでない場合はステップS6030に進む。   Step S6010: When the end point of the stroke overlaps with the start point of another stroke (that is, when the coordinates of the end point of the stroke are the same as the coordinates of the start point of another stroke), the process proceeds to step S6020. Otherwise, the process proceeds to step S6030.

ステップS6020:他のストロークの始点と終点が重なっているストロークが斜め線であるかどうかを図6におけるステップS2020と同様の方法によって判定する。斜め線であると判定された場合はステップS6040に進み、そうでない場合はステップS6030に進む。   Step S6020: It is determined by a method similar to step S2020 in FIG. 6 whether or not the stroke where the start point and the end point of another stroke overlap is an oblique line. If it is determined that the line is an oblique line, the process proceeds to step S6040; otherwise, the process proceeds to step S6030.

ステップS6030:点Gを中心に幅、高さが共にストロークの太さWの正方形と、高さW’の菱形との合成パターンを描画し、ステップS4110の処理を終える。合成パターンの描画方法は、図22のステップS5040における合成パターンの描画方法と同様である。   Step S6030: A composite pattern of a square having a width W and a stroke thickness W both centered on the point G and a rhombus having a height W 'is drawn, and the process of step S4110 is completed. The synthetic pattern drawing method is the same as the synthetic pattern drawing method in step S5040 of FIG.

ステップS6040:点Gを中心に2本の対角線が共にW’の菱形を描画し、ステップS4110の処理を終える。   Step S6040: A diamond having two diagonal lines W 'around the point G is drawn, and the process of step S4110 ends.

以上のように、本発明によれば、文字または図形のストロークを任意の線幅で表示する場合に、ストロークの傾きに適した太さおよび端点を有するように表示されるために、表示サイズを大きくする場合にも、文字または図形の視認性が著しく向上する。さらに、複数のメインドットパターンを互いに重複しないように配置し、メインドットパターンとサブドットパターンとを重複しないように配置することによって、冗長な処理を回避することができ、文字図形表示処理を高速に行うことが可能となる。さらに、画面スクロール中に、サブドットパターンの配置処理を実施せずに、メインドットパターンによって文字または図形の概略形状のみを表示することにより、文字図形表示処理をさらに高速に行うことが可能となる。   As described above, according to the present invention, when a stroke of a character or a figure is displayed with an arbitrary line width, the display size is set to have a thickness and an end point suitable for the inclination of the stroke. Even when the size is increased, the visibility of characters or figures is remarkably improved. Furthermore, by arranging a plurality of main dot patterns so as not to overlap each other and arranging the main dot patterns and sub dot patterns so as not to overlap, redundant processing can be avoided and character graphic display processing can be performed at high speed. Can be performed. Furthermore, by displaying only the approximate shape of the character or figure using the main dot pattern without performing the sub-dot pattern arrangement process during screen scrolling, the character / graphic display process can be performed at higher speed. .

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

本発明によれば、携帯電話機、液晶テレビジョン等のように文字または図形を表示画面に表示する表示デバイスを備えた電子機器等において、文字または図形のストロークを任意の線幅で表示する場合に、ストロークの傾きに適した太さおよび端点を有するように表示することができ、しかも、高速、かつ、高品位に文字または図形を表示させることができる。   According to the present invention, when displaying strokes of characters or figures with an arbitrary line width in an electronic apparatus or the like equipped with a display device that displays characters or figures on a display screen, such as a mobile phone or a liquid crystal television. In addition, it is possible to display with a thickness and end points suitable for the inclination of the stroke, and to display characters or graphics at high speed and high quality.

Claims (17)

文字または図形を表示画面に表示する文字図形表示装置であって、
表示されるべき文字または図形の骨格を表す骨格データを取得する骨格データ取得手段であって、該骨格データは、該文字または該図形のストロークを表すストロークデータを含み、該ストロークデータは、該ストロークに対応する複数のサンプル点の座標データを含む、骨格データ取得手段と、
該文字または該図形を構成する線の太さと、該ストロークに対応する該複数のサンプル点のうち互いに隣接する2つのサンプル点の座標データとに基づいて、メインドットパターンの形状を決定するメインドットパターン形状決定手段と、
該決定された形状をそれぞれ有する複数のメインドットパターンを互いに重複しないように配置することによって、該文字または該図形を表示するための表示データを生成する表示データ生成手段と
を備えた、文字図形表示装置。
A character graphic display device for displaying characters or figures on a display screen,
Skeleton data acquisition means for acquiring skeleton data representing a skeleton of a character or a graphic to be displayed, wherein the skeleton data includes stroke data representing a stroke of the character or the graphic, and the stroke data includes the stroke Skeleton data acquisition means including coordinate data of a plurality of sample points corresponding to
A main dot that determines the shape of the main dot pattern based on the thickness of the line constituting the character or the figure and the coordinate data of two sample points adjacent to each other among the plurality of sample points corresponding to the stroke Pattern shape determining means;
A character graphic comprising: display data generating means for generating display data for displaying the character or the graphic by arranging a plurality of main dot patterns each having the determined shape so as not to overlap each other Display device.
前記表示データ生成手段は、前記複数のメインドットパターンによって形成される段差を埋めるように少なくとも1つのサブドットパターンを配置することによって、前記表示データを生成する、請求項1に記載の文字図形表示装置。   2. The character graphic display according to claim 1, wherein the display data generation unit generates the display data by arranging at least one sub-dot pattern so as to fill a step formed by the plurality of main dot patterns. apparatus. 前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線の傾きに応じて、前記メインドットパターンの形状を正方形および菱形の一方に決定する、請求項1に記載の文字図形表示装置。   2. The character graphic display device according to claim 1, wherein the main dot pattern shape determining means determines the shape of the main dot pattern as one of a square and a rhombus according to an inclination of a straight line connecting the two sample points. 前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線が斜め線であるか否かを判定し、該2つのサンプル点を結ぶ直線が斜め線であると判定された場合には、前記メインドットパターンの形状を菱形に決定し、該2つのサンプル点を結ぶ直線が斜め線でないと判定された場合には、前記メインドットパターンの形状を正方形に決定する、請求項1に記載の文字図形表示装置。   The main dot pattern shape determining means determines whether or not the straight line connecting the two sample points is an oblique line, and when it is determined that the straight line connecting the two sample points is an oblique line, The shape of the main dot pattern is determined to be a rhombus, and when it is determined that the straight line connecting the two sample points is not a diagonal line, the shape of the main dot pattern is determined to be a square. Character graphic display device. 前記メインドットパターン形状決定手段は、前記2つのサンプル点を結ぶ直線の傾きθが、0°≦θ<25°、65°≦θ<113°、155°≦θ<205°、245°≦θ<295°または335°≦θ<360°の場合には、該2つのサンプル点を結ぶ直線が斜め線でないと判定し、それ以外の場合には、該2つのサンプル点を結ぶ直線が斜め線であると判定する、請求項4に記載の文字図形表示装置。   In the main dot pattern shape determining means, the inclination θ of the straight line connecting the two sample points is 0 ° ≦ θ <25 °, 65 ° ≦ θ <113 °, 155 ° ≦ θ <205 °, 245 ° ≦ θ. If <295 ° or 335 ° ≦ θ <360 °, it is determined that the straight line connecting the two sample points is not a diagonal line; otherwise, the straight line connecting the two sample points is a diagonal line The character graphic display device according to claim 4, wherein the character graphic display device is determined to be. 前記メインドットパターン形状決定手段は、前記文字または前記図形を構成する線の太さに応じて、前記メインドットパターンの各辺の画素数を決定する、請求項1に記載の文字図形表示装置。   2. The character graphic display device according to claim 1, wherein the main dot pattern shape determining means determines the number of pixels on each side of the main dot pattern in accordance with a thickness of a line constituting the character or the graphic. 前記文字または前記図形を構成する線の太さは、該文字または該図形のサイズ、または、該文字または該図形を構成する線の本数に応じて設定される、請求項1に記載の文字図形表示装置。   2. The character graphic according to claim 1, wherein a thickness of a line constituting the character or the graphic is set according to a size of the character or the graphic or a number of lines constituting the character or the graphic. Display device. 前記表示データ生成手段は、前記表示画面がスクロール中である場合、または、ストロークの傾きが所定の方向に近い場合には、前記サブドットパターンを配置しない、請求項2に記載の文字図形表示装置。   3. The character graphic display device according to claim 2, wherein the display data generation unit does not arrange the sub-dot pattern when the display screen is being scrolled or when the stroke inclination is close to a predetermined direction. . 前記メインドットパターン形状決定手段が、前記メインドットパターンの形状を正方形に決定した場合において、前記表示データ生成手段は、前記2つのサンプル点のうちの一方のサンプル点に対応する前記表示画面における画素を中心として、各辺が所定の画素数の正方形のメインドットパターンを配置し、前記表示画面において前記2つのサンプル点を結ぶ直線に対応する画素上で、該配置されたメインドットパターンの中心画素からX座標値またはY座標値の差が該所定の画素数である画素を中心として、各辺が該所定の画素数の正方形のメインドットパターンを配置することによって、前記表示データを生成する、請求項4に記載の文字図形表示装置。   When the main dot pattern shape determining means determines the shape of the main dot pattern to be square, the display data generating means is a pixel on the display screen corresponding to one sample point of the two sample points. A square main dot pattern having a predetermined number of pixels on each side, and a central pixel of the arranged main dot pattern on a pixel corresponding to a straight line connecting the two sample points on the display screen The display data is generated by arranging a square main dot pattern with each side having the predetermined number of pixels around a pixel having a difference between the X coordinate value or the Y coordinate value from the predetermined number of pixels. The character graphic display device according to claim 4. 前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの左右にそれぞれ段差部が形成されている場合には、該2つのメインドットパターンのそれぞれの中心画素のY座標の差をΔYとして、互いに直交する2辺の長さが│ΔY│−1である直角二等辺三角形に含まれる全ての画素をサブドットパターンとして設定し、
前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの上下にそれぞれ段差部が形成されている場合には、該2つのメインドットパターンのそれぞれの中心画素のX座標の差をΔXとして、互いに直交する2辺の長さが│ΔX│−1である直角二等辺三角形に含まれる全ての画素をサブドットパターンとして設定する、請求項9に記載の文字図形表示装置。
In the case where step portions are formed on the left and right sides of two main dot patterns arranged adjacent to each other, the display data generation unit is configured to obtain a difference between Y coordinates of central pixels of the two main dot patterns. Is set as ΔY, and all pixels included in a right-angled isosceles triangle whose length of two sides orthogonal to each other is | ΔY | −1 are set as sub-dot patterns,
In the case where step portions are respectively formed above and below two main dot patterns arranged adjacent to each other, the display data generation means is configured to obtain a difference between X coordinates of central pixels of the two main dot patterns. The character graphic display device according to claim 9, wherein ΔX is set as a sub-dot pattern for all pixels included in a right-angled isosceles triangle whose length of two sides orthogonal to each other is | ΔX | −1.
前記メインドットパターン形状決定手段が、前記メインドットパターンの形状を菱形に決定した場合において、前記表示データ生成手段は、前記文字または前記図形を構成する線の太さをWとして、画素数Wに(2)1/2を乗じた値に最も近い奇数を画素数W’として求め、2本の対角線の長さがそれぞれ前記画素数W’である菱形形状のメインドットパターンを配置することによって、前記表示データを生成する、請求項4に記載の文字図形表示装置。In the case where the main dot pattern shape determining means determines the shape of the main dot pattern as a rhombus, the display data generating means sets the thickness of the lines constituting the character or the figure as W and sets the number of pixels to W. (2) By obtaining the odd number closest to the value multiplied by 1/2 as the pixel number W ′, and arranging the rhombus-shaped main dot pattern in which the length of two diagonal lines is the pixel number W ′, respectively, The character graphic display device according to claim 4, wherein the display data is generated. 前記表示データ生成手段は、前記表示画面において前記2つのサンプル点を結ぶ直線に対応する画素上で、前記配置されたメインドットパターンの中心画素とのX座標値の差の絶対値とY座標値の差の絶対値との和が前記画素数W’以上となる画素を中心として、前記菱形形状のメインドットパターンを配置する、請求項11に記載の文字図形表示装置。   The display data generation unit is configured to generate an absolute value and a Y coordinate value of a difference in X coordinate values from a central pixel of the arranged main dot pattern on a pixel corresponding to a straight line connecting the two sample points on the display screen. 12. The character graphic display device according to claim 11, wherein the rhombus-shaped main dot pattern is arranged centering on a pixel having a sum of absolute values of differences between the pixel values W ′ and the number of pixels as a center. 前記表示データ生成手段は、互いに隣接して配置された2つのメインドットパターンの対応する辺に沿って、該2つのメインドットパターンが互いにずれることにより段差が形成されている場合には、該2つのメインドットパターンの対応する辺における両側において最も外側に位置する各端部の画素のX座標値を、それぞれ、X1およびX2(但しX1<X2)として、X座標値がX1以上X2以下の範囲で、それぞれの段差部内に位置する全ての画素をサブドットパターンとして設定する、請求項11に記載の文字図形表示装置。   The display data generation means, when the two main dot patterns are shifted from each other along the corresponding sides of the two main dot patterns arranged adjacent to each other, The X coordinate values of the pixels at the outermost positions on both sides of the corresponding sides of one main dot pattern are X1 and X2 (where X1 <X2), respectively, and the X coordinate value is in the range of X1 to X2 The character graphic display device according to claim 11, wherein all the pixels located in each stepped portion are set as a sub-dot pattern. 前記表示データ生成手段は、前記ストロークの終点が他のストロークの始点と重なる場合には、該ストロークの終点および該他のストロークの始点の位置に合成パターンを配置することによって、前記表示データを生成し、該合成パターンは、該ストロークの終点に配置されるべきメインドットパターンと該他のストロークの始点に配置されるべきメインドットパターンとをあらかじめ合成したものである、請求項1に記載の文字図形表示装置。   When the end point of the stroke overlaps the start point of another stroke, the display data generation unit generates the display data by arranging a composite pattern at the position of the end point of the stroke and the start point of the other stroke. 2. The character according to claim 1, wherein the composite pattern is a combination of a main dot pattern to be placed at the end point of the stroke and a main dot pattern to be placed at the start point of the other stroke. Graphic display device. 文字または図形を表示画面に表示する表示する文字図形表示方法であって、
表示されるべき文字または図形の骨格を表す骨格データを取得するステップであって、該骨格データは、該文字または該図形のストロークを表すストロークデータを含み、該ストロークデータは、該ストロークに対応する複数のサンプル点の座標データを含む、ステップと、
該文字または該図形を構成する線の太さと、該ストロークに対応する該複数のサンプル点のうち互いに隣接する2つのサンプル点の座標データとに基づいて、メインドットパターンの形状を決定するステップと、
該決定された形状をそれぞれ有する複数のメインドットパターンを互いに重複しないように配置することによって、該文字または該図形を表示するための表示データを生成するステップと
を包含する、文字図形表示方法。
A character / graphic display method for displaying characters or figures on a display screen,
Obtaining skeleton data representing a skeleton of a character or graphic to be displayed, the skeleton data including stroke data representing a stroke of the character or graphic, the stroke data corresponding to the stroke A step including coordinate data of a plurality of sample points;
Determining the shape of the main dot pattern based on the thickness of a line constituting the character or the figure and the coordinate data of two sample points adjacent to each other among the plurality of sample points corresponding to the stroke; ,
Generating a display data for displaying the character or the figure by arranging a plurality of main dot patterns each having the determined shape so as not to overlap each other.
請求項15に記載の文字図形表示方法の各ステップをコンピュータによって実行させるための文字図形表示プログラム。   A character graphic display program for causing a computer to execute each step of the character graphic display method according to claim 15. 請求項16に記載の文字図形表示プログラムが記録されたコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the character graphic display program according to claim 16 is recorded.
JP2007533369A 2005-09-02 2006-09-01 Character graphic display device, character graphic display method, character graphic display program, and recording medium Expired - Fee Related JP4761477B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007533369A JP4761477B2 (en) 2005-09-02 2006-09-01 Character graphic display device, character graphic display method, character graphic display program, and recording medium

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2005255609 2005-09-02
JP2005255609 2005-09-02
PCT/JP2006/317384 WO2007026898A1 (en) 2005-09-02 2006-09-01 Character/graphic display device, character/graphic display method, character/graphic display program, and recording medium
JP2007533369A JP4761477B2 (en) 2005-09-02 2006-09-01 Character graphic display device, character graphic display method, character graphic display program, and recording medium

Publications (2)

Publication Number Publication Date
JPWO2007026898A1 true JPWO2007026898A1 (en) 2009-03-12
JP4761477B2 JP4761477B2 (en) 2011-08-31

Family

ID=37808982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007533369A Expired - Fee Related JP4761477B2 (en) 2005-09-02 2006-09-01 Character graphic display device, character graphic display method, character graphic display program, and recording medium

Country Status (2)

Country Link
JP (1) JP4761477B2 (en)
WO (1) WO2007026898A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05205062A (en) * 1992-01-27 1993-08-13 Hitachi Ltd Vector data/image data converting method
JPH1097237A (en) * 1996-09-20 1998-04-14 Fujitsu Ltd Plotter
JP2000267644A (en) * 1999-01-12 2000-09-29 Sanyo Electric Co Ltd Device and method for processing font, and storage medium therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0679323B2 (en) * 1987-05-19 1994-10-05 三洋電機株式会社 Brush typeface generation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05205062A (en) * 1992-01-27 1993-08-13 Hitachi Ltd Vector data/image data converting method
JPH1097237A (en) * 1996-09-20 1998-04-14 Fujitsu Ltd Plotter
JP2000267644A (en) * 1999-01-12 2000-09-29 Sanyo Electric Co Ltd Device and method for processing font, and storage medium therefor

Also Published As

Publication number Publication date
WO2007026898A1 (en) 2007-03-08
JP4761477B2 (en) 2011-08-31

Similar Documents

Publication Publication Date Title
JP4498146B2 (en) MEDIA DISPLAY METHOD FOR COMPUTER DEVICE, COMPUTER DEVICE, COMPUTER PROGRAM
US6542161B1 (en) Character display apparatus, character display method, and recording medium
US7006096B2 (en) Character display apparatus, character display method, and recording medium
JP2006524367A5 (en)
JP2005501310A (en) Scaling method and / or method and system for displaying an information medium in a specific direction
JP3552094B2 (en) Character display device, character display method, and recording medium
JP4407875B2 (en) CHARACTER DISPLAY DEVICE, CHARACTER DISPLAY METHOD, CONTROL PROGRAM FOR CONTROLLING THE CHARACTER DISPLAY METHOD, AND RECORDING MEDIUM CONTAINING THE CONTROL PROGRAM
EP1686532A1 (en) Image processing apparatus, image processing program, and readable recording medium
US20020005848A1 (en) Image display apparatus, image displaying method and recording medium
JP2006171675A (en) Method of generating silhouette-oriented gray font
US6766052B2 (en) Character display device, character display method, and recording medium therefor
KR100749873B1 (en) Character display apparatus, character display method, and readable recording medium
KR100642694B1 (en) Display apparatus, information display method, information display program, readable recording medium, and information apparatus
JP4761477B2 (en) Character graphic display device, character graphic display method, character graphic display program, and recording medium
JPH09114999A (en) Plotting device
EP1916650A1 (en) Character data generation device, electronic information device, character data generation program, and readable recording medium
JP4667464B2 (en) Image information generating apparatus, image information generating method, image information generating program, and recording medium
JP5158752B2 (en) Display control device, display device, display control program, computer-readable recording medium, and display control method
JP2009237660A (en) Image processor, printer, image processing method and program for image processing
JP2007156500A (en) Character display apparatus
WO2006075695A1 (en) Character figure display, program, and recording medium
JP2008111954A (en) Display controller, display control program and recording medium recorded with display control program
JP4831936B2 (en) Character display device
JP2022104334A (en) Printer, printing data creation method, and program
JPH11119762A (en) Display control device, display control method, and storage medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110323

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110603

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110603

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

Free format text: PAYMENT UNTIL: 20140617

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees