CA2023832C - Method and apparatus for filing contours in digital typefaces - Google Patents

Method and apparatus for filing contours in digital typefaces Download PDF

Info

Publication number
CA2023832C
CA2023832C CA002023832A CA2023832A CA2023832C CA 2023832 C CA2023832 C CA 2023832C CA 002023832 A CA002023832 A CA 002023832A CA 2023832 A CA2023832 A CA 2023832A CA 2023832 C CA2023832 C CA 2023832C
Authority
CA
Canada
Prior art keywords
rook
character
move
value
strength
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.)
Expired - Fee Related
Application number
CA002023832A
Other languages
French (fr)
Other versions
CA2023832A1 (en
Inventor
Jacobo Valdes
Eduardo Martinez
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.)
Sun Microsystems Inc
Original Assignee
Sun Microsystems 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
Application filed by Sun Microsystems Inc filed Critical Sun Microsystems Inc
Publication of CA2023832A1 publication Critical patent/CA2023832A1/en
Application granted granted Critical
Publication of CA2023832C publication Critical patent/CA2023832C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K11/00Methods or arrangements for graph-reading or for converting the pattern of mechanical parameters, e.g. force or presence, into electrical signal

Abstract

A method and apparatus is described which fills in the pixels missed when drop-out occurs during the fill process of character contours. The character contour is decomposed into a series of rook moves.
The pixel selected is the one more covered by the actual shape of the portion of the curve where the rook moves are coincident and dropout occurs. This is dependent upon the slope of each of the curves at the location of dropout.
Preferably the length of the sequence of colinear consecutive rook moves is used to approximate the slopes of the curves. The target pixel of the longest sequence of colinear rook moves is more covered than its opposite pixel and therefore the target pixel is set.
The target pixel for a rook move is the pixel in the winding direction (i.e., left or right direction) along the rook move. Thus the target pixel of the stronger rook moves will be set and added to the bit map image generated using a outline fill process. In the preferred embodiment, the rook moves are examined to determine the length of a sequence, that is the number of rook moves that are sequentially in alignment with one another. A strength value is then assigned to each of those rook mopes in a sequence equal to the number of rook moves in the sequence. The strength value of the rook move is then compared to the strength value of the opposite pixel, that is the pixel opposite the target pixel for a particular rook move. If the strength value of the target pixel of the rook move is greater than the strength of the opposite pixel, the opposite pixel value is reset to zero and the target pixel is set to equal the strength of the sequence. This process is performed for each rook move in a sequence and for each sequence of rook moves around the contour of the character. Once all rook moves have been evaluated, the value is assigned to the pixels of the character according to this process, are adjusted to reflect a bit map image to be displayed. This is achieved by turning on all bits which are greater than zero. The bit map generated is then logically ORed with the bit map generated using the contour fill process to provide a filled character in which drop out is eliminated and the distortion to the character is minimized.

Description

BACKGROUND OF THE INVENTION
The method and apparatus of the present invention is directed to the filling of contours. More specifically, the method and apparatus of the present invention is directed to the filling of the contours representative of characters in a digital typeface.
The objects, features and advantages of the method and apparatus of the present invention, will be apparent from the following detailed description in to which:
FIGS. 1a and 1b illustrates the outline and corresponding rook moves of the letter "P".
FIG. 2 illustrates the bit map generated and drop out which occurs with the letter "P" illustrated in Figs. 1 a and 1 b.
i s FIG. 3 is a block diagram of an exemplary computer system utilizing the present invention.
FIG. 4 is a flow chart representing a preferred embodiment of the present invention.

