CA2210266A1 - Pointsize-variable character spacing - Google Patents

Pointsize-variable character spacing

Info

Publication number
CA2210266A1
CA2210266A1 CA 2210266 CA2210266A CA2210266A1 CA 2210266 A1 CA2210266 A1 CA 2210266A1 CA 2210266 CA2210266 CA 2210266 CA 2210266 A CA2210266 A CA 2210266A CA 2210266 A1 CA2210266 A1 CA 2210266A1
Authority
CA
Grant status
Application
Patent type
Prior art keywords
pointsize
character
kerning
pair
spacing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
CA 2210266
Other languages
French (fr)
Inventor
Peter Karow
John R. Macmillan
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Adobe Systems Inc
Original Assignee
Adobe Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/20Handling natural language data
    • G06F17/21Text processing
    • G06F17/211Formatting, i.e. changing of presentation of document
    • G06F17/214Font handling; Temporal and kinetic typography

Abstract

A computer-implemented method for spacing characters rendered from a digital font at an output pointsize. The font has first spacing metrics for a small pointsize and for a different large pointsize. The method includes calculating a separation by interpolating the small pointsize metrics and the large pointsize metrics and spacing the pair as a function of the calculated separation. Embodiments may include the following features. The font has spacing metrics for at least three different pointsizes. The spacing metrics include left sidebearings, right sidebearings, or kerning values. A
kerning value for a character pair is generated by interpolating a first kerning value at a small pointsize and a second kerning value at a large pointsize to the output pointsize. The invention also features a computer program on a computer-readable medium having instructions for rendering characters and two sets of spacing metrics at two different pointsizes. The invention also features a computer program having instructions for rendering a set of characters and a set of kerning values for all pairs consisting of one character from the set of characters and the space character.
A method of the invention for justifying a line of text includes the steps of obtaining a kerning value for the pair (space, left-most text character) and a kerning value for the pair (right-most text character, space), positioning the text characters at the margins according to the kerning values. A
method of the invention includes the steps of reading kerning information into a random access memory, adding the kerning information to a matrix addressable by character pairs, using a pair of characters to address the matrix, using the matrix value to calculate a separation, and spacing the pair as a function of the calculated separation.

Description

, POINTSIZE-VARIABLE CHARACTER SPACING
Backqround This invention relates to the generation of the spacing of characters for output to devices such as display screens, laser printers, photo typesetters and laser film recorders at a range of pointsizes.
A set of characters with a particular design is called a "typeface". A digital font (referred to here simply as a "font"), such as any of the PostScript~ fonts available from 10 Adobe Systems Incorporated of Mountain View, California, generally includes instructions (normally read and interpreted by rendering programs executing on computer processors) for rendering characters in a particular typeface. A digital font stores outlines and "hints" of characters along with the font's so-called "font metrics", which relate to the spacing of characters in order to form words of text. Digital font formats are described in detail in the literature. See, for example, Peter Karow, Digital Typefaces, Springer Verlag, 1994, ISBN 3-540-56509-4, pages 139 et sea. As used here, the term "character" refers to any form of character, number, symbol, icon, graphic, or the like that can be output as a graphical element.
The appearance of a typeface is affected not only by the appearance of individual characters, but also by the way the characters are spaced within a character string. See, for example, Peter Karow, Font Technology, Springer Verlag, 1994, ISBN 3-540-57223-6, pages 173 et ~. Accordingly, fonts that support proportional spacing often include spacing metrics providing instructions for defining the spaces between characters.
Furthermore, text processing software may supply "tracking", which provides a constant small amount of additional space between the characters in text output. If a positive or negative tracking value is chosen, that amount is applied no matter what the character pairs are or the pointsize is. Tracking does not take in account that CA 022l0266 lss7-07-l4 different character pairs require different amounts of additional spacing.
Spacing metrics for enabling proportional spacing are typically generated for output at a specific pointsize, traditionally 12 points, and if an application calls for output at a different pointsize, the spacing is simply scaled linearly. This will be referred to as "traditional" spacing.
Unfortunately, linear scaling based on spacing metrics for a single reference pointsize does not produce consistently good results. This is because proper spacing between a character pair can vary with different typefaces, different pairs of characters, and different pointsizes. In general, for clear output, characters at smaller pointsizes require proportionally larger inter-character spaces than do characters at larger pointsizes.
Existing techniques for spacing each character pair based on the specific characteristics of that character pair are costly to use. One method, termed "automatic kerning", calculates spacing between specific character pairs at output pointsizes on demand, within an application program like Adobe PageMaker. Traditionally, "kerning" refers to a technique of adjusting the spacing of only specific character pairs (called "critical character pairs") based on the shapes of the character strokes. Automatic kerning recognizes that all pairs are critical character pairs and have special spacing requirements, and also recognizes that wider spacing is generally required for characters output at smaller pointsizes, whereas narrower spacing is generally required for characters output at larger pointsizes. Automatic kerning is explained in greater detail in commonly assigned European Patent EP 0 465 704 B1, which discloses a method for automatically generating, for a font at a pointsize, kerning values for a set of critical character pairs and sidebearing values for all characters of the font.
However, automatic kerning requires analysis of the specific font, the specific pointsize, and the specific character combination each time it is applied. Accordingly, it often requires more processing time and power than is reasonably available.
SummarY
In general, in one aspect, the invention features a computer-implemented method for spacing a pair of characters rendered from a digital font for adjacent display at an output pointsize, where the font has first spacing metrics for a small pointsize not greater than the output pointsize and for a different large pointsize not less than the output pointsize. The method includes the steps of calculating a separation at the output pointsize by interpolating the small pointsize first spacing metrics and the large pointsize first spacing metrics for the pair of characters or either of them, and spacing the pair as a function of the calculated separation.
Preferred embodiments of the invention include one or more of the following features. The first spacing metrics are kerning values. The first spacing metrics are right sidebearings and the step of interpolating is applied to the right sidebearings of one character of the pair; the font has as second spacing metrics left sidebearings for the small pointsize and left sidebearings for the large pointsize; and the step of calculating the separation includes interpolating the small pointsize right sidebearings and the large pointsize right sidebearings for one of the characters and interpolating the small pointsize left sidebearings and the large pointsize left sidebearings for the other of the characters. The small pointsize is not greater than 12 points and the large pointsize is not less than 12 points. The font has first spacing metrics for at least three different pointsizes; for example, the font has first spacing metrics for pointsizes of 6 points, 12 points, and 72 points. The first spacing metrics are left sidebearings, right sidebearings, or kerning values.
The step of interpolating includes calculating a linear interpolation of the small pointsize and large pointsize first spacing metrics. The step of calculating the separation includes calculating the sum of an interpolated right sidebearing for one character of the pair plus an interpolated left sidebearing for the other character of the pair plus an interpolated kerning value for the pair.
In general, in another aspect, the invention features a computer-implemented method for spacing a pair of characters rendered from a digital font for adjacent display at an output pointsize. The method includes the steps of establishing a set of large pointsizes; establishing a set of small pointsizes each smaller than any of the large pointsizes;
calculating the spacing for the pair as a spacing function of the output pointsize, where the function calculates a spacing for each of the small pointsizes that is greater in proportion to the pointsize than is the spacing calculated by the function for any of the large pointsizes; and displaying the pair of characters with the calculated spacing.
Preferred embodiments of the invention include one or more of the following features. The spacing function is defined for a pointsize argument that extends at least from 6 point to 72 point. A pointsize of 12 point separates the set of smaller pointsizes from the set of larger pointsizes.
In general, in another aspect, the invention features a computer-implemented method of generating CltpUt spacing for a character at an output pointsize from a digital font having spacing metrics including multiple sets of left and right sidebearing values, each set for output at a different pointsize. The method includes the steps of selecting for the character pair a first pair of left and right sidebearing values and a second pair of left and right si~ebearing values from the spacing metrics for a first pointsize and a second pointsize, respectivelv, the first pointsize _eing no greater than the output pointsize and the second pointsize being no less than the output pointsize; generating a left sidebearing value for the character at the output pointsize by interpolating the first left sidebearing value and the second CA 022l0266 l997-07-l4 left sidebearing value to the output pointsize; and generating a right sidebearing value for the character at the output pointsize by interpolating the first right sidebearing value and the second right sidebearing value to the output 5 pointsize.
Preferred embodiments of the invention include one or more of the following features. The pairs of sidebearing values include a pair of sidebearing values for output at 12 point and a pair of sidebearing values for output at 6 point or at 72 point. The spacing metrics include pairs of sidebearing values for at least three different pointsizes.
The pairs of sidebearing values include a pair for output at 6 point, a pair for output at 12 point, and a pair for output at 72 point. The interpolating is linear.
In general, in another aspect, the invention features a computer-implemented method of generating output spacing for a character pair at an output pointsize from a digital font having spacing metrics including multiple sets of kerning values, each set for output at a different pointsize. The 20 method includes the steps of selecting for the character pair a first kerning value and a second kerning value from the spacing metrics for a first pointsize and a second pointsize, respectively, the first pointsize being no greater than the output pointsize and the second pointsize being no less than the output pointsizei and generating a kerning value for the character pair by interpolating the first kerning value and the second kerning value to the output pointsize.
Preferred embodiments of the invention include one or more of the following features. The sets of kerning values include a set of kerning values for output at 12 point and a set of kerning values for output at 6 point or at 72 point.
The spacing metrics include kerning values for at least three different pointsizes. The sets of kerning values include a set for output at 6 point, a set for output at 12 point, and a set for output at 72 point. The interpolating is linear.

CA 022l0266 l997-07-l4 In general, in another aspect, the invention features an article of manufacture having a computer program (which term encompasses a digital font) embodied on a computer-readable medium, the computer program including character rendering instructions for rendering the appearance of a first character; a set of left sidebearings at a first pointsize including a left sidebearing for the first character; a set of right sidebearings at the first pointsize including a right sidebearing for the first character; a set of left sidebearings at a different second pointsize including a left sidebearing for the first character; and a set of right sidebearings at the second pointsize including a right sidebearing for the first character.
Preferred embodiments of the invention include one or 15 more of the following features. The computer program includes a set of left sidebearings at a different third pointsize including a left sidebearing for the first character, and a set of right sidebearings at the third pointsize including a right sidebearing for the first character. The computer program includes character rendering instructions for rendering the appearance of a second character; a set of kerning values at a first pointsize including a kerning value for a pair consisting of the first character followed by the second character; and a set of kerning values at a different second pointsize including a kerning value for the pair. The computer program includes a set of kerning values at a different third pointsize including a kerning value for the pair.
In general, in another aspect, the invention features an article of manufacture having a computer program embodied on a computer-readable medium, the computer program including character rendering instructions for rendering the appearance of a first character and a second character; a set of kerning values at a first pointsize including a kerning value for a pair consisting of the first character followed by the second CA 022l0266 Is97-07-l4 characteri and a set of kerning values at a different second pointsize including a kerning value for the pair.
Preferred embodiments of the invention include one or more of the following features. The computer program includes a set of kerning values at a different third pointsize including a kerning value for the pair.
In general, in another aspect, the invention features an articie of manufacture including a computer program embodied on a computer-readable medium having character rendering instructions for rendering the appearance of a set of characters not including a space character, and a set of kerning values at a first pointsize including a kerning value for all pairs consisting of one character from the set of characters and the space character.
Preferred embodiments of the invention include one or more of the following features. The program includes a second set of kerning values at a different second pointsize including a kerning value for all the pairs. The program further includes a third set of kerning values at a different third pointsize including a kerning value for all the pairs.
The set of characters includes at least the English alphabet of twenty-six letters in upper and lower case.
In general, in another aspect, the invention features a method for justifying to a left margin and a right margin a line of text having a left-most text character and a right-most text character. The method includes the steps of obtaining a first kerning value for the character pair (space, left-most text character) and a second kerning value for the character pair (right-most text character, space), positioning the left-most text character at the left margin according to the first kerning value, and positioning the right-most text character at the right margin according o the second kerning value.
In general, in another aspect, ~he invention features a method for spacing characters rendered from a digital font.
The method includes the steps of reading kerning information CA 022l0266 l997-07-l4 into a random access memory; adding the kerning information to a matrix of elements in the random access memory, where the matrix elements are addressable by pairs of character numbers from the digital font and kerning information for a pair of characters is added to the matrix element addressed by the pair; using a pair of characters to be spaced to address the matrix and obtain a matrix value from the matrix; using the matrix value to calculate a separation for the pair of characters to be spaced; and spacing the pair as a function of the calculated separation.
Preferred embodiments of the invention include one or more of the following features. The matrix has allocated to it at least about 200K bytes of the random access memory and the value of each matrix element addressable by a pair of characters is a kerning value for that pair of characters.
The method includes the steps of reading left sidebearing information and right sidebearing information for a set of characters into the random access memory; and adding the left sidebearing information and right sidebearing information to the matrix elements for the corresponding characters. The value of each matrix element is the sum of a kerning value, a left sidebearing value, and a right sidebearing value. The kerning information includes a set of class definitions read that indicate when accented characters inherit kerning values from their base characters.
Among the advantages of the invention are the following. The invention provides good readability for text over a substantial range of small to large pointsizes without requiring hand-tuning of character spacing. The invention provides pointsize-variable kerning of character pairs. The invention provides pointsize-variable sidebearings for characters. The invention provides pointsize-variable kerning of characters against the space character to provide visually attractive interspacing between words. The invention provides visually pleasing alignment of justified text to a left and right margin to create what will be called "optical margins".

