WO2004102524A1 - 文字図形表示装置、文字図形表示方法、プログラムおよび記録媒体 - Google Patents
文字図形表示装置、文字図形表示方法、プログラムおよび記録媒体 Download PDFInfo
- Publication number
- WO2004102524A1 WO2004102524A1 PCT/JP2004/006923 JP2004006923W WO2004102524A1 WO 2004102524 A1 WO2004102524 A1 WO 2004102524A1 JP 2004006923 W JP2004006923 W JP 2004006923W WO 2004102524 A1 WO2004102524 A1 WO 2004102524A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- distance
- character
- quantized
- reference point
- stroke
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/22—Control 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/24—Generation of individual character patterns
- G09G5/246—Generation of individual character patterns of ideographic or arabic-like characters
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
Definitions
- Character / graphic display device character / graphic display method, program and recording medium
- the present invention relates to a character / graphic display device, a character / graphic display method, a program, and a recording medium for displaying a scaled character or graphic.
- the character data for displaying characters include, for example, bitmap data and vector data.
- Bitmap data includes fixed coordinate values. By outputting fixed coordinate values to a display device such as a color liquid crystal display device, characters can be displayed on the display device. However, bitmap data is fixed according to the character size. Therefore, bitmap data must be prepared for each required character size.
- the vector data includes, for example, data indicating an outline of a character and data indicating a stroke constituting the character.
- a display device such as a color liquid crystal display device
- the vector data When outputting vector data to a display device such as a color liquid crystal display device, the vector data must be scaled according to the size of the characters to be displayed on the display device.
- the required character sizes are various, only one type of vector data is required. This is because vector data is not fixed according to the character size. Therefore, the capacity of the storage device for storing character data may be small.
- FIG. 19 shows the stroke before and after the coordinate value indicating the stroke is rounded off.
- FIG. 19 includes a coordinate A and a coordinate B.
- the stroke shown at coordinate A is the stroke before the coordinate value is rounded.
- the stroke indicated by the coordinate B is the stroke after the coordinate values have been rounded. As a result of rounding off the coordinate value indicating the strike, the distance between strokes is reversed.
- the mark is represented by a coordinate value of 0.3 (stroke a), a coordinate value of 4.5 (stroke b), a coordinate value of 8.3 (stroke c), and a coordinate value of 11.5 (stroke d).
- coordinate value 0.3 (stroke a) becomes coordinate value 0 (stroke a ')
- coordinate value 4.5 (stroke b) becomes coordinate value 5 (stroke )
- Coordinate value 8.3 (stroke c) becomes coordinate value 8 (stroke c ')
- coordinate value 11.5 (stroke d) becomes coordinate value 12 (stroke d').
- the distance between stroke a and stroke b (distance ab) is 4.2, the distance between stroke b and stroke c (distance be) is 3.8, the distance between stroke c and stroke d ( The distance cd) is 3.2.
- the distance (distance a, b,) between the stroke a and the stroke b is 5, and the distance between the stroke b 'and the stroke c' ( The distance b'c ') is 3, and the distance between the stroke c' and the stroke d '(distance c'd,) is 4.
- FIG. 20 shows the coordinates C.
- the stroke indicated by the coordinate C is a stroke after the stroke indicated by the coordinate A is moved by using the technique disclosed in Japanese Patent Application Laid-Open No. 6-175638.
- the stroke is moved as follows.
- the difference between the maximum ratio of 1.25 (distance c 'd' / distance cd) and the minimum ratio of 0.79 (distance b 'c' no distance be) is 0.46.
- ratio 1.05 ((distance b 'c' + 1) Z distance be)
- ratio 0.94 ((distance c 'd' — 1 ) / Distance cd).
- the difference between the maximum ratio of 1.19 (distance a 'b' / distance ab) and the minimum ratio of 0.94 ((distance c 'd' — 1) Z distance cd) is 0.25.
- the difference between the maximum and minimum ratios has been reduced. Move the stroke to achieve these ratios. In this case, stroke. And are moved in the direction opposite to the stroke b '.
- FIG. 21 shows coordinates D and E.
- Coordinate D indicates four strokes.
- Coordinate E indicates a stroke after the stroke indicated by coordinates D has been moved using the technique disclosed in Japanese Patent Application Laid-Open No. 6-175638.
- the four strikes shown at coordinate D have a coordinate value of 0.2 (stroke a), a coordinate value of 4.4 (stroke b), a coordinate value of 8.2 (stroke c), and a coordinate value of 1.1.4. (Stroke d).
- the coordinate value 0.2 (stroke a) becomes the coordinate value 0 (stroke a ')
- the coordinate value 4.4 (stroke b) becomes the coordinate value 4 (stroke b ')
- Coordinate value 8.2 (stroke c) becomes coordinate value 8 (stroke c')
- coordinate value 11.4 (stroke d) becomes coordinate value 11 (stroke d ').
- the maximum ratio is 1.05 (distance b, c 'distance be).
- the minimum ratio is 0.94 (distance c 'd' no distance cd). To reduce the difference between the maximum ratio and the minimum ratio, calculate the ratio between the value obtained by subtracting 1 from the distance b'c 'and the distance be.
- the ratio of the value obtained by subtracting 1 from the distance b 'c' to the distance bc is 0.79 ((distance b 'c' -1) distance be).
- the ratio of the distance c 'd' plus 1 to the distance cd The rate is 1.25 ((distance c 'd' + 1) distance cd).
- the difference between the maximum and minimum ratios is not small.
- the stroke indicated by the coordinate C is the stroke after the stroke indicated by the coordinate A is moved using the technology disclosed in Japanese Patent Application Laid-Open No. 6-175638.
- the stroke indicated by the coordinate E is the stroke after the stroke indicated by the coordinate D has been moved using the technique disclosed in Japanese Patent Application Laid-Open No. 6-175638.
- the stroke shown at coordinate D is a stroke that has been moved down by 0.1 from the stroke shown at coordinate A. Therefore, the stroke shown at the coordinate D and the stroke shown at the coordinate A have the same shape and the same size. However, the stroke shown at the coordinates D and the stroke shown at the coordinates A were different from the stroke shown at the coordinates E, and the stroke shown at the coordinates C was different. It will have a size different from the shape.
- the distance a'd 'between the strokes shown at the coordinate C is 12.
- the distance a 'd' between the strokes shown at coordinate E is 11.
- FIG. 22 shows coordinates F and G.
- Coordinate F indicates six strokes.
- Coordinate G indicates a stroke after the stroke indicated by coordinates F has been moved using the technique disclosed in Japanese Patent Application Laid-Open No. 6-175638.
- the six strokes shown at coordinate F are coordinate value 0.3 (stroke a), coordinate value 4.5 (stroke b), coordinate value 8.3 (stroke c), coordinate value 11.5 (stroke d ), Coordinate value 15.2 (stroke e), and coordinate value 18.6 (stroke f).
- the coordinate value indicating the stroke is rounded off, resulting in a coordinate value of 0. 3 (stroke a) is coordinate value 0 (stroke a '), coordinate value 4.5 (stroke b) is coordinate value 5 (stroke b'), and coordinate value 8.3 (stroke c) is Coordinate value 8 (stroke c '), coordinate value 11.5 (stroke d) is coordinate value 12 (stroke d'), coordinate value 15.2 (stroke e) is coordinate value 15 (stroke e). ,), The coordinate value 18.6 (stroke) becomes the coordinate value 19 (stroke d ').
- the maximum ratio is 1.25 (distance c'd '/ distance cd). To reduce the difference between the maximum ratio and the minimum ratio, calculate the ratio between the value obtained by subtracting 1 from the distance c 'd' and the distance cd.
- the ratio of the value obtained by subtracting 1 from the distance c 'd' to the distance cd is 0.94 ((distance c 'd'-1) no distance cd).
- the minimum ratio is 0.79 (distance b 'c' Z distance be).
- the ratio of the value obtained by adding 1 to the distance b 'c' and the distance be is 1.05 ((distance b 'c' + l) Z distance be). Since the difference between the maximum ratio and the minimum ratio becomes smaller, the stroke c 'is moved in the direction of the stroke b'. However, although the distance interval of some strokes shown at coordinate G has been improved, the reversal of distance de and distance ef remains.
- FIG. 23 shows a coordinate H, a coordinate I, and a coordinate J.
- Coordinate H indicates two strikes.
- the coordinate I indicates the stroke after the coordinate value of the stroke indicated by the coordinate H is rounded off.
- Coordinate J indicates the stroke displayed on the display device.
- the two strokes indicated by the coordinate H are indicated by a coordinate value 0.6 (stroke a) and a coordinate value 2.4 (stroke b).
- the coordinate value 0.6 (stroke a) becomes the coordinate value 1 (stroke a ') and the coordinate value 2.4 (stroke!) Becomes coordinate value 2 (stroke b,).
- the stroke shown at the coordinate D and the stroke shown at the coordinate A have the same shape and the same size.
- the stroke after the position adjustment indicated by the coordinate E and the position indicated by the coordinate C are adjusted.
- the stroke after the position adjustment has a different shape and a different size.
- An object of the present invention is to provide a character / graphic display device, a character / graphic display method, a program, and a recording medium which can solve at least one of the problems (1) to (3) described above. Disclosure of the invention
- a character / graphics display device comprises: a display device for displaying characters or graphics;
- a character / graphic display device comprising a control unit for controlling the display depth, wherein the control unit executes a character / graphic display process, wherein the character / graphic display process includes a reference point along a specific axis.
- the quantization in the second method may be performed in consideration of a flag indicating a minimum required distance as the distance quantized in the second method.
- the step of generating the distance quantized by the second method may be performed in consideration of a flag indicating a minimum required distance as the distance quantized by the second method.
- the step of generating the distance quantized by the second method may include the step of increasing the distance quantized by the second method.
- the step of generating the distance quantized by the second method may include a step of reducing the distance quantized by the second method.
- the step of generating the distance quantized by the second method may include the step of setting the distance quantized by the second method to zero.
- the step of displaying the scaled character or figure includes the steps of: determining a first point, which is a predetermined point on the scaled character, such that the value of the distance a Z distance b is closest to the value of the distance AZ distance B. Displaying, wherein the step of displaying The second point, which corresponds to point 1 and is a point on the character before being scaled, is the first and second reference points that are adjacent to each other among the reference points before scaling. And distance A is the distance between the second point and the first reference point, and distance B is the distance between the second point and the second reference point. The distance a is the distance between the first point and the first reference point scaled, and the distance b is the second distance scaled with the first point. Is the distance from the reference point.
- the character is composed of a plurality of blocks, and the character graphic display processing includes a step of generating a sum quantized by the first method, and a step of generating a distance quantized by the second method. And generating a distance quantized by the second method for each block.
- the step of setting the distance to 0 may be performed in consideration of a flag indicating the order in which the distance quantized by the second method is set to 0.
- a method for displaying a character or graphic includes the steps of: generating a scaled reference point by scaling a character or figure including a reference point along a specific axis; and a distance between the scaled reference point. Generating the sum quantized by the first method by quantizing the sum of the first method by a first method; andquantizing the distance between the scaled reference points by a second method. Generating a distance quantized by the second method, such that the sum of the distances quantized by the second method is equal to the sum quantized by the first method. Adjusting at least one of the distances quantized by the second method; and scaling based on the scaled reference point with the adjusted at least one distance. Displaying the displayed character or graphic, thereby achieving the above object.
- a program according to the present invention is a program for causing a character / graphics display device including a display device for displaying characters or graphics and a control unit for controlling the display device to execute a character / graphics display process.
- the display process is for a specific axis Generating a scaled reference point by scaling a character or graphic containing the along reference points, and summing the distance between the scaled reference points by a first method. Generating a sum quantized by the first method by quantizing; andquantizing the S-separation between the scaled reference points by a second method, thereby obtaining the second sum.
- a recording medium is a recording medium readable by a character / graphics display device including a display device for displaying characters or graphics, and a control unit for controlling the display resolution.
- Generating a distance quantized by the second method andthe second step so that a sum of the distances quantized by the second method is equal to a sum quantized by the first method.
- FIG. 1 is a diagram showing a configuration of a character display device 100 according to an embodiment of the present invention.
- FIG. 2 is a diagram showing strokes constituting the character “reed”.
- FIG. 3 is a diagram showing character data 142 of the character “reed” composed of the strokes shown in FIG.
- FIG. 4 is a diagram showing character data of the character “Akira”.
- FIG. 5 is a diagram showing a distance between reference points along the Y axis and a distance between reference points along the X axis.
- FIG. 6 is a flowchart showing the processing procedure of the character display program 141.
- FIG. 7 is a flowchart illustrating the details of the procedure of the dalid fitting process (the process of the program 141b) in step S103.
- FIG. 8 is a flowchart illustrating details of processing in a specific axial direction of a block in steps S201 and S203.
- FIG. 9 is a diagram showing coordinate data before scaling and coordinate data after scaling.
- FIG. 10 is a diagram showing data obtained by grid-fitting the character data in the Y-axis direction.
- FIG. 11 is a diagram showing the coordinate values after the David Fitting.
- FIG. 12 is a diagram showing data obtained by performing grid fitting of character data in the X-axis direction.
- FIG. 13 is a diagram showing a character “ ⁇ ” of 30 dots in size displayed on the display device.
- FIG. 14 is a diagram showing coordinate data before scaling and coordinate data after scaling.
- FIG. 15 is a diagram showing data obtained by grid-fitting character data in the Y-axis direction.
- FIG. 16 is a diagram showing coordinate values after the Darid fitting.
- FIG. 17 is a diagram showing data obtained by grid-fitting character data in the X-axis direction.
- FIG. 18 is a diagram showing a character “reed” with a size of 14 dots displayed on the display device.
- FIG. 19 is a diagram showing a stroke before and after a coordinate value indicating a stroke is rounded off.
- FIG. 20 is a diagram showing the coordinates C.
- FIG. 21 is a diagram showing coordinates D and E.
- FIG. 22 is a diagram showing coordinates F and G.
- FIG. 23 is a diagram showing a coordinate H, a coordinate I, and a coordinate J.
- “Characters” as used herein include, for example, hiragana, katakana, kanji, alphabet, pictograms, and numbers. However, the present invention is not limited to these.
- the “graphic” used in this specification includes, for example, a part of a character, a pattern, and a symbol. However, the present invention is not limited to these.
- FIG. 1 shows a configuration of a character display device 100 according to an embodiment of the present invention.
- Character display device 100 can be, for example, a personal computer. Personal convenience
- any type of computer such as a desktop or laptop, may be used.
- the character display device 100 may be a word processor.
- the character display device 100 may be any information display device such as an electronic device or an information device provided with a display device capable of performing a color display.
- the character display device 100 is an electronic device having a color liquid crystal display device or a portable information tool. It may be a mobile information terminal, a mobile phone including a PHS, or a communication device such as a general telephone / fax.
- Character display device 100 is an input device 110 and a display device that displays characters
- control unit 120 for controlling the display device
- auxiliary storage device 140 An input device 110, a display device 130, and an auxiliary storage device 140 are connected to the control unit 120.
- the input device 110 is used to input character information indicating a character to be displayed on the display device 130 to the control unit 120.
- the character information includes, for example, a character code for identifying a character and size information indicating the size of the character.
- any type of input device capable of inputting a character code and size information can be used.
- an input device such as a keyboard, a mouse, and a pen input device can be suitably used as the input device 110.
- character display device 100 When character display device 100 is a mobile phone, a numeric key for designating a telephone number of a communication destination may be used for inputting a character code or size information.
- the character display device 100 When the character display device 100 is provided with a means for connecting the character display device 100 to a telephone communication line including the Internet, a message included in an e-mail received from the telephone communication line May be displayed on the display device 130.
- the means for connecting to the communication line functions as the input device 110.
- the auxiliary storage device 140 stores a character display program 141 and character data 144 necessary to execute the character display program 41. Character data
- the character display program 14 1 is a program that generates a scaled coordinate data by scaling the coordinate data included in the character data 14 2 to fit the character size to be output to the display device.
- Scaled coordinates A program 141b for generating a dalit-fitted coordinate data by performing a dalit-fitting on the data and a drawing data for generating the dalit-fitted coordinate data so that the data can be displayed on a display device.
- Generation program 141c is a program that generates a scaled coordinate data by scaling the coordinate data included in the character data 14 2 to fit the character size to be output to the display device.
- the character data 142 is, for example, vector data.
- the vector data has a resolution of 256 mesh.
- the resolution of vector data is not limited to 256 mesh. 32 mesh may be used. 14 mesh may be used.
- auxiliary storage device 140 As the auxiliary storage device 140, a character display program 141 and character data 1
- any type of storage device capable of storing 42 may be used.
- any recording medium may be used as a recording medium for storing the character display program 141 and the character data 142.
- a recording medium # such as a hard disk, CD-RM, MO, MD, DVD, IC card, or optical card can be suitably used.
- the character display program 141 and the character data 142 are not limited to being stored in a recording medium included in the auxiliary storage device 140.
- the character display program 141 and the character data 142 may be stored in the main memory 122 included in the control unit 120, or may be stored in a ROM (not shown).
- the ROM can be, for example, a mask R ⁇ M, EPROM, EEPR ⁇ M, flash ROM, and the like. In the case of this ROM system, various processing variations can be easily realized simply by replacing the ROM.
- the ROM method can be suitably applied when the character display device 100 is a portable terminal device or a mobile phone.
- a recording medium for storing the character display program 141 and the character data 142 is a program such as a storage device such as a disk or a card or a semiconductor memory.
- a medium that dynamically stores programs and data such as a communication medium used to carry programs and data in a communication network, may be used.
- the character display device 100 is provided with a means for connecting the character display device 100 to a telephone communication line including the Internet connection network, the character display program 1441 and the character display program 141 At least a part of the character data 14 2 can be downloaded.
- the loader program required for downloading may be stored in a ROM (not shown) in advance, or may be installed from the auxiliary storage device 140 into the control unit 120.
- the control unit 120 includes a CPU 121 and a main memory 122.
- the CPU 121 controls and monitors the entire character display device 100, and executes the character display program 141 stored in the auxiliary storage device 140.
- the main memory 122 is used to execute the data input from the input device 110 to the main memory 122, the data to be displayed on the display device 130, and the character display program 141. Temporarily store the necessary data.
- Main memory 122 is controlled by CPU 122.
- the CPU 121 generates drawing data by executing the character display program 141 based on various data stored in the main memory 122.
- the generated drawing data is temporarily stored in the main memory 122 and then output to the display device 130.
- the timing at which the rendering data is output to the display device 130 is controlled by the CPU 121.
- the display device 130 is, for example, a color liquid crystal display device.
- a color liquid crystal display device besides a transmission type liquid crystal display device often used in personal computers and the like, a reflection type or rear professional type liquid crystal display device can be used.
- the display device 130 is not limited to a single liquid crystal display device.
- any color display device having a plurality of pixels arranged in the X and Y directions (a so-called XY matrix display device) can be used.
- Figure 2 shows the strokes that make up the character "Reed".
- the character “ ⁇ ” is composed of 15 strokes indicated by strokes L01 to L15.
- FIG. 3 shows character data 142 of the character “ ⁇ ” composed of the strokes shown in FIG.
- the character data of the character “ ⁇ ” is represented by the coordinate data and the Y-axis direction for each of the strokes L01 to L15 constituting the character “reed”.
- Block number, X-axis direction block number, Y-axis direction reference point data, X-axis direction reference point data, Y-axis direction distance flag, X-axis direction distance flag, Y-axis Includes a direction omission flag and an X-axis direction omission flag.
- the coordinate data shown in Fig. 3 the block number in the Y-axis direction, the block number in the X-axis direction, the reference point data in the Y-axis direction, the reference point data in the X-axis direction, and the Y-axis
- the direction distance flag, the X-axis direction distance flag, the Y-axis direction omission flag, and the X-axis direction omission flag will be described.
- the coordinate data is data indicating a point on the stroke.
- the coordinate data is composed of a set of X coordinate values and Y coordinate values.
- the coordinate data may be composed of a plurality of sets of X coordinate values and Y coordinate values.
- Each of the strokes L01 to L15 is composed of two sets of X coordinate values and Y coordinate values.
- the X coordinate value has a value from 0 to 255.
- the Y coordinate value has a value from 0 to 255.
- the stroke L01 is a straight line connecting the first point (0, 231) of the coordinate data and the second point (255, 231) of the coordinate data.
- the stroke L02 is a straight line connecting the first point (79, 255) of the coordinate data and the second point (79, 210) of the coordinate data.
- the stroke L03 is a straight line connecting the first point (176, 255) of the coordinate data and the second point (176, 210) of the coordinate data.
- the strike point L04 is a straight line connecting the first point (19, 194) of the coordinate data and the second point (218, 194) of the coordinate data.
- Stroke L05 is the first point (218, 194) of the coordinate data and the second point (218, 1) of the coordinate data. 62).
- the stroke L06 is a straight line connecting the first point (118, 213) of the coordinate data and the second point (1 13, 162) of the coordinate data.
- the stroke L07 is a straight line connecting the first point (0, 162) of the coordinate data and the second point (255, 162) of the coordinate data.
- the stroke L08 is a straight line connecting the first point (37, 131) of the coordinate data and the second point (37, 99) of the coordinate data.
- the stroke L09 is a straight line connecting the first point (37, 131) of the coordinate data and the second point (218, 131) of the coordinate data.
- Stroke L10 is a straight line connecting the first point (218, 131) of the coordinate data and the second point (218, 99) of the coordinate data.
- the stroke L11 is a straight line connecting the first point (37, 99) of the coordinate data and the second point (218, 99) of the coordinate data.
- the strike L12 is a straight line connecting the first point (37, 64) of the coordinate data and the second point (247, 64) of the coordinate data.
- the strike L13 is a straight line connecting the first point (37, 64) of the coordinate data and the second point (37, 30) of the coordinate data.
- the stroke L14 is a straight line connecting the first point (0, 30) of the coordinate data and the second point (255, 30) of the coordinate data.
- the stroke L15 is a straight line connecting the first point (145, 97) of the coordinate data and the second point (145, 0) of the coordinate data.
- the block number indicates the number of the block that constitutes the character.
- One block is composed of radicals and parts of characters. Note that characters are not always composed of multiple blocks. Characters may consist of one block.
- the block number in the Y-axis direction is 1 in all strikes.
- the block number in the X-axis direction is 1 for all strokes. This means that the character " ⁇ " is composed of one block.
- Figure 4 shows the character data for the character "Akira”.
- the block number in the Y-axis direction is 1 in the strokes L01 to L05.
- the block number in the Y-axis direction is 2.
- the block number in the X-axis direction is 1 for all strokes. This means that the letter “M” is composed of two blocks.
- the partial “day” is composed of the first block.
- the side “moon” is composed of the second block.
- the reference point data indicates whether the stroke includes the reference point.
- the reference point data indicates the number of the reference point in the coordinate data.
- reference point data indicating whether or not the stroke L01 includes a reference point in the Y-axis direction is 1.
- the reference point data indicating whether or not the stroke L01 includes the reference point in the Y-axis direction is 1, which means that the stroke L01 includes the reference point in the Y-axis direction, and the position of the reference point in the stroke L01. Indicates that this is the first point (0, 231) in the coordinate data.
- the reference point data indicating whether or not the stroke includes the reference point in the Y-axis direction is 1.
- the position of the reference point is the first point (19, 194) of the coordinate data.
- the position of the reference point is the first point (0, 162) in the coordinate data.
- the position of the reference point is the first point (37, 131) of the coordinate data.
- the position of the reference point is the first point (37, 99) of the coordinate data.
- the position of the reference point is the first point (37, 64) of the coordinate data.
- the position of the reference point is the first point (0, 30) of the coordinate data.
- the reference point data indicating whether or not the stroke includes the reference point in the Y-axis direction is X.
- the reference point data indicating whether or not the stroke L01 includes the reference point in the Y-axis direction is X, it indicates that the stroke L02 does not include the reference point in the Y-axis direction.
- the reference point data indicating whether or not the stroke includes a reference point in the Y-axis direction is X.
- the reference point data indicating whether or not the strike includes a reference point in the ⁇ axis direction is X, which means that the strokes L03, L05, L06, L08, L10 and LI3 are in the Y axis direction. Indicates that no reference point is included.
- the reference point data indicating whether the stroke includes the reference point in the ⁇ -axis direction is “2”.
- the reference point data indicating whether the stroke includes the ⁇ -axis reference point is 2 means that the stroke L15 includes the ⁇ -axis direction reference point, and the position of the reference point in the stroke L15 is Indicates the second point (145, 0) of the coordinate data.
- the reference point data indicating whether or not the stroke includes the reference point in the X-axis direction is X.
- the reference point data indicating whether or not the stroke includes the reference point in the X-axis direction is X because the strokes L01, L04, L05, L06, L07, L09, and L11 to: L15 Indicates that the reference point in the X-axis direction is not included.
- the reference point data indicating whether or not the stroke includes the reference point in the X-axis direction is 1.
- the position of the reference point is the first point (79, 255) in the coordinate data.
- the position of the reference point is the first point (176, 255) of the coordinate data.
- the position of the reference point is the first point (176, 255) of the coordinate data.
- the position of the reference point The third point is (37, 131).
- the position of the reference point is the first point (218, 131) of the coordinate data.
- a reference point is a point included in a block that constitutes a character.
- the reference point can be set not only on the stroke extending in the X-axis direction, but also on the stroke extending in the Y-axis direction.
- the second point of the coordinate data is the reference point.
- the reference point can be set not only on the stroke extending in the Y-axis direction, but also on the stroke extending in the X-axis direction.
- the reference point does not necessarily need to be set on a stroke that extends in the Y-axis direction.
- the reference point does not necessarily need to be set on a stroke that extends in the X-axis direction.
- the reference point may be a point that is not on a stroke.
- the reference point may be a point uniquely given according to the type of character. The point may be obtained by calculating the character data 142.
- FIG. 5 shows the distance between the reference points along the Y axis and the distance between the reference points along the X axis.
- the distance between the reference points along the Y axis shown in FIG. 5 is eight. These eight distances are represented by distance YY1, distance ⁇ 2, distance ⁇ 3, .distance ⁇ 4, distance ⁇ 5, distance ⁇ 6, distance ⁇ 7, and distance ⁇ 8.
- the distance YY1 is the distance 24 between the reference point (0, 231) along the ⁇ axis and the point at the maximum ⁇ coordinate (0, 255).
- the distance ⁇ 2 is the distance 37 between the reference point (0, 194) along the ⁇ axis and the reference point (0, 231) along the ⁇ axis.
- the distance ⁇ 3 is the distance 32 between the reference point (0, 162) along the ⁇ axis and the reference point (0, 194) along the ⁇ axis.
- the distance ⁇ 4 is the distance 31 between the reference point (0, 131) along the ⁇ axis and the reference point (0, 162) along the ⁇ axis.
- the distance ⁇ 5 is the distance 32 between the reference point (0, 99) along the ⁇ axis and the reference point (0, 131) along the ⁇ axis.
- Distance ⁇ 6 is the reference point along the ⁇ axis (0, 64) and along the ⁇ axis The distance from the reference point (0, 99) is 35.
- the distance YY7 is the distance 34 between the reference point (0, 30) along the Y axis and the reference point (0, 64) along the Y axis.
- Distance YY8 is the distance 30 between the minimum Y coordinate point (0,0) and the reference point (0,30) along the Y axis.
- the distance between the reference points along the X axis shown in FIG. 5 is five. These five distances are distance XXI, distance XX 2, distance XX 3, distance XX 4, and distance XX 5.
- the distance XXI is the distance 37 between the point (0, 0) of the smallest X coordinate and the reference point (37, 0) along the X axis.
- the distance XX2 is the distance 42 between the reference point (79, 0) along the X axis and the reference point (37, 0) along the X axis.
- the distance XX3 is the distance 97 between the reference point (176,0) along the X axis and the reference point (79,0) along the X axis.
- the distance XX4 is the distance 42 between the reference point (218, 0) along the X axis and the reference point (176, 0) along the X axis.
- the distance XX5 is the distance 37 between the maximum X coordinate point (255, 0) and the reference point (218, 0) along the X axis.
- the distance flag indicates whether or not it has a minimum necessary distance.
- the distance flag indicates the minimum required distance between reference points along a particular axis.
- the distance flag is X.
- An X in the distance flag indicates that the distance flag does not have the minimum required distance.
- the distance flag is a number M.
- the fact that the distance flag is a few M indicates that the distance flag has the minimum required distance.
- the fact that the distance flag is a few M indicates that the distance flag requires a minimum distance M as the distance between reference points along a particular axis.
- the distance flag in the Y-axis direction is 1.
- the distance flag in the Y-axis direction is 1, it indicates that it has the minimum necessary distance.
- a distance flag of 1 indicates that the distance between the reference points along the Y axis requires a minimum required distance of 1.
- the distance flag in the Y-axis direction is X. ⁇ When the distance flag in the axial direction is X, it indicates that the minimum necessary distance is not provided.
- the distance flag in the Y-axis direction is X. ⁇ When the distance flag in the axial direction is X, it indicates that the minimum distance is not required.
- the distance flag in the ⁇ axis direction is 2. ⁇ If the distance flag in the axial direction is 2, it indicates that the minimum distance is required. Further, a distance flag of 2 indicates that the distance between the reference points along the ⁇ axis requires a minimum required distance of 2.
- the distance flag in the Y-axis direction is 2. ⁇ If the distance flag in the axis direction is 2, it indicates that the minimum distance is required. Furthermore, the fact that the distance flag is 2 indicates that the distance between the reference points along the ⁇ axis requires the minimum required distance of 2.
- the distance flag in the ⁇ axis direction is 1. ⁇ If the g separation flag in the axial direction is 1, it indicates that it has the minimum required distance. Furthermore, the fact that the distance flag is 1 indicates that the distance between the reference points along the Y axis requires the minimum required distance of 1.
- the distance flag in the X-axis direction is X.
- the distance flag in the X-axis direction is X, it indicates that there is no minimum required distance.
- the distance flag in the X-axis direction is 3.
- the distance flag in the X-axis direction is 3, it indicates that the distance has the minimum necessary distance.
- a distance flag of 3 indicates that a minimum distance of 3 is required as the distance between reference points along the X axis.
- the distance flag in the X-axis direction is 2.
- the distance flag in the X-axis direction is 2, it means that it has the minimum required distance. Show. Furthermore, a distance flag of 2 indicates that the distance between reference points along the X-axis requires a minimum required distance of 2.
- the distance flag in the X-axis direction is 1.
- the distance flag in the X-axis direction is 1, it indicates that the distance has the minimum required distance. Further, the fact that the distance flag is 1 indicates that the distance between the reference points along the X axis requires the minimum required distance of 1.
- the omission flag indicates whether or not the distance to be adjusted can be set to 0 when the distance between the reference points along a specific axis is adjusted by the Dali fitting. Furthermore, the omitted flag indicates the order in which the distance to be adjusted is set to 0 when the distance to be adjusted can be set to 0.
- the default flag is X.
- An abbreviated flag of X indicates that the distance to be adjusted cannot be set to zero.
- the default flag is the integer N.
- the omission flag being an integer N indicates that the distance to be adjusted can be set to zero.
- the fact that the omission flag is an integer N indicates that the order in which the distance to be adjusted is 0 is the Nth.
- the omitted flag in the Y-axis direction is X. If the abbreviation flag in the Y-axis direction is X, it indicates that the adjustment distance cannot be set to 0. Similarly, in the stroke L02 to the stroke L08, the stroke L10 and the stroke L13 to the stroke L15, the omitted flag in the Y-axis direction is X. If the abbreviated flag in the Y-axis direction is X, it indicates that the distance to be adjusted cannot be set to 0.
- the omission flag in the Y-axis direction is 1. If the skip flag in the Y-axis direction is 1, it indicates that the adjustment distance can be set to 0. Furthermore, the fact that the omission flag in the Y-axis direction is 1 indicates that the order in which the distance to be adjusted is 0 is the first.
- the omitted flag in the Y-axis direction is “2”. If the skip flag in the Y-axis direction is 2, it indicates that the adjustment distance can be set to 0. And Y If the axial omission flag is 2, it indicates that the order in which the distance to be adjusted is 0 is the second.
- the omission flag in the Y-axis direction is 3.
- a flag of 3 in the Y-axis direction indicates that the distance to be adjusted can be set to 0.
- the fact that the omission flag in the Y-axis direction is 3 indicates that the order in which the distance to be adjusted is 0 is the third.
- the omission flag in the X-axis direction is X. If the omission flag in the X-axis direction is X, it indicates that the adjustment distance cannot be set to 0.
- FIG. 6 is a flowchart showing a processing procedure of the character display program 141.
- the character display program 141 is executed by the CPU 121.
- Step S101 Character information indicating a character to be displayed on the display device 130 is input to the main memory 122 via the input device 110.
- the CPU 121 reads the character data 142 stored in the auxiliary storage device 140 from the auxiliary storage device 140 according to the input character information.
- the read character data 142 is, for example, the character data 142 shown in FIG.
- Character data 142 includes coordinate data and data indicating a reference point.
- Step S102 The CPU 121 scales the coordinate data included in the character data 142 and the data indicating the reference point included in the character data 142 according to the character size to be output to the display device 130, and executes the scaled coordinate data. Generate data indicating the reference point scaled in the evening.
- step S102 is processed.
- the scaled coordinate data is stored in the main memory 122.
- scaled coordinate data (X, Y) is, for example, ((n-1) XX / 255, (n-1) XY / 255).
- step S102 corresponds to “a step of generating a scaled reference point by scaling a character or figure including a reference point along a specific axis”.
- the present invention is not limited to this.
- Step S103 The CPU 121 performs grid fitting on the scaled coordinate data to generate grid data subjected to grid fitting.
- step S103 is processed.
- the grid data subjected to the grid fitting is stored in the main memory 122.
- Step S104 The CPU 121 generates drawing data so that the coordinate data subjected to the dalid fitting can be displayed on the display device.
- the CPU 121 renders the dalit-fitted coordinate data using a curve drawing program such as a straight line or a spline.
- step S104 is processed.
- the generated drawing data is stored in the main memory 122.
- Step S105 The CPU 121 displays the drawing data generated in step S104 on the display device 130.
- FIG. 7 is a flowchart illustrating details of the procedure of the grid fitting processing (processing of program 141b) in step S103.
- the program 14 lb is executed by the CPU 121.
- step S103 program
- Step S201 The CPU 121 performs a process of the block in the Y-axis direction for each block number.
- Step S202 Based on the character data 142, the CPU 121 determines whether or not all the processing of the block in the Y-axis direction has been completed.
- step S201 determines whether or not the processing of the block in the Y-axis direction has been completed.
- step S202 determines whether the number of repetitions of step S201 is equal to the maximum value of the block number in the Y-axis direction. If the determination in step S202 is “Yes”, the process proceeds to step S203.
- step S202 determines whether the number of repetitions of step S201 is smaller than the maximum value of the block number in the Y-axis direction. If the determination in step S202 is “No”, the process proceeds to S201.
- Step S203 The CPU 121 performs the processing of the block in the X-axis direction for each block number.
- Step S204 The CPU 121 determines, based on the character data 142, whether or not all processing of the block in the X-axis direction has been completed.
- the CPU 121 determines whether or not the processing of the block in the X-axis direction has been completed.
- step S204 If the number of repetitions of step S203 is equal to the maximum value of the block number in the X-axis direction, the determination in step S204 is “Yes”. If the judgment in step S204 is "Yes”, the process of the Darlid fitting (program 1
- step S204 ends. If the number of repetitions of step S203 is smaller than the maximum value of the block number in the X-axis direction, the determination in step S204 is “No”. If the determination in step S204 is “No”, the process proceeds to S203.
- FIG. 8 is a flowchart illustrating details of the processing in the specific axis direction of the block in step S201 and step S203.
- the character display program 141 is executed by the CPU 121.
- step S201 and step S203 details of the processing in the axial direction of the block in step S201 and step S203 will be described for each step.
- Step S301 The CPU 121 generates coordinate values of the scaled reference point based on the scaled coordinate data.
- the CPU 121 calculates the distance between the scaled reference points based on the coordinate values.
- Step S302 The CPU 121 obtains the total distance between the scaled reference points.
- the CPU 121 generates the sum quantized by the first method by quantizing the sum of the distances by the first method.
- the CPU 121 uses rounding as a first method for quantizing the total distance.
- the size of characters can be unified.
- the distance ad at the coordinate A shown in FIG. 19 and the distance ad at the coordinate D shown in FIG. 21 are both 11.2.
- the sum quantized by rounding is 11 for both.
- the first method of quantizing the total distance used rounding, but the first method of quantizing the total distance is not limited to rounding. As large as possible If it looks good, round-up may be used as the first way to quantize the total distance. If you want to make the characters look as small as possible,
- truncation may be used.
- a desired threshold may be used.
- step S302 is performed by using the first method to quantize the total distance between the scaled reference points by the first method. Step of generating a sum ".
- the present invention is not limited to this.
- Step S303 CPU121 generates a distance quantized by the second method by quantizing the distance between the scaled reference points by the second method.
- the quantization in the second method is performed in consideration of the distance flag.
- the distance flag indicates a minimum required distance as the distance quantized by the second method. For example, if the distance between two scaled reference points is 2.4, and there is no distance flag, the distance quantized by rounding will be 2. If the distance flag is 1, the distance quantized by rounding is 2. If the distance flag is 2, the distance quantized by rounding will be 2. However, if the distance flag is 3, the quantized distance is set to 3 by considering the distance flag.
- Rounding was used as the second method for quantizing distance, but the second method for quantizing distance is not limited to rounding. Round-up may be used as a second method of quantizing distance. Truncation may be used. In a second method of quantizing distance, a desired threshold may be used.
- the first method for quantizing the sum of distances and the second method for quantizing distances may be the same or different.
- rounding may be used as a first method for quantizing the sum of distances
- rounding may be used as a second method for quantizing distances. If you want to make the characters look as large as possible, the first way to quantize the total distance is to round up, and the second way to quantize the distance is to round it. You may use Goiri.
- step S303 is “generating the distance quantized by the second method by quantizing the distance between the scaled reference points by the second method. Step ".
- the present invention is not limited to this.
- Step S304 The CPU 121 determines whether or not the sum of the distances quantized by the second method is smaller than the sum quantized by the first method. If the determination in step S304 is “Yes”, the process proceeds to step S305. If the determination in step S304 is “No”, the process proceeds to step S306.
- Step S305 The CPU 121 widens the distance having the largest quantization error among the distances quantized by the second method. Since the one with the largest quantization error is preferentially expanded, the distance does not reverse before and after quantization.
- the process proceeds to step S304. Note that the processing in step S305 may be performed in consideration of the distance flag. For example, a flag with a large value of the S giant separation flag may be preferentially expanded.
- Step S306 The CPU 121 determines whether or not the sum of the g-separation quantized by the second method is larger than the sum quantized by the first method. If the determination in step S306 is “Yes”, the process proceeds to step S307. If the determination in step S306 is "No”, the process proceeds to step S310.
- Step S307 It is determined whether or not the sum of the distance flags is larger than the sum quantized by the first method. If the determination in step S307 is “Yes”, the process proceeds to step S308. If the determination in step S307 is “No”, the process proceeds to step S309.
- Step S308 The distance quantized by the second method is set to 0 in consideration of the omission flag. The process proceeds to step S304.
- step S308 the stroke is omitted in consideration of the omission flag. Is also good. Making the distance quantized by the second method zero is equivalent to omitting the stroke.
- Step S309 CPU1221, narrows the distance having the largest quantization error among the distances quantized by the second method. Since the one with a large quantization error is narrowed preferentially, the distance does not reverse before and after quantization.
- the process proceeds to step S304.
- the processing in step S309 may be performed in consideration of the distance flag. For example, a value without a distance flag or a value with a small value may be preferentially narrowed.
- the step S305, the step S308 or the step S309 is a step of adjusting at least one of the distances quantized by the second method.
- Step S310 Determine the maximum coordinate value and the minimum coordinate value of the block constituting the character. Specifically, the quantization error generated as a result of rounding the maximum coordinate value of the scaled reference point and the quantization error generated as a result of rounding the minimum coordinate value of the scaled reference point are compared. The coordinate value of the block is determined based on the smaller coordinate value. The size of the blocks that make up a character is the sum quantified by the first method.
- the scale is applied.
- the maximum coordinate value of the reference point is the maximum coordinate value of the block.
- the minimum coordinate value of a block is the maximum coordinate value of a block minus the sum quantized by the first method, which is the size of the block that forms the character.
- the scaled reference The minimum coordinate value of the point is blocked Is the minimum coordinate value of.
- the maximum coordinate value of the block is the sum of the minimum coordinate value of the block and the sum quantized by the first method, which is the size of the block forming the character.
- Step S3111 Based on the maximum coordinate value of the block that constitutes the character, the minimum coordinate value of the block that constitutes the character, and the distance quantized by the second method, the reference point after the Dalid fitting process Determine the coordinate value of.
- Step S312 Determine coordinates other than the reference point.
- a predetermined point on the scaled character is determined such that the value of distance a / distance b is closest to the value of distance A / distance B.
- the points on the character before scaling corresponding to the predetermined points to be determined are the first and second reference points adjacent to each other among the reference points before scaling.
- Distance A is the distance between the point on the character before scaling and the first reference point.
- Distance B is the distance between the point on the character before scaling and the second reference point.
- the distance a is the distance between the predetermined point to be determined and the scaled first reference point.
- the distance b is the distance between the predetermined point to be determined and the scaled second reference point.
- step S310, step S311, step S312, step S104 and step S105 are “adjusted”. Displaying a scaled character or figure based on the scaled reference point with at least one distance. " However, the present invention is not limited to this.
- step S102, step S104, step S105, step S302, step S303, step S103 S305 and step S308 step S310 correspond to the "character / graphic display processing".
- step S102, step S104, step S105, step S302, step S303, step S103 S305 and step S308 step S310 correspond to the "character / graphic display processing".
- the present invention is not limited to this.
- the control unit including the CPU 122 executes a character / character display process.
- the present invention is not limited to this.
- a graphic is scaled instead of or in addition to the character and the scaled graphic is displayed.
- a graphic display program should be used instead of the character display program 141 or in addition to the character display program 141, and instead of the character data 142 or the character data program 142
- graphic data may be used.
- the graphic display program may also include the same steps as the character display program 141.
- graphic data may also include at least one reference point.
- the distance quantized by the second method is set such that the sum of the distances quantized by the second method is equal to the sum quantized by the first method. At least one is adjusted. Thus, if the sum of the distances quantized by the second method is greater than the sum quantized by the first method, then at least one of ⁇ Adjust so that one is narrowed. If the sum of the distances quantized by the second method is smaller than the sum quantized by the first method, the distance is adjusted to increase at least one of the distances quantized by the second method.
- the sum of the distances quantized by the second method is equal to the sum quantized by the first method, and the shapes and sizes of the characters and figures after the position adjustment are the same as before the adjustment. Can be done.
- the distance quantized by the second method does not invert, characters or figures displayed on the display device can be kept in balance.
- the distance quantized by the second method is considered in consideration of the flag indicating the minimum necessary distance as the distance quantized by the second method. Adjust one. Therefore, the distance quantized by the second method can keep the minimum required distance. As a result, characters or figures are not crushed and displayed on the display device.
- Step S101 Character information indicating the character “ ⁇ ” to be displayed on the display device 130 is input to the main memory 122 via the input device 110. According to the input character information, the CPU 121 reads the character data 142 stored in the auxiliary storage device 140 from the supplementary storage device 140. The read character data 142 is the character data 142 shown in FIG. Character data 142 includes coordinate data.
- Step S102 The CPU 121 scales the coordinate data included in the character data 142 according to the character size (30 dots) to be output to the display device 130, and generates scaled coordinate data. I do.
- the scaled coordinate data (X, Y) is ((30-1) XXn 255, (30-1) XYZ255). Scaled coordinate data is calculated to two decimal places.
- FIG. 9 shows coordinate data before scaling and coordinate data after scaling.
- Step S103 The CPU 121 performs grid fitting on the scaled coordinate data, and generates grid-fitted coordinate data.
- the details of the grid fitting processing (processing of the program 14 lb) in step S103 will be described for each step.
- Step S201 The CPU 121 performs the processing of the block having the block number 1 in the Y-axis direction in the Y-axis direction.
- step S201 details of the processing of the block in the Y-axis direction in step S201 will be described for each step.
- Step S301 The CPU 121 generates coordinate values of the scaled reference point based on the scaled coordinate data.
- the CPU 121 obtains the distance between the scaled reference points based on the coordinate values.
- the first distance whose distance number is distance Y1 is 2.73.
- the second distance whose distance number is distance Y 2 is 4.21.
- Distance number is distance Y 3
- the third distance is 3.64.
- the fourth distance whose distance number is the distance Y 4 is 3.52.
- the fifth distance whose distance number is Y5 is 3.64.
- the sixth distance, whose distance number is distance Y6, is 3.98.
- the eighth distance whose distance number is Y8 is 3.41.
- Figure 10 shows the data obtained by grid-fitting the character data in the Y-axis direction.
- Step S302 The CPU 121 obtains the sum of the distances Y1 to Y8. The sum of the distances is 29.00. The CPU 121 quantizes the total distance by rounding. The total distance quantized by rounding is 29. Step S303: The CPU 121 quantizes each of the distances ⁇ 1 to ⁇ 8 by rounding in consideration of the distance flag. Each of the distances quantized by rounding is shown in Figure 10, "Quantization”.
- Step S304 The CPU 121 determines whether or not the sum of the distances quantized by the rounding is smaller than the sum quantized by the rounding.
- the sum of the distances quantized by rounding is 30 and the sum quantized by rounding is 29. Therefore, the determination in step S304 is “No”, and the process proceeds to step S306.
- Step S306 The CPU 121 determines whether or not the sum of the distances quantized by rounding is larger than the sum quantized by rounding. The determination in step S306 is “Yes”, and the process proceeds to step S307.
- Step S307 The CPU 121 determines whether or not the sum of the distance flags is larger than the sum quantized by rounding. The total of the distance flags is 14. Since the sum of the distance flags is not greater than the sum quantized by rounding, the determination in step S307 is “No”, and the process proceeds to step S309.
- Step S309 The CPU 122 narrows the distance having the largest quantization error among the distances quantized by rounding. Referring to FIG. 10, since the quantization error of the distance Y 4 is the largest, the distance of the distance Y 4 is adjusted from 4 to 3. The process proceeds to step S304.
- step S304 the sum of the distances is 29, which is equal to the sum rounded off by rounding. Therefore, the process proceeds from step S304 to step S310 via step S306.
- Step S310 The maximum coordinate value of the block in the Y-axis direction and the minimum coordinate value of the block in the Y-axis direction that constitute the character "reed" are determined.
- the maximum coordinate value of the block in the Y-axis direction is 29.
- the minimum coordinate value of the block in the Y-axis direction is 0.
- Step S312 Y coordinate values other than the reference point are determined.
- FIG. 11 shows the coordinate values after the Dalid fitting.
- step S202 Since the processing of block number 1 in the Y-axis direction has been completed, the processing proceeds to step S202.
- Step S202 It is determined that the processing of the block in the Y-axis direction has been completed because the number of times (one time) to repeat step S201 is equal to the maximum value (.1) 'of the block number in the Y-axis direction Is done. The process proceeds to step S203.
- Step S203 Processing of block number 1 in the X-axis direction is performed. As described above, the same processing as the processing of the block number 1 in the Y-axis direction is performed.
- Fig. 12 shows the data obtained by grid-fitting the character data in the X-axis direction.
- Step S204 The number of times step S203 is repeated (one time) is equal to the maximum value (1) of the block number in the X-axis direction, so the processing of the block in the X-axis direction has been completed. Is determined. The dalid fitting process ends.
- Step S104 Drawing data is generated.
- Step S105 The CPU 121 displays the drawing data generated in step S104 on the display device 130.
- Figure 13 shows the character "reed” 30 dots in size displayed on the display device.
- Step S101 Character information indicating the character “ ⁇ ” to be displayed on the display device 130 is input to the main memory 122 via the input device 110.
- the CPU 121 reads the character data 142 stored in the auxiliary storage device 140 from the supplementary storage device 140 in accordance with the input character information.
- the read character data 142 is the character data 142 shown in FIG. Character data 142 includes coordinate data.
- Step S102 The CPU 121 scales the coordinate data included in the character data 142 according to the character size (14 dots) to be output to the display device 130, and generates scaled coordinate data.
- the scaled coordinate data (X, Y) is ((14-1) XX 255, (14-1) XY / 255). Scaled coordinate data is calculated to two decimal places.
- Figure 14 shows the coordinate data before scaling and the coordinate data after scaling.
- Step S103 The CPU 121 generates a grid-fitted coordinate data by subjecting the scaled coordinate data to a dalid fitting.
- the details of the grid fitting processing (processing of the program 14 lb) in step S103 will be described for each step.
- Step S201 The CPU 121 performs the processing of the block having the block number 1 in the Y-axis direction in the Y-axis direction.
- steps S201 details of the processing of the block in the Y-axis direction in step S201 will be described for each step.
- Step S301 The CPU 121 generates the coordinate value of the scaled reference point based on the scaled coordinate data.
- the CPU 121 obtains the distance between the scaled reference points based on the coordinate values.
- the first distance whose distance number is distance y l is 1.22.
- the second giant separation whose distance number is distance y 2 is 1.89.
- the third distance whose distance number is distance y 3 is 1.63.
- the fourth distance whose distance number is distance y 4 is 1.58.
- the fifth distance whose distance number is distance y5 is 1.63.
- the sixth distance, whose distance number is y6, is 1.79.
- the seventh distance whose distance number is y7 is 1.73.
- the eighth distance whose distance number is distance y 8 is 1.53.
- FIG. 15 shows data obtained by grid-fitting character data in the Y-axis direction.
- Step S302 The CPU 121 obtains the sum of the distances y1 to y8. The sum of the distances is 13.00. The CPU 121 quantizes the total distance by rounding. The sum of the distances quantized by rounding is 13. Step S303: The CPU 121 quantizes each of the distances y1 to y8 by rounding in consideration of the distance flag. Each of the distances quantized by rounding is shown in "Quantization" in Figure 15.
- Step S304 The CPU 121 determines whether or not the sum of the distances quantized by rounding is smaller than the sum quantized by rounding. The total distance quantized by rounding is 13 and the total quantized by rounding is 15. Therefore, the determination in step S304 is “No”, and the process proceeds to step S306.
- Step S306 The CPU 122 determines whether or not the sum of the distances quantized by rounding is greater than the sum quantized by rounding. The determination in step S306 is "Yes", and the process proceeds to step S307.
- Step S307 CPU1221 judges whether or not the sum of the distance flags is larger than the sum quantized by rounding. The sum of the distance flags is 14. Since the sum of the distance flags is larger than the sum quantized by rounding, the determination in step S307 is “Yes”, and the process proceeds to step S308.
- Step S308 In consideration of the omission flag 1, the distance y4 quantized by rounding is set to 0. The process proceeds to step S304.
- step S304 the total distance is 13 and is equal to the sum quantized by rounding. Therefore, the process proceeds from step S304 to step S310 via step S306.
- Step S310 The maximum coordinate value of the block in the Y-axis direction and the minimum coordinate value of the block in the Y-axis direction that constitute the character "reed" are determined.
- the maximum coordinate value of the block in the Y-axis direction is 13.
- the minimum coordinate value of the block in the Y-axis direction is 0.
- Step S312 Y coordinate values other than the reference point are determined.
- Figure 16 shows the coordinate values after grid fitting.
- step S202 Since the processing of block number 1 in the Y-axis direction has been completed, the processing proceeds to step S202.
- Step S202 The number of times (one time) to repeat step S201 is equal to the maximum value (1) of the block number in the Y-axis direction, so it is determined that the processing of the block in the Y-axis direction has been completed. .
- the process proceeds to step S203.
- Step S203 Processing of block number 1 in the X-axis direction is performed. I mentioned above Thus, the same processing as the processing of the block number 1 in the Y-axis direction is performed.
- Figure 17 shows the data obtained by grid fitting the character data in the X-axis direction.
- Step S204 The number of times step S203 is repeated (one time) is equal to the maximum value (1) of the block number in the X-axis direction, so it is determined that the processing of the block in the X-axis direction has been completed. .
- the dalid fitting process ends.
- Step S104 Drawing data is generated.
- Step S105 The CPU 121 displays the drawing data generated in step S104 on the display device 130.
- FIG. 18 shows a character “reed” with a size of 14 dots displayed on the display device.
- the distance quantized by the second method is set such that the sum of the distances quantized by the second method is equal to the sum quantized by the first method. At least one is adjusted. Thus, if the sum of the distances quantized by the second method is greater than the sum quantized by the first method, then at least one of the distances quantized by the second method is used. Adjust to narrow. If the sum of the distances quantized by the second method is smaller than the sum quantized by the first method, the second Adjust to increase at least one of the distances quantized by the method.
- the sum of the distances quantized by the second method is equal to the sum quantized by the first method, and the shapes and sizes of the characters and figures after the position adjustment are the same as before the adjustment. Can be done.
- the distance quantized by the second method does not invert, characters or figures displayed on the display device can be kept in balance.
- the distance quantized by the second method is considered in consideration of the flag indicating the minimum necessary distance as the distance quantized by the second method. Adjust one. Therefore, the distance quantized by the second method can keep the minimum required distance. As a result, it is more likely that characters or figures are crushed and displayed on a display device.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Digital Computer Display Output (AREA)
Description
Claims
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP04733180A EP1624442A1 (en) | 2003-05-15 | 2004-05-14 | Character graphic display device, character graphic display method, program, and recording medium |
US10/556,820 US20080062180A1 (en) | 2003-05-15 | 2004-05-14 | Character/Graphic Display Apparatus, Character/Graphic Display Method, Program, and Recording Medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003137918A JP4662412B2 (ja) | 2003-05-15 | 2003-05-15 | 文字図形表示装置、文字図形表示方法、プログラムおよび記録媒体 |
JP2003-137918 | 2003-05-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2004102524A1 true WO2004102524A1 (ja) | 2004-11-25 |
Family
ID=33447276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2004/006923 WO2004102524A1 (ja) | 2003-05-15 | 2004-05-14 | 文字図形表示装置、文字図形表示方法、プログラムおよび記録媒体 |
Country Status (6)
Country | Link |
---|---|
US (1) | US20080062180A1 (ja) |
EP (1) | EP1624442A1 (ja) |
JP (1) | JP4662412B2 (ja) |
CN (1) | CN100578604C (ja) |
TW (1) | TWI261804B (ja) |
WO (1) | WO2004102524A1 (ja) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3883554B2 (ja) * | 2005-01-19 | 2007-02-21 | シャープ株式会社 | 文字図形表示装置、プログラムおよび記録媒体 |
US7868888B2 (en) * | 2006-02-10 | 2011-01-11 | Adobe Systems Incorporated | Course grid aligned counters |
CN100498927C (zh) * | 2006-07-28 | 2009-06-10 | 中国科学院声学研究所 | 二维图形引擎中的点阵字符的缩进方法与中文处理方法 |
US8102397B2 (en) * | 2009-01-26 | 2012-01-24 | Mitsubishi Electric Research Laboratories Inc. | Method for improving uniform width character strokes using multiple alignment zones |
WO2010150545A1 (ja) * | 2009-06-24 | 2010-12-29 | パナソニック株式会社 | グラフィックス描画装置、グラフィックス描画方法、グラフィックス描画プログラム、グラフィックス描画プログラムを記録した記録媒体、集積回路 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0338691A (ja) * | 1989-07-05 | 1991-02-19 | Hitachi Ltd | 文字出力方式 |
JPH0392897A (ja) * | 1989-09-05 | 1991-04-18 | Nec Off Syst Ltd | パターン発生装置 |
JPH0493894A (ja) * | 1990-08-03 | 1992-03-26 | Canon Inc | 文字処理方法および装置 |
JPH04188190A (ja) * | 1990-11-22 | 1992-07-06 | Hitachi Ltd | 文字描画装置と文字出力補正方法並びに文字出力装置 |
JPH06175638A (ja) * | 1992-12-07 | 1994-06-24 | Fujitsu Ltd | 文字生成方法及びその装置 |
JPH0736434A (ja) * | 1993-07-23 | 1995-02-07 | Hitachi Ltd | 文字出力装置 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3057935B2 (ja) * | 1992-11-16 | 2000-07-04 | ブラザー工業株式会社 | 文字出力装置 |
US5526476A (en) * | 1992-12-07 | 1996-06-11 | Fujitsu Limited | Method and apparatus for generating character patterns expressed by coordinates of a coordinate system |
JP3038691B2 (ja) * | 1992-12-07 | 2000-05-08 | 松下電器産業株式会社 | ウインドウ移動装置 |
JP2964841B2 (ja) * | 1993-07-15 | 1999-10-18 | ブラザー工業株式会社 | データ変換装置 |
-
2003
- 2003-05-15 JP JP2003137918A patent/JP4662412B2/ja not_active Expired - Fee Related
-
2004
- 2004-05-14 WO PCT/JP2004/006923 patent/WO2004102524A1/ja active Application Filing
- 2004-05-14 US US10/556,820 patent/US20080062180A1/en not_active Abandoned
- 2004-05-14 CN CN200480016728A patent/CN100578604C/zh not_active Expired - Fee Related
- 2004-05-14 TW TW093113720A patent/TWI261804B/zh not_active IP Right Cessation
- 2004-05-14 EP EP04733180A patent/EP1624442A1/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0338691A (ja) * | 1989-07-05 | 1991-02-19 | Hitachi Ltd | 文字出力方式 |
JPH0392897A (ja) * | 1989-09-05 | 1991-04-18 | Nec Off Syst Ltd | パターン発生装置 |
JPH0493894A (ja) * | 1990-08-03 | 1992-03-26 | Canon Inc | 文字処理方法および装置 |
JPH04188190A (ja) * | 1990-11-22 | 1992-07-06 | Hitachi Ltd | 文字描画装置と文字出力補正方法並びに文字出力装置 |
JPH06175638A (ja) * | 1992-12-07 | 1994-06-24 | Fujitsu Ltd | 文字生成方法及びその装置 |
JPH0736434A (ja) * | 1993-07-23 | 1995-02-07 | Hitachi Ltd | 文字出力装置 |
Also Published As
Publication number | Publication date |
---|---|
TWI261804B (en) | 2006-09-11 |
JP2004341253A (ja) | 2004-12-02 |
CN100578604C (zh) | 2010-01-06 |
TW200509060A (en) | 2005-03-01 |
EP1624442A1 (en) | 2006-02-08 |
JP4662412B2 (ja) | 2011-03-30 |
US20080062180A1 (en) | 2008-03-13 |
CN1806276A (zh) | 2006-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6292179B1 (en) | Software keyboard system using trace of stylus on a touch screen and method for recognizing key code using the same | |
KR101260087B1 (ko) | 키패드를 이용하는 표음식 입력 | |
JP2011524595A (ja) | 個々のテキストフィールドのデータ入力をカスタマイズするための方法 | |
EP1598730B1 (en) | System and method for supporting input confirmation in mobile terminal device | |
WO2004102524A1 (ja) | 文字図形表示装置、文字図形表示方法、プログラムおよび記録媒体 | |
JP3075567B2 (ja) | 階調変換方式 | |
JP4239908B2 (ja) | 数式表示制御装置及びプログラム | |
US6559856B1 (en) | Apparatus for fixed-point graphics and method therefor | |
JP2005084516A (ja) | 画像表示装置、画像表示方法及び画像表示プログラム | |
JP2022140521A (ja) | 計算機 | |
JP2009129438A (ja) | 携帯入力装置 | |
WO2006051795A1 (ja) | 処理装置、プログラムおよび記録媒体 | |
JP4890754B2 (ja) | 携帯端末および携帯端末における表示方法ならびにプログラム | |
EP1282108A1 (en) | Image half-tone processor and method thereof | |
JP5463726B2 (ja) | 画像生成装置、サーバ装置、画像生成方法、および、プログラム | |
WO2006077800A1 (ja) | 文字図形表示装置、プログラムおよび記録媒体 | |
KR100620737B1 (ko) | 이동 통신 단말기의 아랍 문자 변환 장치 및 방법 | |
JP2004348279A (ja) | 文字入力装置 | |
WO2007064080A1 (en) | Key input apparatus and method using direction-selector, and character input method using the same | |
JP4436184B2 (ja) | 文字の入力・変換機能を有する携帯端末、文字の入力・変換方法及びそのためのプログラム | |
JP2002149314A (ja) | 携帯電話機及びそれに用いる文字入力方法並びにその制御プログラムを記録した記録媒体 | |
JP2009110015A (ja) | 携帯端末および携帯端末における表示情報拡大方法ならびにプログラム | |
JP5447495B2 (ja) | 携帯端末および携帯端末における表示情報拡大方法ならびにプログラム | |
JP2003084895A (ja) | 電子デバイスにおけるキーイン装置の配置方法 | |
JP2008122637A (ja) | 電子装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 2004733180 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 20048167288 Country of ref document: CN |
|
WWP | Wipo information: published in national office |
Ref document number: 2004733180 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 10556820 Country of ref document: US |
|
WWP | Wipo information: published in national office |
Ref document number: 10556820 Country of ref document: US |