![]() XExtData *ext_data /* hook for extension to hang data */ However, in this case the GContext ID will be the ID stored in the fid field of the returned XFontStruct, and you can't use that ID in XSetFont or XUnloadFont, since it is not itself the ID of the font.įor more information on fonts, see Volume One, Chapter 6, Drawing Graphics and Text. This is useful for getting information about the default font, whose ID is stored in the default GC. If font_lD is declared as data type GContext (also a resource ID), this function queries the font specified by the font component of the GC specified by this ID. If the font hasn't been loaded (or the font ID passed is invalid), XQueryFont returns NULL. XLoadQuery-Font combines these two operations. This call is needed if you loaded the font with XLoadFont, but need the font information for multiple calls to determine the extent of text. ![]() XQueryFont returns a pointer to an XFontStruct structure containing information describing the specified font. If GContext, the font in that GC will be queried. You can declare theĭata type for this argument as either Font or GContext (both X IDs). ![]() XFontStruct *XQueryFont(display, font_ID) Display * display XID font_ID ĭisplay Specifies a connection to an X server returned from XOpenDisplay.įont_io Specifies either the font ID or the graphics context ID. XQueryFont - return information about a loaded font.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |