摘要:
Among other things, one or more techniques and/or systems are disclosed for rendering a glyph. Rendering data for the glyph can be received, such as size, shape, color, etc., along with first sub-pixel position for initially rendering the glyph on a display. A first rendering quality can be identified for the first sub-pixel position and second rendering quality can be identified for a second sub-pixel position, which may comprise an alternate rendering position. A sub-pixel position shift can be selected for the glyph based at least upon a comparison of the first and second rendering qualities. The sub-pixel position shift can comprise a difference between the first sub-pixel position and the second sub-pixel position, where the second rendering quality is selected/preferable over the first rendering quality. The glyph can be rendered by applying the selected sub-pixel position shift.
摘要:
Among other things, one or more techniques and/or systems are disclosed for rendering a glyph. Rendering data for the glyph can be received, such as size, shape, color, etc., along with first sub-pixel position for initially rendering the glyph on a display. A first rendering quality can be identified for the first sub-pixel position and second rendering quality can be identified for a second sub-pixel position, which may comprise an alternate rendering position. A sub-pixel position shift can be selected for the glyph based at least upon a comparison of the first and second rendering qualities. The sub-pixel position shift can comprise a difference between the first sub-pixel position and the second sub-pixel position, where the second rendering quality is selected/preferable over the first rendering quality. The glyph can be rendered by applying the selected sub-pixel position shift.
摘要:
The principles of the present invention relate to rendering stroke pairs. A graphical object includes at least a first stroke and a second similarly oriented second stroke collectively representing a stroke pair. A calculated distance between the first stroke and the second stroke is constrained (e.g., to a center line between the strokes) to mitigate the possibility of rounding errors causing the represented stroke pair to be inappropriately rendered. After the stroke pair is constrained, controls points of the individual strokes can be adjusted so that the individual strokes are appropriately rendered at their respective constrained locations. The adjusted stroke pair is constrained between external reference points for appropriate rendering relative to other graphical objects. The graphical object, including the adjusted constrained stroke pair, is rendered at an output device.
摘要:
The present invention relates to dropout control in which one or more samples are added to adjacent samples that fall within an image outline. The samples are used in sub-pixel rendering to compensate for unnaturally thin or faint object stems. Horizontal dropout control operations are provided to add samples to sets of horizontally adjacent samples such that each set of samples comprises a minimum number of samples. Vertical dropout control operations are provided to position samples such that the weighted anti-aliasing filtering will take sufficient account of the samples. In one embodiment, an associative table is utilized to calculate alternative patterns of samples. In another embodiment, the baseline of an object is used in the dropout control operations to reduce artifacts that can be created by the addition of samples in the vertical direction.
摘要:
Methods and systems for selecting different anti-aliasing filters to be applied to objects of image data rendered with pixel sub-component precision based on the attributes of the objects of the graphics image. For example, when rendering a character traditional anti-aliasing applied in the direction parallel to the striping of the pixel sub-components is adapted to the unique requirements of different character font sizes such that a large amount of anti-aliasing is applied to large font sizes while a small amount of anti-aliasing is provided for characters at small font sizes. Displaced sampling is utilized to determine the alpha values for a plurality of vertical samples for each RGB pixel sub-component. The selected anti-aliasing filter is applied to the alpha values to determine the luminous intensity values of the RGB pixel sub-components.
摘要:
The principles of the present invention relate to appropriately rendering a graphical object when a corresponding outline has excessive control points. A computer system identifies a point of junction between a first and second feature of the outline. The computer system accesses an excess control point included in the first or second feature of the outline. The computer system moves the excess control point in a first direction until the position of the excess control point in the first direction is essentially the same as the position of the point of junction in the first direction. The computer system moves the excess control point in a second direction until the position of the excess control point in the second direction is essentially the same as the position of the point of junction in the second direction, the second direction being different from the first direction.
摘要:
The present invention relates to dropout control in which one or more samples are added to adjacent samples that fall within an image outline. The samples are used in sub-pixel rendering to compensate for unnaturally thin or faint object stems. Horizontal dropout control operations are provided to add samples to sets of horizontally adjacent samples such that each set of samples comprises a minimum number of samples. Vertical dropout control operations are provided to position samples such that the weighted anti-aliasing filtering will take sufficient account of the samples. In one embodiment, an associative table is utilized to calculate alternative patterns of samples. In another embodiment, the baseline of an object is used in the dropout control operations to reduce artifacts that can be created by the addition of samples in the vertical direction.
摘要:
The principles of the present invention relate to iteratively solving constraints in a font-hinting language. A computing system accesses a more complex constraint that can not be natively expressed based on the vocabulary of the font-hinting language, the more complex constraint constraining at least a portion of the outline. The computing system decomposes the more complex constraint into a plurality of simpler constraints that can be natively expressed based on the vocabulary of the font-hinting language. The computer system represents each of the simpler constraints in corresponding font-hinting language instructions that can be iteratively processed to at least approximate a solution to the more complex constraint. The font-hinting language instructions are iteratively processed at the computing system or another computing system to cause a graphical object to comply, within a specific tolerance, with the more complex constraint.
摘要:
The principles of the present invention relate to appropriately rendering a graphical object when a corresponding outline lacks necessary control points. A computer system calculates the target width for a feature of the graphical object. The computer system calculates the position of a center line corresponding to the feature. The computer system rounds the calculated position of the center line to a grid position based on the calculated target width for the feature. The computer system adjusts the position of one or more control points of the feature to comply with the grid position of the center line.
摘要:
The principles of the present invention relate to using externally parameterizeable constraints in a font-hinting language to synthesize font variants. A computing system accesses a scaled font that has been scaled for rendering at a target size and a target resolution. The scaled font includes hints that constrain how glyphs of the scaled font are to be rendered at the target size and target resolution. The computing system accesses one or more external font parameters that alter how the glyphs of the scaled font are to be rendered. The computing system applies the one or more external font parameters to the scaled font to synthesize a font variant such that hints from the scaled font are preserved in the font variant. The computing system can render glyphs of the font variant that comply with the one or more external font parameters and the hints.