XRotDrawString

Section: C Library Functions (3)
Updated: 8 Dec 1992
Index Return to Main Contents
 

NAME

XRotDrawString, XRotDrawImageString - draw simple strings in a rotated font  

SYNOPSIS

void XRotDrawString(dpy, rotfont, drawable, gc, x, y, str, len)
Display *dpy;
XRotFontStruct *rotfont;
Drawable drawable;
GC gc;
int x, y;
char *str;
int len;

void XRotDrawImageString(dpy, rotfont, drawable, gc, x, y, str, len)
Display *dpy;
XRotFontStruct *rotfont;
Drawable drawable;
GC gc;
int x, y
char *str;
int len;  

ARGUMENTS

display
Specifies the connection to the X server.
rotfont
An XRotFontStruct structure, returned by XRotLoadFont, describing a rotated font.
drawable
The window or pixmap in which to paint the text.
gc
The graphics context to use when painting text.
x, y
The coordinates of the lower left hand corner of the leftmost character in str.
str
A character string.
len
The number of characters in str.
 

DESCRIPTION

The XRotDrawString and XRotDrawImageString functions are both used to paint the simple string str in the rotated font described by rotfont. Simple in this case means containing no newline characters. No alignment is performed - the string is always painted with the lower left hand corner of the leftmost character at the position (x, y).

The two functions differ in that XRotDrawString leaves the background pixels untouched, drawing the text in the foreground colour of gc. XRotDrawImageString fills the background in with the background colour of gc, before painting the text in the foreground colour of gc. Note that only the foreground and background attributes of gc are used by these functions.  

SEE ALSO

xvertext, XRotVersion, XRotLoadFont, XRotUnloadFont, XRotTextWidth, XRotDrawAlignedString, XRotDrawAlignedImageString.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:35:29 GMT, March 26, 2025