FIG. 5 illustrates target pixels and opposite pixels with respect to rook moves.
FIG. 6 illustrates the implementation of the preferred embodiment of the present invention with respect to the letter "P".
FIG. 7 illustrates representation of the letter "P" utilizing the preferred embodiment of the present invention.
ART BACKGRO~~D_:
The art of digital typography is applied to the representation of characters of a typeface in digital form. Typically computers are used to design, prepare to and present the typefaces used in documents and the like. One method to represent the characters of digital typefaces is by representing each character by its contour. When the character is subsequently generated for display or for printing purposes, the contour is filled in in order to provide a solid representation of the character.
1 s The contours themselves may be represented by segments, a plurality of segments connected together representing the contour or curves and segments. Straight line segments, arcs of circles as well as splines are used to represent the shapes of curves. To approximate a particular contour it is necessary to break the curve into segments that meet at their end points. Each 2o segment may then be specified by a straight line, curve or spline and these segments are connected together to form the contour of the character.
When a character is to be output to a display device, such as a computer monitor or a printing device, the contours are filled in using a filling technique.
For example, those pixels within the contour would be filled, that is turned on, and those outside of the contour would not be turned on. However, this s technique does not address the problem of having a contour within a contour such as the situation found with the letter "o" which has an external rounded contour and an internal rounded contour which is smaller than the external contour. Visually it is desirable that the area within the inner contour not be filled or turned on and the pixels within the area between the outer contour and 1 o the inner contour be turned on. Thus a more sophisticated technique is needed in order to fill the character contours.
In one method to fill character contours, the contour is translated into or broken down into a series of "rook" moves. Rook moves are single unit moves along either the x or y axis. This is illustrated by Figs. 1 a and i b which show the i 5 outline of the letter "P" and the outline broken down to a series of rook moves.
Once the character is represented by rook moves the outline is filled in scan line by scan line. For example referring to Fig. 1 b, this is achieved by starting at the top left hand corner 10 of the character and moving from the left side to the right side scan line by scan line (i.e. horizontally). The status of the fill will be in an 20 off mode initially and will change to the on mode, wherein the pixels are turned on, when the pointer crosses a rook move. Thus, in the first scan line at the first rook move crossed 15, the subsequent pixels 20, 25, 30, 35 will be turned on when the next rook move 40 is reached, the mode reverts to off whereby subsequent pixels are not turned on. Thus, when the pointer crosses a first rook 25 move the pixel mode is "on" whereby successive pixels are turned on and when it crosses a subsequent rook move the pixel mode toggles off whereby subsequent pixels are not turned on, the result is that those pixels within the contour are turned on and those pixels which are external to the contour are off.
._y i _ If the pointer is at the scan line which crosses a center portion of a character, for example, scan line 45 in Fig. 1 b, the pointer will proceed from the left side of the character to the right crossing a first rook move 50 thereby turning the subsequent pixels on until it crosses a the next rook move 55 whereby the subsequent pixels are off. The pixels following rook move 60 are turned on until rook move 65 is reached whereby subsequent pixels are not turned on (these pixels in the off state represent those pixels within the inner contour). The pointer will then cross rook move 70, whereby the subsequent pixels are turned on and finally rook move 75 reflective of the outer contour of the character to whereby the subsequent pixels are kept in the off state.
Problems arise when the contour lines or the spacing between the contour lines is small andlor when the site of the pixel being displayed is too coarse in relation to the size of the character being displayed. In these cases, rook moves representative of two contour lines spaced closely together will occur at the same location. This is illustrated in Fg. 1 b wherein rook moves and 85 are coincident. Using the above described fill algorithm, the pointer will cross rook move 80 as well as rook move 85 at the same location. Therefore, a double change of pixel status from off to on and on to off takes place. The result is that parts of the character are not shown and the character appears in 2o disjointed segments. This problem is referred to by those in the art as "drop out". The problem of drop out is best illustrated by referring to the characters illustrated in Fig. 2 which was filled in using the above described fill process.
Drop out occurred in several places along the contour identified by the letters a, b, c and d. At point a; dropout occurred because two rook moves occurred at 2 5 the same location whereby the slate of the fill process is turned on and off at the same location. At b, c and d, the rook moves determined run parallel, as opposed to perpendicular, to the scan line such that a rook move is not "crossed" at the location to turn the subsequent pixels on.
1 _ In order to minimize the problem of drop out additional steps are taken to further fill in the contour. This is achieved by filling in predetermined pixels along the contour. For example in one method used, each pixel to the right and below a particular grid point on which a rook move lies is filled in. This solves s the problem of drop out because it insures that pixels are painted along the entire contour. However, the dropout was eliminated at the cost of distorting the character. More particularly, the resulting character is higher as well as thicker, thus making it visually bolder than the original character. This is not a desirable feature and makes the characters hard to visualize and recognize.
to In another technique, the rook moves are classified according to its direction: North, South, East and West. Drop out occurs when a North and South moves are coincident or when an East and West moves are coincident.
One move direction is selected from the group East and West and the group North and South. Thus, for example, if the North and East directions are i5 selected, whenever a rook move is in the North or East direction the corresponding pixel is turned on and added to the pixels turned on by the fill process. This technique attempts to limit the increase in thickness and height of the character by turning a pixel on with respect to only one of the coincident rook moves. However, this technique results in an asymmetrical addition of 2o pixels which also distorts the features of the character.
..
A j It is therefore an object of the present invention to provide a way to eliminate drop out.
It is further an object of the present invention to provide a method and apparatus for the elimination of drop out wherein the distortion to the character is minimized.
In the method and apparatus of the present invention a contour is decomposed into a series of rook 20 moves, a single pixel is set ("turned on") at those pixel locations where coincident opposite rook moves, and thus drop out, occur. The pixel selected is the one more covered by the actual shape of the portion of the curve where the rook moves are coincident and drop out occurs. This is i5 dependent upon the slope of each of the curves at the location where the rook moves are coincident. Preferably, the length of the sequence of colinear consecutive rook moves is used to approximate the slopes of the respective curves in the area of dropout. The rook moves are analyzed 20 according to the number of consecutive colinear rook moves to determine a target pixel is to be set. A target pixel is the pixel in the winding direction (i.e., right or left direction) as you move along the rook move. The target pixel of the longest sequence of colinear rook moves is move 25 covered than its opposite pixel. Therefore the target pixel would be set and added to the bit map image generated using an outline fill process.
More particularly, the rook moves are examined to determine the length of a sequence, that is the number of rook moves that are sequentially in alignment with one another. A strength value is then assigned to each of those rook moves in a sequence equal to the number of rook moves in the sequence. The strength value of the rook move is then compared to the strength value of the opposite pixel, that is the pixel opposite the target pixel for a particular rook move. If the strength value of the target pixel of the rook move is greater than the strength of the opposite pixel, the opposite pixel value is reset to zero and the target pixel is set to equal the strength of the sequence.
This process is performed for each rook move in a sequence and for each sequence of rook moves around the contour of the character. Once all rook move have been evaluated, the value is assigned to the pixels of the character according to this process, are adjusted to reflect a bit map image to be displayed. This is achieved by turning on all bits which are greater than zero. The bit map generated is then logically ORed with the bit map generated using the contour 2o fill process to provide a filled character in which drop out is eliminated and the distortion to the character is minimized.

