Query: xtextwidth16
OS: hpux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XTextWidth16() XTextWidth16() Name XTextWidth16 - get the width in pixels of a 16-bit character string, locally. Synopsis int XTextWidth16(font_struct, string, count) XFontStruct *font_struct; XChar2b *string; int count; Arguments font_struct Specifies the font description structure of the font in which you want to draw the string. string Specifies a character string made up of XChar2b structures. count Specifies the character count in string. Returns The width in pixels. Description XTextWidth16() returns the width in pixels of the specified string using the specified font. This is the sum of the XCharStruct.width for each character in the string. This is also equivalent to the value of overall.width returned by XQueryTextExtents16() or XTextExtents16(). The calculation is done assuming 16-bit font indexing. For more information on drawing text, see Volume One, Chapter 6, Drawing Graphics and Text. Structures typedef struct { XExtData *ext_data; /* hook for extension to hang data */ Font fid; /* font ID for this font */ unsigned direction; /* hint about direction the font is painted */ unsigned min_char_or_byte2; /* first character */ unsigned max_char_or_byte2; /* last character */ unsigned min_byte1; /* first row that exists */ unsigned max_byte1; /* last row that exists */ Bool all_chars_exist; /* flag if all characters have non-zero size */ unsigned default_char; /* char to print for undefined character */ int n_properties; /* how many properties there are */ XFontProp *properties; /* pointer to array of additional properties*/ XCharStruct min_bounds; /* minimum bounds over all existing char*/ XCharStruct max_bounds; /* maximum bounds over all existing char*/ XCharStruct *per_char; /* first_char to last_char information */ int ascent; /* logical extent above baseline for spacing */ int descent; /* logical descent below baseline for spacing */ } XFontStruct; See Also XDrawImageString(), XDrawImageString16(), XDrawString(), XDrawString16(), XDrawText(), XDrawText16(), XQueryTextExtents(), XQueryTextEx- tents16(), XTextExtents(), XTextExtents16(), XTextWidth(). Xlib - Text XTextWidth16()
Related Man Pages |
---|
xfreefontinfo(3) - hpux |
xgetfontproperty(3) - hpux |
xloadqueryfont(3) - hpux |
xqueryfont(3) - hpux |
xquerytexta(3) - hpux |
Similar Topics in the Unix Linux Community |
---|
PHP Man Pages Now Available (Over 10,000) |
Is UNIX an open source OS ? |
Thank you members and admins |
Seeking Alternative for diff in hp |
Shopt -s histappend |