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 DRAFTRegardless of the rendering order of characters, the origins of all characters are on the primarydraw direction side of the drawing origin.This OM value presents functionality identical to the XDirectionalDependentDrawing function.13.4.3.4. Context Dependent DrawingThe XNContextualDrawing argument indicates whether the text rendering functions implementimplicit context-dependent drawing. If this value is True, the output method has knowledge ofcontext dependencies and performs character shape editing, combining glyphs to present a singlecharacter as necessary. The actual shape editing is dependent on the locale implementation andthe font set used.This OM value presents functionality identical to the XContextualDrawing function.13.4.4. Output Context FunctionsAn output context is an abstraction that contains both the data required by an output method andthe information required to display that data. There can be multiple output contexts for one outputmethod. The programming interfaces for creating, reading, or modifying an output contextuse a variable argument list. The name elements of the argument lists are referred to as XOC values.It is intended that output methods be controlled by these XOC values. As new XOC valuesare created, they should be registered with the X Consortium. An XOC can be used anywhere anXFontSet can be used, and vice versa; XFontSet is retained for compatibility with previousreleases. The concepts of output methods and output contexts include broader, more generalizedabstraction than font set, supporting complex and more intelligent text display, and dealing notonly with multiple fonts but also with context dependencies. However, XFontSet is widely usedin several interfaces, so XOC is defined as an upward compatible type of XFontSet.To create an output context, use XCreateOC.XOC XCreateOC(om, ...)XOM om;omSpecifies the output method.... Specifies the variable-length argument list to set XOC values.The XCreateOC function creates an output context within the specified output method.The base font names argument is mandatory at creation time, and the output context will not becreated unless it is provided. All other output context values can be set later.XCreateOC returns NULL if no output context could be created. NULL can be returned for anyof the following reasons:• A required argument was not set.• A read-only argument was set.• Anargument name is not recognized.• The output method encountered an output method implementation-dependent error.XCreateOC can generate a BadAtom error.To destroy anoutput context, use XDestroyOC.282

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

Saved successfully!

Ooh no, something went wrong!