font 89 lwlib/lwlib-Xaw.c fill_xft_data (struct widget_xft_data *data, Widget widget, XftFont *font) font 95 lwlib/lwlib-Xaw.c data->xft_font = font; font 352 lwlib/xlwmenu.c XTextExtents (mw->menu.font, s, strlen (s), &drop, &drop, &drop, &xcs); font 363 lwlib/xlwmenu.c : (mw)->menu.font->ascent + (mw)->menu.font->descent)) font 369 lwlib/xlwmenu.c : (mw)->menu.font->ascent)) font 375 lwlib/xlwmenu.c : (mw)->menu.font->ascent + (mw)->menu.font->descent) font 379 lwlib/xlwmenu.c : (mw)->menu.font->ascent) font 382 lwlib/xlwmenu.c ((mw)->menu.font->ascent + (mw)->menu.font->descent) font 383 lwlib/xlwmenu.c #define MENU_FONT_ASCENT(mw) ((mw)->menu.font->ascent) font 1734 lwlib/xlwmenu.c if (!mw->menu.fontSet && mw->menu.font) font 1736 lwlib/xlwmenu.c xgcv.font = mw->menu.font->fid; font 1740 lwlib/xlwmenu.c if (mw->menu.font) font 1742 lwlib/xlwmenu.c xgcv.font = mw->menu.font->fid; font 2127 lwlib/xlwmenu.c mw->menu.font = XLoadQueryFont (display, mw->menu.fontName); font 2128 lwlib/xlwmenu.c if (!mw->menu.font) font 2130 lwlib/xlwmenu.c mw->menu.font = XLoadQueryFont (display, "fixed"); font 2131 lwlib/xlwmenu.c if (!mw->menu.font) font 2297 lwlib/xlwmenu.c if (mw->menu.font) font 2298 lwlib/xlwmenu.c XFreeFont (XtDisplay (mw), mw->menu.font); font 2361 lwlib/xlwmenu.c || (newmw->menu.fontSet == NULL && newmw->menu.font != oldmw->menu.font) font 2363 lwlib/xlwmenu.c || newmw->menu.font != oldmw->menu.font font 69 lwlib/xlwmenuP.h XFontStruct* font; font 629 oldXMenu/Create.c values->font = p_fnt_info->fid; font 643 oldXMenu/Create.c values->font = s_fnt_info->fid; font 655 oldXMenu/Create.c values->font = s_fnt_info->fid; font 673 oldXMenu/Create.c values->font = s_fnt_info->fid; font 3147 src/alloc.c struct font *font = PSEUDOVEC_STRUCT (vector, font); font 3148 src/alloc.c struct font_driver const *drv = font->driver; font 3156 src/alloc.c drv->close_font (font); font 5833 src/alloc.c struct font *font = GC_XFONT_OBJECT (val); font 5836 src/alloc.c && vectorlike_marked_p (&font->header)) font 6581 src/alloc.c if (face->font && !vectorlike_marked_p (&face->font->header)) font 6582 src/alloc.c mark_vectorlike (&face->font->header); font 6640 src/alloc.c struct font *font = FRAME_FONT (f); font 6642 src/alloc.c if (font && !vectorlike_marked_p (&font->header)) font 6643 src/alloc.c mark_vectorlike (&font->header); font 326 src/composite.c cmp->font = NULL; font 761 src/composite.c struct font *font = XFONT_OBJECT (font_object); font 764 src/composite.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 885 src/composite.c struct font *font = NULL; font 889 src/composite.c font = XFONT_OBJECT (font_object); font 905 src/composite.c if (font != NULL) font 906 src/composite.c code = font->driver->encode_char (font, LGLYPH_CHAR (g)); font 911 src/composite.c font_fill_lglyph_metrics (g, font, code); font 173 src/composite.h void *font; font 1355 src/dispextern.h struct font *font; font 1707 src/dispextern.h struct font *font; font 3448 src/dispextern.h extern void get_font_ascent_descent (struct font *, int *, int *); font 3454 src/dispextern.h extern struct font *font_for_underline_metrics (struct glyph_string *); font 190 src/font.c struct font *font font 191 src/font.c = (struct font *) allocate_pseudovector (size, FONT_OBJECT_MAX, font 196 src/font.c eassert (font->max_width = 1024 * 1024 * 1024); font 200 src/font.c font->driver = NULL; font 201 src/font.c XSETFONT (font_object, font); font 206 src/font.c font->props[i] = AREF (entity, i); font 208 src/font.c font->props[FONT_EXTRA_INDEX] font 212 src/font.c font->props[FONT_SIZE_INDEX] = make_fixnum (pixelsize); font 421 src/font.c font_style_symbolic (Lisp_Object font, enum font_property_index prop, font 424 src/font.c Lisp_Object val = AREF (font, prop); font 725 src/font.c font_put_extra (Lisp_Object font, Lisp_Object prop, Lisp_Object val) font 727 src/font.c Lisp_Object extra = AREF (font, FONT_EXTRA_INDEX); font 741 src/font.c ASET (font, FONT_EXTRA_INDEX, Fcons (Fcons (prop, val), extra)); font 749 src/font.c ASET (font, FONT_EXTRA_INDEX, Fdelq (slot, extra)); font 1037 src/font.c font_parse_xlfd_1 (char *name, ptrdiff_t len, Lisp_Object font, int segments) font 1079 src/font.c ASET (font, FONT_FOUNDRY_INDEX, INTERN_FIELD_SYM (XLFD_FOUNDRY_INDEX)); font 1080 src/font.c ASET (font, FONT_FAMILY_INDEX, INTERN_FIELD_SYM (XLFD_FAMILY_INDEX)); font 1089 src/font.c ASET (font, j, make_fixnum (n)); font 1092 src/font.c ASET (font, FONT_ADSTYLE_INDEX, INTERN_FIELD_SYM (XLFD_ADSTYLE_INDEX)); font 1094 src/font.c ASET (font, FONT_REGISTRY_INDEX, Qnil); font 1096 src/font.c ASET (font, FONT_REGISTRY_INDEX, font 1102 src/font.c ASET (font, FONT_SIZE_INDEX, make_fixnum (pixel_size)); font 1107 src/font.c ASET (font, FONT_SIZE_INDEX, val); font 1108 src/font.c else if (FONT_ENTITY_P (font)) font 1114 src/font.c eassert (FONT_SPEC_P (font)); font 1121 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size)); font 1128 src/font.c ASET (font, FONT_DPI_INDEX, val); font 1135 src/font.c ASET (font, FONT_SPACING_INDEX, val); font 1143 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, val); font 1150 src/font.c if (FONT_ENTITY_P (font)) font 1171 src/font.c ASET (font, FONT_FOUNDRY_INDEX, prop[XLFD_FOUNDRY_INDEX]); font 1172 src/font.c ASET (font, FONT_FAMILY_INDEX, prop[XLFD_FAMILY_INDEX]); font 1179 src/font.c ASET (font, j, make_fixnum (n)); font 1181 src/font.c ASET (font, FONT_ADSTYLE_INDEX, prop[XLFD_ADSTYLE_INDEX]); font 1204 src/font.c ASET (font, FONT_REGISTRY_INDEX, Fintern (val, Qnil)); font 1207 src/font.c ASET (font, FONT_SIZE_INDEX, prop[XLFD_PIXEL_INDEX]); font 1212 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size / 10)); font 1216 src/font.c ASET (font, FONT_DPI_INDEX, prop[XLFD_RESY_INDEX]); font 1223 src/font.c ASET (font, FONT_SPACING_INDEX, val); font 1226 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, prop[XLFD_AVGWIDTH_INDEX]); font 1233 src/font.c font_parse_xlfd (char *name, ptrdiff_t len, Lisp_Object font) font 1235 src/font.c int found = font_parse_xlfd_1 (name, len, font, -1); font 1248 src/font.c return font_parse_xlfd_1 (name, len, font, segments); font 1259 src/font.c font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes) font 1266 src/font.c eassert (FONTP (font)); font 1275 src/font.c val = AREF (font, i); font 1306 src/font.c val = font_style_symbolic (font, i, 0); font 1329 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 1357 src/font.c if (FIXNUMP (AREF (font, FONT_DPI_INDEX))) font 1359 src/font.c EMACS_INT v = XFIXNUM (AREF (font, FONT_DPI_INDEX)); font 1366 src/font.c if (FIXNUMP (AREF (font, FONT_SPACING_INDEX))) font 1368 src/font.c EMACS_INT spacing = XFIXNUM (AREF (font, FONT_SPACING_INDEX)); font 1379 src/font.c if (FIXNUMP (AREF (font, FONT_AVGWIDTH_INDEX))) font 1382 src/font.c sprintf (p, "%"pI"d", XFIXNUM (AREF (font, FONT_AVGWIDTH_INDEX))); font 1413 src/font.c font_parse_fcname (char *name, ptrdiff_t len, Lisp_Object font) font 1463 src/font.c ASET (font, FONT_FAMILY_INDEX, family); font 1468 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size)); font 1505 src/font.c FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, val); font 1509 src/font.c FONT_SET_STYLE (font, FONT_SLANT_INDEX, val); font 1511 src/font.c ASET (font, FONT_SPACING_INDEX, font 1514 src/font.c ASET (font, FONT_SPACING_INDEX, font 1517 src/font.c ASET (font, FONT_SPACING_INDEX, font 1541 src/font.c ASET (font, prop, font_prop_validate (prop, Qnil, val)); font 1557 src/font.c (*driver_list->driver->filter_properties) (font, extra_props); font 1633 src/font.c ASET (font, FONT_FAMILY_INDEX, font 1636 src/font.c ASET (font, FONT_SIZE_INDEX, size); font 1638 src/font.c FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, weight); font 1640 src/font.c FONT_SET_STYLE (font, FONT_SLANT_INDEX, slant); font 1642 src/font.c FONT_SET_STYLE (font, FONT_WIDTH_INDEX, width); font 1656 src/font.c font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes) font 1667 src/font.c family = AREF (font, FONT_FAMILY_INDEX); font 1676 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 1690 src/font.c foundry = AREF (font, FONT_FOUNDRY_INDEX); font 1700 src/font.c styles[i] = font_style_symbolic (font, FONT_WEIGHT_INDEX + i, 0); font 1725 src/font.c if (! NILP (AREF (font, FONT_FOUNDRY_INDEX))) font 1728 src/font.c SSDATA (SYMBOL_NAME (AREF (font, font 1744 src/font.c if (FIXNUMP (AREF (font, FONT_DPI_INDEX))) font 1747 src/font.c XFIXNUM (AREF (font, FONT_DPI_INDEX))); font 1753 src/font.c if (FIXNUMP (AREF (font, FONT_SPACING_INDEX))) font 1756 src/font.c XFIXNUM (AREF (font, FONT_SPACING_INDEX))); font 1762 src/font.c if (FIXNUMP (AREF (font, FONT_AVGWIDTH_INDEX))) font 1765 src/font.c (XFIXNUM (AREF (font, FONT_AVGWIDTH_INDEX)) == 0 font 1783 src/font.c font_parse_name (char *name, ptrdiff_t namelen, Lisp_Object font) font 1786 src/font.c return font_parse_xlfd (name, namelen, font); font 1787 src/font.c return font_parse_fcname (name, namelen, font); font 2194 src/font.c font_match_p (Lisp_Object spec, Lisp_Object font) font 2202 src/font.c && ! NILP (AREF (font, i)) font 2203 src/font.c && ! EQ (AREF (spec, i), AREF (font, i))) font 2215 src/font.c if (font_score (font, props) > 0) font 2218 src/font.c font_extra = AREF (font, FONT_EXTRA_INDEX); font 2257 src/font.c if (font_encode_char (font, XFIXNAT (XCAR (val2))) font 2269 src/font.c if (font_encode_char (font, XFIXNAT (AREF (val2, i))) font 2280 src/font.c struct font *fontp; font 2282 src/font.c if (! FONT_OBJECT_P (font)) font 2284 src/font.c fontp = XFONT_OBJECT (font); font 2400 src/font.c struct font *font = XFONT_OBJECT (val); font 2404 src/font.c eassert (font && driver == font->driver); font 2410 src/font.c driver->close_font (font); font 2678 src/font.c struct font *font; font 2713 src/font.c font = XFONT_OBJECT (font_object); font 2714 src/font.c if (font->average_width > 0 && font->height > 0) font 2725 src/font.c font = XFONT_OBJECT (font_object); font 2727 src/font.c int min_width = (font->min_width ? font->min_width font 2728 src/font.c : font->average_width ? font->average_width font 2729 src/font.c : font->space_width ? font->space_width font 2734 src/font.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 2764 src/font.c struct font *font = XFONT_OBJECT (font_object); font 2770 src/font.c font->driver->close_font (font); font 2782 src/font.c font_has_char (struct frame *f, Lisp_Object font, int c) font 2784 src/font.c struct font *fontp; font 2786 src/font.c if (FONT_ENTITY_P (font)) font 2788 src/font.c Lisp_Object type = AREF (font, FONT_TYPE_INDEX); font 2798 src/font.c return driver_list->driver->has_char (font, c); font 2801 src/font.c eassert (FONT_OBJECT_P (font)); font 2802 src/font.c fontp = XFONT_OBJECT (font); font 2805 src/font.c int result = fontp->driver->has_char (font, c); font 2819 src/font.c struct font *font; font 2822 src/font.c font = XFONT_OBJECT (font_object); font 2823 src/font.c return font->driver->encode_char (font, c); font 2857 src/font.c Lisp_Object font = attrs[LFACE_FONT_INDEX]; font 2859 src/font.c if (! FONTP (font)) font 2862 src/font.c if (! NILP (Ffont_get (font, QCname))) font 2864 src/font.c font = copy_font_spec (font); font 2865 src/font.c font_put_extra (font, QCname, Qunbound); font 2868 src/font.c if (NILP (AREF (font, prop)) font 2874 src/font.c if (EQ (font, attrs[LFACE_FONT_INDEX])) font 2875 src/font.c font = copy_font_spec (font); font 2876 src/font.c ASET (font, prop, Qnil); font 2881 src/font.c ASET (font, FONT_FOUNDRY_INDEX, Qnil); font 2885 src/font.c ASET (font, FONT_WIDTH_INDEX, Qnil); font 2887 src/font.c ASET (font, FONT_ADSTYLE_INDEX, Qnil); font 2888 src/font.c ASET (font, FONT_REGISTRY_INDEX, Qnil); font 2889 src/font.c ASET (font, FONT_SIZE_INDEX, Qnil); font 2890 src/font.c ASET (font, FONT_DPI_INDEX, Qnil); font 2891 src/font.c ASET (font, FONT_SPACING_INDEX, Qnil); font 2892 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2896 src/font.c ASET (font, FONT_DPI_INDEX, Qnil); font 2897 src/font.c ASET (font, FONT_SPACING_INDEX, Qnil); font 2898 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2901 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2902 src/font.c attrs[LFACE_FONT_INDEX] = font; font 3238 src/font.c if (face->font->driver->prepare_face) font 3239 src/font.c face->font->driver->prepare_face (f, face); font 3248 src/font.c if (face->font->driver->done_face) font 3249 src/font.c face->font->driver->done_face (f, face); font 3510 src/font.c font_filter_properties (Lisp_Object font, font 3540 src/font.c Ffont_put (font, key, val); font 3551 src/font.c Ffont_put (font, key, val); font 3623 src/font.c if (! face->font) font 3626 src/font.c XSETFONT (font_object, face->font); font 3886 src/font.c copy_font_spec (Lisp_Object font) font 3892 src/font.c CHECK_FONT (font); font 3902 src/font.c memcpy (spec->props + 1, XVECTOR (font)->contents + 1, font 3907 src/font.c for (tail = AREF (font, FONT_EXTRA_INDEX); CONSP (tail); tail = XCDR (tail)) font 3977 src/font.c (Lisp_Object font, Lisp_Object key) font 3982 src/font.c CHECK_FONT (font); font 3987 src/font.c return font_style_symbolic (font, idx, 0); font 3989 src/font.c return AREF (font, idx); font 3990 src/font.c val = Fassq (key, AREF (font, FONT_EXTRA_INDEX)); font 3991 src/font.c if (NILP (val) && FONT_OBJECT_P (font)) font 3993 src/font.c struct font *fontp = XFONT_OBJECT (font); font 4028 src/font.c (Lisp_Object font, Lisp_Object frame) font 4035 src/font.c if (STRINGP (font)) font 4037 src/font.c int fontset = fs_query_fontset (font, 0); font 4038 src/font.c Lisp_Object name = font; font 4040 src/font.c font = fontset_ascii (fontset); font 4041 src/font.c font = font_spec_from_name (name); font 4042 src/font.c if (! FONTP (font)) font 4045 src/font.c else if (! FONTP (font)) font 4046 src/font.c signal_error ("Invalid font object", font); font 4048 src/font.c val = AREF (font, FONT_FAMILY_INDEX); font 4055 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 4058 src/font.c Lisp_Object font_dpi = AREF (font, FONT_DPI_INDEX); font 4069 src/font.c val = FONT_WEIGHT_FOR_FACE (font); font 4076 src/font.c val = FONT_SLANT_FOR_FACE (font); font 4083 src/font.c val = FONT_WIDTH_FOR_FACE (font); font 4107 src/font.c (Lisp_Object font, Lisp_Object prop, Lisp_Object val) font 4114 src/font.c CHECK_FONT_SPEC (font); font 4115 src/font.c ASET (font, idx, font_prop_validate (idx, Qnil, val)); font 4123 src/font.c CHECK_FONT_SPEC (font); font 4125 src/font.c CHECK_FONT (font); font 4126 src/font.c font_put_extra (font, prop, font_prop_validate (0, prop, val)); font 4218 src/font.c (Lisp_Object font, Lisp_Object fold_wildcards) font 4223 src/font.c CHECK_FONT (font); font 4225 src/font.c if (FONT_OBJECT_P (font)) font 4227 src/font.c Lisp_Object font_name = AREF (font, FONT_NAME_INDEX); font 4238 src/font.c pixel_size = XFONT_OBJECT (font)->pixel_size; font 4240 src/font.c namelen = font_unparse_xlfd (font, pixel_size, name, 256); font 4296 src/font.c font_fill_lglyph_metrics (Lisp_Object glyph, struct font *font, unsigned int code) font 4301 src/font.c font->driver->text_extents (font, &code, 1, &metrics); font 4327 src/font.c struct font *font; font 4341 src/font.c font = XFONT_OBJECT (font_object); font 4342 src/font.c if (! font->driver->shape) font 4348 src/font.c n = font->driver->shape (gstring, direction); font 4409 src/font.c struct font *font; font 4415 src/font.c font = XFONT_OBJECT (font_object); font 4416 src/font.c if (! font->driver->get_variation_glyphs) font 4418 src/font.c n = font->driver->get_variation_glyphs (font, XFIXNUM (character), variations); font 4523 src/font.c if (! face->font) font 4525 src/font.c unsigned code = face->font->driver->encode_char (face->font, c); font 4529 src/font.c XSETFONT (font_object, face->font); font 4669 src/font.c font_otf_capability (struct font *font) font 4675 src/font.c otf = otf_open (font->props[FONT_FILE_INDEX]); font 4863 src/font.c struct font *font; font 4868 src/font.c font = XFONT_OBJECT (font_object); font 4869 src/font.c if (! font->driver->otf_drive) font 4871 src/font.c SDATA (SYMBOL_NAME (font->driver->type))); font 4889 src/font.c num = font->driver->otf_drive (font, otf_features, font 4911 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 4916 src/font.c if (! font->driver->otf_drive) font 4918 src/font.c SDATA (SYMBOL_NAME (font->driver->type))); font 4926 src/font.c while ((num = font->driver->otf_drive (font, otf_features, gstring_in, 0, 1, font 5026 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 5030 src/font.c make_fixnum (font->pixel_size), font 5031 src/font.c make_fixnum (font->max_width), font 5032 src/font.c make_fixnum (font->ascent), font 5033 src/font.c make_fixnum (font->descent), font 5034 src/font.c make_fixnum (font->space_width), font 5035 src/font.c make_fixnum (font->average_width), font 5036 src/font.c (font->driver->otf_capability font 5037 src/font.c ? Fcons (Qopentype, font->driver->otf_capability (font)) font 5048 src/font.c (Lisp_Object font, Lisp_Object ch, Lisp_Object frame) font 5051 src/font.c CHECK_FONT (font); font 5062 src/font.c if (font_has_char (f, font, XFIXNAT (ch)) <= 0) font 5096 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 5174 src/font.c code = font->driver->encode_char (font, c); font 5185 src/font.c font->driver->text_extents (font, &code, 1, &metrics); font 5201 src/font.c (Lisp_Object spec, Lisp_Object font) font 5204 src/font.c CHECK_FONT (font); font 5206 src/font.c return (font_match_p (spec, font) ? Qt : Qnil); font 5249 src/font.c struct font *font; font 5254 src/font.c CHECK_FONT_GET_OBJECT (font_object, font); font 5264 src/font.c code[i] = font->driver->encode_char (font, c); font 5269 src/font.c face->fontp = font; font 5270 src/font.c if (font->driver->prepare_face) font 5271 src/font.c font->driver->prepare_face (f, face); font 5272 src/font.c width = font->driver->text_extents (font, code, i, NULL); font 5273 src/font.c len = font->driver->draw_text (f, face, 0, font->ascent, code, i, width); font 5274 src/font.c if (font->driver->done_face) font 5275 src/font.c font->driver->done_face (f, face); font 5346 src/font.c struct font *font; font 5375 src/font.c font = XFONT_OBJECT (font_object); font 5383 src/font.c make_fixnum (font->pixel_size), font 5384 src/font.c make_fixnum (font->height), font 5385 src/font.c make_fixnum (font->baseline_offset), font 5386 src/font.c make_fixnum (font->relative_compose), font 5387 src/font.c make_fixnum (font->default_ascent), font 5388 src/font.c make_fixnum (font->max_width), font 5389 src/font.c make_fixnum (font->ascent), font 5390 src/font.c make_fixnum (font->descent), font 5391 src/font.c make_fixnum (font->space_width), font 5392 src/font.c make_fixnum (font->average_width), font 5394 src/font.c (font->driver->otf_capability font 5395 src/font.c ? Fcons (Qopentype, font->driver->otf_capability (font)) font 193 src/font.h #define FONT_WEIGHT_NUMERIC(font) \ font 194 src/font.h (FIXNUMP (AREF ((font), FONT_WEIGHT_INDEX)) \ font 195 src/font.h ? (XFIXNUM (AREF ((font), FONT_WEIGHT_INDEX)) >> 8) : -1) font 197 src/font.h #define FONT_SLANT_NUMERIC(font) \ font 198 src/font.h (FIXNUMP (AREF ((font), FONT_SLANT_INDEX)) \ font 199 src/font.h ? (XFIXNUM (AREF ((font), FONT_SLANT_INDEX)) >> 8) : -1) font 201 src/font.h #define FONT_WIDTH_NUMERIC(font) \ font 202 src/font.h (FIXNUMP (AREF ((font), FONT_WIDTH_INDEX)) \ font 203 src/font.h ? (XFIXNUM (AREF ((font), FONT_WIDTH_INDEX)) >> 8) : -1) font 205 src/font.h #define FONT_WEIGHT_SYMBOLIC(font) \ font 206 src/font.h font_style_symbolic (font, FONT_WEIGHT_INDEX, false) font 208 src/font.h #define FONT_SLANT_SYMBOLIC(font) \ font 209 src/font.h font_style_symbolic (font, FONT_SLANT_INDEX, false) font 211 src/font.h #define FONT_WIDTH_SYMBOLIC(font) \ font 212 src/font.h font_style_symbolic (font, FONT_WIDTH_INDEX, false) font 214 src/font.h #define FONT_WEIGHT_FOR_FACE(font) \ font 215 src/font.h font_style_symbolic (font, FONT_WEIGHT_INDEX, true) font 217 src/font.h #define FONT_SLANT_FOR_FACE(font) \ font 218 src/font.h font_style_symbolic (font, FONT_SLANT_INDEX, true) font 220 src/font.h #define FONT_WIDTH_FOR_FACE(font) \ font 221 src/font.h font_style_symbolic (font, FONT_WIDTH_INDEX, true) font 236 src/font.h #define FONT_SET_STYLE(font, prop, val) \ font 237 src/font.h ASET ((font), prop, make_fixnum (font_style_to_value (prop, val, true))) font 527 src/font.h INLINE struct font * font 531 src/font.h return XUNTAG (p, Lisp_Vectorlike, struct font); font 534 src/font.h INLINE struct font * font 538 src/font.h return XUNTAG (p, Lisp_Vectorlike, struct font); font 543 src/font.h INLINE struct font * font 632 src/font.h void (*close_font) (struct font *font); font 646 src/font.h int (*has_char) (Lisp_Object font, int c); font 650 src/font.h unsigned (*encode_char) (struct font *font, int c); font 655 src/font.h void (*text_extents) (struct font *font, font 673 src/font.h int (*get_bitmap) (struct font *font, unsigned code, font 679 src/font.h void (*free_bitmap) (struct font *font, struct font_bitmap *bitmap); font 687 src/font.h int (*anchor_point) (struct font *font, unsigned code, int index, font 696 src/font.h Lisp_Object (*otf_capability) (struct font *font); font 717 src/font.h int (*otf_drive) (struct font *font, Lisp_Object features, font 754 src/font.h int (*check) (struct frame *f, struct font *font); font 761 src/font.h int (*get_variation_glyphs) (struct font *font, font 770 src/font.h void (*filter_properties) (Lisp_Object font, Lisp_Object properties); font 782 src/font.h Lisp_Object (*combining_capability) (struct font *font); font 796 src/font.h hb_font_t *(*begin_hb_font) (struct font *font, double *position_unit); font 802 src/font.h void (*end_hb_font) (struct font *font, hb_font_t *hb_font); font 836 src/font.h extern Lisp_Object font_style_symbolic (Lisp_Object font, font 840 src/font.h extern bool font_match_p (Lisp_Object spec, Lisp_Object font); font 873 src/font.h extern int font_parse_xlfd (char *name, ptrdiff_t len, Lisp_Object font); font 874 src/font.h extern ptrdiff_t font_unparse_xlfd (Lisp_Object font, int pixel_size, font 891 src/font.h extern void font_fill_lglyph_metrics (Lisp_Object, struct font *, unsigned int); font 893 src/font.h extern Lisp_Object font_put_extra (Lisp_Object font, Lisp_Object prop, font 897 src/font.h extern Lisp_Object hbfont_otf_capability (struct font *); font 899 src/font.h extern Lisp_Object hbfont_combining_capability (struct font *); font 907 src/font.h extern void font_filter_properties (Lisp_Object font, font 915 src/font.h extern int ftfont_anchor_point (struct font *, unsigned int, int, font 917 src/font.h extern int ftfont_get_bitmap (struct font *, unsigned int, font 920 src/font.h extern int ftfont_variation_glyphs (struct font *, int, unsigned[256]); font 921 src/font.h extern Lisp_Object ftfont_combining_capability (struct font *); font 927 src/font.h extern Lisp_Object ftfont_otf_capability (struct font *); font 929 src/font.h extern unsigned ftfont_encode_char (struct font *, int); font 930 src/font.h extern void ftfont_close (struct font *); font 932 src/font.h extern void ftfont_text_extents (struct font *, const unsigned *, int, font 935 src/font.h extern hb_font_t *fthbfont_begin_hb_font (struct font *, double *); font 387 src/fontset.c reorder_font_vector (Lisp_Object font_group, struct font *font) font 394 src/fontset.c if (font) font 395 src/fontset.c XSETFONT (font_object, font); font 572 src/fontset.c reorder_font_vector (font_group, face->ascii_face->font); font 947 src/fontset.c if (face->ascii_face->font) font 949 src/fontset.c XSETFONT (font_object, face->ascii_face->font); font 962 src/fontset.c if (face->font) font 964 src/fontset.c XSETFONT (font_object, face->font); font 976 src/fontset.c if (face->fontset < 0 && !face->font) font 1043 src/fontset.c XSETFONT (font_object, face->ascii_face->font); font 62 src/ftcrfont.c ftcrfont_glyph_extents (struct font *font, font 66 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 138 src/ftcrfont.c struct font *font; font 206 src/ftcrfont.c font = XFONT_OBJECT (font_object); font 207 src/ftcrfont.c font->pixel_size = size; font 210 src/ftcrfont.c font->driver = &ftcrhbfont_driver; font 213 src/ftcrfont.c font->driver = &ftcrfont_driver; font 214 src/ftcrfont.c font->encoding_charset = font->repertory_charset = -1; font 216 src/ftcrfont.c ftcrfont_info = (struct font_info *) font; font 234 src/ftcrfont.c font->min_width = font->max_width = 0; font 235 src/ftcrfont.c font->average_width = font->space_width = 0; font 255 src/ftcrfont.c int this_width = ftcrfont_glyph_extents (font, stack_glyph.index, NULL); font 258 src/ftcrfont.c if (! font->min_width || font->min_width > this_width) font 259 src/ftcrfont.c font->min_width = this_width; font 260 src/ftcrfont.c if (this_width > font->max_width) font 261 src/ftcrfont.c font->max_width = this_width; font 263 src/ftcrfont.c font->space_width = this_width; font 264 src/ftcrfont.c font->average_width += this_width; font 269 src/ftcrfont.c font->average_width /= n; font 272 src/ftcrfont.c font->ascent = lround (extents.ascent); font 276 src/ftcrfont.c font->descent = lround (extents.descent); font 277 src/ftcrfont.c font->height = font->ascent + font->descent; font 281 src/ftcrfont.c font->height = lround (extents.height); font 282 src/ftcrfont.c font->descent = font->height - font->ascent; font 289 src/ftcrfont.c font->underline_position = -ft_face->underline_position * size / upEM; font 290 src/ftcrfont.c font->underline_thickness = ft_face->underline_thickness * size / upEM; font 291 src/ftcrfont.c if (font->underline_thickness > 2) font 292 src/ftcrfont.c font->underline_position -= font->underline_thickness / 2; font 296 src/ftcrfont.c font->underline_position = -1; font 297 src/ftcrfont.c font->underline_thickness = 0; font 315 src/ftcrfont.c font->baseline_offset = 0; font 316 src/ftcrfont.c font->relative_compose = 0; font 317 src/ftcrfont.c font->default_ascent = 0; font 318 src/ftcrfont.c font->vertical_centering = false; font 319 src/ftcrfont.c eassert (font->max_width < 512 * 1024 * 1024); font 325 src/ftcrfont.c ftcrfont_close (struct font *font) font 330 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 357 src/ftcrfont.c ftcrfont_has_char (Lisp_Object font, int c) font 359 src/ftcrfont.c if (FONT_ENTITY_P (font)) font 360 src/ftcrfont.c return ftfont_has_char (font, c); font 364 src/ftcrfont.c if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qja) font 367 src/ftcrfont.c else if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qko) font 377 src/ftcrfont.c ftcrfont_encode_char (struct font *font, int c) font 379 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 403 src/ftcrfont.c ftcrfont_text_extents (struct font *font, font 411 src/ftcrfont.c width = ftcrfont_glyph_extents (font, code[0], metrics); font 415 src/ftcrfont.c int w = ftcrfont_glyph_extents (font, code[i], metrics ? &m : NULL); font 437 src/ftcrfont.c ftcrfont_get_bitmap (struct font *font, unsigned int code, font 440 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 449 src/ftcrfont.c int result = ftfont_get_bitmap (font, code, bitmap, bits_per_pixel); font 457 src/ftcrfont.c ftcrfont_anchor_point (struct font *font, unsigned int code, int idx, font 460 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 469 src/ftcrfont.c int result = ftfont_anchor_point (font, code, idx, x, y); font 478 src/ftcrfont.c ftcrfont_otf_capability (struct font *font) font 480 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 485 src/ftcrfont.c Lisp_Object result = ftfont_otf_capability (font); font 497 src/ftcrfont.c struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); font 498 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 517 src/ftcrfont.c ftcrfont_variation_glyphs (struct font *font, int c, unsigned variations[256]) font 519 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 524 src/ftcrfont.c int result = ftfont_variation_glyphs (font, c, variations); font 537 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) s->font; font 593 src/ftcrfont.c cairo_rectangle (cr, x, y - FONT_BASE (s->font), font 594 src/ftcrfont.c s->width, FONT_HEIGHT (s->font)); font 604 src/ftcrfont.c x += (s->padding_p ? 1 : ftcrfont_glyph_extents (s->font, font 675 src/ftcrfont.c ftcrhbfont_begin_hb_font (struct font *font, double *position_unit) font 677 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 682 src/ftcrfont.c hb_font_t *hb_font = fthbfont_begin_hb_font (font, position_unit); font 698 src/ftcrfont.c ftcrhbfont_end_hb_font (struct font *font, hb_font_t *hb_font) font 700 src/ftcrfont.c struct font_info *ftcrfont_info = (struct font_info *) font; font 1332 src/ftfont.c struct font *font; font 1382 src/ftfont.c font = XFONT_OBJECT (font_object); font 1383 src/ftfont.c ftfont_info = (struct font_info *) font; font 1395 src/ftfont.c font->pixel_size = size; font 1398 src/ftfont.c font->driver = &fthbfont_driver; font 1401 src/ftfont.c font->driver = &ftfont_driver; font 1402 src/ftfont.c font->encoding_charset = font->repertory_charset = -1; font 1411 src/ftfont.c font->ascent = ft_face->ascender * size / upEM + 0.5; font 1414 src/ftfont.c font->descent = - ft_face->descender * size / upEM + 0.5; font 1415 src/ftfont.c font->height = font->ascent + font->descent; font 1419 src/ftfont.c font->height = ft_face->height * size / upEM + 0.5; font 1420 src/ftfont.c font->descent = font->height - font->ascent; font 1425 src/ftfont.c font->ascent = ft_face->size->metrics.ascender >> 6; font 1428 src/ftfont.c font->descent = - ft_face->size->metrics.descender >> 6; font 1429 src/ftfont.c font->height = font->ascent + font->descent; font 1433 src/ftfont.c font->height = ft_face->size->metrics.height >> 6; font 1434 src/ftfont.c font->descent = font->height - font->ascent; font 1446 src/ftfont.c font->min_width = font->average_width = font->space_width font 1453 src/ftfont.c font->min_width = font->average_width = font->space_width = 0; font 1460 src/ftfont.c && (! font->min_width || font->min_width > this_width)) font 1461 src/ftfont.c font->min_width = this_width; font 1463 src/ftfont.c font->space_width = this_width; font 1464 src/ftfont.c font->average_width += this_width; font 1468 src/ftfont.c font->average_width /= n; font 1471 src/ftfont.c font->baseline_offset = 0; font 1472 src/ftfont.c font->relative_compose = 0; font 1473 src/ftfont.c font->default_ascent = 0; font 1474 src/ftfont.c font->vertical_centering = 0; font 1477 src/ftfont.c font->underline_position = (-ft_face->underline_position * size / upEM font 1479 src/ftfont.c font->underline_thickness = (ft_face->underline_thickness * size / upEM font 1484 src/ftfont.c font->underline_position = -1; font 1485 src/ftfont.c font->underline_thickness = 0; font 1492 src/ftfont.c ftfont_close (struct font *font) font 1497 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1500 src/ftfont.c val = Fcons (font->props[FONT_FILE_INDEX], make_fixnum (ftfont_info->index)); font 1526 src/ftfont.c ftfont_has_char (Lisp_Object font, int c) font 1530 src/ftfont.c if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qja) font 1533 src/ftfont.c else if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qko) font 1539 src/ftfont.c if (FONT_ENTITY_P (font)) font 1541 src/ftfont.c FcCharSet *charset = ftfont_get_fc_charset (font); font 1549 src/ftfont.c ftfont_info = (struct font_info *) XFONT_OBJECT (font); font 1558 src/ftfont.c ftfont_encode_char (struct font *font, int c) font 1560 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1587 src/ftfont.c ftfont_text_extents (struct font *font, const unsigned int *code, font 1590 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1623 src/ftfont.c width += font->space_width; font 1631 src/ftfont.c ftfont_get_bitmap (struct font *font, unsigned int code, struct font_bitmap *bitmap, int bits_per_pixel) font 1633 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1674 src/ftfont.c ftfont_anchor_point (struct font *font, unsigned int code, int idx, font 1677 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1740 src/ftfont.c ftfont_otf_capability (struct font *font) font 1742 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 1771 src/ftfont.c struct font *font; font 1790 src/ftfont.c ftfont_get_glyph_id (MFLTFont *font, MFLTGlyphString *gstring, font 1793 src/ftfont.c struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; font 1815 src/ftfont.c ftfont_get_metrics (MFLTFont *font, MFLTGlyphString *gstring, font 1818 src/ftfont.c struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; font 1861 src/ftfont.c g->g.rbearing = g->g.xadv = flt_font_ft->font->space_width << 6; font 1862 src/ftfont.c g->g.ascent = flt_font_ft->font->ascent << 6; font 1863 src/ftfont.c g->g.descent = flt_font_ft->font->descent << 6; font 1872 src/ftfont.c ftfont_check_otf (MFLTFont *font, MFLTOtfSpec *spec) font 1880 src/ftfont.c struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; font 2010 src/ftfont.c ftfont_drive_otf (MFLTFont *font, font 2018 src/ftfont.c struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; font 2419 src/ftfont.c font->get_metrics (font, in, from, to); font 2426 src/ftfont.c ftfont_try_otf (MFLTFont *font, MFLTOtfSpec *spec, font 2429 src/ftfont.c return ftfont_drive_otf (font, spec, in, from, to, NULL, NULL); font 2435 src/ftfont.c ftfont_drive_otf (MFLTFont *font, MFLTOtfSpec *spec, MFLTGlyphString *in, font 2439 src/ftfont.c struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; font 2694 src/ftfont.c font->get_metrics (font, in, from, to); font 2708 src/ftfont.c ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, font 2786 src/ftfont.c flt_font_ft.font = font; font 2908 src/ftfont.c struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); font 2909 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 2912 src/ftfont.c return ftfont_shape_by_flt (lgstring, font, ftfont_info->ft_size->face, otf, font 2922 src/ftfont.c ftfont_variation_glyphs (struct font *font, int c, unsigned variations[256]) font 2924 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 2957 src/ftfont.c fthbfont_begin_hb_font (struct font *font, double *position_unit) font 2959 src/ftfont.c struct font_info *ftfont_info = (struct font_info *) font; font 3100 src/ftfont.c ftfont_filter_properties (Lisp_Object font, Lisp_Object alist) font 3102 src/ftfont.c font_filter_properties (font, alist, ftfont_booleans, ftfont_non_booleans); font 3107 src/ftfont.c ftfont_combining_capability (struct font *font) font 58 src/ftfont.h struct font font; font 2845 src/gtkutil.c Lisp_Object font = Qnil; font 2902 src/gtkutil.c font = CALLN (Ffont_spec, font 2921 src/gtkutil.c font = build_string (font_name); font 2929 src/gtkutil.c return font; font 165 src/haiku_draw_support.cc BView_SetFont (void *view, void *font) font 169 src/haiku_draw_support.cc vw->SetFont ((BFont *) font); font 187 src/haiku_font_support.cc estimate_font_ascii (BFont *font, int *max_width, font 201 src/haiku_font_support.cc font->GetHasGlyphs (ch, 1, tems); font 204 src/haiku_font_support.cc int w = font->StringWidth (ch); font 225 src/haiku_font_support.cc BFont_close (void *font) font 227 src/haiku_font_support.cc if (font != (void *) be_fixed_font && font 228 src/haiku_font_support.cc font != (void *) be_plain_font && font 229 src/haiku_font_support.cc font != (void *) be_bold_font) font 230 src/haiku_font_support.cc delete (BFont *) font; font 234 src/haiku_font_support.cc BFont_metrics (void *font, int *px_size, int *min_width, int *max_width, font 238 src/haiku_font_support.cc BFont *ft = (BFont *) font; font 265 src/haiku_font_support.cc BFont_have_char_p (void *font, int32_t chr) font 267 src/haiku_font_support.cc BFont *ft = (BFont *) font; font 273 src/haiku_font_support.cc BFont_have_char_block (void *font, int32_t beg, int32_t end) font 275 src/haiku_font_support.cc BFont *ft = (BFont *) font; font 302 src/haiku_font_support.cc BFont_char_bounds (void *font, const char *mb_str, int *advance, font 305 src/haiku_font_support.cc BFont *ft = (BFont *) font; font 319 src/haiku_font_support.cc BFont_nchar_bounds (void *font, const char *mb_str, int *advance, font 322 src/haiku_font_support.cc BFont *ft = (BFont *) font; font 755 src/haiku_font_support.cc BFont *font; font 767 src/haiku_font_support.cc font = new BFont; font 769 src/haiku_font_support.cc rc = font->SetFamilyAndStyle (family_name, style_name); font 773 src/haiku_font_support.cc delete font; font 777 src/haiku_font_support.cc font->SetSize (size); font 778 src/haiku_font_support.cc font->SetEncoding (B_UNICODE_UTF8); font 779 src/haiku_font_support.cc font->SetSpacing (B_BITMAP_SPACING); font 780 src/haiku_font_support.cc return font; font 786 src/haiku_font_support.cc BFont_open_pattern (struct haiku_font_pattern *pat, void **font, float size) font 816 src/haiku_font_support.cc *font = (void *) ft; font 838 src/haiku_font_support.cc *font = (void *) ft; font 848 src/haiku_font_support.cc code = BFont_open_pattern (©, font, size); font 853 src/haiku_font_support.cc ft = (BFont *) *font; font 987 src/haiku_font_support.cc be_set_font_antialiasing (void *font, bool antialias_p) font 991 src/haiku_font_support.cc font_object = (BFont *) font; font 741 src/haikufont.c haikufont_encode_char (struct font *font, int c) font 743 src/haikufont.c struct haikufont_info *font_info = (struct haikufont_info *) font; font 761 src/haikufont.c struct font *font; font 820 src/haikufont.c font = (struct font *) font_info; font 822 src/haikufont.c if (!font) font 834 src/haikufont.c font->pixel_size = 0; font 835 src/haikufont.c font->driver = &haikufont_driver; font 836 src/haikufont.c font->encoding_charset = -1; font 837 src/haikufont.c font->repertory_charset = -1; font 838 src/haikufont.c font->default_ascent = 0; font 839 src/haikufont.c font->vertical_centering = 0; font 840 src/haikufont.c font->baseline_offset = 0; font 841 src/haikufont.c font->relative_compose = 0; font 851 src/haikufont.c font->pixel_size = px_size; font 852 src/haikufont.c font->min_width = min_width; font 853 src/haikufont.c font->max_width = max_width; font 854 src/haikufont.c font->average_width = avg_width; font 855 src/haikufont.c font->height = height; font 856 src/haikufont.c font->space_width = space_width; font 857 src/haikufont.c font->ascent = ascent; font 858 src/haikufont.c font->descent = descent; font 859 src/haikufont.c font->default_ascent = ascent; font 860 src/haikufont.c font->underline_position = underline_pos; font 861 src/haikufont.c font->underline_thickness = underline_thickness; font 863 src/haikufont.c font->vertical_centering = 0; font 864 src/haikufont.c font->baseline_offset = 0; font 865 src/haikufont.c font->relative_compose = 0; font 867 src/haikufont.c font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); font 874 src/haikufont.c haikufont_close (struct font *font) font 876 src/haikufont.c struct haikufont_info *info = (struct haikufont_info *) font; font 912 src/haikufont.c haikufont_glyph_extents (struct font *font, unsigned code, font 915 src/haikufont.c struct haikufont_info *info = (struct haikufont_info *) font; font 956 src/haikufont.c cache->ascent = font->ascent; font 957 src/haikufont.c cache->descent = font->descent; font 965 src/haikufont.c haikufont_text_extents (struct font *font, const unsigned int *code, font 975 src/haikufont.c haikufont_glyph_extents (font, code[i], &m); font 999 src/haikufont.c struct haikufont_info *font = font 1045 src/haikufont.c eassert (font->be_font); font 1046 src/haikufont.c BFont_nchar_bounds (font->be_font, b, advance, lb, rb, len); font 1066 src/haikufont.c LGLYPH_SET_ASCENT (tem, font->font.ascent); font 1067 src/haikufont.c LGLYPH_SET_DESCENT (tem, font->font.descent); font 1081 src/haikufont.c struct font_info *info = (struct font_info *) s->font; font 1101 src/haikufont.c int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font); font 1196 src/haikufont.c haikufont_filter_properties (Lisp_Object font, Lisp_Object alist) font 1198 src/haikufont.c font_filter_properties (font, alist, haikufont_booleans, font 1237 src/haikufont.c struct font *font; font 1255 src/haikufont.c font = FRAME_FONT (f); font 1257 src/haikufont.c if (font) font 1259 src/haikufont.c XSETFONT (font_object, font); font 1266 src/haikufont.c initial_size = font->pixel_size; font 295 src/haikuterm.c struct font *font; font 298 src/haikuterm.c font = XFONT_OBJECT (font_object); font 305 src/haikuterm.c if (FRAME_FONT (f) == font) font 308 src/haikuterm.c FRAME_FONT (f) = font; font 309 src/haikuterm.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 310 src/haikuterm.c FRAME_COLUMN_WIDTH (f) = font->average_width; font 312 src/haikuterm.c get_font_ascent_descent (font, &ascent, &descent); font 850 src/haikuterm.c struct font *font = font_for_underline_metrics (s); font 874 src/haikuterm.c if (font && font->underline_thickness > 0) font 875 src/haikuterm.c thickness = font->underline_thickness; font 894 src/haikuterm.c && font && font->underline_position >= 0) font 895 src/haikuterm.c position = font->underline_position; font 896 src/haikuterm.c else if (font) font 897 src/haikuterm.c position = (font->descent + 1) / 2; font 1129 src/haikuterm.c if (FONT_HEIGHT (s->font) < s->height - 2 * box_vline_width font 1130 src/haikuterm.c || FONT_TOO_HIGH (s->font) font 1201 src/haikuterm.c struct font *ft = s->font; font 1280 src/haikuterm.c char2b[j] = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 1282 src/haikuterm.c s->font->driver->draw (s, 0, upper_len, font 1286 src/haikuterm.c s->font->driver->draw (s, upper_len, len, font 1460 src/haikuterm.c struct font *font = s->font; font 1502 src/haikuterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 1504 src/haikuterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 1525 src/haikuterm.c font->driver->draw (s, j, i, x, y, false); font 1527 src/haikuterm.c font->driver->draw (s, j, i, x + 1, y, false); font 1533 src/haikuterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 1535 src/haikuterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 1544 src/haikuterm.c font->driver->draw (s, j, i, x, y, false); font 1546 src/haikuterm.c font->driver->draw (s, j, i, x + 1, y, false); font 2319 src/haikuterm.c struct font *font = s->font; font 2320 src/haikuterm.c font->driver->text_extents (font, s->char2b, s->nchars, &metrics); font 2998 src/haikuterm.c Lisp_Object font = Qnil; font 3007 src/haikuterm.c font = font_open_by_spec (f, Ffont_get_system_font ()); font 3009 src/haikuterm.c if (NILP (font)) font 3010 src/haikuterm.c font = (!NILP (font_param) font 3016 src/haikuterm.c if (! FONTP (font) && ! STRINGP (font)) font 3026 src/haikuterm.c font font 3028 src/haikuterm.c if (!NILP (font)) font 3031 src/haikuterm.c if (NILP (font)) font 3035 src/haikuterm.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", font 44 src/haikuterm.h struct font font; font 181 src/haikuterm.h struct font *font; font 290 src/haikuterm.h #define FRAME_FONT(f) (FRAME_OUTPUT_DATA (f)->font) font 75 src/hbfont.c DEF_DLL_FN (hb_face_t *, hb_font_get_face, (hb_font_t *font)); font 217 src/hbfont.c hbfont_otf_capability (struct font *font) font 221 src/hbfont.c = font->driver->begin_hb_font font 222 src/hbfont.c ? font->driver->begin_hb_font (font, &position_unit) font 234 src/hbfont.c if (font->driver->end_hb_font) font 235 src/hbfont.c font->driver->end_hb_font (font, hb_font); font 397 src/hbfont.c struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); font 488 src/hbfont.c = font->driver->begin_hb_font font 489 src/hbfont.c ? font->driver->begin_hb_font (font, &position_unit) font 495 src/hbfont.c if (font->driver->end_hb_font) font 496 src/hbfont.c font->driver->end_hb_font (font, hb_font); font 586 src/hbfont.c font->driver->text_extents (font, &code, 1, &metrics); font 607 src/hbfont.c hbfont_combining_capability (struct font *font) font 1616 src/image.c if (face->font) font 1620 src/image.c ascent = height / 2 - (FONT_DESCENT (face->font) font 1621 src/image.c - FONT_BASE (face->font)) / 2; font 1628 src/image.c ascent = (height + FONT_BASE (face->font) font 1629 src/image.c - FONT_DESCENT (face->font) + 1) / 2; font 2884 src/image.c int font_size = face->font->pixel_size; font 83 src/macfont.h extern void *macfont_get_nsctfont (struct font *font); font 108 src/msdos.h #define FRAME_FONT(f) ((f)->output_data.tty->font) font 815 src/nsterm.h struct font font; font 970 src/nsterm.h struct font *font; font 1031 src/nsterm.h #define FRAME_FONT(f) ((f)->output_data.ns->font) font 1078 src/pgtkfns.c Lisp_Object font = Qnil; font 1089 src/pgtkfns.c font = font_open_by_name (f, build_unibyte_string (system_font)); font 1092 src/pgtkfns.c if (NILP (font)) font 1093 src/pgtkfns.c font = !NILP (font_param) ? font_param font 1097 src/pgtkfns.c if (!FONTP (font) && !STRINGP (font)) font 1117 src/pgtkfns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 1118 src/pgtkfns.c if (!NILP (font)) font 1121 src/pgtkfns.c if (NILP (font)) font 1126 src/pgtkfns.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", font 3785 src/pgtkfns.c Lisp_Object font; font 3801 src/pgtkfns.c XSETFONT (font, FRAME_FONT (f)); font 3802 src/pgtkfns.c font_param = Ffont_get (font, QCname); font 3812 src/pgtkfns.c font = xg_get_font (f, default_name); font 3817 src/pgtkfns.c if (NILP (font)) font 3820 src/pgtkfns.c return unbind_to (count, font); font 858 src/pgtkterm.c struct font *font = XFONT_OBJECT (font_object); font 865 src/pgtkterm.c if (FRAME_FONT (f) == font) font 872 src/pgtkterm.c FRAME_FONT (f) = font; font 874 src/pgtkterm.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 875 src/pgtkterm.c FRAME_COLUMN_WIDTH (f) = font->average_width; font 876 src/pgtkterm.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 1125 src/pgtkterm.c if (s->font == FRAME_FONT (s->f) font 1165 src/pgtkterm.c if (s->font == s->face->font) font 1290 src/pgtkterm.c struct font *font = s->font; font 1295 src/pgtkterm.c font->driver->text_extents (font, code, s->nchars, &metrics); font 1387 src/pgtkterm.c else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 1392 src/pgtkterm.c || FONT_TOO_HIGH (s->font) font 1448 src/pgtkterm.c struct font *font = s->font; font 1449 src/pgtkterm.c int boff = font->baseline_offset; font 1452 src/pgtkterm.c if (font->vertical_centering) font 1453 src/pgtkterm.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 1457 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x, y, false); font 1459 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x, y, true); font 1461 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 1470 src/pgtkterm.c struct font *font = s->font; font 1505 src/pgtkterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 1507 src/pgtkterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 1528 src/pgtkterm.c font->driver->draw (s, j, i, x, y, false); font 1530 src/pgtkterm.c font->driver->draw (s, j, i, x + 1, y, false); font 1536 src/pgtkterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 1538 src/pgtkterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 1547 src/pgtkterm.c font->driver->draw (s, j, i, x, y, false); font 1549 src/pgtkterm.c font->driver->draw (s, j, i, x + 1, y, false); font 1620 src/pgtkterm.c = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 1621 src/pgtkterm.c s->font->driver->draw (s, 0, upper_len, font 1625 src/pgtkterm.c s->font->driver->draw (s, upper_len, len, font 2574 src/pgtkterm.c struct font *font = font_for_underline_metrics (s); font 2577 src/pgtkterm.c if (font && font->underline_thickness > 0) font 2578 src/pgtkterm.c thickness = font->underline_thickness; font 2597 src/pgtkterm.c && font && font->underline_position >= 0) font 2598 src/pgtkterm.c position = font->underline_position; font 2599 src/pgtkterm.c else if (font) font 2600 src/pgtkterm.c position = (font->descent + 1) / 2; font 315 src/pgtkterm.h struct font *font; font 455 src/pgtkterm.h #define FRAME_FONT(f) (FRAME_X_OUTPUT (f)->font) font 5771 src/w32fns.c Lisp_Object font; font 5774 src/w32fns.c font = !NILP (font_param) ? font_param font 5778 src/w32fns.c if (!STRINGP (font)) font 5790 src/w32fns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 5791 src/w32fns.c if (! NILP (font)) font 5794 src/w32fns.c if (NILP (font)) font 5798 src/w32fns.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); font 343 src/w32font.c w32font_close (struct font *font) font 345 src/w32font.c struct w32font_info *w32_font = (struct w32font_info *) font; font 421 src/w32font.c w32font_encode_char (struct font *font, int c) font 423 src/w32font.c struct w32font_info * w32_font = (struct w32font_info *)font; font 438 src/w32font.c w32font_text_extents (struct font *font, const unsigned *code, font 451 src/w32font.c struct w32font_info *w32_font = (struct w32font_info *) font; font 600 src/w32font.c rect.top = 0; rect.bottom = font->height; rect.left = 0; rect.right = 1; font 610 src/w32font.c metrics->ascent = font->ascent; font 611 src/w32font.c metrics->descent = font->descent; font 639 src/w32font.c struct w32font_info *w32font = (struct w32font_info *) s->font; font 674 src/w32font.c struct font *font = s->font; font 675 src/w32font.c int ascent = font->ascent, descent = font->descent; font 961 src/w32font.c struct font * font; font 965 src/w32font.c font = (struct font *) w32_font; font 967 src/w32font.c if (!font) font 1030 src/w32font.c font->props[FONT_FULLNAME_INDEX] font 1033 src/w32font.c font->props[FONT_FULLNAME_INDEX] font 1037 src/w32font.c font->max_width = w32_font->metrics.tmMaxCharWidth; font 1044 src/w32font.c font->space_width = font->average_width = w32_font->metrics.tmAveCharWidth; font 1046 src/w32font.c font->vertical_centering = 0; font 1047 src/w32font.c font->baseline_offset = 0; font 1048 src/w32font.c font->relative_compose = 0; font 1049 src/w32font.c font->default_ascent = w32_font->metrics.tmAscent; font 1050 src/w32font.c font->pixel_size = size; font 1051 src/w32font.c font->driver = &w32font_driver; font 1052 src/w32font.c font->encoding_charset = -1; font 1053 src/w32font.c font->repertory_charset = -1; font 1055 src/w32font.c font->min_width = font->space_width; font 1056 src/w32font.c font->ascent = w32_font->metrics.tmAscent; font 1057 src/w32font.c font->descent = w32_font->metrics.tmDescent; font 1058 src/w32font.c font->height = font->ascent + font->descent; font 1062 src/w32font.c font->underline_thickness = metrics->otmsUnderscoreSize; font 1063 src/w32font.c font->underline_position = -metrics->otmsUnderscorePosition; font 1067 src/w32font.c font->underline_thickness = 0; font 1068 src/w32font.c font->underline_position = -1; font 1075 src/w32font.c font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); font 1235 src/w32font.c logfonts_match (LOGFONT *font, LOGFONT *pattern) font 1238 src/w32font.c if (pattern->lfHeight && font->lfOutPrecision == OUT_STRING_PRECIS font 1239 src/w32font.c && font->lfHeight != pattern->lfHeight) font 1244 src/w32font.c && ((font->lfWeight < (pattern->lfWeight - 150)) font 1245 src/w32font.c || font->lfWeight > (pattern->lfWeight + 150))) font 1259 src/w32font.c font_matches_spec (DWORD type, NEWTEXTMETRICEX *font, font 1271 src/w32font.c && ((slant > 150 && !font->ntmTm.tmItalic) font 1272 src/w32font.c || (slant <= 150 && font->ntmTm.tmItalic))) font 1282 src/w32font.c && family != (font->ntmTm.tmPitchAndFamily & 0xF0)) font 1293 src/w32font.c if ((proportional && !(font->ntmTm.tmPitchAndFamily & 0x01)) font 1294 src/w32font.c || (!proportional && (font->ntmTm.tmPitchAndFamily & 0x01))) font 1318 src/w32font.c = font_supported_scripts (&font->ntmFontSig); font 1327 src/w32font.c && (font->ntmTm.tmCharSet != SHIFTJIS_CHARSET font 1328 src/w32font.c || !(font->ntmFontSig.fsCsb[0] & CSB_JAPANESE))) font 1342 src/w32font.c if (font->ntmTm.tmCharSet != ANSI_CHARSET) font 1347 src/w32font.c if (font->ntmTm.tmCharSet != SYMBOL_CHARSET) font 1352 src/w32font.c if (font->ntmTm.tmCharSet != RUSSIAN_CHARSET) font 1357 src/w32font.c if (font->ntmTm.tmCharSet != GREEK_CHARSET) font 1362 src/w32font.c if (font->ntmTm.tmCharSet != ARABIC_CHARSET) font 1367 src/w32font.c if (font->ntmTm.tmCharSet != HEBREW_CHARSET) font 1372 src/w32font.c if (font->ntmTm.tmCharSet != THAI_CHARSET) font 1377 src/w32font.c if (font->ntmTm.tmCharSet != SHIFTJIS_CHARSET) font 1382 src/w32font.c if (font->ntmTm.tmCharSet != CHINESEBIG5_CHARSET) font 1387 src/w32font.c if (font->ntmTm.tmCharSet != HANGUL_CHARSET font 1388 src/w32font.c && font->ntmTm.tmCharSet != JOHAB_CHARSET) font 1393 src/w32font.c if (font->ntmTm.tmCharSet != CHINESEBIG5_CHARSET font 1394 src/w32font.c && font->ntmTm.tmCharSet != GB2312_CHARSET font 1395 src/w32font.c && font->ntmTm.tmCharSet != HANGUL_CHARSET font 1396 src/w32font.c && font->ntmTm.tmCharSet != JOHAB_CHARSET font 1397 src/w32font.c && font->ntmTm.tmCharSet != SHIFTJIS_CHARSET) font 1415 src/w32font.c if (!(font->ntmFontSig.fsCsb[0] & CSB_JAPANESE)) font 1420 src/w32font.c if (!(font->ntmFontSig.fsCsb[0] & CSB_KOREAN)) font 1425 src/w32font.c if (!(font->ntmFontSig.fsCsb[0] & CSB_CHINESE)) font 1484 src/w32font.c check_face_name (LOGFONT *font, char *full_name) font 1498 src/w32font.c if (!xstrcasecmp (font->lfFaceName, "helvetica")) font 1506 src/w32font.c if (!xstrcasecmp (font->lfFaceName, "helv")) font 1516 src/w32font.c else if (!xstrcasecmp (font->lfFaceName, "times")) font 2476 src/w32font.c w32font_full_name (LOGFONT * font, Lisp_Object font_obj, font 2483 src/w32font.c len = strlen (font->lfFaceName); font 2494 src/w32font.c if (font->lfItalic) font 2497 src/w32font.c if (font->lfWeight && font->lfWeight != FW_NORMAL) font 2499 src/w32font.c weight = w32_to_fc_weight (font->lfWeight); font 2503 src/w32font.c antialiasing = lispy_antialias_type (font->lfQuality); font 2512 src/w32font.c p += sprintf (p, "%s", font->lfFaceName); font 2514 src/w32font.c height = font->lfHeight ? eabs (font->lfHeight) : pixel_size; font 2533 src/w32font.c if (font->lfItalic) font 2549 src/w32font.c logfont_to_fcname (LOGFONT* font, int pointsize, char *fcname, int size) font 2555 src/w32font.c len = strlen (font->lfFaceName) + 2; font 2563 src/w32font.c if (font->lfItalic) font 2565 src/w32font.c if (font->lfWeight && font->lfWeight != FW_NORMAL) font 2567 src/w32font.c weight = w32_to_fc_weight (font->lfWeight); font 2574 src/w32font.c p += sprintf (p, "%s-%d", font->lfFaceName, pointsize / 10); font 2581 src/w32font.c if (font->lfItalic) font 2618 src/w32font.c metrics->ascent = w32_font->font.ascent; font 2619 src/w32font.c metrics->descent = w32_font->font.descent; font 2705 src/w32font.c w32font_filter_properties (Lisp_Object font, Lisp_Object alist) font 2707 src/w32font.c font_filter_properties (font, alist, w32font_booleans, w32font_non_booleans); font 52 src/w32font.h struct font font; font 75 src/w32font.h void w32font_close (struct font *font); font 77 src/w32font.h void w32font_text_extents (struct font *font, const unsigned *code, int nglyphs, font 83 src/w32font.h int uniscribe_check_otf (LOGFONT *font, Lisp_Object otf_spec); font 213 src/w32term.c static void w32_check_font (struct frame *, struct font *); font 1011 src/w32term.c if (s->font == FRAME_FONT (s->f) font 1045 src/w32term.c IF_DEBUG (w32_check_font (s->f, s->font)); font 1066 src/w32term.c if (s->font == s->face->font) font 1077 src/w32term.c IF_DEBUG (w32_check_font (s->f, s->font)); font 1201 src/w32term.c struct font *font = s->font; font 1202 src/w32term.c font->driver->text_extents (font, s->char2b, s->nchars, &metrics); font 1280 src/w32term.c if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 1285 src/w32term.c || FONT_TOO_HIGH (s->font) font 1333 src/w32term.c struct font *font = s->font; font 1334 src/w32term.c int boff = font->baseline_offset; font 1338 src/w32term.c old_font = SelectObject (s->hdc, FONT_HANDLE (font)); font 1340 src/w32term.c if (font->vertical_centering) font 1341 src/w32term.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 1346 src/w32term.c font->driver->draw (s, 0, s->nchars, x, y, false); font 1348 src/w32term.c font->driver->draw (s, 0, s->nchars, x, y, true); font 1350 src/w32term.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 1362 src/w32term.c struct font *font = s->font; font 1394 src/w32term.c old_font = SelectObject (s->hdc, FONT_HANDLE (font)); font 1404 src/w32term.c font->driver->draw (s, j, j + 1, xx, yy, false); font 1406 src/w32term.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 1418 src/w32term.c old_font = SelectObject (s->hdc, FONT_HANDLE (font)); font 1431 src/w32term.c font->driver->draw (s, j, i, x, y, false); font 1437 src/w32term.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 1444 src/w32term.c font->driver->draw (s, j, i, x, y, false); font 1514 src/w32term.c struct font *font = s->font; font 1518 src/w32term.c old_font = SelectObject (s->hdc, FONT_HANDLE (font)); font 1521 src/w32term.c char2b[j] = font->driver->encode_char (font, str[j]) & 0xFFFF; font 1522 src/w32term.c font->driver->draw (s, 0, upper_len, font 1526 src/w32term.c font->driver->draw (s, upper_len, len, font 2672 src/w32term.c struct font *font = font_for_underline_metrics (s); font 2696 src/w32term.c if (font && font->underline_thickness > 0) font 2697 src/w32term.c thickness = font->underline_thickness; font 2701 src/w32term.c || !font) font 2717 src/w32term.c && font->underline_position >= 0) font 2718 src/w32term.c position = font->underline_position; font 2720 src/w32term.c position = (font->descent + 1) / 2; font 2769 src/w32term.c && !FONT_TEXTMETRIC (s->font).tmStruckOut) font 6470 src/w32term.c struct font *font = XFONT_OBJECT (font_object); font 6476 src/w32term.c if (FRAME_FONT (f) == font) font 6481 src/w32term.c FRAME_FONT (f) = font; font 6482 src/w32term.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 6483 src/w32term.c FRAME_COLUMN_WIDTH (f) = unit = font->average_width; font 6484 src/w32term.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 7289 src/w32term.c w32_check_font (struct frame *f, struct font *font) font 7291 src/w32term.c eassert (font != NULL && ! NILP (font->props[FONT_TYPE_INDEX])); font 7292 src/w32term.c if (font->driver->check) font 7293 src/w32term.c eassert (font->driver->check (f, font) == 0); font 331 src/w32term.h struct font *font; font 447 src/w32term.h #define FRAME_FONT(f) ((f)->output_data.w32->font) font 189 src/w32uniscribe.c uniscribe_font->w32_font.font.driver = &harfbuzz_font_driver; font 192 src/w32uniscribe.c uniscribe_font->w32_font.font.driver = &uniscribe_font_driver; font 198 src/w32uniscribe.c uniscribe_close (struct font *font) font 201 src/w32uniscribe.c = (struct uniscribe_font_info *) font; font 204 src/w32uniscribe.c if (uniscribe_font->w32_font.font.driver == &harfbuzz_font_driver font 214 src/w32uniscribe.c w32font_close (font); font 239 src/w32uniscribe.c uniscribe_otf_capability (struct font *font) font 254 src/w32uniscribe.c old_font = SelectObject (context, FONT_HANDLE (font)); font 288 src/w32uniscribe.c struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); font 290 src/w32uniscribe.c = (struct uniscribe_font_info *) font; font 372 src/w32uniscribe.c old_font = SelectObject (context, FONT_HANDLE (font)); font 407 src/w32uniscribe.c old_font = SelectObject (context, FONT_HANDLE (font)); font 502 src/w32uniscribe.c LGLYPH_SET_ASCENT (lglyph, font->ascent); font 503 src/w32uniscribe.c LGLYPH_SET_DESCENT (lglyph, font->descent); font 513 src/w32uniscribe.c old_font = SelectObject (context, FONT_HANDLE (font)); font 598 src/w32uniscribe.c uniscribe_encode_char (struct font *font, int c) font 609 src/w32uniscribe.c = (struct uniscribe_font_info *)font; font 659 src/w32uniscribe.c old_font = SelectObject (context, FONT_HANDLE (font)); font 959 src/w32uniscribe.c uniscribe_check_otf (LOGFONT *font, Lisp_Object otf_spec) font 991 src/w32uniscribe.c check_font = CreateFontIndirect (font); font 1304 src/w32uniscribe.c w32hb_get_font (struct font *font, double *scale) font 1307 src/w32uniscribe.c HFONT font_handle = FONT_HANDLE (font); font 1319 src/w32uniscribe.c (struct uniscribe_font_info *) font; font 1338 src/w32uniscribe.c w32hb_encode_char (struct font *font, int c) font 1341 src/w32uniscribe.c = (struct uniscribe_font_info *) font; font 1342 src/w32uniscribe.c eassert (uniscribe_font->w32_font.font.driver == &harfbuzz_font_driver); font 1350 src/w32uniscribe.c hb_font = w32hb_get_font (font, &scale); font 1372 src/w32uniscribe.c w32hb_begin_font (struct font *font, double *position_unit) font 1375 src/w32uniscribe.c = (struct uniscribe_font_info *) font; font 1376 src/w32uniscribe.c eassert (uniscribe_font->w32_font.font.driver == &harfbuzz_font_driver); font 1383 src/w32uniscribe.c uniscribe_font->cache = w32hb_get_font (font, &scale); font 1398 src/w32uniscribe.c w32hb_get_variation_glyphs (struct font *font, int c, unsigned variations[256]) font 1401 src/w32uniscribe.c = (struct uniscribe_font_info *) font; font 1402 src/w32uniscribe.c eassert (uniscribe_font->w32_font.font.driver == &harfbuzz_font_driver); font 1409 src/w32uniscribe.c uniscribe_font->cache = w32hb_get_font (font, &scale); font 1071 src/window.c if (face && face->font && face->font->height) font 1072 src/window.c denom = face->font->height; font 1116 src/window.c if (face && face->font) font 1118 src/window.c if (face->font->average_width) font 1119 src/window.c denom = face->font->average_width; font 1120 src/window.c else if (face->font->space_width) font 1121 src/window.c denom = face->font->space_width; font 6663 src/window.c composition_table[i]->font = NULL; font 856 src/xdisp.c struct font *, bool, int *); font 1213 src/xdisp.c static int normal_char_height (struct font *, int); font 1214 src/xdisp.c static void normal_char_ascent_descent (struct font *, int, int *, int *); font 1221 src/xdisp.c struct font *, int, bool); font 2295 src/xdisp.c if (face->font) font 2296 src/xdisp.c height = normal_char_height (face->font, -1); font 5495 src/xdisp.c struct font *font = NULL; font 5497 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 5500 src/xdisp.c font, true, NULL); font 5971 src/xdisp.c * (normal_char_height (face->font, -1))); font 10696 src/xdisp.c struct font *face_font = face->font; font 23218 src/xdisp.c struct font *font = (default_face->font font 23219 src/xdisp.c ? default_face->font font 23221 src/xdisp.c char_width = (font->average_width font 23222 src/xdisp.c ? font->average_width font 23223 src/xdisp.c : font->space_width); font 23278 src/xdisp.c struct font *font = face->font ? face->font : FRAME_FONT (it->f); font 23283 src/xdisp.c int boff = font->baseline_offset; font 23285 src/xdisp.c if (font->vertical_centering) font 23286 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 23289 src/xdisp.c normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); font 23302 src/xdisp.c height = calc_line_height_property (it, height, font, boff, true); font 23323 src/xdisp.c spacing = calc_line_height_property (it, total_height, font, font 23328 src/xdisp.c spacing = calc_line_height_property (it, spacing, font, font 23493 src/xdisp.c struct font *font = (default_face->font font 23494 src/xdisp.c ? default_face->font font 23497 src/xdisp.c const int char_width = (font->average_width font 23498 src/xdisp.c ? font->average_width font 23499 src/xdisp.c : font->space_width); font 23517 src/xdisp.c (stretch_height * FONT_BASE (font)) / FONT_HEIGHT (font); font 23587 src/xdisp.c struct font *font = face->font ? face->font : FRAME_FONT (f); font 23614 src/xdisp.c * FONT_BASE (font)) / FONT_HEIGHT (font)); font 28966 src/xdisp.c struct font *font, bool width_p, int *align_to) font 29012 src/xdisp.c return OK_PIXELS (font font 29013 src/xdisp.c ? normal_char_height (font, -1) font 29017 src/xdisp.c return OK_PIXELS (font font 29018 src/xdisp.c ? FONT_WIDTH (font) font 29140 src/xdisp.c font, width_p, align_to)) font 29168 src/xdisp.c font, width_p, align_to)) font 29180 src/xdisp.c get_font_ascent_descent (struct font *font, int *ascent, int *descent) font 29183 src/xdisp.c normal_char_ascent_descent (font, -1, ascent, descent); font 29213 src/xdisp.c fprintf (stderr, " font height = %d\n", FONT_HEIGHT (s->font)); font 29334 src/xdisp.c if (face->font) font 29336 src/xdisp.c code = face->font->driver->encode_char (face->font, c); font 29374 src/xdisp.c if (face->font) font 29379 src/xdisp.c code = face->font->driver->encode_char (face->font, glyph->u.ch); font 29395 src/xdisp.c get_char_glyph_code (int c, struct font *font, unsigned *char2b) font 29402 src/xdisp.c code = font->driver->encode_char (font, c); font 29437 src/xdisp.c s->font = NULL; font 29456 src/xdisp.c s->font = s->face->font; font 29469 src/xdisp.c s->font = s->face->font; font 29496 src/xdisp.c if (s->font == NULL) font 29499 src/xdisp.c s->font = FRAME_FONT (s->f); font 29541 src/xdisp.c s->font = XFONT_OBJECT (LGSTRING_FONT (lgstring)); font 29597 src/xdisp.c s->font = s->face->font ? s->face->font : FRAME_FONT (s->f); font 29671 src/xdisp.c s->font = s->face->font; font 29693 src/xdisp.c if (s->font == NULL || glyph_not_available_p) font 29696 src/xdisp.c s->font = FRAME_FONT (s->f); font 29717 src/xdisp.c s->font = s->face->font; font 29743 src/xdisp.c s->font = s->face->font; font 29780 src/xdisp.c s->font = s->face->font; font 29815 src/xdisp.c get_per_char_metric (struct font *font, const unsigned *char2b) font 29819 src/xdisp.c if (! font) font 29824 src/xdisp.c font->driver->text_extents (font, char2b, 1, &metrics); font 29835 src/xdisp.c normal_char_ascent_descent (struct font *font, int c, int *ascent, int *descent) font 29837 src/xdisp.c *ascent = FONT_BASE (font); font 29838 src/xdisp.c *descent = FONT_DESCENT (font); font 29840 src/xdisp.c if (FONT_TOO_HIGH (font)) font 29846 src/xdisp.c if (get_char_glyph_code (c >= 0 ? c : '{', font, &char2b)) font 29848 src/xdisp.c struct font_metrics *pcm = get_per_char_metric (font, &char2b); font 29869 src/xdisp.c normal_char_height (struct font *font, int c) font 29873 src/xdisp.c normal_char_ascent_descent (font, c, &ascent, &descent); font 29892 src/xdisp.c if (face->font) font 29894 src/xdisp.c struct font_metrics *pcm = get_per_char_metric (face->font, &char2b); font 30678 src/xdisp.c struct font * font 30692 src/xdisp.c return s->font; font 30697 src/xdisp.c return FACE_FROM_ID (s->f, g[1].face_id)->font; font 31317 src/xdisp.c struct font *font = NULL; font 31327 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 31338 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, true, NULL)) font 31382 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, true, font 31431 src/xdisp.c int default_height = normal_char_height (font, ' '); font 31434 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, false, NULL)) font 31455 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, false, 0)) font 31458 src/xdisp.c ascent = (height * FONT_BASE (font)) / FONT_HEIGHT (font); font 31585 src/xdisp.c struct font *font = font 31586 src/xdisp.c face->font ? face->font : FRAME_FONT (temp_it.f); font 31589 src/xdisp.c * FONT_BASE (font)) / FONT_HEIGHT (font)); font 31620 src/xdisp.c calc_line_height_property (struct it *it, Lisp_Object val, struct font *font, font 31644 src/xdisp.c font = FRAME_FONT (it->f); font 31658 src/xdisp.c if (face == NULL || ((font = face->font) == NULL)) font 31660 src/xdisp.c boff = font->baseline_offset; font 31661 src/xdisp.c if (font->vertical_centering) font 31662 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 31665 src/xdisp.c normal_char_ascent_descent (font, -1, &ascent, &descent); font 31788 src/xdisp.c struct font *font; font 31799 src/xdisp.c font = (face && face->font) ? face->font : FRAME_FONT (it->f); font 31800 src/xdisp.c normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); font 31801 src/xdisp.c it->ascent += font->baseline_offset; font 31802 src/xdisp.c it->descent -= font->baseline_offset; font 31804 src/xdisp.c base_width = font->average_width; font 31835 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 31853 src/xdisp.c code[len] = font->driver->encode_char (font, str[len]); font 31855 src/xdisp.c font->driver->text_extents (font, code, upper_len, font 31857 src/xdisp.c font->driver->text_extents (font, code + upper_len, len - upper_len, font 31958 src/xdisp.c struct font *font = face->font; font 31962 src/xdisp.c if (font == NULL) font 31975 src/xdisp.c boff = font->baseline_offset; font 31976 src/xdisp.c if (font->vertical_centering) font 31977 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 31991 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 31992 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 31995 src/xdisp.c if (get_char_glyph_code (it->char_to_display, font, &char2b)) font 31997 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32012 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32030 src/xdisp.c it->pixel_width = font->space_width; font 32081 src/xdisp.c int ascent = (((it->ascent + it->descent) * FONT_BASE (font)) font 32082 src/xdisp.c / FONT_HEIGHT (font)); font 32122 src/xdisp.c height = calc_line_height_property (it, height, font, boff, true); font 32132 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32134 src/xdisp.c it->ascent = font->pixel_size + boff - 1; font 32141 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 32142 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 32182 src/xdisp.c spacing = calc_line_height_property (it, total_height, font, font 32187 src/xdisp.c spacing = calc_line_height_property (it, spacing, font, font 32200 src/xdisp.c if (font->space_width > 0) font 32202 src/xdisp.c int tab_width = it->tab_width * font->space_width; font 32219 src/xdisp.c if (next_tab_x - x < font->space_width) font 32237 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32239 src/xdisp.c if (get_char_glyph_code (' ', font, &char2b)) font 32241 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32254 src/xdisp.c it->ascent = font->pixel_size + boff - 1; font 32264 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 32265 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 32283 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32294 src/xdisp.c normal_char_ascent_descent (font, -1, &font_ascent, &font_descent); font 32318 src/xdisp.c struct font *font = face->font; font 32329 src/xdisp.c if (! cmp->font || cmp->font != font) font 32363 src/xdisp.c bool font_not_found_p = font == NULL; font 32367 src/xdisp.c font = face->font; font 32369 src/xdisp.c boff = font->baseline_offset; font 32370 src/xdisp.c if (font->vertical_centering) font 32371 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 32372 src/xdisp.c normal_char_ascent_descent (font, -1, &font_ascent, &font_descent); font 32377 src/xdisp.c cmp->font = font; font 32384 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32398 src/xdisp.c width = cmp->glyph_len > 0 ? font->space_width : 0; font 32399 src/xdisp.c ascent = FONT_BASE (font); font 32400 src/xdisp.c descent = FONT_DESCENT (font); font 32411 src/xdisp.c && font->default_ascent font 32415 src/xdisp.c highest = font->default_ascent + boff; font 32437 src/xdisp.c font = this_face->font; font 32439 src/xdisp.c if (font == NULL) font 32445 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32462 src/xdisp.c if (font->relative_compose font 32468 src/xdisp.c if (- descent >= font->relative_compose) font 32621 src/xdisp.c it->pixel_width = face->font->space_width; font 1576 src/xfaces.c Lisp_Object font = AREF (vec, i); font 1577 src/xfaces.c int point = PIXEL_TO_POINT (XFIXNUM (AREF (font, FONT_SIZE_INDEX)) * 10, font 1579 src/xfaces.c Lisp_Object spacing = Ffont_get (font, QCspacing); font 1581 src/xfaces.c AREF (font, FONT_FAMILY_INDEX), font 1582 src/xfaces.c FONT_WIDTH_SYMBOLIC (font), font 1584 src/xfaces.c FONT_WEIGHT_SYMBOLIC (font), font 1585 src/xfaces.c FONT_SLANT_SYMBOLIC (font), font 1595 src/xfaces.c Ffont_xlfd_name (font, Qnil), font 1596 src/xfaces.c AREF (font, FONT_REGISTRY_INDEX)); font 1665 src/xfaces.c if (width_face && width_face->font) font 1667 src/xfaces.c size = width_face->font->pixel_size; font 1668 src/xfaces.c avgwidth = width_face->font->average_width; font 2117 src/xfaces.c struct font *font = XFONT_OBJECT (font_object); font 2139 src/xfaces.c int pt = PIXEL_TO_POINT (font->pixel_size * 10, FRAME_RES_Y (f)); font 2224 src/xfaces.c Lisp_Object font = Qnil; font 2240 src/xfaces.c font = merge_font_spec (from[LFACE_FONT_INDEX], to[LFACE_FONT_INDEX]); font 2242 src/xfaces.c font = copy_font_spec (from[LFACE_FONT_INDEX]); font 2243 src/xfaces.c to[LFACE_FONT_INDEX] = font; font 2272 src/xfaces.c if (!NILP (font)) font 2274 src/xfaces.c if (! NILP (AREF (font, FONT_FOUNDRY_INDEX))) font 2275 src/xfaces.c to[LFACE_FOUNDRY_INDEX] = SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX)); font 2276 src/xfaces.c if (! NILP (AREF (font, FONT_FAMILY_INDEX))) font 2277 src/xfaces.c to[LFACE_FAMILY_INDEX] = SYMBOL_NAME (AREF (font, FONT_FAMILY_INDEX)); font 2278 src/xfaces.c if (! NILP (AREF (font, FONT_WEIGHT_INDEX))) font 2279 src/xfaces.c to[LFACE_WEIGHT_INDEX] = FONT_WEIGHT_FOR_FACE (font); font 2280 src/xfaces.c if (! NILP (AREF (font, FONT_SLANT_INDEX))) font 2281 src/xfaces.c to[LFACE_SLANT_INDEX] = FONT_SLANT_FOR_FACE (font); font 2282 src/xfaces.c if (! NILP (AREF (font, FONT_WIDTH_INDEX))) font 2283 src/xfaces.c to[LFACE_SWIDTH_INDEX] = FONT_WIDTH_FOR_FACE (font); font 2284 src/xfaces.c ASET (font, FONT_SIZE_INDEX, Qnil); font 3795 src/xfaces.c Lisp_Object font; font 3800 src/xfaces.c && (font = LFACE_FONT (lface), font 3801 src/xfaces.c ! UNSPECIFIEDP (font))) font 3803 src/xfaces.c if (FONT_SPEC_P (font)) font 3805 src/xfaces.c font = font_load_for_lface (f, XVECTOR (lface)->contents, font); font 3806 src/xfaces.c if (NILP (font)) font 3808 src/xfaces.c ASET (lface, LFACE_FONT_INDEX, font); font 3811 src/xfaces.c AUTO_LIST2 (arg, AUTO_CONS_EXPR (Qfont, font), font 3972 src/xfaces.c if (face->font font 4212 src/xfaces.c && newface->font) font 4214 src/xfaces.c Lisp_Object name = newface->font->props[FONT_NAME_INDEX]; font 4296 src/xfaces.c return ((fface && fface->font) font 4297 src/xfaces.c ? fface->font->props[FONT_NAME_INDEX] font 4513 src/xfaces.c if (face->font) font 4571 src/xfaces.c if (face->font) font 4685 src/xfaces.c if (face->font) font 4940 src/xfaces.c && face->font == (NILP (font_object) ? NULL font 5075 src/xfaces.c last_height = FONT_HEIGHT (face->font); font 5089 src/xfaces.c if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height) font 5090 src/xfaces.c || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height)) font 5093 src/xfaces.c last_height = FONT_HEIGHT (new_face->font); font 5280 src/xfaces.c if (face->font == def_face->font font 5281 src/xfaces.c || ! face->font) font 5284 src/xfaces.c if (! EQ (face->font->props[i], def_face->font->props[i])) font 5289 src/xfaces.c || face->font->driver->case_sensitive) font 5291 src/xfaces.c s1 = SYMBOL_NAME (face->font->props[i]); font 5292 src/xfaces.c s2 = SYMBOL_NAME (def_face->font->props[i]); font 5884 src/xfaces.c if (FRAME_X_P (f) && face->font != FRAME_FONT (f)) font 5888 src/xfaces.c if (!face->font) font 6009 src/xfaces.c face->font = NILP (font_object) ? NULL : XFONT_OBJECT (font_object); font 6066 src/xfaces.c face->font = default_face->font; font 6136 src/xfaces.c face->font = XFONT_OBJECT (attrs[LFACE_FONT_INDEX]); font 6141 src/xfaces.c face->font = NULL; font 6146 src/xfaces.c if (face->font font 6997 src/xfaces.c if (face->font) font 6999 src/xfaces.c SDATA (face->font->props[FONT_NAME_INDEX]), font 7002 src/xfaces.c fprintf (stderr, "font = %p\n", face->font); font 2839 src/xfns.c struct font *font = FRAME_FONT (f); font 2840 src/xfns.c int pixel_size = font->pixel_size; font 4511 src/xfns.c Lisp_Object font = Qnil; font 4522 src/xfns.c font = font_open_by_name (f, build_unibyte_string (system_font)); font 4525 src/xfns.c if (NILP (font)) font 4526 src/xfns.c font = (!NILP (font_param) font 4532 src/xfns.c if (! FONTP (font) && ! STRINGP (font)) font 4555 src/xfns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 4556 src/xfns.c if (! NILP (font)) font 4559 src/xfns.c if (NILP (font)) font 4564 src/xfns.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); font 9408 src/xfns.c Lisp_Object font; font 9424 src/xfns.c XSETFONT (font, FRAME_FONT (f)); font 9425 src/xfns.c font_param = Ffont_get (font, QCname); font 9435 src/xfns.c font = xg_get_font (f, default_name); font 9440 src/xfns.c if (NILP (font)) font 9443 src/xfns.c return unbind_to (count, font); font 40 src/xfont.c struct font font; font 662 src/xfont.c struct font *font; font 781 src/xfont.c font = XFONT_OBJECT (font_object); font 782 src/xfont.c ((struct xfont_info *) font)->xfont = xfont; font 783 src/xfont.c ((struct xfont_info *) font)->display = FRAME_X_DISPLAY (f); font 784 src/xfont.c ((struct xfont_info *) font)->x_display_id = FRAME_DISPLAY_INFO (f)->x_id; font 785 src/xfont.c font->pixel_size = pixel_size; font 786 src/xfont.c font->driver = &xfont_driver; font 787 src/xfont.c font->encoding_charset = encoding->id; font 788 src/xfont.c font->repertory_charset = repertory ? repertory->id : -1; font 789 src/xfont.c font->ascent = xfont->ascent; font 790 src/xfont.c font->descent = xfont->descent; font 791 src/xfont.c font->height = font->ascent + font->descent; font 792 src/xfont.c font->min_width = xfont->min_bounds.width; font 793 src/xfont.c font->max_width = xfont->max_bounds.width; font 797 src/xfont.c font->average_width = font->space_width = xfont->min_bounds.width; font 806 src/xfont.c font->space_width = pcm->width; font 808 src/xfont.c font->space_width = 0; font 812 src/xfont.c font->average_width = XFIXNUM (val) / 10; font 813 src/xfont.c if (font->average_width < 0) font 814 src/xfont.c font->average_width = - font->average_width; font 817 src/xfont.c if (font->average_width == 0 font 820 src/xfont.c int width = font->space_width, n = pcm != NULL; font 826 src/xfont.c font->average_width = width / n; font 828 src/xfont.c if (font->average_width == 0) font 831 src/xfont.c font->average_width font 837 src/xfont.c font->underline_thickness font 840 src/xfont.c font->underline_position font 843 src/xfont.c font->baseline_offset font 846 src/xfont.c font->relative_compose font 849 src/xfont.c font->default_ascent font 856 src/xfont.c font->vertical_centering font 865 src/xfont.c xfont_close (struct font *font) font 868 src/xfont.c struct xfont_info *xfi = (struct xfont_info *) font; font 894 src/xfont.c ((struct xfont_info *) face->font)->xfont->fid); font 899 src/xfont.c xfont_has_char (Lisp_Object font, int c) font 901 src/xfont.c Lisp_Object registry = AREF (font, FONT_REGISTRY_INDEX); font 910 src/xfont.c if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qja) font 913 src/xfont.c else if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qko) font 928 src/xfont.c xfont_encode_char (struct font *font, int c) font 930 src/xfont.c XFontStruct *xfont = ((struct xfont_info *) font)->xfont; font 934 src/xfont.c charset = CHARSET_FROM_ID (font->encoding_charset); font 938 src/xfont.c if (font->repertory_charset >= 0) font 940 src/xfont.c charset = CHARSET_FROM_ID (font->repertory_charset); font 948 src/xfont.c xfont_text_extents (struct font *font, const unsigned int *code, font 951 src/xfont.c XFontStruct *xfont = ((struct xfont_info *) font)->xfont; font 993 src/xfont.c XFontStruct *xfont = ((struct xfont_info *) s->font)->xfont; font 1016 src/xfont.c int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font); font 1121 src/xfont.c xfont_check (struct frame *f, struct font *font) font 1123 src/xfont.c struct xfont_info *xfont = (struct xfont_info *) font; font 165 src/xftfont.c struct font *font; font 207 src/xftfont.c font = XFONT_OBJECT (font_object); font 208 src/xftfont.c font->pixel_size = size; font 211 src/xftfont.c font->driver = &xfthbfont_driver; font 214 src/xftfont.c font->driver = &xftfont_driver; font 215 src/xftfont.c font->encoding_charset = font->repertory_charset = -1; font 217 src/xftfont.c xftfont_info = (struct font_info *) font; font 255 src/xftfont.c font->min_width = font->max_width = font->average_width font 256 src/xftfont.c = font->space_width = xftfont->max_advance_width; font 262 src/xftfont.c font->min_width = font->max_width = font->space_width font 264 src/xftfont.c if (font->space_width <= 0) font 266 src/xftfont.c font->space_width = pixel_size; font 268 src/xftfont.c font->average_width = (font->space_width + extents.xOff) / 95; font 272 src/xftfont.c font->ascent = xftfont->ascent; font 273 src/xftfont.c font->descent = xftfont->descent; font 287 src/xftfont.c if (font->ascent < extents.y) font 288 src/xftfont.c font->ascent = extents.y; font 289 src/xftfont.c if (font->descent < extents.height - extents.y) font 290 src/xftfont.c font->descent = extents.height - extents.y; font 292 src/xftfont.c font->height = font->ascent + font->descent; font 298 src/xftfont.c font->underline_position = -ft_face->underline_position * size / upEM; font 299 src/xftfont.c font->underline_thickness = ft_face->underline_thickness * size / upEM; font 300 src/xftfont.c if (font->underline_thickness > 2) font 301 src/xftfont.c font->underline_position -= font->underline_thickness / 2; font 305 src/xftfont.c font->underline_position = -1; font 306 src/xftfont.c font->underline_thickness = 0; font 317 src/xftfont.c font->baseline_offset = 0; font 318 src/xftfont.c font->relative_compose = 0; font 319 src/xftfont.c font->default_ascent = 0; font 320 src/xftfont.c font->vertical_centering = false; font 328 src/xftfont.c font->baseline_offset = rec.u.integer; font 331 src/xftfont.c font->relative_compose = rec.u.integer; font 334 src/xftfont.c font->default_ascent = rec.u.integer; font 342 src/xftfont.c xftfont_close (struct font *font) font 345 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 431 src/xftfont.c xftfont_has_char (Lisp_Object font, int c) font 436 src/xftfont.c if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qja) font 439 src/xftfont.c else if (EQ (AREF (font, FONT_ADSTYLE_INDEX), Qko) font 445 src/xftfont.c if (FONT_ENTITY_P (font)) font 446 src/xftfont.c return ftfont_has_char (font, c); font 447 src/xftfont.c xftfont_info = (struct font_info *) XFONT_OBJECT (font); font 453 src/xftfont.c xftfont_encode_char (struct font *font, int c) font 455 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 463 src/xftfont.c xftfont_text_extents (struct font *font, const unsigned int *code, font 466 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 508 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) s->font; font 517 src/xftfont.c if (s->font == face->font) font 530 src/xftfont.c int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font); font 558 src/xftfont.c int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font); font 618 src/xftfont.c struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); font 619 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 724 src/xftfont.c xfthbfont_begin_hb_font (struct font *font, double *position_unit) font 726 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 731 src/xftfont.c return fthbfont_begin_hb_font (font, position_unit); font 735 src/xftfont.c xfthbfont_end_hb_font (struct font *font, hb_font_t *hb_font) font 737 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 204 src/xsettings.c char *font; font 695 src/xsettings.c dupstring (&settings->font, sval); font 986 src/xsettings.c store_font_name_changed (settings.font); font 988 src/xsettings.c dupstring (¤t_font, settings.font); font 989 src/xsettings.c xfree (settings.font); font 7746 src/xterm.c static void x_check_font (struct frame *, struct font *); font 7994 src/xterm.c if (s->font == FRAME_FONT (s->f) font 8025 src/xterm.c IF_DEBUG (x_check_font (s->f, s->font)); font 8049 src/xterm.c if (s->font == s->face->font) font 8184 src/xterm.c struct font *font = s->font; font 8185 src/xterm.c font->driver->text_extents (font, s->char2b, s->nchars, &metrics); font 8268 src/xterm.c else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 8273 src/xterm.c || FONT_TOO_HIGH (s->font) font 8317 src/xterm.c struct font *font = s->font; font 8319 src/xterm.c if (!EQ (font->driver->type, Qx) font 8323 src/xterm.c int boff = font->baseline_offset; font 8326 src/xterm.c if (font->vertical_centering) font 8327 src/xterm.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 8332 src/xterm.c font->driver->draw (s, 0, s->nchars, x, y, false); font 8334 src/xterm.c font->driver->draw (s, 0, s->nchars, x, y, true); font 8336 src/xterm.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 8338 src/xterm.c if (EQ (font->driver->type, Qx)) font 8387 src/xterm.c struct font *font = s->font; font 8412 src/xterm.c if (!EQ (font->driver->type, Qx) font 8428 src/xterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 8430 src/xterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 8451 src/xterm.c font->driver->draw (s, j, i, x, y, false); font 8453 src/xterm.c font->driver->draw (s, j, i, x + 1, y, false); font 8459 src/xterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 8461 src/xterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 8470 src/xterm.c font->driver->draw (s, j, i, x, y, false); font 8472 src/xterm.c font->driver->draw (s, j, i, x + 1, y, false); font 8476 src/xterm.c if (EQ (font->driver->type, Qx)) font 8553 src/xterm.c char2b[j] = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 8554 src/xterm.c s->font->driver->draw (s, 0, upper_len, font 8558 src/xterm.c s->font->driver->draw (s, upper_len, len, font 10685 src/xterm.c struct font *font = font_for_underline_metrics (s); font 10709 src/xterm.c if (font && font->underline_thickness > 0) font 10710 src/xterm.c thickness = font->underline_thickness; font 10729 src/xterm.c && font && font->underline_position >= 0) font 10730 src/xterm.c position = font->underline_position; font 10731 src/xterm.c else if (font) font 10732 src/xterm.c position = (font->descent + 1) / 2; font 26167 src/xterm.c struct font *font = XFONT_OBJECT (font_object); font 26173 src/xterm.c if (FRAME_FONT (f) == font) font 26178 src/xterm.c FRAME_FONT (f) = font; font 26179 src/xterm.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 26180 src/xterm.c FRAME_COLUMN_WIDTH (f) = font->average_width; font 26181 src/xterm.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 29180 src/xterm.c x_check_font (struct frame *f, struct font *font) font 29182 src/xterm.c eassert (font != NULL && ! NILP (font->props[FONT_TYPE_INDEX])); font 29183 src/xterm.c if (font->driver->check) font 29184 src/xterm.c eassert (font->driver->check (f, font) == 0); font 30309 src/xterm.c Font font; font 30318 src/xterm.c to.addr = (XPointer) &font; font 30322 src/xterm.c query_result = XQueryFont (dpy, font); font 30326 src/xterm.c if (x_had_errors_p (dpy) || !font) font 1030 src/xterm.h struct font *font; font 1351 src/xterm.h #define FRAME_FONT(f) ((f)->output_data.x->font)