Lines Matching +defs:font +defs:size

108     char	**names;	/* font name array of arrays */
109 int num; /* number of font names */
111 Boolean in_pixels; /* toggle state - size in pixels */
112 char *font_name; /* current font name */
113 XFontStruct *old; /* font data structure for sample display */
114 XmFontList old_list; /* font data structure for sample display */
119 * Checking access to the font name array for validity.
136 * Get a specific substring from a font name.
159 * Given a font name this function returns the part used in the first
163 name_part(char *font, char *buf)
168 get_part(font, 2, buf2);
169 get_part(font, 1, buf3);
178 * Given a font name this function returns the part used in the second scroll list.
181 style_part(char *font, char *buf)
186 get_part(font, 3, buf3);
187 get_part(font, 5, buf2);
195 get_part(font, 6, buf2);
202 get_part(font, 4, buf2);
214 * Given a font name this function returns the part used in the third
218 size_part(char *font, char *buf, int inPixels)
220 int size;
227 get_part(font, 7, buf);
230 size = atoi(buf);
231 sprintf(buf, "%3d", size);
236 get_part(font, 8, buf);
239 size = atoi(buf);
240 temp = (float)size / 10.0;
241 size = temp;
243 sprintf(buf, "%3d", size);
251 * Given a font name this function returns the part used in the choice menu.
254 encoding_part(char *font, char *buf)
261 get_part(font, 13, buf1);
262 get_part(font, 14, buf2);
306 * True if the font matches some field.
346 proportional(char *font)
350 get_part(font, 11, buf);
588 * Show the currently selected font in the sample text label.
595 XFontStruct * font;
601 font = XLoadQueryFont(display, data->font_name);
602 font_list = gui_motif_create_fontlist(font);
617 data->old = font;
654 /* If there is a font selection, we display it. */
690 (char_u *)_("Invalid font specification"),
809 (char_u *)_("Invalid font specification"),
851 * selected font (in X format for naming fonts); it is the users responsibility
880 * Find the name of the biggest font less than the given limit
889 int size;
895 size = atoi(buf);
896 if ((size > max) && (size < MAX_DISPLAY_SIZE))
899 max = size;
962 /* Create font name text widget and the corresponding label. */
1018 str = XmStringCreateLocalized(_("Show size in Points"));
1073 /* font list */
1137 /* size list */
1209 /* set up current font parameters */
1247 /* We can't preset a symbolic name, which isn't a full font
1252 * font name.