1 To this end, in one of its aspects, the invention provides a computer-implemented method for filling in outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, said method comprising the steps of:
breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move;
generating a first bit map of the character by setting those pixels between rook moves to equal a value of one;
generating a second bit map of the character comprising the steps of:
initializing the pixels of the second bit map to zero;
determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
- 7a -1 if the strength of the rook move is greater than a target pixel value and the strength of the rook mope is greater than an opposite pixel value;
setting the target pixel value to equal the strength of the rook move; setting the opposite pixel value to equal zero; and translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character;
and performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character.
In yet another of its aspects, the invention provides a computer-implemented method for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character said method comprising the steFs of:
breaking down the contours of the characters into a series of rook moves according to the direction of - 7b -1 the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have an initial value of zero;
determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;
setting the target pixel value to equal the strength of the rook move; and setting the opposite pixel value to equal zero;
adding those pixel values generated which are greater than zero to the first bit mapped image whereby the drop out is eliminated.
In still another of its aspects, the invention provides a computer-implemented method for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more - 7c -1 contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character, said method comprising the steps of:
breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have an initial value of zero;
setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of the character and setting the corresponding opposite pixels to zero, said strong visual effect of the rook moves being related to the number of rook moves in a colinear sequence wherein the larger the number of rook moves in a colinear sequence, the stronger the visual effect; and adding those pixel values set to a value of one to the first bit mapped image whereby the drop out is eliminated.
In still yet another of its aspects, the invention provides an apparatus for filling in outlines of characters - 7d -f;
~.

