12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTthe escapement in pixels of the specified string as a value, using the fonts loaded for the specifiedfont set. The escapement is the distance in pixels in the primary draw direction from the drawingorigin to the origin of the next character to be drawn, assuming that the rendering of the nextcharacter is not dependent on the supplied string.Regardless of the character rendering order, the escapement is always positive.The function Xutf8TextEscapement is an XFree86 extension introduced in XFree86 4.0.2. Itspresence is indicated by the macro X_HAVE_UTF8_STRING.To obtain the overall_ink_return and overall_logical_return arguments, the overall bounding boxof the string’s image, and a logical bounding box, use XmbTextExtents, XwcTextExtents orXutf8TextExtents.int XmbTextExtents (font_set, string, num_bytes, overall_ink_return, overall_logical_return)XFontSet font_set;char *string;int num_bytes;XRectangle *overall_ink_return;XRectangle *overall_logical_return;int XwcTextExtents (font_set, string, num_wchars,overall_ink_return, overall_logical_return)XFontSet font_set;wchar_t *string;int num_wchars;XRectangle *overall_ink_return;XRectangle *overall_logical_return;int Xutf8TextExtents (font_set, string, num_bytes, overall_ink_return, overall_logical_return)XFontSet font_set;char *string;int num_bytes;XRectangle *overall_ink_return;XRectangle *overall_logical_return;font_setstringnum_bytesnum_wcharsSpecifies the font set.Specifies the character string.Specifies the number of bytes in the string argument.Specifies the number of characters in the string argument.overall_ink_returnReturns the overall ink dimensions.overall_logical_returnReturns the overall logical dimensions.The XmbTextExtents, XwcTextExtents and Xutf8TextExtents functions set the componentsof the specified overall_ink_return and overall_logical_return arguments to the overall boundingbox of the string’s image and a logical bounding box for spacing purposes, respectively. Theyreturn the value returned by XmbTextEscapement, XwcTextEscapement or Xutf8TextEscapement.These metrics are relative to the drawing origin of the string, using the fonts loaded for thespecified font set.294

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!