×

Adjusted Stroke Rendering

  • US 20070176935A1
  • Filed: 04/09/2007
  • Published: 08/02/2007
  • Est. Priority Date: 03/31/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method of asymmetrically adjusting a rendering of a glyph, comprising:

  • receiving a glyph associated with a font, the glyph to be rendered at a size and having one or more strokes, each stroke having a first edge and a second edge;

    calculating a scaled stem width for rendering the glyph at the size;

    calculating a first initial adjustment value for the first edge of each stroke and a second initial adjustment value for the second edge of each stroke;

    calculating an offset amount based, being an amount by which one or more strokes of the glyph will be offset from a device resolution grid when a high resolution representation of the glyph is rendered as compared to an original position of an outline of the glyph, such that a minimum number of device pixels will be marked by the one or more strokes after adjusting the density values of one or more device pixels representing the glyph;

    rendering the high resolution representation of the glyph so that one or more edges of at least one stroke is offset from the device resolution grid by the offset amount, the high resolution representation representing a set of device pixels and determining an initial density value for each of said device pixels;

    for one or more of the device pixels in the set of device pixels, calculating a length of an edge of a stroke that passes through the device pixel;

    for each of the one or more device pixels, calculating a final adjustment value based on the length of an edge of a stroke passing through the device pixel and either the first or the second initial adjustment value depending on whether the edge is the first or the second edge of the corresponding stroke; and

    adjusting the density values of the one or more device pixels by the corresponding final adjustment value.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×