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

thai/thrend.h(3)						      libthai							  thai/thrend.h(3)

NAME
thai/thrend.h - Thai string rendering. SYNOPSIS
Macros #define TH_BLANK_BASE_GLYPH 0xdd Blank base glyph, for floating upper/lower vowel. Typedefs typedef unsigned char thglyph_t Glyph code type. Functions int th_render_cell_tis (struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given cell using TIS-620 glyph set. int th_render_cell_win (struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given cell using Thai Windows glyph set. int th_render_cell_mac (struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given cell using Mac Thai glyph set. int th_render_text_tis (const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given text using TIS-620 glyph set. int th_render_text_win (const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given text using Thai Windows glyph set. int th_render_text_mac (const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am) Render the given text using Mac Thai glyph set. Detailed Description Thai string rendering. Function Documentation int th_render_cell_mac (struct thcell_tcell, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given cell using Mac Thai glyph set. Parameters: cell : the cell to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from Mac Thai glyph set for the given cell, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. int th_render_cell_tis (struct thcell_tcell, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given cell using TIS-620 glyph set. Parameters: cell : the cell to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from TIS-620 glyph set for the given cell, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. int th_render_cell_win (struct thcell_tcell, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given cell using Thai Windows glyph set. Parameters: cell : the cell to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from Thai Windows glyph set for the given cell, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. int th_render_text_mac (const thchar_t *s, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given text using Mac Thai glyph set. Parameters: s : the string to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from Mac Thai glyph set for the given string s, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. int th_render_text_tis (const thchar_t *s, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given text using TIS-620 glyph set. Parameters: s : the string to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from TIS-620 glyph set for the given string s, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. int th_render_text_win (const thchar_t *s, thglyph_tres[], size_tres_sz, intis_decomp_am) Render the given text using Thai Windows glyph set. Parameters: s : the string to render res : the buffer for storing output glyph string res_sz : the size of res buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total number of glyphs written to res[] Calculates glyphs from Thai Windows glyph set for the given string s, and store the glyph string in res, terminated with ''. If resulting glyphs are longer than the provided buffer, only the first res_sz glyphs are stored. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thrend.h(3)
Man Page