1 in digital typefaces, each character outline having one or more contours, each contour having a direction, said apparatus comprising:
means for breaking dcwn the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move;
means for generating a first bit map of the character by setting those pixels between rook moves to equal a value of one;
means for generating a second bit map of the character comprising:
means for initializing the pixels of the bit map t o zero ;
means for determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength - 7e -1 of the rook move is greater than an opposite pixel value;
means for setting the target pixel value to equal the strength of the rook move;
means for setting the opposite pixel value to equal zero;
means for translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character; and means for performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character.
Yet in another of its aspects, the invention provides an apparatus for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character said means comprising:
means for breaking down the contours of the - 7f -1 characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have initial values of zero;
means for determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;
means for setting the target pixel value to equal the strength of the rook move; and means for setting the opposite pixel value to equal zero;
means f or adding those pixel values generated which are greater than zero to the first bit mapped image whereby the drop out is eliminated.
In still another of its aspects, the invention provides an apparatus for eliminating the drop out which _ 7g _ 1 occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character, said apparatus comprising:
means for breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move ar.d have an initial values of zero;
means for setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of the character and setting the corresponding opposite pixels to zero, said strong visual effect of the rook moves being related to the number of rook moves in a colinear sequence wherein the larger the number of rook moves in a colinear sequence, the stronger the visual effect;
adding those pixel values set to a value of one to the first bit mapped image whereby the drop out is eliminated.
- 7h -The detailed descriptions which follow are presented largely in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art.
An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. These steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It proves convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. tt should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.
Further, the manipulations performed are often referred to in terms, such as adding or comparing, which are commonly associated with mental operations performed by a human operator. No such capability of a human operator is necessary, or desirable in most cases, in any of the operations described herein which form part of the present invention; the operations are machine operations. Useful machines for performing the operations of the present invention include general purpose digital computers or other similar devices. In all cases there should be borne in mind the distinction between the method operations in operating a computer and the method of computation itself. The present invention relates to method steps for operating a computer in MEM/1dr - 8 - 82225.P112 processing electrical or other (e.g., mechanical, chemical) physical signals to generate other desired physical signals.
The present invention also relates to apparatus for performing these operations. This apparatus may be specially constructed for the required purposes or it may comprise a general purpose computer as selectively activated or reconfigured by a computer program stored in the computer. The algorithms presented herein are not inherently related to a particular computer or other apparatus. In particular, various general purpose machines may be used with programs written in accordance with the teachings herein, or it may prove more convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these machines will appear from the description given below.
MEM/1dr - 9 - 82225.P112 In the following description, numerous specific details are set forth such as algorithmic conventions, character definition conventions, specific numbers of bits, etc., in order to provide a thorough understanding of the present invention. However, it will be obvious to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known circuits and structures are not described in detail in order not to obscure the present invention unnecessarily.
General System Confiq ru ation Fig. 3 shows a typical computer-based system for filling contours according to the present invention. Shown there is a computer 101 which comprises three major components. The first of these is the input/output (I/O) circuit 102 which is used to communicate information in appropriately structured form to and from the other parts of the computer 101. Also shown as a part of computer 101 is the central processing unit (CPU) 103 and memory 104. These latter two elements are those typically found in most general purpose computers and almost all special purpose computers. In fact, the several elements contained within computer 101 are intended to be representative of this broad category of data processors. Particular examples of suitable data processors to fill the role of computer 101 include machines manufactured by Sun Microsystems, Inc., Mountain View, California. Other computers having like capabilities may of course be adapted in a straightforward manner to perform the functions described below.
Also shown in Fig. 3 is an input device 105, shown in typical embodiment as a keyboard. It should be understood, however, that the input device may actually be a card reader, magnetic or paper tape reader, or other well-known MEM/fdr - 10 - 82225.P112 input device (including, of course, another computer). A mass memory device 106 is coupled to the I/O circuit 102 and provides additional storage capability for the computer 101. The mass memory may include other programs and the like and may take the form of a magnetic or paper tape reader or other well known device. It will be appreciated that the data retained within mass memory 106, may, in appropriate cases, be incorporated in standard fashion into computer 101 as part of memory 104.
In addition, a display monitor 107 is illustrated which is used to display messages or other communications to the user. Such a display monitor may to take the form of any of several well-known varieties of CRT displays.
Preferably, the display monitor 107 may also display the graphic images i.e. the characters, generated from the digital typeface data generated according to the process of the present invention. A cursor control 108 is used to select command modes and edit the input data, such as, for example, the scale of the typeface, and ~ s provides a more convenient means to input information into the system.
process Overview A character may be described in terms of a contour as illustrated in Fig. 1.
Fig. 1 a shows the inner contour 200 and outer contour 210 of the letter "P".
The inner and outer contours 200, 210 are then broken down into a series of rook 2o moves. A rook move is a horizontal or vertical move between consecutive grid points. The totality of rook moves for a contour represents a discreet representation of the character. The character "P" illustrated in Fig. 1 a is represented by a plurality of rook moves as illustrated in Fig. 1b. The contour represented by rook moves is then examined rook move by rook move to determine what additional pixels should be set in order to eliminate the problem Of drop OUt. The pixel selected is the one more covered by the actual shape of the portion of the curve where dropout occurs.
This is dependent upon the slope of each of the curves.
Preferably the length of the sequence of colinear consecutive 30 rook moves is used to approximate the slopes of the respective curves in the area of dropout. The pixels to be added are determined by detecting coincident rook moves and adding a single pixel for every coincident pair according to the length of a sequence of colinear rook moves. The target pixel of the longest sequence of colinear rook moves is more covered than its opposite pixel. Therefore, the target pixel is set. Thus, in the situation of coincident rook moves, only the pixel corresponding to stronger rook move is added eliminating the addition of two pixels and the resulting distortion of the character.
The sequence of evaluation of the rook moves is determined according to the sequence of rook moves in the direction of the contour. In addition, the characters comprising multiple contours, such as the character "P"
illustrated in Figs. la and lb, are evaluated contour by contour. Thus, with respect to the letter "P", the inner contour (200, Fig. la) may be evaluated first followed by the outer contour (210, Fig. la) or vice versa.
A preferred embodiment of the present invention is represented by the flow chart of Fig. 4. Initially, at block 300, all the pixels of the bit map are initialized to a value of zero. At block 305 a first rook move in the contour is selected. The first rook move may be arbitrarily picked or picked according to a predetermined algorithm. For example, the first rook move may be the bottom left corner of the contour. In the present example the start points are the bottom left corner of each of the contours. This is illustrated in Fig. 6 where the start point for the outer contour is at 470 and the start point for the inner contour is at 460.
One of several target pixels that is associated with rook moves having a strong visual effect on a viewer of a character may be set to a value. Setting to a value a target pixel associated with rook moves having a strong visual effect on a viewer of that character may be accomplished as follows. The strength of each rook move may be determined where the strength of a rook move corresponding to the total number of rook moves in a colinear sequence. If the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;
the target pixel value may be set to equal the strength of the rook move. The opposite pixel value may be set to equal zero. Pixel values having a value greater than zero may be translated to a value of one. This may provide a second bit map of the character. Last, a - 12a -logical OR of the first and second bit maps of the character may be performed so that the resulting bit map is the filled character with the drop out eliminated.
At block 310, the strength of the rook move is determined. The strength of the rook move is equal to the total number of rook moves that are in a colinear sequence, that is, the number of rook moves that are in alignment with one another without changing direction through a 90 or 180 degree turn.
- 12b -Once the strength of the rook move is determined, the rook move strength is compared to the target pixel for the rook move. The target pixel is defined to be the pixel in the winding direction (i.e., to the right or left) of the rook move.
Preferably, the winding direction is the clockwise direction and therefore the target pixel is to the right of the rook move. Although the target pixel can be either the pixel to the right or left of the rook move, it must consistently be identified through out the entire character. Correspondingly, the opposite pixel is the pixel which is directly opposite the target pixel. For example, in the preferred embodiment, the opposite pixel would be the pixel to the left of the rook move from the perspective of the direction of the rook move. This is best illustrated by Fig. 5 which shows a rook move 400 having a target pixel 410 and opposite pixel 420. Similarly, rook move 430 has a target pixel 440 and opposite pixel 450.
At block 315 the strength of the rook move is compared to the target pixel value and opposite pixel value. If the rook move strength is greater than the target pixel value and is greater than the opposite pixel value, then at block the target pixel value is set to equal the strength of the rook move and the opposite pixel value is set to equal zero the process then continues with the next rook move in the contour. If the rook move strength is not greater than the target pixel value and the opposite pixel value, then no further steps are taken and at block 335 a repeat of the process is initiated for the next rook move beginning at block 310. Once all the rook moves have been evaluated at block 350, the pixel values greater than zero are set to the binary value 1. The pixel values of 1's and 0's representing the bit map image of the character generated by the preceding steps is logically ORed with the bit map image of the character generated using a standard fill process such as the one described in the background of the invention.
MEM;Idr - 13 - 82225.P112 Fig. 6 illustrates the values generated for the character "P". The values greater than zero are translated to a value of one and logically ORed with the bit map image depicted in Fig. 2 to generate the filled character depicted in Fig.
with the dropout which occurred at 500, 510, 520 and 530 eliminated.
While this invention has been described in conjunction with a preferred embodiment it is evident that numerous alternatives, modifications and variations and uses will be apparent to those skilled in the art in light of the foregoing description.
MEM/ldr - 14 - 82225.P112

