Lines Matching refs:fs
164 isvalid(XFontStruct * fs, unsigned int which)
170 rows = fs->max_byte1 - fs->min_byte1 + 1;
171 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
175 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which))
182 if ((fs->min_char_or_byte2 > byte2) ||
183 (fs->max_char_or_byte2 < byte2) ||
184 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1))
189 if (fs->per_char) {
192 return (fs->per_char + (which - fs->min_char_or_byte2));
196 i = ((byte1 - fs->min_byte1) * pages) +
197 (byte2 - fs->min_char_or_byte2);
198 return (fs->per_char + i);
202 return (&fs->min_bounds);
218 XFontStruct *fs;
230 fs = XQueryFont(dpy, font);
231 if (!fs) {
238 max_width = fs->max_bounds.rbearing - fs->min_bounds.lbearing;
239 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
245 XFreeFontInfo(NULL, fs, 1);
253 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
254 firstchar = (fs->min_byte1 << 8) + fs->min_char_or_byte2;
255 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2;
256 rows = fs->max_byte1 - fs->min_byte1 + 1;
281 values.font = fs->fid;
288 dump_font_struct(fs);
301 ch = isvalid(fs, c);
303 ch = &fs->max_bounds;
360 XFreeFontInfo(NULL, fs, 1);