Lines Matching defs:fs
76 static XCharStruct *isvalid(XFontStruct *fs, unsigned int which)
82 rows = fs->max_byte1 - fs->min_byte1 + 1;
83 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
87 if ((fs->min_char_or_byte2 > which) ||
88 (fs->max_char_or_byte2 < which)) valid = 0;
94 if ((fs->min_char_or_byte2 > byte2) ||
95 (fs->max_char_or_byte2 < byte2) ||
96 (fs->min_byte1 > byte1) ||
97 (fs->max_byte1 < byte1)) valid = 0;
101 if (fs->per_char) {
104 return fs->per_char + (which-fs->min_char_or_byte2);
108 i = ((byte1 - fs->min_byte1) * pages) +
109 (byte2 - fs->min_char_or_byte2);
110 return fs->per_char + i;
114 return &fs->min_bounds;
128 XFontStruct *fs;
137 fs = XQueryFont(dpy, font);
138 if (!fs) {
144 max_width = fs->max_bounds.rbearing - fs->min_bounds.lbearing;
145 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
151 XFreeFontInfo( NULL, fs, 1 );
177 values.font = fs->fid;
192 ch = isvalid(fs, c);
194 ch = &fs->max_bounds;
234 XFreeFontInfo(NULL, fs, 1);