To query the server for the bounding box of a 2-byte character string in a given font, use XQueryTextExtents16().