Edge detection based stroke adjustment
First Claim
1. A computer-implemented method of rendering a glyph to make the glyph more readable, comprising:
- performing operations by a computer, the operations comprising;
receiving a glyph associated with a font, the glyph to be rendered at a size;
calculating by a programmable processor of the computer a set of initial density values to provide one density value for each of a set of device pixels to represent the glyph;
calculating by the programmable processor an initial adjustment value for the glyph;
for one or more of the device pixels in the set of device pixels, calculating by the programmable processor a length of an edge of the glyph that passes through the device pixel;
for one or more of the device pixels, adjusting the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the glyph passing through the device pixel; and
providing a representation of the glyph on a display device of the computer.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatus, including computer program products, implementing and using techniques for rendering a glyph to make it more readable. In an implementation, a glyph associated with a font to be rendered at a size is received, and a set of initial density values is calculated to provide one density value for each of a set of device pixels to represent the glyph. An initial adjustment value is calculated for the glyph. For one or more of the device pixels in the set of device pixels, a length of an edge of the glyph that passes through the device pixel is calculated. For one or more of the device pixels, the initial density value is adjusted by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the glyph passing through the device pixel.
74 Citations
30 Claims
-
1. A computer-implemented method of rendering a glyph to make the glyph more readable, comprising:
performing operations by a computer, the operations comprising; receiving a glyph associated with a font, the glyph to be rendered at a size; calculating by a programmable processor of the computer a set of initial density values to provide one density value for each of a set of device pixels to represent the glyph; calculating by the programmable processor an initial adjustment value for the glyph; for one or more of the device pixels in the set of device pixels, calculating by the programmable processor a length of an edge of the glyph that passes through the device pixel; for one or more of the device pixels, adjusting the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the glyph passing through the device pixel; and providing a representation of the glyph on a display device of the computer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
10. A computer-implemented method of rendering a stroke, comprising:
-
in a processor operatively coupled to a display device, performing the actions of; receiving a path representing a stroke to be rendered at a given stroke width; calculating a set of initial density values to provide one density value for each of a set of device pixels of the display device to represent the stroke; calculating an initial adjustment value for the stroke; for one or more of the device pixels in the set of device pixels, calculating a length of an edge of the stroke that passes through the device pixel; and for one or more of the device pixels, adjusting the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the stroke passing through the device pixel; and providing a representation of the stroke on the display device.
-
-
11. A computer-readable medium encoded with a computer program for rendering a glyph to make the glyph more readable, comprising instructions operable to cause a programmable processor to:
-
receive a glyph associated with a font, the glyph to be rendered at a size; calculate a set of initial density values to provide one density value for each of a set of device pixels to represent the glyph; calculate an initial adjustment value for the glyph; for one or more of the device pixels in the set of device pixels, calculate a length of an edge of the glyph that passes through the device pixel; for one or more of the device pixels, adjust the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the glyph passing through the device pixel; and provide a representation of the glyph on a display device. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A computer-readable medium encoded with a computer program for rendering a stroke, comprising instructions operable to cause a programmable processor to:
-
receive a path representing a stroke to be rendered at a given stroke width; calculate a set of initial density values to provide one density value for each of a set of device pixels to represent the stroke; calculate an initial adjustment value for the stroke; for one or more of the device pixels in the set of device pixels, calculate a length of an edge of the stroke that passes through the device pixel; for one or more of the device pixels, adjust the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the stroke passing through the device pixel; and provide a representation of the stroke on a display device.
-
-
21. A system for rendering a glyph, the system comprising:
-
a processor; a storage device coupled to the processor and configurable for storing instructions, which, when executed by the processor, cause the processor to perform operations comprising; receiving a glyph associated with a font, the glyph to be rendered at a size; calculating a set of initial density values to provide one density value for each of a set of device pixels to represent the glyph; calculating an initial adjustment value for the glyph; calculating for one or more of the device pixels in the set of device pixels a length of an edge of the glyph that passes through the device pixel; adjusting the initial density value of each of the one or more device pixels by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the glyph passing through the device pixel; and providing a representation of the glyph on a display device. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29)
-
-
30. A system of rendering a stroke, comprising:
-
a processor; a storage device coupled to the processor and configurable for storing instructions, which, when executed by the processor, cause the processor to perform operations comprising; receiving a path representing a stroke to be rendered at a given stroke width; calculating a set of initial density values to provide one density value for each of a set of device pixels to represent the stroke; calculating an initial adjustment value for the stroke; for one or more of the device pixels in the set of device pixels, calculating a length of an edge of the stroke that passes through the device pixel; for one or more of the device pixels, adjusting the initial density value of the device pixel by a final adjustment value, the final adjustment value based upon the initial adjustment value and the length of the edge of the stroke passing through the device pixel; and providing a representation of the stroke on a display device.
-
Specification