CA 022l0266 l997-07-l4 The invention may be applied over tracking. The invention may be used with, and as an extension of, existing digital fonts.
The invention may be implemented to achieve its advantages at very little cost in execution time.
For a fuller understanding of the nature and further advantages of the invention, reference should be made to the detailed description taken in conjunction with the accompanying drawings.

Brief Description of the Drawinqs FIG. 1 is a diagram illustrating apparatus suitable for the present invention.
FIG. 2 illustrates spacing metrics that may be used in the invention.
FIG. 3 illustrates an application of negative kerning.
FIG. 4a and FIG. 4b illustrate spacing of character pairs.
FIG. 5a and FIG. 5b compare the appearance of spacing generated by a method of the invention with conventional spacing at three pointsizes.
FIG. 6 is a diagram illustrating elements of a font of the present invention.
FIG. 7 (which consists of FIGS. 7a, 7b, 7c, and 7d) illustrates the results of applying the invention to four character pairs at a range of pointsizes in a Helvetica typeface.
FIG. 8 (which consists of FIGS. 8a, 8b, 8c, and 8d) illustrates the results of applying the invention to four character pairs at a range of pointsizes in a Times Roman typeface.

Detailed Description Referring to FIG. 1, an apparatus suitable for implementing a method for pointsize-variable spacing of characters for output includes a computer processor 20, such as an integrated circuit microprocessor, and a memory 22, such ~ CA 022l0266 lss7-07-l4 as semiconductor RAM or ROM, for storing instructions and data executed and used by the processor 20. The processor 20 running under control of a program 24 in the memory 22 has access to a font 26 that is stored in a machine-readable form in the memory 22 or on a separate storage device 28 such as a hard disk drive or a removable diskette. The font includes a set of instructions that may be rendered by a program 24 running on by the processor 20, which _s coupled, directly or indirectly, to an output generating de;ice 30, such as a display screen, laser printer print engine, photo typesetter, or laser film recorder. The processor 20 and memory 22 may be embedded in a peripheral device, such 2s a PostScript laser printer. Because it includes a set of instructions, the font itself is also a computer program.
The methods described here may be readily implemented in hardware, firmware, or equivalents such as application-specific integrated circuits (ASICs), or in a computer program product tangibly embodied in a computer program storage device for execution by a computer processor. Storage devices suitable for tangibly embodying computer program instructions implementing the methods described here include all forms of non-volatile memory, including semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices, magnetic disks such as internal hard disks and removable disks, 25 magneto-optical disks, and CD-ROM disks.
Referring to FIG. 2, total wid~h 36 and left and right sidebearings 32 and 34 are traditional parameters (values) that are defined for the characters of a font and stored as font metrics. Traditionally, these values are defined for only one pointsize and are optimized for that pointsize, which is generally 12 points (pt).
When only sidebearings are used, some _haracter pairs get spacing that is too wide, while others get spacing that is too narrow. To correct this, kerning tables are employed, which have correction values for critical character pairs.
Generally, use of kerning tables results in a gap between two CA 022l0266 lss7-07-l4 characters is smaller than would result from only using the characters' constant sidebearings. FIG. 3 illustrates the application of negative kerning -- kerning that subtracts distance between characters -- applied to the character pair 'AV'(negative kerning distance 38) and the character pair 'Vo'(negative kerning distance 39).
Digital fonts generally have a single kerning table that may contain 200 to 600 kerning va_ues for selected character pairs optimized for one poir.~size. This is not enough to provide correct spacing for 211 pointsizes.
Referring to FIG. 4a and FIG. 4b, the considerations involved in applying the method of pointsize-variable spacing may be described with reference to fou- illustrative character pairs: HH, OO, AV, and W. These four pairs have two vertical strokes (HH), two opposite round strokes (OO), two parallel diagonal strokes (AV), and two opposite diagonal strokes (W) forming the boundaries of their respective character interspaces. These character interspaces should behave differently when the pointsize for writing is changing from small to large, in order to achieve a harmonious appearance at all pointsizes, as is illustrated by the figures.
FIG. 4a shows the four character pairs with traditional spacing at the three pointsizes of 6 pt, 12 pt, and 72 pt. For comparison, FIG. 4b shows the same character pairs with pointsize-variable spacing at the same pointsizes.
As is apparent from the figures, all four pairs are well spaced in FIG. 4b, while in FIG. 4a some pairs are spaced too far apart, and some, too close together. In particular, FIG.
4a and FIG. 4b show the following:
~ HH is wider at lower, and narrower at larger, pointsizes. The white character interspace has the form of a rectangle. HH usually has no kerning -;alue assigned.
~ OO is also wider at lower, and narrower at larger, pointsizes, but in total OO is spaced narrower with respect to the character widths than HH because the two opposite round stems leave more white space at the tcp and at the bottom.

