Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glyphs(5) [xfree86 man page]

GLYPHS(5)                                                       File Formats Manual                                                      GLYPHS(5)

NAME
glyphs - format of .glyphs files DESCRIPTION
Glyph files (``.glyph'' extension) are used to store commonly-used bit patterns (glyphs) for Magic. Right now, the bit patterns are used for two purposes in Magic. First, they specify patterns for programmable cursors: each cursor shape (e.g. the arrow used for the wiring tool) is read in as a glyph from a glyph file. Second, glyphs are used by the window manager to represent the icons displayed at the ends of scroll bars. Glyph file names normally have the extension .glyph. Glyph files are stored in ASCII format. Lines beginning with ``#'' are considered to be comments and are ignored. Blank lines are also ignored. The first non-comment line in a glyph file must have the syntax size nGlyphs width height The nGlyphs field must be a number giv- ing the total number of glyphs stored in the file. The width and height fields give the dimensions of each glyph in pixels. All glyphs in the same file must have the same size. The size line is followed by a description for each of the glyphs. Each glyph consists of height lines each containing 2xwidth characters. Each pair of characters corresponds to a bit position in the glyph, with the leftmost pair on the topmost line corresponding to the upper- left pixel in the glyph. The first character of each pair specifies the color to appear in that pixel. The color is represented as as a single character, which must be the short name of a display style in the current display style file. Some commonly-used characters are K for black, W for white, and . for the background color (when . is used in a cursor, it means that that pixel position is transparent: the underlying picture appears through the cursor). See ``Magic Maintainer's Manual #3: Display Styles, Color Maps, and Glyphs'' for more information. The second character of each pair is normally blank, except for one pixel per glyph which may contain a ``*'' in the second character. The ``*'' is used for programmable cursors to indicate the hot-spot: the pixel corresponding to the ``*'' is the one that the cursor is con- sidered to point to. For an example of a glyph file, see ~cad/lib/magic/sys/color.glyphs. SEE ALSO
magic(1), dstyle(5) 4th Berkeley Distribution GLYPHS(5)

Check Out this Related Man Page

libcaca-font(3caca)						      libcaca						       libcaca-font(3caca)

NAME
libcaca-font - The libcaca font format (version 1) All types are big endian. struct { magic: uint8_t caca_header[2]; // '' uint8_t caca_file_type[2]; // 'FT' font_header: uint32_t control_size; // Control size (font_data - font_header) uint32_t data_size; // Data size (EOF - font_data) uint16_t version; // Font format version // bit 0: set to 1 if font is compatible // with version 1 of the format // bits 1-15: unused yet, must be 0 uint16_t blocks; // Number of blocks in the font uint32_t glyphs; // Total number of glyphs in the font uint16_t bpp; // Bits per pixel for glyph data (valid // Values are 1, 2, 4 and 8) uint16_t width; // Standard glyph width uint16_t height; // Standard glyph height uint16_t maxwidth; // Maximum glyph width uint16_t maxheight; // Maximum glyph height uint16_t flags; // Feature flags // bit 0: set to 1 if font is fixed width // bits 1-15: unused yet, must be 0 block_info: struct { uint32_t start; // Unicode index of the first glyph uint32_t stop; // Unicode index of the last glyph + 1 uint32_t index; // Glyph info index of the first glyph } block_list[blocks]; glyph_info: struct { uint16_t width; // Glyph width in pixels uint16_t height; // Glyph height in pixels uint32_t data_offset; // Offset (starting from data) to the data // for the first character } glyph_list[glyphs]; control_extension_1: control_extension_2: ... control_extension_N: ... // reserved for future use font_data: uint8_t data[data_size]; // glyph data data_extension_1: data_extension_2: ... data_extension_N: ... // reserved for future use }; Version 0.99.beta18 Fri Apr 6 2012 libcaca-font(3caca)

Featured Tech Videos