Home | History | Annotate | Download | only in motif_l

Lines Matching refs:Font

103 static int     XRotDrawString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str);
104 static int XRotDrawImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str);
105 static int XRotDrawAlignedString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align);
106 static int XRotDrawAlignedImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align);
107 static XPoint *XRotTextExtents(Display *dpy, XFontStruct *font, float angle, int x, int y, char *text, int align);
300 #define XtNfont "font"
303 #define XtCFont "Font"
392 XFontStruct * font;
624 ((XmTabsWidget)self)->xmTabs.tabwidths[i] = min(maxwd, XTextWidth(((XmTabsWidget)self)->xmTabs.font,((XmTabsWidget)self)->xmTabs.labels[i],len) + h);
829 y = midy - (((XmTabsWidget)self)->xmTabs.font->ascent + ((XmTabsWidget)self)->xmTabs.font->descent)/2 + ((XmTabsWidget)self)->xmTabs.font->ascent;
830 w = XTextWidth(((XmTabsWidget)self)->xmTabs.font, ((XmTabsWidget)self)->xmTabs.labels[i], len);
888 (dpy, ((XmTabsWidget)self)->xmTabs.font, angle, win, ((XmTabsWidget)self)->xmTabs.textgc, midx, y, ((XmTabsWidget)self)->xmTabs.labels[i], align);
937 values.font = ((XmTabsWidget)self)->xmTabs.font->fid;
1100 {XtNfont,XtCFont,XtRFontStruct,sizeof(((XmTabsRec*)NULL)->xmTabs.font),XtOffsetOf(XmTabsRec,xmTabs.font),XtRString,(XtPointer)XtDefaultFont },
1317 if (((XmTabsWidget)self)->xmManager.foreground != ((XmTabsWidget)old)->xmManager.foreground || ((XmTabsWidget)self)->xmTabs.font != ((XmTabsWidget)old)->xmTabs.font) {
1540 Font fid;
1587 static int XRotDrawString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str);
1588 static int XRotDrawImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str);
1589 static int XRotDrawAlignedString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align);
1590 static int XRotDrawAlignedImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align);
1591 static XPoint *XRotTextExtents(Display *dpy, XFontStruct *font, float angle, int x, int y, char *text, int align);
1594 static int XRotPaintAlignedString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align, int bg);
1595 static int XRotDrawHorizontalString(Display *dpy, XFontStruct *font, Drawable drawable, GC gc, int x, int y, char *text, int align, int bg);
1596 static RotatedTextItem *XRotRetrieveFromCache(Display *dpy, XFontStruct *font, float angle, char *text, int align);
1597 static RotatedTextItem *XRotCreateTextItem(Display *dpy, XFontStruct *font, float angle, char *text, int align);
1695 /* Set the font magnification factor for all subsequent operations */
1755 int XRotDrawString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str)
1757 return (XRotPaintAlignedString(dpy, font, angle, drawable, gc,
1770 int XRotDrawImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *str)
1772 return(XRotPaintAlignedString(dpy, font, angle, drawable, gc,
1785 int XRotDrawAlignedString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align)
1787 return(XRotPaintAlignedString(dpy, font, angle, drawable, gc,
1800 int XRotDrawAlignedImageString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align)
1802 return(XRotPaintAlignedString(dpy, font, angle, drawable, gc,
1814 static int XRotPaintAlignedString(Display *dpy, XFontStruct *font, float angle, Drawable drawable, GC gc, int x, int y, char *text, int align, int bg)
1843 return(XRotDrawHorizontalString(dpy, font, drawable, gc, x, y,
1847 item=XRotRetrieveFromCache(dpy, font, angle, text, align);
1867 hot_y = -((float)item->rows_in/2-(float)font->descent)*style.magnify;
2046 static int XRotDrawHorizontalString(Display *dpy, XFontStruct *font, Drawable drawable, GC gc, int x, int y, char *text, int align, int bg)
2065 XSetFont(dpy, my_gc, font->fid);
2079 /* overall font height */
2080 height=font->ascent+font->descent;
2084 yp=y+font->ascent;
2086 yp=y-nl*height/2+font->ascent;
2088 yp=y-nl*height+font->ascent;
2100 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2135 /* Query cache for a match with this font/text/angle/alignment */
2139 static RotatedTextItem *XRotRetrieveFromCache(Display *dpy, XFontStruct *font, float angle, char *text, int align)
2141 Font fid;
2147 /* get font name, if it exists */
2148 if(XGetFontProperty(font, XA_FONT, &name_value)) {
2149 DEBUG_PRINT1("got font name OK\n");
2154 /* otherwise rely (unreliably?) on font ID */
2158 fid=font->fid;
2161 /* not allowed to cache font ID's */
2173 identical fontname (if defined, font ID's if not);
2191 DEBUG_PRINT1("Matched against font names\n");
2221 item=XRotCreateTextItem(dpy, font, angle, text, align);
2283 static RotatedTextItem *XRotCreateTextItem(Display *dpy, XFontStruct *font, float angle, char *text, int align)
2330 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2340 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2351 /* overall font height */
2352 height=font->ascent+font->descent;
2365 XSetFont(dpy, font_gc, font->fid);
2391 yp=font->ascent;
2401 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2417 item->corners_y[ic]=((float)(yp-font->ascent)-(float)item->rows_in/2)
2601 item->size+=sizeof(Font);
2822 XPoint *XRotTextExtents(Display *dpy, XFontStruct *font, float angle, int x, int y, char *text, int align)
2865 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2875 XTextExtents(font, str3, strlen(str3), &dir, &asc, &desc,
2886 /* overall font height */
2887 height=font->ascent+font->descent;
2905 hot_y = -((float)rows_in/2-(float)font->descent)*style.magnify;