Claims (18)

1. A computer-implemented method for filling in outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, said method comprising the steps of:
breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move;
generating a first bit map of the character by setting those pixels between rook moves to equal a value of one;
generating a second bit map of the character comprising the steps of:
initializing the pixels of the second bit map to zero;
determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than a target pixel value and the strength of the rook move is greater than an opposite pixel value;

setting the target pixel value to equal the strength of the rook move;
setting the opposite pixel value to equal zero; and translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character; and performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character.
2. The method of claim 1 wherein the step of generating a first bit map of the character comprises the steps of:
evaluating a character scan line by scan line starting at a first pixel in a scan line and continuing to an end pixel of the scan line;
setting pixels to a value of one which are subsequent to a first rook move which crosses the scan line;
setting pixels to a value of zero subsequent to a second rook move which crosses the scan line;
setting subsequent pixels to a value of one if subsequent first rook moves cross the scan line; and setting subsequent pixels to a value of zero if subsequent second rook moves cross the scan line.
3. The method of claim 1 wherein the steps of determining the strength of the rook moves and setting the target and opposite pixels are sequentially determined around the outline of the character.
4. A computer-implemented method for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character said method comprising the steps of:
breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have an initial value of zero;
determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;

setting the target pixel value to equal the strength of the rook move; and setting the opposite pixel value to equal zero;
adding those pixel values generated which are greater than zero to the first bit mapped image whereby the drop out is eliminated.
5. The method of claim 4 wherein the step of adding pixel values greater than zero to the first bit mapped image comprises the steps of:
translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character;
performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character with the drop out eliminated.
6. The method of claim 4 wherein the steps of determining the strength of the rook moves and setting the target and opposite pixels are sequentially determined around the outline of the character.
7. A computer-implemented method for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character, said method comprising the steps of:
breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have an initial value of zero;
setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of the character and setting the corresponding opposite pixels to zero, said strong visual effect of the rook moves being related to the number of rook moves in a colinear sequence wherein the larger the number of rook moves in a colinear sequence, the stronger the visual effect;
adding those pixel values set to a value of one to the first bit mapped image whereby the drop out is eliminated.
8. The method of claim 7 wherein the step of setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of a character comprises the steps of:
determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;
setting the target pixel value to equal the strength of the rook move; and setting the opposite pixel value to equal zero;
translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character;
performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character with the drop out eliminated.
9. The method of claim 7 wherein the steps of determining the strength of the rook moves and setting the target and opposite pixels are sequentially determined around the outline of the character.
10. An apparatus for filling in outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, said apparatus comprising:
means for breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move;
means for generating a first bit map of the character by setting those pixels between rook moves to equal a value of one;
means for generating a second bit map of the character comprising:
means for initializing the pixels of the bit map to zero;
means for determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than a target pixel value and the strength of the rook move is greater than an opposite pixel value;
means for setting the target pixel value to equal the strength of the rook move;