CA 022l0266 lss7-07-l4 The white character interspace has the form of an hour-glass.
OO usually has no kerning value assigned; spacing is achieved by the left and right sidebearings only.
~ AV always needs to be kerned negatively. The separation could be narrower at larger pointsizes, depending on the style of the typeface. The shape of the white character interspace is a parallelogram.
~ W needs to be kerned positively at lower pointsizes.
Above 72 pt, the separation gets relatively narrower. The shape of the white character interspace is a triangle.
These examples show four different forms as character interspace: rectangle, hour-glass, parallelogram, and triangle. Following the typographer's rule -- the more even the color of a page of text, the more easily it can be read --one would give the same area to all different characterinterspaces. This is not literally possible or desirable, as will now be described.
The rectangle between HH is taken as the normalizing area for the purpose of the following comparisons. If that area is adopted for W, the area of the triangle would be too small and cause the letters to overlap. In contrast, AV would look too narrow because human readers are accustomed to see this pair with a relative large white character interspace.
Similarly, OO would look too narrow if the hour-glass area were normalized in size to the HH rectangle. As with the pair W, one has to keep a certain minimum separation between the two Os. Also, it seems that the white areas of the hour-glass at the top and at the bottom do not contribute their mathematical share to the perceived white interspace.
Consideration of just these few examples makes it clear that correct kerned spacing is also based on optical impression and perception, and not only on mathematical equations normalizing the areas of interspaces.
Referring to FIG. 6, a font 26 to be used in the 35 method of pointsize-variable spacing includes, in addition to the character rendering instructions, hints, and tables CA 022l0266 l997-07-l4 normally found in a font, at least one additional set of spacing metrics. The embodiment to be described uses a font with three kerning tables 50, designated K6, K12, and K72, and three sets of sidebearings 52, designated L6 and R6, L12 and R12, and L72 and R72. These metrics are especially spaced, kerned and generated for reference pointsizes of 6 pt, 12 pt, and 72 pt, respectively. Equivalently, the multiple spacing metrics, including the multiple kerning values and the multiple sidebearing values, are kept in one or more multi-valued tables or other data structures.
The term "spacing metrics" is used here to encompassparameters describing the character spacing for a font. The specific parameters and the format in which they are represented may vary. The values for the spacing metrics parameters may be determined by any suitable method. For example, the kerning values for character pairs at a reference pointsize may be determined by hand or by the automatic kerning method described above. Further, the spacing metrics values may be represented in various formats without affecting the application of the method of pointsize-variable spacing.
As is conventional, spacing and other font metrics are given in so-called "units". A unit is one-lOOOth of a point, or about one-72000th of an inch. In one embodiment, the metric sets for 12 pt (K12, L12, and R12) contain absolute spacing values in units, whereas the sets for 6 pt and 72 pt contain spacing values expressed as differences from the 12 pt values. The kerning values expand the intercharacter space (if positive) or contract it (if negative). Differences are used for reasons of convenience and for speed in the calculations that will be described.
The spacing metrics (including kerning and sidebearing values) may be generated automatically by applying the automatic kerning method of the patent cited above (EP O 465 704 B1) to the font multiple times -- once for each of the pointsizes 6 pt, 12 pt, and 72 pt, for example.

CA 022l0266 l997-07-l4 Alternatively, the metrics may be generated by hand, or generated automatically and then fine-tuned by hand.
In one embodiment, the spacing metrics include kerning values for characters paired with the space character. Use of such space-kerning values is advantageous in spacing words and in achieving visually pleasing margins for justified text.
For example, at a justified left margin one can kern the first character of the line of text against a space character to place the character so as to achieve an optical margin.
Without kerning, or with a kerning value of zero, the left edge of the total width of the text character is placed on the left margin. If the kerning value is negative, the character is shifted to the lefti if positive, it is shifted to the right. Similarly, the last character of a line may be kerned against a space character to place the text character properly at a justified right margin. At a right margin, a negative kerning value shifts the last text character to the right and a positive value shifts it to the left.
The embodiment of the method of pointsize-variable spacing that will be described interpolates to the specified output pointsize based on two sets of spacing metrics: the set for pointsize 12 pt, and one of the sets for pointsize 6 pt or 72 pt, whichever is on the same side of 12 pt as the output pointsize is on. For example, spacing for a character pair at an output pointsize of 9 pt is interpolated from the spacir.g metrics for pointsizes 6 pt and 12 pt.
Various methods of interpolation may be used, and selection of a specific method may depend on the requirements of the application, as well as other variables including the typeface, the format of the sets of spacing metrics, the processing power available for generating output, or the processing time requirements. In the following paragraphs, a simple and sufficient linear interpolation method will be described.
As has been mentioned, three sets of right sidebea ing values are referred to as R6, R12, and R72; three sets of _eft CA 022l0266 l997-07-l4 sidebearing values are referred to as L6, L12, and L72; and three sets of kerning values are referred to as K6, K12, and K72. For an output pointsize of X, spacing metrics values referred to as RX, LX, and KX are calculated, and the spacing for a specific character pair ClC2 is calculated as the sum RX(Cl) + LX(C2) + KX(ClC2)-For an output pointsize X, which need not be an integer, an interpolation factor F is calculated by applying the following rules.

For: X < 6, F = 1 (1) 6 < X < 12, F = (12-X)/6 12 < X < 72, F = (X-12)/60 72 < X, F = 1 Alternatively, the interpolation may be extended so that the factor F for pointsizes less than 6 pt is greater than 1 and the factor F for pointsizes greater than 72 pt is greater than 1.
Interpolation factor F may either be calculated as needed during execution of an application, or interpolation factors may be precalculated for a range of output pointsizes and stored in a lookup table. In either case, for linear interpolation, once interpolation value F is determined, values for RX, LX, and KX are calculated by linear interpolation from two sets of spacing metrics. The following equations (2) provide a linear interpolation for output pointsizes between 6 pt and 12 pt or between 12 pt and 72 pt, with a linear or constant extrapolation for pointsizes less than 6 pt or greater than 72 pt. In these equations, variables RY, LY, and KY refer to the outside set of spacing 30 metrics: R6, L6, and K6 if X < 12; or R72, L72, and K72 if X >
12. (F = O if X = 12.) CA 022l0266 l997-07-l4 RX = R12 + F x RY (2) LX = L12 + F x LY
KX = K12 + F x KY

