Write short notes on Text generation. OR Character Generation Techniques
Character Generation Techniques Two different representations are used for storing computer fonts. Bitmap font : It uses rectangular grid patterns. Outline font: It uses straight lines and curve sections to describe character shapes. When the pattern of Fig(a) is copied to an area of the frame buffer, the 1 bits designate which pixel positions are t be displayed on the monitor. To display the character shape in Fig. (b) the interior of the character outline must be filled using the scan line fill procedure. Bitmap fonts free the simplest to define and display. The character grid only needs to be mapped to a frame buffer position. However bitmap fonts require more space because each variation must be stored in a font cache. Outline fonts require less storage since each variation does not require a distinct font cache. Different shapes and sizes can be generated using outline font and are easier to generate. But it takes more time to process the outline fonts because they must be scan converted into the frame buffer.
(1) Text (we point, string) Parameter string is assigned a character sequence which is then displayed at coordinate position we point.
(2) Polymarker (n, we points) A marker symbol is placed at one of more selected positions. A predefined character is then centered at each of the n coordinate positions in the list we points.