means for setting the opposite pixel value to equal zero;
and means for translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character; and means for performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character.
11. The apparatus of claim 10 wherein the means for generating a first bit map of the character comprises:
means for evaluating a character scan line by scan line starting at a first pixel in a scan line and continuing to an end pixel of the scan line;
means for setting pixels to a value of one which are subsequent to a first rook move which crosses the scan line;
means for setting pixels to a value of zero subsequent to a second rook move which crosses the scan line;
means for setting subsequent pixels to a value of one of subsequent first rook moves cross the scan line; and means for setting subsequent pixels to a value of zero if subsequent second rook moves cross the scan line.
12. The apparatus of claim 10 wherein the means for determining the strength of the rook moves and setting the target and opposite pixels sequentially determine around the outline of the character.
13. An apparatus for eliminating the drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character said means comprising:
means for breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have initial values of zero;
means for determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;

means for setting the target pixel value to equal the strength of the rook move; and means for setting the opposite pixel value to equal zero;
means for adding those pixel values generated which are greater than zero to the first bit mapped image whereby the drop out is eliminated.
14. The apparatus of claim 13 wherein the means for adding pixel values greater than zero to the first bit mapped image comprises:
means for translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character;
means for performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character with the drop out eliminated.
15. The apparatus of claim 13 wherein the means for determining the strength of the rook moves and setting the target and opposite pixels sequentially determine around the outline of the character.
16. An apparatus for eliminating a drop out which occurs in filled outlines of characters in digital typefaces, each character outline having one or more contours, each contour having a direction, the filled outlines depicted by a first bit mapped image of the character, said apparatus comprising:
means for breaking down the contours of the characters into a series of rook moves according to the direction of the contour, each rook move having a target and opposite pixel associated with it which are adjacent to the rook move and have an initial values of zero;
means for setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of the character and setting the corresponding opposite pixels to zero, said strong visual effect of the rook moves being related to the number of rook moves in a colinear sequence wherein the larger the number of rook moves in a colinear sequence, the stronger the visual effect;
adding those pixel values set to a value of one to the first bit mapped image whereby the drop out is eliminated.
17. The apparatus of claim 16 wherein the means for setting to a value of one those target pixels which are associated with rook moves having a strong visual effect on a viewer of a character comprising:
means for determining the strength of each rook move, the strength of a rook move corresponding to the total number of rook moves in a colinear sequence;
if the strength of the rook move is greater than the target pixel value and the strength of the rook move is greater than the opposite pixel value;
means for setting the target pixel value to equal the strength of the rook move; and means for setting the opposite pixel value to equal zero;
means for translating the pixel values having a value greater than zero to a value of one thereby providing a second bit map of the character;
means for performing a logical OR of the first and second bit maps of the character whereby the resulting bit map is the filled character with the drop out eliminated.
18. The method of claim 16 wherein the means for determining the strength of the rook moves and setting the target and opposite pixels sequentially determine around the outline of the character.
CA002023832A 1989-09-15 1990-08-21 Method and apparatus for filing contours in digital typefaces Expired - Fee Related CA2023832C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US407,911 1989-09-15
US07/407,911 US5068803A (en) 1989-09-15 1989-09-15 Method and apparatus for filling contours in digital typefaces

