Go to the first, previous, next, last section, table of contents.


Glyph Table Basics

A glyph table is basically an array that has 256 elements; each element represents one character and contains between zero and four glyphs -- the glyphs which will be printed for the character.

A special case exists for the tab character; when an element in the table contains zero glyphs, enough spaces will be printed to fill in to the next tab stop.

Function: get-glyph glyph-table character
This function returns a string containing the glyphs in the element of the glyph table glyph-table for the character character.

(get-glyph (default-glyph-table) ?a)
    => "a"

(get-glyph (default-glyph-table) ?\t)
    => ""        ;TAB is special

(get-glyph (default-glyph-table) ?\000)
    => "^@"      ;the NUL character

Function: set-glyph glyph-table character glyph-string
This function sets the sequence of glyphs used to render the character character in the glyph table glyph-table to the characters in the string glyph-string.

An error is signalled if there are more than four characters in glyph-string.

All buffers which use glyph-table for their rendering will be totally redrawn at the next redisplay.


Go to the first, previous, next, last section, table of contents.