Methods and systems for hinting fonts
AssigneeMicrosoft Corporation
InventorsDavid Salesin, Geraldine Wade, Douglas E. Zongker
Life of this patent
Estimating the term…
Abstract
Methods and systems for hinting fonts are described. In one embodiment, a system for providing a hinted font is configured to define hints for a glyph of a first font. The hints are defined by one or more statements that contain multiple values that define constraints for the glyph. At least one of the values reference a table entry that corresponds to a table value that is used to constrain the glyph. An association is established between the glyph of the first font and a glyph of a second font. The second font is different from the first font. One or more statements are translated so that the statement(s) now pertain to and define constraints for the glyph of the second font.
Claims9
A system for providing a hinted font comprising:
- one or more computer-readable media;
- one or more processors;
- computer-readable instructions on the one or more computer-readable media which, when executed by the one or more processors, cause the one or more processors to implement a method comprising:
- defining hints for a glyph of a first font, the hints being defined by one or more statements that contain multiple values that define constraints for the glyph, at least one of the values referencing a table entry that corresponds to a table value that is used to constrain the glyph;
- establishing an association between the glyph of the first font and a glyph of a second font, the second font being different from the first font;
- and
- translating the one or more statements so that the one or more statements now pertain to and define constraints for the glyph of the second font;
- wherein some of the values pertain to specific points on the glyph of the first font, and:
- said establishing comprises establishing an association between the specific points on the glyph of the first font and specific points on the glyph of the second font;
- and
- said translating comprises changing at least some of the values of the individual statements to correspond to the specific points on the glyph of the second font, wherein said changing of at least some values comprises changing a table value, wherein said changing of the table value comprises:
- determining a plurality of natural distances in the glyph of the second font, the natural distances being defined relative to specific points in the glyph of the second font that are to be constrained by the table value;
- and
- calculating a new table value for the table entry as a function of the natural distances, wherein said calculating of the new table value comprises calculating a median of the natural distances.
A system for providing a hinted font comprising:
- means for defining hints for a glyph of a first font, the hints being defined by one or more statements that contain multiple values that define constraints for the glyph, at least one of the values referencing a table entry that corresponds to a table value that is used to constrain the glyph;
- means for establishing an association between the glyph of the first font and a glyph of a second font, the second font being different from the first font;
- and
- means for translating the one or more statements so that the one or more statements now pertain to and define constraints for the glyph of the second font;
- wherein some of the values pertain to specific points on the glyph of the first font, and:
- said means for establishing comprises means for establishing an association between the specific points on the glyph of the first font and specific points on the glyph of the second font;
- and
- said means for translating comprises means for changing at least some of the values of the individual statements to correspond to the specific points on the glyph of the second font, wherein said means for changing at least some values comprises means for changing a table value, wherein said means for changing the table value comprises:
- means for determining a plurality of natural distances in the glyph of the second font, the natural distances being defined relative to specific points in the glyph of the second font that are to be constrained by the table value;
- and
- means for calculating a new table value for the table entry as a function of the natural distances, wherein said means for calculating the new table value comprises means for calculating a median of the natural distances.
A system for providing a hinted font comprising:
- one or more computer-readable media having computer-readable instructions there which, when executed, implement a method comprising:
- defining hints for a glyph of a first font, the hints being defined by one or more statements that contain multiple values that define constraints for the glyph, at least one of the values referencing a table entry that corresponds to a table value that is used to constrain the glyph;
- establishing an association between the glyph of the first font and a glyph of a second font, the second font being different from the first font;
- and
- translating the one or more statements so that the one or more statements now pertain to and define constraints for the glyph of the second font;
- wherein some of the values pertain to specific points on the glyph of the first font, and:
- said establishing comprises establishing an association between the specific points on the glyph of the first font and specific points on the glyph of the second font;
- and
- said translating comprises changing at least some of the values of the individual statements to correspond to the specific points on the glyph of the second font, wherein said changing of at least some values comprises changing a table value, wherein said changing of the table value comprises:
- determining a plurality of natural distances in the glyph of the second font, the natural distances being defined relative to specific points in the glyph of the second font that are to be constrained by the table value;
- and
- calculating a new table value for the table entry as a function of the natural distances, wherein said calculating of the new table value comprises calculating a median of the natural distances.
Dependencies are inferred from the claim text.