Lines Matching refs:font_info

76 #define MaxTextWidth  ((unsigned int) (255*XTextWidth(font_info,"_",1)))
77 #define MinTextWidth (26*XTextWidth(font_info,"_",1))
78 #define QuantumMargin MagickMax(font_info->max_bounds.width,12)
79 #define WidgetTextWidth(font_info,text) \ argument
80 ((unsigned int) XTextWidth(font_info,text,Extent(text)))
326 *font_info; in XDrawBeveledButton() local
358 font_info=window_info->font_info; in XDrawBeveledButton()
359 width=WidgetTextWidth(font_info,button_info->text); in XDrawBeveledButton()
364 (font_info->ascent+font_info->descent)) >> 1)+font_info->ascent; in XDrawBeveledButton()
522 *font_info; in XDrawMatteText() local
536 font_info=window_info->font_info; in XDrawMatteText()
538 y=text_info->y+font_info->ascent+(text_info->height >> 2); in XDrawMatteText()
540 height=(unsigned int) (font_info->ascent+font_info->descent); in XDrawMatteText()
565 if (XTextWidth(font_info,(char *) text,(int) (text_info->cursor-text)) > in XDrawMatteText()
571 n=XTextWidth(font_info,(char *) text+i,(int) in XDrawMatteText()
594 width=WidgetTextWidth(font_info,text_info->marker); in XDrawMatteText()
596 window_info->annotate_context,x,y-font_info->ascent,width,height); in XDrawMatteText()
605 x+=XTextWidth(font_info,text_info->marker,(int) in XDrawMatteText()
656 *font_info; in XDrawTriangleEast() local
727 font_info=window_info->font_info; in XDrawTriangleEast()
732 (font_info->ascent+font_info->descent)) >> 1)+font_info->ascent; in XDrawTriangleEast()
1001 *font_info; in XDrawWidgetText() local
1026 font_info=window_info->font_info; in XDrawWidgetText()
1034 width=WidgetTextWidth(font_info,text_info->text); in XDrawWidgetText()
1041 height=(unsigned int) (font_info->ascent+font_info->descent); in XDrawWidgetText()
1042 y=text_info->y+((text_info->height-height) >> 1)+font_info->ascent; in XDrawWidgetText()
1656 *font_info; in XColorBrowserWidget() local
1712 font_info=windows->widget.font_info; in XColorBrowserWidget()
1715 if (WidgetTextWidth(font_info,colorlist[i]) > text_width) in XColorBrowserWidget()
1716 text_width=WidgetTextWidth(font_info,colorlist[i]); in XColorBrowserWidget()
1717 width=WidgetTextWidth(font_info,(char *) action); in XColorBrowserWidget()
1718 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XColorBrowserWidget()
1719 width=WidgetTextWidth(font_info,CancelButtonText); in XColorBrowserWidget()
1720 if (WidgetTextWidth(font_info,ResetButtonText) > width) in XColorBrowserWidget()
1721 width=WidgetTextWidth(font_info,ResetButtonText); in XColorBrowserWidget()
1722 if (WidgetTextWidth(font_info,GrabButtonText) > width) in XColorBrowserWidget()
1723 width=WidgetTextWidth(font_info,GrabButtonText); in XColorBrowserWidget()
1725 if (WidgetTextWidth(font_info,ColorPatternText) > width) in XColorBrowserWidget()
1726 width=WidgetTextWidth(font_info,ColorPatternText); in XColorBrowserWidget()
1727 if (WidgetTextWidth(font_info,ColornameText) > width) in XColorBrowserWidget()
1728 width=WidgetTextWidth(font_info,ColornameText); in XColorBrowserWidget()
1729 height=(unsigned int) (font_info->ascent+font_info->descent); in XColorBrowserWidget()
1909 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XColorBrowserWidget()
1923 y=reply_info.y+((reply_info.height-height) >> 1)+font_info->ascent; in XColorBrowserWidget()
2279 if (XTextWidth(font_info,reply_info.marker,i) > x) in XColorBrowserWidget()
2909 *font_info; in XCommandWidget() local
2914 font_info=windows->command.font_info; in XCommandWidget()
2915 height=(unsigned int) (font_info->ascent+font_info->descent); in XCommandWidget()
2936 width=WidgetTextWidth(font_info,(char *) selections[i]); in XCommandWidget()
3251 *font_info; in XConfirmWidget() local
3273 font_info=windows->widget.font_info; in XConfirmWidget()
3274 width=WidgetTextWidth(font_info,CancelButtonText); in XConfirmWidget()
3275 if (WidgetTextWidth(font_info,DismissButtonText) > width) in XConfirmWidget()
3276 width=WidgetTextWidth(font_info,DismissButtonText); in XConfirmWidget()
3277 if (WidgetTextWidth(font_info,YesButtonText) > width) in XConfirmWidget()
3278 width=WidgetTextWidth(font_info,YesButtonText); in XConfirmWidget()
3281 if (WidgetTextWidth(font_info,(char *) description) > width) in XConfirmWidget()
3282 width=WidgetTextWidth(font_info,(char *) description); in XConfirmWidget()
3283 height=(unsigned int) (font_info->ascent+font_info->descent); in XConfirmWidget()
3289 WidgetTextWidth(font_info,CancelButtonText)+ in XConfirmWidget()
3290 WidgetTextWidth(font_info,DismissButtonText)+ in XConfirmWidget()
3291 WidgetTextWidth(font_info,YesButtonText)); in XConfirmWidget()
3333 WidgetTextWidth(font_info,CancelButtonText); in XConfirmWidget()
3343 WidgetTextWidth(font_info,dismiss_info.text); in XConfirmWidget()
3351 WidgetTextWidth(font_info,yes_info.text); in XConfirmWidget()
3362 width=WidgetTextWidth(font_info,(char *) reason); in XConfirmWidget()
3374 width=WidgetTextWidth(font_info,question); in XConfirmWidget()
3665 *font_info; in XDialogWidget() local
3690 font_info=windows->widget.font_info; in XDialogWidget()
3691 width=WidgetTextWidth(font_info,(char *) action); in XDialogWidget()
3692 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XDialogWidget()
3693 width=WidgetTextWidth(font_info,CancelButtonText); in XDialogWidget()
3695 height=(unsigned int) (font_info->ascent+font_info->descent); in XDialogWidget()
3700 WidgetTextWidth(font_info,(char *) query)); in XDialogWidget()
3701 if (windows->widget.width < WidgetTextWidth(font_info,reply)) in XDialogWidget()
3702 windows->widget.width=WidgetTextWidth(font_info,reply); in XDialogWidget()
3705 (width+28*XTextWidth(font_info,"#",1)+4*QuantumMargin); in XDialogWidget()
3867 if (XTextWidth(font_info,reply_info.marker,i) > x) in XDialogWidget()
4260 *font_info; in XFileBrowserWidget() local
4310 font_info=windows->widget.font_info; in XFileBrowserWidget()
4313 if (WidgetTextWidth(font_info,filelist[i]) > text_width) in XFileBrowserWidget()
4314 text_width=WidgetTextWidth(font_info,filelist[i]); in XFileBrowserWidget()
4315 width=WidgetTextWidth(font_info,(char *) action); in XFileBrowserWidget()
4316 if (WidgetTextWidth(font_info,GrabButtonText) > width) in XFileBrowserWidget()
4317 width=WidgetTextWidth(font_info,GrabButtonText); in XFileBrowserWidget()
4318 if (WidgetTextWidth(font_info,FormatButtonText) > width) in XFileBrowserWidget()
4319 width=WidgetTextWidth(font_info,FormatButtonText); in XFileBrowserWidget()
4320 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XFileBrowserWidget()
4321 width=WidgetTextWidth(font_info,CancelButtonText); in XFileBrowserWidget()
4322 if (WidgetTextWidth(font_info,HomeButtonText) > width) in XFileBrowserWidget()
4323 width=WidgetTextWidth(font_info,HomeButtonText); in XFileBrowserWidget()
4324 if (WidgetTextWidth(font_info,UpButtonText) > width) in XFileBrowserWidget()
4325 width=WidgetTextWidth(font_info,UpButtonText); in XFileBrowserWidget()
4327 if (WidgetTextWidth(font_info,DirectoryText) > width) in XFileBrowserWidget()
4328 width=WidgetTextWidth(font_info,DirectoryText); in XFileBrowserWidget()
4329 if (WidgetTextWidth(font_info,FilenameText) > width) in XFileBrowserWidget()
4330 width=WidgetTextWidth(font_info,FilenameText); in XFileBrowserWidget()
4331 height=(unsigned int) (font_info->ascent+font_info->descent); in XFileBrowserWidget()
4519 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XFileBrowserWidget()
4537 y=reply_info.y+((reply_info.height-height) >> 1)+font_info->ascent; in XFileBrowserWidget()
4863 if (XTextWidth(font_info,reply_info.marker,(int) i) > x) in XFileBrowserWidget()
5517 *font_info; in XFontBrowserWidget() local
5587 font_info=windows->widget.font_info; in XFontBrowserWidget()
5590 if (WidgetTextWidth(font_info,fontlist[i]) > text_width) in XFontBrowserWidget()
5591 text_width=WidgetTextWidth(font_info,fontlist[i]); in XFontBrowserWidget()
5592 width=WidgetTextWidth(font_info,(char *) action); in XFontBrowserWidget()
5593 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XFontBrowserWidget()
5594 width=WidgetTextWidth(font_info,CancelButtonText); in XFontBrowserWidget()
5595 if (WidgetTextWidth(font_info,ResetButtonText) > width) in XFontBrowserWidget()
5596 width=WidgetTextWidth(font_info,ResetButtonText); in XFontBrowserWidget()
5597 if (WidgetTextWidth(font_info,BackButtonText) > width) in XFontBrowserWidget()
5598 width=WidgetTextWidth(font_info,BackButtonText); in XFontBrowserWidget()
5600 if (WidgetTextWidth(font_info,FontPatternText) > width) in XFontBrowserWidget()
5601 width=WidgetTextWidth(font_info,FontPatternText); in XFontBrowserWidget()
5602 if (WidgetTextWidth(font_info,FontnameText) > width) in XFontBrowserWidget()
5603 width=WidgetTextWidth(font_info,FontnameText); in XFontBrowserWidget()
5604 height=(unsigned int) (font_info->ascent+font_info->descent); in XFontBrowserWidget()
5781 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XFontBrowserWidget()
5795 y=reply_info.y+((reply_info.height-height) >> 1)+font_info->ascent; in XFontBrowserWidget()
5979 save_info=windows->widget.font_info; in XFontBrowserWidget()
5980 font_info=XLoadQueryFont(display,reply_info.text); in XFontBrowserWidget()
5981 if (font_info != (XFontStruct *) NULL) in XFontBrowserWidget()
5983 windows->widget.font_info=font_info; in XFontBrowserWidget()
5985 font_info->fid); in XFontBrowserWidget()
5988 windows->widget.font_info=save_info; in XFontBrowserWidget()
5989 if (font_info != (XFontStruct *) NULL) in XFontBrowserWidget()
5992 windows->widget.font_info->fid); in XFontBrowserWidget()
5993 (void) XFreeFont(display,font_info); in XFontBrowserWidget()
6156 if (XTextWidth(font_info,reply_info.marker,i) > x) in XFontBrowserWidget()
6656 *font_info; in XInfoWidget() local
6668 font_info=windows->info.font_info; in XInfoWidget()
6669 width=WidgetTextWidth(font_info,(char *) activity)+((3*QuantumMargin) >> 1)+4; in XInfoWidget()
6670 height=(unsigned int) (((6*(font_info->ascent+font_info->descent)) >> 2)+4); in XInfoWidget()
6691 height=(unsigned int) (font_info->ascent+font_info->descent); in XInfoWidget()
6784 *font_info; in XListBrowserWidget() local
6829 font_info=window_info->font_info; in XListBrowserWidget()
6830 text_width=WidgetTextWidth(font_info,(char *) query); in XListBrowserWidget()
6832 if (WidgetTextWidth(font_info,(char *) list[i]) > text_width) in XListBrowserWidget()
6833 text_width=WidgetTextWidth(font_info,(char *) list[i]); in XListBrowserWidget()
6834 width=WidgetTextWidth(font_info,(char *) action); in XListBrowserWidget()
6835 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XListBrowserWidget()
6836 width=WidgetTextWidth(font_info,CancelButtonText); in XListBrowserWidget()
6838 height=(unsigned int) (font_info->ascent+font_info->descent); in XListBrowserWidget()
7205 if (XTextWidth(font_info,reply_info.marker,i) > x) in XListBrowserWidget()
7685 *font_info; in XMenuWidget() local
7707 font_info=windows->widget.font_info; in XMenuWidget()
7709 WidgetTextWidth(font_info,(char *) title) : 0; in XMenuWidget()
7712 width=WidgetTextWidth(font_info,(char *) selections[id]); in XMenuWidget()
7719 (3*(font_info->descent+font_info->ascent) >> 1)+5 : 2); in XMenuWidget()
7720 width=WidgetTextWidth(font_info,(char *) title); in XMenuWidget()
7721 height=(unsigned int) ((3*(font_info->ascent+font_info->descent)) >> 1); in XMenuWidget()
8120 *font_info; in XNoticeWidget() local
8141 font_info=windows->widget.font_info; in XNoticeWidget()
8142 width=WidgetTextWidth(font_info,DismissButtonText); in XNoticeWidget()
8145 if (WidgetTextWidth(font_info,(char *) text) > width) in XNoticeWidget()
8146 width=WidgetTextWidth(font_info,(char *) text); in XNoticeWidget()
8151 if (WidgetTextWidth(font_info,(char *) text) > width) in XNoticeWidget()
8152 width=WidgetTextWidth(font_info,(char *) text); in XNoticeWidget()
8154 height=(unsigned int) (font_info->ascent+font_info->descent); in XNoticeWidget()
8203 WidgetTextWidth(font_info,DismissButtonText); in XNoticeWidget()
8216 width=WidgetTextWidth(font_info,(char *) reason); in XNoticeWidget()
8223 width=WidgetTextWidth(font_info,(char *) description); in XNoticeWidget()
8465 *font_info; in XPreferencesWidget() local
8487 font_info=windows->widget.font_info; in XPreferencesWidget()
8488 text_width=WidgetTextWidth(font_info,CacheButtonText); in XPreferencesWidget()
8490 if (WidgetTextWidth(font_info,(char *) Preferences[i]) > text_width) in XPreferencesWidget()
8491 text_width=WidgetTextWidth(font_info,(char *) Preferences[i]); in XPreferencesWidget()
8492 width=WidgetTextWidth(font_info,ApplyButtonText); in XPreferencesWidget()
8493 if (WidgetTextWidth(font_info,CancelButtonText) > width) in XPreferencesWidget()
8494 width=WidgetTextWidth(font_info,CancelButtonText); in XPreferencesWidget()
8496 height=(unsigned int) (font_info->ascent+font_info->descent); in XPreferencesWidget()
8651 width=WidgetTextWidth(font_info,cache); in XPreferencesWidget()
8991 *font_info, in XTextViewWidget() local
9029 font_info=windows->widget.font_info; in XTextViewWidget()
9034 text_info=windows->widget.font_info; in XTextViewWidget()
9041 width=WidgetTextWidth(font_info,DismissButtonText); in XTextViewWidget()
9088 height=(unsigned int) (font_info->ascent+font_info->descent); in XTextViewWidget()
9203 windows->widget.font_info=text_info; in XTextViewWidget()
9220 windows->widget.font_info=font_info; in XTextViewWidget()
9222 font_info->fid); in XTextViewWidget()
9224 font_info->fid); in XTextViewWidget()
9646 if (text_info != windows->widget.font_info) in XTextViewWidget()