Publications (2)

Publication Number Publication Date
CA2023832A1 CA2023832A1 (en) 1991-03-16
CA2023832C true CA2023832C (en) 2001-05-29

Family

ID=23614059

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002023832A Expired - Fee Related CA2023832C (en) 1989-09-15 1990-08-21 Method and apparatus for filing contours in digital typefaces

Country Status (5)

Country Link
US (1) US5068803A (en)
JP (1) JP3184979B2 (en)
KR (1) KR940006918B1 (en)
CA (1) CA2023832C (en)
GB (1) GB2236037A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2726951B2 (en) * 1990-08-24 1998-03-11 富士ゼロックス株式会社 Character / graphic drawing device
US5553219A (en) * 1991-05-10 1996-09-03 Fuji Xerox Co., Ltd. Font outline and bit map generator synthesizing filling data with selected outline data or duplicate outline data
JPH0540463A (en) * 1991-08-08 1993-02-19 Hitachi Ltd Multi-level character generator
US5355449A (en) * 1991-09-30 1994-10-11 Destiny Technology Corporation Method and apparatus for outline font character generation in dot matrix devices
US5379370A (en) * 1992-07-17 1995-01-03 International Business Machines Corporation Method and apparatus for drawing lines, curves, and points coincident with a surface
US5589851A (en) * 1994-03-18 1996-12-31 Ductus Incorporated Multi-level to bi-level raster shape converter
US5600772A (en) * 1994-08-17 1997-02-04 Printronix, Inc. Bit map character convertor using chain-codes for the character filling process
US5790126A (en) 1995-01-03 1998-08-04 Microsoft Corporation Method for rendering a spline for scan conversion of a glyph
US20060103857A1 (en) * 2004-11-17 2006-05-18 Lexmark International, Inc. Method of reducing a consumption of imaging substance when forming an image
JP4714043B2 (en) * 2006-03-02 2011-06-29 株式会社東芝 Change instruction drawing creation system and method, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4675833A (en) * 1984-04-13 1987-06-23 Xyvision, Inc. Processor controlled photocomposition system
US4675830A (en) * 1984-07-06 1987-06-23 Compugraphic Corporation Method for producing a scaleable typeface data
IE852259L (en) * 1985-09-13 1987-03-13 Scottish & Newcastle Breweries A method and apparatus for constructing, storing and¹displaying characters
US4959801A (en) * 1986-02-07 1990-09-25 Bitstream Inc. Outline-to-bitmap character generator
AU629210B2 (en) * 1988-10-26 1992-10-01 Sun Microsystems, Inc. Method and apparatus for minimizing the visual degradation of digital typefaces

