Home | History | Annotate | Download | only in glx

Lines Matching refs:fs

170 isvalid(XFontStruct * fs, int which)
176 rows = fs->max_byte1 - fs->min_byte1 + 1;
177 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
181 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which))
188 if ((fs->min_char_or_byte2 > byte2) ||
189 (fs->max_char_or_byte2 < byte2) ||
190 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1))
195 if (fs->per_char) {
198 return (fs->per_char + (which - fs->min_char_or_byte2));
202 i = ((byte1 - fs->min_byte1) * pages) +
203 (byte2 - fs->min_char_or_byte2);
204 return (fs->per_char + i);
208 return (&fs->min_bounds);
223 XFontStruct *fs;
236 fs = XQueryFont(dpy, font);
237 if (!fs) {
243 max_width = fs->max_bounds.rbearing - fs->min_bounds.lbearing;
244 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
250 XFreeFontInfo(NULL, fs, 1);
257 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
258 firstchar = (fs->min_byte1 << 8) + fs->min_char_or_byte2;
259 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2;
260 rows = fs->max_byte1 - fs->min_byte1 + 1;
285 values.font = fs->fid;
292 dump_font_struct(fs);
305 ch = isvalid(fs, c);
307 ch = &fs->max_bounds;
363 XFreeFontInfo(NULL, fs, 1);