The range of reasonably likely output pointsizes runs from 4 pt (very hard to read) to 200 pt (poster type, very rarely used), but a common working range is from 8 pt to 24 pt. The three pointsizes (6 pt, 12 pt, and 72 pt) were chosen as optimal in terms of storage requirements and placement for interpolation for this common range. Other choices for the pointsizes and/or a different number of pointsizes could be used for interpolation, as could other, non-linear, interpolation methods.
The sidebearing values (L6, L12, and so on) are conventionally stored in a table (array) and addressed by character number, that is, by the internal representation of a letter or other character in a digital alphabet, which normally has on the order of 300 characters. Normally, a kerning table stored on a disk or transmitted with a document, as part of font, for example, would be expected to have values for only about 3000 critical character pairs (3000x2 = 6 K
bytes), so that any of various techniques may be used to reduce the required disk storage or data transmission time at the cost of some extra processing. In one such technique, a set of kerning classes is defined and stored in a table or other suitable data structure to indicate when accented characters inherit the kerning values from their base characters, thereby reducing the number of character pairs that need to be stored. For example, in defining a class kerning table it would be recognized that the kerning for the pairs AT, AT, AT, AT, and AT is the same as for the pair AT, while the kerning for Te is not the same as for Tè, Té, Tê, or Të.
The kerning values (K6 and so on) can be stored at run time as an expanded matrix addressed by a pair of character numbers, which for an alphabet of 300 characters would require CA 022l0266 l997-07-l4 an allocation of 300x300x2 (about 200K) bytes of storage, which is reasonable in a modern personal computer. In one alternative embodiment, the run-time matrix is sized to be addressable by all pairs of characters in the alphabet. In this embodiment, the matrix value for a character pair may be a kerning value or, alternatively, the sum of a right sidebearing for the first character of the pair, a kerning value, and a left sidebearing for the second character of the pair (assuming the characters are written left to right). If such composite spacing metrics are stored in matrices for pointsizes of 6 pt, 12 pt, and 72 pt, for example, the calculations described below can be simplified accordingly.
The following example will illustrate spacing of the character pairs AV and W at output pointsizes X1 = 6, X2 = 9, X3 = 12, X4 = 42, and X5 = 72. The spacing metrics values for the characters A and V are:
A: R6 = 5 V: R6 = 5 R12 = 0 R12 = 0 R72 = -3 R72 = -3 L6 = 5 L6 = 5 L12 = 0 L12 = 0 L72 = -3 L72 = -3 AV: K6 = 10 W : K6 = 3 K12 = -80 K12 = 5 K72 = -10 K72 = -10 First, interpolation factors F are calculated in accordance with the equations (1), above: FX1 = 1; FX2 = 0.5;
FX3 = 0; FX4 = 0.5; and FX5 = 1.
Next, for character pair AV, RX is determined for A, LX is determined for V, and KX is determined for AV, in accordance with equation (2), based on the spacing metrics given above:

CA 022l0266 l997-07-l4 X1: RXl(A) = R12(A) + FX1 x R6(A) = O + 5 = 5 LXl(V) = L12(V) + FX1 x L6(V) = O + 5 = 5 KXl(AV) = K12(AV) + FX1 x K6(AV) = -80 + 10 = -70 Total spacing = RXl(A) + LXl(V) + KXl(AV) = -60 5 X2: RX2(A) = R12 + FX2 x R6 = O + 0.5 x 5 = 2.5 LX2(V) = L12 + FX2 x L6 = O + 0.5 x 5 = 2.5 KX2(AV) = K12 + FX2 x K6 = -80 + 0. 5 x 10 = -75 Total spacing = RX2(A) + LX2(V) + KX2(AV) = -70 Similarly, for X3 the total spacing is -80; for X4 the total spacing is -88; and for X5 the total spacing is -96.
Carrying out the same calculations for a second example with the same output pointsizes X1 through X5 for the character pair W, KX is determined for W, and RX and LX are determined for V. Accordingly, for X1 the total spacing is 18; for X2 the total spacing is 11.5; for X3 the total spacing is 5; for X4 the total spacing is -3; and for X5 the total spacing is -11.
Review of the total spacing results for the character pairs AV and W shows how spacings for character pairs are computed taking into consideration both the specific characters as well as the output pointsize. By interpolating from two sets of spacing metrics, the method computes spacings that are more accurate than could be calculated by simply scaling spacings derived from a single set of spacing metrics.
Referring to FIG. 7 and FIG. 8, spacings derived from the above-described embodiment of the method of pointsize-variable character spacing are compared with spacings derived from a number of hand-tuned sets of left and right sidebearing values and kerning values. In each of these figures, the spacing (vertical axis) is plotted against pointsize (horizontal axis). Spacing is normalized to units of one-lOOOth of the character body size. Character pointsize is in points. The generally horizontal plot line, labeled "traditional", shows the traditional spacing generated by using 12 pt spacing scaled linearly to the larger and smaller pointsizes. The plot line labeled "hand tuned" shows the results of hand-tuned spacing over a range of pointsizes, while the plot line labeled "invented method" shows the spacing generated by the present method of pointsize-variable character spacing. FIG. 7 shows spacings for the Helvetica typeface. FIG. 8 shows spacings for the Times Roman typeface.
FIGS. 7a and 8a show the separations of HH as a function of the pointsize. Similarly, FIGS. 7b and 8b show the separations of oOi FIGS. 7c and 8c show the separations of AV;
and FIGS. 7d and 8d show the separations of W. These exemplary results for the character pairs HH, OO, AV, and W
show that use of three pointsize values gives a good approximation to hand-tuned spacing.
Although the present invention has been described in terms of a specific embodiment, the invention is not limited to this specific embodiment. For example, the interpolation may be applied to spacing metrics parameters other than kerning and sidebearings, such as, for example, optical margins, without ~iminishing the advantages of the present invention. Other forms of interpolation, such as nonlinear interpolations (within a range of 6 pt to 72 pt, for example) and nonlinear extrapolations (for example, below 6 pt or above 72 pt) may also be employed. (As used here, the ter~.~
interpolation encompasses calculations that would strictly be termed extrapolations, unless context requires otherwise.) Also, interpolation may be limited only to sidebearing values, or only to kerning values, rather than being applied both to sidebearing values and to kerning values.