Also Published As

Publication number Publication date
KR910006882A (en) 1991-04-30
CA2023832A1 (en) 1991-03-16
GB9010250D0 (en) 1990-06-27
JPH03119387A (en) 1991-05-21
JP3184979B2 (en) 2001-07-09
US5068803A (en) 1991-11-26
KR940006918B1 (en) 1994-07-29
GB2236037A (en) 1991-03-20

Similar Documents

Publication Publication Date Title
US5715473A (en) Method and apparatus to vary control points of an outline font to provide a set of variations for the outline font
US5159668A (en) Method and apparatus for manipulating outlines in improving digital typeface on raster output devices
US5280577A (en) Character generation using graphical primitives
EP0356103B1 (en) Scan-conversion process and processor
US7912322B2 (en) Method and apparatus for magnifying computer screen display
US5426723A (en) System and method for scaling graphic images
EP0632396A2 (en) Method and system for providing substitute computer fonts
US6292192B1 (en) System and method for the direct rendering of curve bounded objects
US4529978A (en) Method and apparatus for generating graphic and textual images on a raster scan display
JPH08511638A (en) Anti-aliasing device and method for automatic high-speed alignment of horizontal and vertical edges to target grid
CA2023832C (en) Method and apparatus for filing contours in digital typefaces
US5489920A (en) Method for determining the optimum angle for displaying a line on raster output devices
US5295234A (en) Apparatus for displaying a three dimensional object which appears substantially the same in different display directions by modifying stored image data by a scale factor
US6215501B1 (en) Method and filling a polygon and recording medium
US5020002A (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
US6344856B1 (en) Text optimization
EP0062669A1 (en) Graphic and textual image generator for a raster scan display.
JPS58225313A (en) Generator for artificial horizon between sky shading and ground shading
US5117485A (en) Method and apparatus for sorting line segments for display and manipulation by a computer system
JPH06274303A (en) Multiwindow display method
JPH07120427B2 (en) Graphic processing system
KR0145709B1 (en) Computer graphic system
EP0325409A2 (en) Character generation
JP2846165B2 (en) Character learning device
JP2835056B2 (en) High quality character pattern generation method

Legal Events

Date Code Title Description
EEER Examination request
MKLA Lapsed