What is claimed is:

Claims (38)

1. A computer-implemented method for spacing a pair of characters rendered from a digital font for adjacent display at an output pointsize, the font having first spacing metrics for a small pointsize not greater than the output pointsize and first spacing metrics for a different large pointsize not less than the output pointsize, comprising:
calculating a separation at the output pointsize by interpolating the small pointsize first spacing metrics and the large pointsize first spacing metrics for the pair of characters or either of them; and spacing the pair as a function of the calculated separation.
2. The method of claim 1, where the first spacing metrics are kerning values.
3. The method of claim 1, where:
the first spacing metrics are right sidebearings and the step of interpolating is applied to the right sidebearings of one character of the pair;
the font has as second spacing metrics left sidebearings for the small pointsize and left sidebearings for the large pointsize; and the step of calculating the separation includes interpolating the small pointsize right sidebearings and the large pointsize right sidebearings for one of the characters and interpolating the small pointsize left sidebearings and the large pointsize left sidebearings for the other of the characters.
4. The method of claim 1, where the small pointsize is not greater than 12 points and the large pointsize is not less than 12 points.
5. The method of claim 1, where the font has first spacing metrics for at least three different pointsizes.
6. The method of claim 1, where the font has first spacing metrics for pointsizes of 6 points, 12 points, and 72 points.
7. The method of claim 1, where the first spacing metrics are left sidebearings, right sidebearings, or kerning values.
8. The method of claim 1, where the step of interpolating includes calculating a linear interpolation of the small pointsize and large pointsize first spacing metrics.
9. The method of claim 1, where calculating the separation includes calculating the sum of an interpolated right sidebearing for one character of the pair plus an interpolated left sidebearing for the other character of the pair plus an interpolated kerning value for the pair.
10. A computer-implemented method for spacing a pair of characters rendered from a digital font for adjacent display at an output pointsize, comprising:
establishing a set of large pointsizes;
establishing a set of small pointsizes each smaller than any of the large pointsizes;
calculating the spacing for the pair as a spacing function of the output pointsize, where the function calculates a spacing for each of the small pointsizes that is greater in proportion to the pointsize than is the spacing calculated by the function for any of the large pointsizes;
and displaying the pair of characters with the calculated spacing.
11. The method of claim 10, where the spacing function is defined for a pointsize argument that extends at least from 6 point to 72 point.
12. The method of claim 10, where a pointsize of 12 point separates the set of smaller pointsizes from the set of larger pointsizes.
13. A computer-implemented method of generating output spacing for a character at an output pointsize from a digital font having spacing metrics including multiple sets of left and right sidebearing values, each set for output at a different pointsize, comprising:
selecting for the character pair a first pair of left and right sidebearing values and a second pair of left and right sidebearing values from the spacing metrics for a first pointsize and a second pointsize, respectively, the first pointsize being no greater than the output pointsize and the second pointsize being no less than the output pointsize;
generating a left sidebearing value for the character at the output pointsize by interpolating the first left sidebearing value and the second left sidebearing value to the output pointsize; and generating a right sidebearing value for the character at the output pointsize by interpolating the first right sidebearing value and the second right sidebearing value to the output pointsize.
14. The method of claim 13, where the pairs of sidebearing values include a pair of sidebearing values for output at 12 point and a pair of sidebearing values for output at 6 point or at 72 point.
15. The method of claim 13, where the spacing metrics comprise pairs of sidebearing values for at least three different pointsizes.
16. The method of claim 15, where the pairs of sidebearing values include a pair for output at 6 point, a pair for output at 12 point, and a pair for output at 72 point.
17. The method of claim 13, where the interpolating is linear.
18. A computer-implemented method of generating output spacing for a character pair at an output pointsize from a digital font having spacing metrics including multiple sets of kerning values, each set for output at a different pointsize, comprising:
selecting for the character pair a first kerning value and a second kerning value from the spacing metrics for a first pointsize and a second pointsize, respectively, the first pointsize being no greater than the output pointsize and the second pointsize being no less than the output pointsize;
and generating a kerning value for the character pair by interpolating the first kerning value and the second kerning value to the output pointsize.
19. The method of claim 18, where the sets of kerning values include a set of kerning values for output at 12 point and a set of kerning values for output at 6 point or at 72 point.
20. The method of claim 18, where the spacing metrics comprise kerning values for at least three different pointsizes.
21. The method of claim 20, where the sets of kerning values include a set for output at 6 point, a set for output at 12 point, and a set for output at 72 point.
22. The method of claim 18, where the interpolating is linear.
23. An article of manufacture comprising a computer program embodied on a computer-readable medium, the computer program comprising:
character rendering instructions for rendering the appearance of a first character;
a set of left sidebearings at a first pointsize including a left sidebearing for the first character;
a set of right sidebearings at the first pointsize including a right sidebearing for the first character;
a set of left sidebearings at a different second pointsize including a left sidebearing for the first character; and a set of right sidebearings at the second pointsize including a right sidebearing for the first character.
24. The article of claim 23 further comprising:
a set of left sidebearings at a different third pointsize including a left sidebearing for the first character; and a set of right sidebearings at the third pointsize including a right sidebearing for the first character.
25. The article of claim 23 further comprising:
character rendering instructions for rendering the appearance of a second character;
a set of kerning values at a first pointsize including a kerning value for a pair consisting of the first character followed by the second character; and a set of kerning values at a different second pointsize including a kerning value for the pair.
26. The article of claim 25 further comprising:

a set of kerning values at a different third pointsize including a kerning value for the pair.
27. An article of manufacture comprising a computer program embodied on a computer-readable medium, the computer program comprising:
character rendering instructions for rendering the appearance of a first character and a second character;
a set of kerning values at a first pointsize including a kerning value for a pair consisting of the first character followed by the second character; and a set of kerning values at a different second pointsize including a kerning value for the pair.
28. The article of claim 27 further comprising:
a set of kerning values at a different third pointsize including a kerning value for the pair.
29. An article of manufacture comprising a computer program embodied on a computer-readable medium, the computer program comprising:
character rendering instructions for rendering the appearance of a set of characters not including a space character; and a set of kerning values at a first pointsize including a kerning value for all pairs consisting of one character from the set of characters and the space character.
30. The article of claim 29 further comprising:
a set of kerning values at a different second pointsize including a kerning value for all said pairs.
31. The article of claim 30 further comprising:
a set of kerning values at a different third pointsize including a kerning value for all said pairs.
32. The article of claim 29 where the set of characters includes at least the English alphabet of twenty-six letters in upper and lower case.
33. A method for justifying to a left margin and a right margin a line of text having a left-most text character and a right-most text character, the method comprising:
obtaining a first kerning value for the character pair (space, left-most text character) and a second kerning value for the character pair (right-most text character, space);
positioning the left-most text character at the left margin according to the first kerning value; and positioning the right-most text character at the right margin according to the second kerning value.
34. A method for spacing characters rendered from a digital font, comprising:
reading kerning information into a random access memory;
adding the kerning information to a matrix of elements in the random access memory, where the matrix elements are addressable by pairs of character numbers from the digital font and kerning information for a pair of characters is added to the matrix element addressed by the pair;
using a pair of characters to be spaced to address the matrix and obtain a matrix value from the matrix;
using the matrix value to calculate a separation for the pair of characters to be spaced; and spacing the pair as a function of the calculated separation.
35. The method of claim 34 where the matrix has allocated to it at least about 200K bytes of the random access memory and the value of each matrix element addressable by a pair of characters is a kerning value for that pair of characters.
36. The method of claim 34 further comprising:
reading left sidebearing information and right sidebearing information for a set of characters into the random access memory; and adding the left sidebearing information and right sidebearing information to the matrix elements for the corresponding characters.
37. The method of claim 36 where the value of each matrix element is the sum of a kerning value, a left sidebearing value, and a right sidebearing value.
38. The method of claim 34 where the kerning information includes a set of class definitions that indicate when accented characters inherit kerning values from their base characters.
CA 2210266 1996-07-23 1997-07-14 Pointsize-variable character spacing Abandoned CA2210266A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US08/686,212 1996-07-23
US08686212 US5937420A (en) 1996-07-23 1996-07-23 Pointsize-variable character spacing

Publications (1)

Publication Number Publication Date
CA2210266A1 true true CA2210266A1 (en) 1998-01-23

Family

ID=24755400

Family Applications (1)

Application Number Title Priority Date Filing Date
CA 2210266 Abandoned CA2210266A1 (en) 1996-07-23 1997-07-14 Pointsize-variable character spacing

Country Status (5)

Country Link
US (2) US5937420A (en)
EP (1) EP0821312B1 (en)
JP (1) JPH10187135A (en)
CA (1) CA2210266A1 (en)
DE (2) DE69736649T2 (en)

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937420A (en) * 1996-07-23 1999-08-10 Adobe Systems Incorporated Pointsize-variable character spacing
US6043802A (en) * 1996-12-17 2000-03-28 Ricoh Company, Ltd. Resolution reduction technique for displaying documents on a monitor
US6829748B1 (en) * 1998-11-27 2004-12-07 Canon Kabushiki Kaisha Automatic kerning of text
US6426751B1 (en) * 1999-04-01 2002-07-30 Adobe Systems Incorporated Font feature file processing
US7286115B2 (en) 2000-05-26 2007-10-23 Tegic Communications, Inc. Directional input system with automatic correction
US7030863B2 (en) * 2000-05-26 2006-04-18 America Online, Incorporated Virtual keyboard system with automatic correction
US7346489B1 (en) 1999-07-16 2008-03-18 Language Technologies, Inc. System and method of determining phrasing in text
US7071941B2 (en) * 2000-02-12 2006-07-04 Adobe Systems Incorporated Method for calculating CJK emboxes in fonts
JP5465819B2 (en) 2000-02-12 2014-04-09 アドビ システムズ, インコーポレイテッドAdobe Systems, Inc. Text grid creation tools
US7296227B2 (en) 2001-02-12 2007-11-13 Adobe Systems Incorporated Determining line leading in accordance with traditional Japanese practices
US7305617B2 (en) * 2000-02-12 2007-12-04 Adobe Systems Incorporated Method for aligning text to baseline grids and to CJK character grids
US7750891B2 (en) * 2003-04-09 2010-07-06 Tegic Communications, Inc. Selective input system based on tracking of motion parameters of an input device
US7821503B2 (en) 2003-04-09 2010-10-26 Tegic Communications, Inc. Touch screen and graphical user interface
US7069508B1 (en) * 2000-07-13 2006-06-27 Language Technologies, Inc. System and method for formatting text according to linguistic, visual and psychological variables
JP3795784B2 (en) * 2000-09-25 2006-07-12 アドビ システムズ, インコーポレイテッドAdobe Systems, Inc. Icon display subscript set free amount setting device, the character sets free amount setting program, and a recording medium recording it
US6928611B2 (en) 2000-09-25 2005-08-09 Adobe Systems Incorporated Setting text composition spacing amount
US7167274B2 (en) * 2001-09-28 2007-01-23 Adobe Systems Incorporated Line leading from an arbitrary point
US7039862B2 (en) * 2002-05-10 2006-05-02 Adobe Systems Incorporated Text spacing adjustment
US20040125107A1 (en) * 2002-12-26 2004-07-01 Mccully Nathaniel M. Coordinating grid tracking and mojikumi spacing of Japanese text
US7123261B2 (en) * 2002-12-26 2006-10-17 Adobe Systems Incorporated Coordinating grid tracking and mojikumi spacing of Japanese text
KR100510145B1 (en) * 2003-08-04 2005-08-25 삼성전자주식회사 On screen displaying apparatus and method capable of supporting proportional font
US7594171B2 (en) * 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout
US8225203B2 (en) 2007-02-01 2012-07-17 Nuance Communications, Inc. Spell-check for a keyboard system with automatic correction
US8201087B2 (en) 2007-02-01 2012-06-12 Tegic Communications, Inc. Spell-check for a keyboard system with automatic correction
US8633930B2 (en) * 2007-03-26 2014-01-21 Apple Inc. Non-linear text flow
US8306356B1 (en) 2007-09-28 2012-11-06 Language Technologies, Inc. System, plug-in, and method for improving text composition by modifying character prominence according to assigned character information measures
CN101430679B (en) 2007-11-09 2010-08-25 北大方正集团有限公司;北京北大方正电子有限公司 Method and device for compressing integral symbol-occupying area
US8239763B1 (en) 2009-01-07 2012-08-07 Brooks Ryan Fiesinger Method and apparatus for using active word fonts
GB201216640D0 (en) * 2012-09-18 2012-10-31 Touchtype Ltd Formatting module, system and method for formatting an electronic character sequence
US9208589B2 (en) * 2012-10-22 2015-12-08 Apple Inc. Optical kerning for multi-character sets
WO2014151668A1 (en) * 2013-03-15 2014-09-25 Monotype Imaging Inc. Supporting Font Character Kerning

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3712443A (en) * 1970-08-19 1973-01-23 Bell Telephone Labor Inc Apparatus and method for spacing or kerning typeset characters
US4027313A (en) * 1975-06-18 1977-05-31 Eltra Corporation Photocomposing machine and font strip therefor for kerned characters
US4591999B1 (en) * 1983-09-06 1990-05-29 Gerber Scient Products Inc
US4783760A (en) * 1985-06-03 1988-11-08 Honeywell Bull Inc. Word processing text justification method
US4833627A (en) * 1986-08-29 1989-05-23 The Toles Group Computerized typesetting correction system
US5257351A (en) * 1987-09-22 1993-10-26 International Business Machines Corporation Selective processing of a data stream based on font format
JPH01196096A (en) * 1988-02-01 1989-08-07 Canon Inc Output device
US4933866A (en) * 1988-11-17 1990-06-12 Vital Lasertype, Inc. Method and apparatus for generating aesthetically alterable character designs
JPH073635B2 (en) * 1988-12-21 1995-01-18 富士通株式会社 How to create a white text
JP2756292B2 (en) * 1989-02-07 1998-05-25 キヤノン株式会社 Document output device
EP0465704B1 (en) * 1990-07-11 1995-03-01 URW Software &amp; Type GmbH Process for spacing of typefaces
US5416898A (en) * 1992-05-12 1995-05-16 Apple Computer, Inc. Apparatus and method for generating textual lines layouts
US5724596A (en) * 1992-08-25 1998-03-03 Lathrop; Stephen P. Algorithmic character-space adjustment computed from character-sequence-based constants and font size
JPH06124078A (en) * 1992-10-13 1994-05-06 Max Co Ltd Kerning processing method for european language document process
US5825999A (en) * 1993-12-28 1998-10-20 Victor Company Of Japan, Ltd. Minimum character region determining apparatus and method, character string generating apparatus for generating a character string according to the minimum character region determining method
US5623593A (en) * 1994-06-27 1997-04-22 Macromedia, Inc. System and method for automatically spacing characters
US5598520A (en) * 1994-09-26 1997-01-28 Microsoft Corporation Methods and apparatus for hinting a font for controlling stem width as font size and resolution of output device vary
JP3408685B2 (en) * 1995-12-08 2003-05-19 大日本スクリーン製造株式会社 Kerning processing method
US5937420A (en) * 1996-07-23 1999-08-10 Adobe Systems Incorporated Pointsize-variable character spacing
US5803629A (en) * 1997-03-14 1998-09-08 Paul H. Neville Method and apparatus for automatic, shape-based character spacing

Also Published As

Publication number Publication date Type
EP0821312A3 (en) 1999-07-28 application
US5937420A (en) 1999-08-10 grant
DE69736649T2 (en) 2007-09-13 grant
EP0821312A2 (en) 1998-01-28 application
JPH10187135A (en) 1998-07-14 application
US6624814B1 (en) 2003-09-23 grant
DE69736649D1 (en) 2006-10-26 grant
EP0821312B1 (en) 2006-09-13 grant

Similar Documents

Publication Publication Date Title
US4686649A (en) Word processor with alternative formatted and unformatted display modes
US6681053B1 (en) Method and apparatus for improving the definition of black and white text and graphics on a color matrix digital display device
US6577291B2 (en) Gray scale and color display methods and apparatus
US7028258B1 (en) Dynamic pagination of text and resizing of image to fit in a document
US5185852A (en) Antialiasing apparatus and method for computer printers
US5802532A (en) Kerning method and electronic typographic/editing apparatus
US6199080B1 (en) Method and apparatus for displaying information on a computer controlled display device
US4503515A (en) Footnote assembly management
US6185589B1 (en) Automatic banner resizing for variable-width web pages using variable width cells of HTML table
US6738526B1 (en) Method and apparatus for filtering and caching data representing images
US20040160444A1 (en) Methods and systems for hinting fonts
US5598520A (en) Methods and apparatus for hinting a font for controlling stem width as font size and resolution of output device vary
US20030214513A1 (en) Type size dependent anti-aliasing in sub-pixel precision rendering systems
US6803913B1 (en) Warping text along a curved path
US5208906A (en) Method and apparatus for representing bordered areas of a generic form with records
US5148520A (en) Determining the locations of the contents of bordered areas of a generic form
US6321243B1 (en) Laying out a paragraph by defining all the characters as a single text run by substituting, and then positioning the glyphs
US20010048764A1 (en) Methods apparatus and data structures for enhancing the resolution of images to be rendered on patterned display devices
US7320105B1 (en) Data display using multicolumn scrolling
US5144693A (en) Method and apparatus for generic form generation
US6771816B1 (en) Generating a text mask for representing text pixels
US6678410B1 (en) Generating a glyph
US6256650B1 (en) Method and system for automatically causing editable text to substantially occupy a text frame
US7251778B1 (en) Method and system for dynamically adapting the layout of a document to an output device
US6307566B1 (en) Methods and apparatus for performing image rendering and rasterization operations

Legal Events

Date Code Title Description
FZDE Dead