font 156 java/org/gnu/emacs/EmacsFontDriver.java public abstract int hasChar (FontSpec font, char charCode); font 157 java/org/gnu/emacs/EmacsFontDriver.java public abstract void textExtents (FontObject font, int code[], font 28 java/org/gnu/emacs/EmacsSdk23FontDriver.java textExtents1 (Sdk7FontObject font, int code, FontMetrics metrics, font 49 java/org/gnu/emacs/EmacsSdk23FontDriver.java textExtents (FontObject font, int code[], FontMetrics fontMetrics) font 58 java/org/gnu/emacs/EmacsSdk23FontDriver.java fontObject = (Sdk7FontObject) font; font 72 java/org/gnu/emacs/EmacsSdk23FontDriver.java textExtents1 ((Sdk7FontObject) font, code[0], fontMetrics, font 99 java/org/gnu/emacs/EmacsSdk23FontDriver.java hasChar (FontSpec font, char charCode) font 104 java/org/gnu/emacs/EmacsSdk23FontDriver.java if (font instanceof Sdk7FontObject) font 106 java/org/gnu/emacs/EmacsSdk23FontDriver.java fontObject = (Sdk7FontObject) font; font 110 java/org/gnu/emacs/EmacsSdk23FontDriver.java paint = ((Sdk7FontEntity) font).typeface.typefacePaint; font 362 java/org/gnu/emacs/EmacsSdk7FontDriver.java hasChar (FontSpec font, char charCode) font 369 java/org/gnu/emacs/EmacsSdk7FontDriver.java if (font instanceof Sdk7FontObject) font 371 java/org/gnu/emacs/EmacsSdk7FontDriver.java fontObject = (Sdk7FontObject) font; font 375 java/org/gnu/emacs/EmacsSdk7FontDriver.java paint = ((Sdk7FontEntity) font).typeface.typefacePaint; font 401 java/org/gnu/emacs/EmacsSdk7FontDriver.java textExtents1 (Sdk7FontObject font, int code, FontMetrics metrics, font 435 java/org/gnu/emacs/EmacsSdk7FontDriver.java textExtents (FontObject font, int code[], FontMetrics fontMetrics) font 444 java/org/gnu/emacs/EmacsSdk7FontDriver.java fontObject = (Sdk7FontObject) font; font 458 java/org/gnu/emacs/EmacsSdk7FontDriver.java textExtents1 ((Sdk7FontObject) font, code[0], fontMetrics, 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 3341 src/alloc.c struct font *font = PSEUDOVEC_STRUCT (vector, font); font 3342 src/alloc.c struct font_driver const *drv = font->driver; font 3350 src/alloc.c drv->close_font (font); font 6100 src/alloc.c struct font *font = GC_XFONT_OBJECT (val); font 6103 src/alloc.c && vectorlike_marked_p (&font->header)) font 6885 src/alloc.c if (face->font && !vectorlike_marked_p (&face->font->header)) font 6886 src/alloc.c mark_vectorlike (&face->font->header); font 6949 src/alloc.c struct font *font = FRAME_FONT (f); font 6951 src/alloc.c if (font && !vectorlike_marked_p (&font->header)) font 6952 src/alloc.c mark_vectorlike (&font->header); font 606 src/androidfns.c Lisp_Object font = Qnil; font 610 src/androidfns.c if (NILP (font)) font 611 src/androidfns.c font = (!NILP (font_param) font 617 src/androidfns.c if (! FONTP (font) && ! STRINGP (font)) font 629 src/androidfns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 630 src/androidfns.c if (! NILP (font)) font 634 src/androidfns.c if (NILP (font)) font 638 src/androidfns.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); font 118 src/androidfont.c struct font font; font 130 src/androidfont.c struct font_entity font; font 426 src/androidfont.c androidfont_from_lisp (Lisp_Object font) font 437 src/androidfont.c tem = AREF (font, index); \ font 474 src/androidfont.c DO_CARDINAL_FIELD (width, FONT_WIDTH_NUMERIC (font)); font 475 src/androidfont.c DO_CARDINAL_FIELD (weight, FONT_WEIGHT_NUMERIC (font)); font 476 src/androidfont.c DO_CARDINAL_FIELD (slant, FONT_SLANT_NUMERIC (font)); font 477 src/androidfont.c DO_CARDINAL_FIELD (size, (FIXNUMP (AREF (font, FONT_SIZE_INDEX)) font 478 src/androidfont.c ? XFIXNUM (AREF (font, FONT_SIZE_INDEX)) font 480 src/androidfont.c DO_CARDINAL_FIELD (spacing, (FIXNUMP (AREF (font, FONT_SPACING_INDEX)) font 481 src/androidfont.c ? XFIXNUM (AREF (font, FONT_SPACING_INDEX)) font 483 src/androidfont.c DO_CARDINAL_FIELD (avgwidth, (FIXNUMP (AREF (font, FONT_AVGWIDTH_INDEX)) font 484 src/androidfont.c ? XFIXNUM (AREF (font, FONT_AVGWIDTH_INDEX)) font 486 src/androidfont.c DO_CARDINAL_FIELD (dpi, (FIXNUMP (AREF (font, FONT_DPI_INDEX)) font 487 src/androidfont.c ? XFIXNUM (AREF (font, FONT_DPI_INDEX)) font 658 src/androidfont.c info = (struct androidfont_info *) s->font; font 672 src/androidfont.c info = (struct androidfont_info *) s->font; font 695 src/androidfont.c struct font *font; font 723 src/androidfont.c font = &font_info->font; font 724 src/androidfont.c font->driver = &androidfont_driver; font 758 src/androidfont.c font->field = value; font 779 src/androidfont.c font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); font 785 src/androidfont.c androidfont_close_font (struct font *font) font 793 src/androidfont.c info = (struct androidfont_info *) font; font 821 src/androidfont.c androidfont_has_char (Lisp_Object font, int c) font 829 src/androidfont.c if (FONT_ENTITY_P (font)) font 831 src/androidfont.c entity = (struct androidfont_entity *) XFONT_ENTITY (font); font 840 src/androidfont.c info = (struct androidfont_info *) XFONT_OBJECT (font); font 850 src/androidfont.c androidfont_encode_char (struct font *font, int c) font 857 src/androidfont.c info = (struct androidfont_info *) font; font 910 src/androidfont.c androidfont_text_extents (struct font *font, const unsigned int *code, font 921 src/androidfont.c info = (struct androidfont_info *) font; font 2181 src/androidterm.c struct font *font = XFONT_OBJECT (font_object); font 2187 src/androidterm.c if (FRAME_FONT (f) == font) font 2192 src/androidterm.c FRAME_FONT (f) = font; font 2193 src/androidterm.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 2194 src/androidterm.c FRAME_COLUMN_WIDTH (f) = font->average_width; font 2195 src/androidterm.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 2557 src/androidterm.c if (s->font == FRAME_FONT (s->f) font 2606 src/androidterm.c if (s->font == s->face->font) font 2732 src/androidterm.c struct font *font = s->font; font 2733 src/androidterm.c font->driver->text_extents (font, s->char2b, s->nchars, &metrics); font 2779 src/androidterm.c else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 2784 src/androidterm.c || FONT_TOO_HIGH (s->font) font 3676 src/androidterm.c struct font *font = s->font; font 3677 src/androidterm.c int boff = font->baseline_offset; font 3680 src/androidterm.c if (font->vertical_centering) font 3681 src/androidterm.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 3686 src/androidterm.c font->driver->draw (s, 0, s->nchars, x, y, false); font 3688 src/androidterm.c font->driver->draw (s, 0, s->nchars, x, y, true); font 3690 src/androidterm.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 3698 src/androidterm.c struct font *font = s->font; font 3734 src/androidterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 3736 src/androidterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 3757 src/androidterm.c font->driver->draw (s, j, i, x, y, false); font 3759 src/androidterm.c font->driver->draw (s, j, i, x + 1, y, false); font 3765 src/androidterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 3767 src/androidterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 3776 src/androidterm.c font->driver->draw (s, j, i, x, y, false); font 3778 src/androidterm.c font->driver->draw (s, j, i, x + 1, y, false); font 3843 src/androidterm.c char2b[j] = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 3844 src/androidterm.c s->font->driver->draw (s, 0, upper_len, font 3848 src/androidterm.c s->font->driver->draw (s, upper_len, len, font 4020 src/androidterm.c struct font *font = font_for_underline_metrics (s); font 4044 src/androidterm.c if (font && font->underline_thickness > 0) font 4045 src/androidterm.c thickness = font->underline_thickness; font 4064 src/androidterm.c && font && font->underline_position >= 0) font 4065 src/androidterm.c position = font->underline_position; font 4066 src/androidterm.c else if (font) font 4067 src/androidterm.c position = (font->descent + 1) / 2; font 176 src/androidterm.h struct font *font; font 309 src/androidterm.h #define FRAME_FONT(f) ((f)->output_data.android->font) 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 1390 src/dispextern.h struct font *font; font 1746 src/dispextern.h struct font *font; font 3499 src/dispextern.h extern void get_font_ascent_descent (struct font *, int *, int *); font 3505 src/dispextern.h extern struct font *font_for_underline_metrics (struct glyph_string *); font 216 src/font.c struct font *font font 217 src/font.c = (struct font *) allocate_pseudovector (size, FONT_OBJECT_MAX, font 222 src/font.c eassert (font->max_width = 1024 * 1024 * 1024); font 226 src/font.c font->driver = NULL; font 227 src/font.c XSETFONT (font_object, font); font 232 src/font.c font->props[i] = AREF (entity, i); font 234 src/font.c font->props[FONT_EXTRA_INDEX] font 238 src/font.c font->props[FONT_SIZE_INDEX] = make_fixnum (pixelsize); font 447 src/font.c font_style_symbolic (Lisp_Object font, enum font_property_index prop, font 450 src/font.c Lisp_Object val = AREF (font, prop); font 751 src/font.c font_put_extra (Lisp_Object font, Lisp_Object prop, Lisp_Object val) font 753 src/font.c Lisp_Object extra = AREF (font, FONT_EXTRA_INDEX); font 767 src/font.c ASET (font, FONT_EXTRA_INDEX, Fcons (Fcons (prop, val), extra)); font 775 src/font.c ASET (font, FONT_EXTRA_INDEX, Fdelq (slot, extra)); font 1063 src/font.c font_parse_xlfd_1 (char *name, ptrdiff_t len, Lisp_Object font, int segments) font 1105 src/font.c ASET (font, FONT_FOUNDRY_INDEX, INTERN_FIELD_SYM (XLFD_FOUNDRY_INDEX)); font 1106 src/font.c ASET (font, FONT_FAMILY_INDEX, INTERN_FIELD_SYM (XLFD_FAMILY_INDEX)); font 1115 src/font.c ASET (font, j, make_fixnum (n)); font 1118 src/font.c ASET (font, FONT_ADSTYLE_INDEX, INTERN_FIELD_SYM (XLFD_ADSTYLE_INDEX)); font 1120 src/font.c ASET (font, FONT_REGISTRY_INDEX, Qnil); font 1122 src/font.c ASET (font, FONT_REGISTRY_INDEX, font 1128 src/font.c ASET (font, FONT_SIZE_INDEX, make_fixnum (pixel_size)); font 1133 src/font.c ASET (font, FONT_SIZE_INDEX, val); font 1134 src/font.c else if (FONT_ENTITY_P (font)) font 1140 src/font.c eassert (FONT_SPEC_P (font)); font 1147 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size)); font 1154 src/font.c ASET (font, FONT_DPI_INDEX, val); font 1161 src/font.c ASET (font, FONT_SPACING_INDEX, val); font 1169 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, val); font 1176 src/font.c if (FONT_ENTITY_P (font)) font 1197 src/font.c ASET (font, FONT_FOUNDRY_INDEX, prop[XLFD_FOUNDRY_INDEX]); font 1198 src/font.c ASET (font, FONT_FAMILY_INDEX, prop[XLFD_FAMILY_INDEX]); font 1205 src/font.c ASET (font, j, make_fixnum (n)); font 1207 src/font.c ASET (font, FONT_ADSTYLE_INDEX, prop[XLFD_ADSTYLE_INDEX]); font 1230 src/font.c ASET (font, FONT_REGISTRY_INDEX, Fintern (val, Qnil)); font 1233 src/font.c ASET (font, FONT_SIZE_INDEX, prop[XLFD_PIXEL_INDEX]); font 1238 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size / 10)); font 1242 src/font.c ASET (font, FONT_DPI_INDEX, prop[XLFD_RESY_INDEX]); font 1249 src/font.c ASET (font, FONT_SPACING_INDEX, val); font 1252 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, prop[XLFD_AVGWIDTH_INDEX]); font 1259 src/font.c font_parse_xlfd (char *name, ptrdiff_t len, Lisp_Object font) font 1261 src/font.c int found = font_parse_xlfd_1 (name, len, font, -1); font 1274 src/font.c return font_parse_xlfd_1 (name, len, font, segments); font 1285 src/font.c font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes) font 1292 src/font.c eassert (FONTP (font)); font 1301 src/font.c val = AREF (font, i); font 1332 src/font.c val = font_style_symbolic (font, i, 0); font 1355 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 1383 src/font.c if (FIXNUMP (AREF (font, FONT_DPI_INDEX))) font 1385 src/font.c EMACS_INT v = XFIXNUM (AREF (font, FONT_DPI_INDEX)); font 1392 src/font.c if (FIXNUMP (AREF (font, FONT_SPACING_INDEX))) font 1394 src/font.c EMACS_INT spacing = XFIXNUM (AREF (font, FONT_SPACING_INDEX)); font 1405 src/font.c if (FIXNUMP (AREF (font, FONT_AVGWIDTH_INDEX))) font 1408 src/font.c sprintf (p, "%"pI"d", XFIXNUM (AREF (font, FONT_AVGWIDTH_INDEX))); font 1439 src/font.c font_parse_fcname (char *name, ptrdiff_t len, Lisp_Object font) font 1489 src/font.c ASET (font, FONT_FAMILY_INDEX, family); font 1494 src/font.c ASET (font, FONT_SIZE_INDEX, make_float (point_size)); font 1531 src/font.c FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, val); font 1535 src/font.c FONT_SET_STYLE (font, FONT_SLANT_INDEX, val); font 1537 src/font.c ASET (font, FONT_SPACING_INDEX, font 1540 src/font.c ASET (font, FONT_SPACING_INDEX, font 1543 src/font.c ASET (font, FONT_SPACING_INDEX, font 1567 src/font.c ASET (font, prop, font_prop_validate (prop, Qnil, val)); font 1583 src/font.c (*driver_list->driver->filter_properties) (font, extra_props); font 1659 src/font.c ASET (font, FONT_FAMILY_INDEX, font 1662 src/font.c ASET (font, FONT_SIZE_INDEX, size); font 1664 src/font.c FONT_SET_STYLE (font, FONT_WEIGHT_INDEX, weight); font 1666 src/font.c FONT_SET_STYLE (font, FONT_SLANT_INDEX, slant); font 1668 src/font.c FONT_SET_STYLE (font, FONT_WIDTH_INDEX, width); font 1682 src/font.c font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes) font 1693 src/font.c family = AREF (font, FONT_FAMILY_INDEX); font 1702 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 1716 src/font.c foundry = AREF (font, FONT_FOUNDRY_INDEX); font 1726 src/font.c styles[i] = font_style_symbolic (font, FONT_WEIGHT_INDEX + i, 0); font 1751 src/font.c if (! NILP (AREF (font, FONT_FOUNDRY_INDEX))) font 1754 src/font.c SSDATA (SYMBOL_NAME (AREF (font, font 1770 src/font.c if (FIXNUMP (AREF (font, FONT_DPI_INDEX))) font 1773 src/font.c XFIXNUM (AREF (font, FONT_DPI_INDEX))); font 1779 src/font.c if (FIXNUMP (AREF (font, FONT_SPACING_INDEX))) font 1782 src/font.c XFIXNUM (AREF (font, FONT_SPACING_INDEX))); font 1788 src/font.c if (FIXNUMP (AREF (font, FONT_AVGWIDTH_INDEX))) font 1791 src/font.c (XFIXNUM (AREF (font, FONT_AVGWIDTH_INDEX)) == 0 font 1809 src/font.c font_parse_name (char *name, ptrdiff_t namelen, Lisp_Object font) font 1812 src/font.c return font_parse_xlfd (name, namelen, font); font 1813 src/font.c return font_parse_fcname (name, namelen, font); font 2220 src/font.c font_match_p (Lisp_Object spec, Lisp_Object font) font 2228 src/font.c && ! NILP (AREF (font, i)) font 2229 src/font.c && ! EQ (AREF (spec, i), AREF (font, i))) font 2241 src/font.c if (font_score (font, props) > 0) font 2244 src/font.c font_extra = AREF (font, FONT_EXTRA_INDEX); font 2283 src/font.c if (font_encode_char (font, XFIXNAT (XCAR (val2))) font 2295 src/font.c if (font_encode_char (font, XFIXNAT (AREF (val2, i))) font 2306 src/font.c struct font *fontp; font 2308 src/font.c if (! FONT_OBJECT_P (font)) font 2310 src/font.c fontp = XFONT_OBJECT (font); font 2426 src/font.c struct font *font = XFONT_OBJECT (val); font 2430 src/font.c eassert (font && driver == font->driver); font 2436 src/font.c driver->close_font (font); font 2704 src/font.c struct font *font; font 2739 src/font.c font = XFONT_OBJECT (font_object); font 2740 src/font.c if (font->average_width > 0 && font->height > 0) font 2751 src/font.c font = XFONT_OBJECT (font_object); font 2753 src/font.c int min_width = (font->min_width ? font->min_width font 2754 src/font.c : font->average_width ? font->average_width font 2755 src/font.c : font->space_width ? font->space_width font 2760 src/font.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 2790 src/font.c struct font *font = XFONT_OBJECT (font_object); font 2796 src/font.c font->driver->close_font (font); font 2808 src/font.c font_has_char (struct frame *f, Lisp_Object font, int c) font 2810 src/font.c struct font *fontp; font 2812 src/font.c if (FONT_ENTITY_P (font)) font 2814 src/font.c Lisp_Object type = AREF (font, FONT_TYPE_INDEX); font 2824 src/font.c return driver_list->driver->has_char (font, c); font 2827 src/font.c eassert (FONT_OBJECT_P (font)); font 2828 src/font.c fontp = XFONT_OBJECT (font); font 2831 src/font.c int result = fontp->driver->has_char (font, c); font 2845 src/font.c struct font *font; font 2848 src/font.c font = XFONT_OBJECT (font_object); font 2849 src/font.c return font->driver->encode_char (font, c); font 2883 src/font.c Lisp_Object font = attrs[LFACE_FONT_INDEX]; font 2885 src/font.c if (! FONTP (font)) font 2888 src/font.c if (! NILP (Ffont_get (font, QCname))) font 2890 src/font.c font = copy_font_spec (font); font 2891 src/font.c font_put_extra (font, QCname, Qunbound); font 2894 src/font.c if (NILP (AREF (font, prop)) font 2900 src/font.c if (EQ (font, attrs[LFACE_FONT_INDEX])) font 2901 src/font.c font = copy_font_spec (font); font 2902 src/font.c ASET (font, prop, Qnil); font 2907 src/font.c ASET (font, FONT_FOUNDRY_INDEX, Qnil); font 2911 src/font.c ASET (font, FONT_WIDTH_INDEX, Qnil); font 2913 src/font.c ASET (font, FONT_ADSTYLE_INDEX, Qnil); font 2914 src/font.c ASET (font, FONT_REGISTRY_INDEX, Qnil); font 2915 src/font.c ASET (font, FONT_SIZE_INDEX, Qnil); font 2916 src/font.c ASET (font, FONT_DPI_INDEX, Qnil); font 2917 src/font.c ASET (font, FONT_SPACING_INDEX, Qnil); font 2918 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2922 src/font.c ASET (font, FONT_DPI_INDEX, Qnil); font 2923 src/font.c ASET (font, FONT_SPACING_INDEX, Qnil); font 2924 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2927 src/font.c ASET (font, FONT_AVGWIDTH_INDEX, Qnil); font 2928 src/font.c attrs[LFACE_FONT_INDEX] = font; font 3264 src/font.c if (face->font->driver->prepare_face) font 3265 src/font.c face->font->driver->prepare_face (f, face); font 3274 src/font.c if (face->font->driver->done_face) font 3275 src/font.c face->font->driver->done_face (f, face); font 3536 src/font.c font_filter_properties (Lisp_Object font, font 3566 src/font.c Ffont_put (font, key, val); font 3577 src/font.c Ffont_put (font, key, val); font 3649 src/font.c if (! face->font) font 3652 src/font.c XSETFONT (font_object, face->font); font 3912 src/font.c copy_font_spec (Lisp_Object font) font 3918 src/font.c CHECK_FONT (font); font 3928 src/font.c memcpy (spec->props + 1, XVECTOR (font)->contents + 1, font 3933 src/font.c for (tail = AREF (font, FONT_EXTRA_INDEX); CONSP (tail); tail = XCDR (tail)) font 4003 src/font.c (Lisp_Object font, Lisp_Object key) font 4008 src/font.c CHECK_FONT (font); font 4013 src/font.c return font_style_symbolic (font, idx, 0); font 4015 src/font.c return AREF (font, idx); font 4016 src/font.c val = Fassq (key, AREF (font, FONT_EXTRA_INDEX)); font 4017 src/font.c if (NILP (val) && FONT_OBJECT_P (font)) font 4019 src/font.c struct font *fontp = XFONT_OBJECT (font); font 4054 src/font.c (Lisp_Object font, Lisp_Object frame) font 4061 src/font.c if (STRINGP (font)) font 4063 src/font.c int fontset = fs_query_fontset (font, 0); font 4064 src/font.c Lisp_Object name = font; font 4066 src/font.c font = fontset_ascii (fontset); font 4067 src/font.c font = font_spec_from_name (name); font 4068 src/font.c if (! FONTP (font)) font 4071 src/font.c else if (! FONTP (font)) font 4072 src/font.c signal_error ("Invalid font object", font); font 4074 src/font.c val = AREF (font, FONT_FAMILY_INDEX); font 4081 src/font.c val = AREF (font, FONT_SIZE_INDEX); font 4084 src/font.c Lisp_Object font_dpi = AREF (font, FONT_DPI_INDEX); font 4095 src/font.c val = FONT_WEIGHT_FOR_FACE (font); font 4102 src/font.c val = FONT_SLANT_FOR_FACE (font); font 4109 src/font.c val = FONT_WIDTH_FOR_FACE (font); font 4133 src/font.c (Lisp_Object font, Lisp_Object prop, Lisp_Object val) font 4140 src/font.c CHECK_FONT_SPEC (font); font 4141 src/font.c ASET (font, idx, font_prop_validate (idx, Qnil, val)); font 4149 src/font.c CHECK_FONT_SPEC (font); font 4151 src/font.c CHECK_FONT (font); font 4152 src/font.c font_put_extra (font, prop, font_prop_validate (0, prop, val)); font 4244 src/font.c (Lisp_Object font, Lisp_Object fold_wildcards) font 4249 src/font.c CHECK_FONT (font); font 4251 src/font.c if (FONT_OBJECT_P (font)) font 4253 src/font.c Lisp_Object font_name = AREF (font, FONT_NAME_INDEX); font 4264 src/font.c pixel_size = XFONT_OBJECT (font)->pixel_size; font 4266 src/font.c namelen = font_unparse_xlfd (font, pixel_size, name, 256); font 4322 src/font.c font_fill_lglyph_metrics (Lisp_Object glyph, struct font *font, unsigned int code) font 4327 src/font.c font->driver->text_extents (font, &code, 1, &metrics); font 4353 src/font.c struct font *font; font 4367 src/font.c font = XFONT_OBJECT (font_object); font 4368 src/font.c if (! font->driver->shape) font 4374 src/font.c n = font->driver->shape (gstring, direction); font 4435 src/font.c struct font *font; font 4441 src/font.c font = XFONT_OBJECT (font_object); font 4442 src/font.c if (! font->driver->get_variation_glyphs) font 4444 src/font.c n = font->driver->get_variation_glyphs (font, XFIXNUM (character), variations); font 4549 src/font.c if (! face->font) font 4551 src/font.c unsigned code = face->font->driver->encode_char (face->font, c); font 4555 src/font.c XSETFONT (font_object, face->font); font 4695 src/font.c font_otf_capability (struct font *font) font 4701 src/font.c otf = otf_open (font->props[FONT_FILE_INDEX]); font 4889 src/font.c struct font *font; font 4894 src/font.c font = XFONT_OBJECT (font_object); font 4895 src/font.c if (! font->driver->otf_drive) font 4897 src/font.c SDATA (SYMBOL_NAME (font->driver->type))); font 4915 src/font.c num = font->driver->otf_drive (font, otf_features, font 4937 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 4942 src/font.c if (! font->driver->otf_drive) font 4944 src/font.c SDATA (SYMBOL_NAME (font->driver->type))); font 4952 src/font.c while ((num = font->driver->otf_drive (font, otf_features, gstring_in, 0, 1, font 5052 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 5056 src/font.c make_fixnum (font->pixel_size), font 5057 src/font.c make_fixnum (font->max_width), font 5058 src/font.c make_fixnum (font->ascent), font 5059 src/font.c make_fixnum (font->descent), font 5060 src/font.c make_fixnum (font->space_width), font 5061 src/font.c make_fixnum (font->average_width), font 5062 src/font.c (font->driver->otf_capability font 5063 src/font.c ? Fcons (Qopentype, font->driver->otf_capability (font)) font 5074 src/font.c (Lisp_Object font, Lisp_Object ch, Lisp_Object frame) font 5077 src/font.c CHECK_FONT (font); font 5088 src/font.c if (font_has_char (f, font, XFIXNAT (ch)) <= 0) font 5122 src/font.c struct font *font = CHECK_FONT_GET_OBJECT (font_object); font 5200 src/font.c code = font->driver->encode_char (font, c); font 5211 src/font.c font->driver->text_extents (font, &code, 1, &metrics); font 5227 src/font.c (Lisp_Object spec, Lisp_Object font) font 5230 src/font.c CHECK_FONT (font); font 5232 src/font.c return (font_match_p (spec, font) ? Qt : Qnil); font 5275 src/font.c struct font *font; font 5280 src/font.c CHECK_FONT_GET_OBJECT (font_object, font); font 5290 src/font.c code[i] = font->driver->encode_char (font, c); font 5295 src/font.c face->fontp = font; font 5296 src/font.c if (font->driver->prepare_face) font 5297 src/font.c font->driver->prepare_face (f, face); font 5298 src/font.c width = font->driver->text_extents (font, code, i, NULL); font 5299 src/font.c len = font->driver->draw_text (f, face, 0, font->ascent, code, i, width); font 5300 src/font.c if (font->driver->done_face) font 5301 src/font.c font->driver->done_face (f, face); font 5372 src/font.c struct font *font; font 5401 src/font.c font = XFONT_OBJECT (font_object); font 5409 src/font.c make_fixnum (font->pixel_size), font 5410 src/font.c make_fixnum (font->height), font 5411 src/font.c make_fixnum (font->baseline_offset), font 5412 src/font.c make_fixnum (font->relative_compose), font 5413 src/font.c make_fixnum (font->default_ascent), font 5414 src/font.c make_fixnum (font->max_width), font 5415 src/font.c make_fixnum (font->ascent), font 5416 src/font.c make_fixnum (font->descent), font 5417 src/font.c make_fixnum (font->space_width), font 5418 src/font.c make_fixnum (font->average_width), font 5420 src/font.c (font->driver->otf_capability font 5421 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 532 src/font.h INLINE struct font * font 536 src/font.h return XUNTAG (p, Lisp_Vectorlike, struct font); font 539 src/font.h INLINE struct font * font 543 src/font.h return XUNTAG (p, Lisp_Vectorlike, struct font); font 548 src/font.h INLINE struct font * font 643 src/font.h void (*close_font) (struct font *font); font 657 src/font.h int (*has_char) (Lisp_Object font, int c); font 661 src/font.h unsigned (*encode_char) (struct font *font, int c); font 666 src/font.h void (*text_extents) (struct font *font, font 684 src/font.h int (*get_bitmap) (struct font *font, unsigned code, font 690 src/font.h void (*free_bitmap) (struct font *font, struct font_bitmap *bitmap); font 698 src/font.h int (*anchor_point) (struct font *font, unsigned code, int index, font 707 src/font.h Lisp_Object (*otf_capability) (struct font *font); font 728 src/font.h int (*otf_drive) (struct font *font, Lisp_Object features, font 765 src/font.h int (*check) (struct frame *f, struct font *font); font 772 src/font.h int (*get_variation_glyphs) (struct font *font, font 781 src/font.h void (*filter_properties) (Lisp_Object font, Lisp_Object properties); font 793 src/font.h Lisp_Object (*combining_capability) (struct font *font); font 807 src/font.h hb_font_t *(*begin_hb_font) (struct font *font, double *position_unit); font 813 src/font.h void (*end_hb_font) (struct font *font, hb_font_t *hb_font); font 850 src/font.h extern Lisp_Object font_style_symbolic (Lisp_Object font, font 854 src/font.h extern bool font_match_p (Lisp_Object spec, Lisp_Object font); font 887 src/font.h extern int font_parse_xlfd (char *name, ptrdiff_t len, Lisp_Object font); font 888 src/font.h extern ptrdiff_t font_unparse_xlfd (Lisp_Object font, int pixel_size, font 905 src/font.h extern void font_fill_lglyph_metrics (Lisp_Object, struct font *, unsigned int); font 907 src/font.h extern Lisp_Object font_put_extra (Lisp_Object font, Lisp_Object prop, font 911 src/font.h extern Lisp_Object hbfont_otf_capability (struct font *); font 913 src/font.h extern Lisp_Object hbfont_combining_capability (struct font *); font 921 src/font.h extern void font_filter_properties (Lisp_Object font, font 929 src/font.h extern int ftfont_anchor_point (struct font *, unsigned int, int, font 931 src/font.h extern int ftfont_get_bitmap (struct font *, unsigned int, font 934 src/font.h extern int ftfont_variation_glyphs (struct font *, int, unsigned[256]); font 935 src/font.h extern Lisp_Object ftfont_combining_capability (struct font *); font 941 src/font.h extern Lisp_Object ftfont_otf_capability (struct font *); font 943 src/font.h extern unsigned ftfont_encode_char (struct font *, int); font 944 src/font.h extern void ftfont_close (struct font *); font 946 src/font.h extern void ftfont_text_extents (struct font *, const unsigned *, int, font 949 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 974 src/fontset.c if (face->ascii_face->font) font 976 src/fontset.c XSETFONT (font_object, face->ascii_face->font); font 989 src/fontset.c if (face->font) font 991 src/fontset.c XSETFONT (font_object, face->font); font 1003 src/fontset.c if (face->fontset < 0 && !face->font) font 1070 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 829 src/haikufont.c font = (struct font *) font_info; font 831 src/haikufont.c if (!font) font 843 src/haikufont.c font->pixel_size = 0; font 844 src/haikufont.c font->driver = &haikufont_driver; font 845 src/haikufont.c font->encoding_charset = -1; font 846 src/haikufont.c font->repertory_charset = -1; font 847 src/haikufont.c font->default_ascent = 0; font 848 src/haikufont.c font->vertical_centering = 0; font 849 src/haikufont.c font->baseline_offset = 0; font 850 src/haikufont.c font->relative_compose = 0; font 860 src/haikufont.c font->pixel_size = px_size; font 861 src/haikufont.c font->min_width = min_width; font 862 src/haikufont.c font->max_width = max_width; font 863 src/haikufont.c font->average_width = avg_width; font 864 src/haikufont.c font->height = height; font 865 src/haikufont.c font->space_width = space_width; font 866 src/haikufont.c font->ascent = ascent; font 867 src/haikufont.c font->descent = descent; font 868 src/haikufont.c font->default_ascent = ascent; font 869 src/haikufont.c font->underline_position = underline_pos; font 870 src/haikufont.c font->underline_thickness = underline_thickness; font 872 src/haikufont.c font->vertical_centering = 0; font 873 src/haikufont.c font->baseline_offset = 0; font 874 src/haikufont.c font->relative_compose = 0; font 876 src/haikufont.c font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); font 883 src/haikufont.c haikufont_close (struct font *font) font 885 src/haikufont.c struct haikufont_info *info = (struct haikufont_info *) font; font 921 src/haikufont.c haikufont_glyph_extents (struct font *font, unsigned code, font 924 src/haikufont.c struct haikufont_info *info = (struct haikufont_info *) font; font 965 src/haikufont.c cache->ascent = font->ascent; font 966 src/haikufont.c cache->descent = font->descent; font 974 src/haikufont.c haikufont_text_extents (struct font *font, const unsigned int *code, font 984 src/haikufont.c haikufont_glyph_extents (font, code[i], &m); font 1008 src/haikufont.c struct haikufont_info *font = font 1054 src/haikufont.c eassert (font->be_font); font 1055 src/haikufont.c BFont_nchar_bounds (font->be_font, b, advance, lb, rb, len); font 1075 src/haikufont.c LGLYPH_SET_ASCENT (tem, font->font.ascent); font 1076 src/haikufont.c LGLYPH_SET_DESCENT (tem, font->font.descent); font 1090 src/haikufont.c struct font_info *info = (struct font_info *) s->font; font 1110 src/haikufont.c int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font); font 1204 src/haikufont.c haikufont_filter_properties (Lisp_Object font, Lisp_Object alist) font 1206 src/haikufont.c font_filter_properties (font, alist, haikufont_booleans, font 1245 src/haikufont.c struct font *font; font 1263 src/haikufont.c font = FRAME_FONT (f); font 1265 src/haikufont.c if (font) font 1267 src/haikufont.c XSETFONT (font_object, font); font 1274 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 1795 src/image.c if (face->font) font 1799 src/image.c ascent = height / 2 - (FONT_DESCENT (face->font) font 1800 src/image.c - FONT_BASE (face->font)) / 2; font 1807 src/image.c ascent = (height + FONT_BASE (face->font) font 1808 src/image.c - FONT_DESCENT (face->font) + 1) / 2; font 3347 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 1071 src/pgtkfns.c Lisp_Object font = Qnil; font 1082 src/pgtkfns.c font = font_open_by_name (f, build_unibyte_string (system_font)); font 1085 src/pgtkfns.c if (NILP (font)) font 1086 src/pgtkfns.c font = !NILP (font_param) ? font_param font 1090 src/pgtkfns.c if (!FONTP (font) && !STRINGP (font)) font 1110 src/pgtkfns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 1111 src/pgtkfns.c if (!NILP (font)) font 1114 src/pgtkfns.c if (NILP (font)) font 1119 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 1384 src/pgtkterm.c else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 1389 src/pgtkterm.c || FONT_TOO_HIGH (s->font) font 1445 src/pgtkterm.c struct font *font = s->font; font 1446 src/pgtkterm.c int boff = font->baseline_offset; font 1449 src/pgtkterm.c if (font->vertical_centering) font 1450 src/pgtkterm.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 1454 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x, y, false); font 1456 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x, y, true); font 1458 src/pgtkterm.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 1467 src/pgtkterm.c struct font *font = s->font; font 1502 src/pgtkterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 1504 src/pgtkterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 1525 src/pgtkterm.c font->driver->draw (s, j, i, x, y, false); font 1527 src/pgtkterm.c font->driver->draw (s, j, i, x + 1, y, false); font 1533 src/pgtkterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 1535 src/pgtkterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 1544 src/pgtkterm.c font->driver->draw (s, j, i, x, y, false); font 1546 src/pgtkterm.c font->driver->draw (s, j, i, x + 1, y, false); font 1617 src/pgtkterm.c = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 1618 src/pgtkterm.c s->font->driver->draw (s, 0, upper_len, font 1622 src/pgtkterm.c s->font->driver->draw (s, upper_len, len, font 2571 src/pgtkterm.c struct font *font = font_for_underline_metrics (s); font 2574 src/pgtkterm.c if (font && font->underline_thickness > 0) font 2575 src/pgtkterm.c thickness = font->underline_thickness; font 2594 src/pgtkterm.c && font && font->underline_position >= 0) font 2595 src/pgtkterm.c position = font->underline_position; font 2596 src/pgtkterm.c else if (font) font 2597 src/pgtkterm.c position = (font->descent + 1) / 2; font 314 src/pgtkterm.h struct font *font; font 454 src/pgtkterm.h #define FRAME_FONT(f) (FRAME_X_OUTPUT (f)->font) font 15370 src/sfnt.c Font font; font 15454 src/sfnt.c font = XLoadFont (display, "6x13"); font 15456 src/sfnt.c if (!font) font 15459 src/sfnt.c gcvalues.font = font; font 18307 src/sfnt.c Font font; font 18324 src/sfnt.c font = XLoadFont (display, "6x13"); font 18326 src/sfnt.c if (!font) font 18333 src/sfnt.c gcv.font = font; font 18920 src/sfnt.c struct sfnt_offset_subtable *font; font 18991 src/sfnt.c font = sfnt_read_table_directory (fd); font 18993 src/sfnt.c if (font == (struct sfnt_offset_subtable *) -1) font 19021 src/sfnt.c font = sfnt_read_table_directory (fd); font 19024 src/sfnt.c if (!font || font == (struct sfnt_offset_subtable *) -1) font 19030 src/sfnt.c for (i = 0; i < font->num_tables; ++i) font 19033 src/sfnt.c font->subtables[i].tag, font 19034 src/sfnt.c font->subtables[i].offset); font 19036 src/sfnt.c table = sfnt_read_cmap_table (fd, font, &subtables, &data); font 19041 src/sfnt.c xfree (font); font 19079 src/sfnt.c head = sfnt_read_head_table (fd, font); font 19080 src/sfnt.c hhea = sfnt_read_hhea_table (fd, font); font 19081 src/sfnt.c glyf = sfnt_read_glyf_table (fd, font); font 19082 src/sfnt.c maxp = sfnt_read_maxp_table (fd, font); font 19083 src/sfnt.c name = sfnt_read_name_table (fd, font); font 19084 src/sfnt.c meta = sfnt_read_meta_table (fd, font); font 19085 src/sfnt.c cvt = sfnt_read_cvt_table (fd, font); font 19086 src/sfnt.c fpgm = sfnt_read_fpgm_table (fd, font); font 19087 src/sfnt.c prep = sfnt_read_prep_table (fd, font); font 19088 src/sfnt.c fvar = sfnt_read_fvar_table (fd, font); font 19089 src/sfnt.c gvar = sfnt_read_gvar_table (fd, font); font 19090 src/sfnt.c avar = sfnt_read_avar_table (fd, font); font 19095 src/sfnt.c cvar = sfnt_read_cvar_table (fd, font, fvar, cvt); font 19211 src/sfnt.c hmtx = sfnt_read_hmtx_table (fd, font, hhea, maxp); font 19219 src/sfnt.c loca_long = sfnt_read_loca_table_long (fd, font); font 19228 src/sfnt.c loca_short = sfnt_read_loca_table_short (fd, font); font 19327 src/sfnt.c hmtx = sfnt_read_hmtx_table (fd, font, hhea, maxp); font 19392 src/sfnt.c loca_long = sfnt_read_loca_table_long (fd, font); font 19401 src/sfnt.c loca_short = sfnt_read_loca_table_short (fd, font); font 19735 src/sfnt.c xfree (font); font 449 src/sfntfont-android.c background.y = y - FONT_BASE (s->font); font 451 src/sfntfont-android.c background.height = FONT_HEIGHT (s->font); font 1332 src/sfntfont.c struct sfnt_offset_subtable *font; font 1344 src/sfntfont.c font = sfnt_read_table_directory (fd); font 1346 src/sfntfont.c if (!font) font 1352 src/sfntfont.c table = sfnt_read_cmap_table (fd, font, &subtables, font 1354 src/sfntfont.c xfree (font); font 2366 src/sfntfont.c struct font font; font 2463 src/sfntfont.c charset = CHARSET_FROM_ID (font_info->font.encoding_charset); font 2494 src/sfntfont.c font_info->font.average_width = font_info->font.pixel_size; font 2495 src/sfntfont.c font_info->font.space_width = font_info->font.pixel_size; font 2496 src/sfntfont.c font_info->font.min_width = 1; font 2508 src/sfntfont.c if (sfnt_lookup_glyph_metrics (glyph, font_info->font.pixel_size, font 2521 src/sfntfont.c if (font_info->font.min_width == 1 font 2522 src/sfntfont.c || font_info->font.min_width > metrics.advance / 65536) font 2523 src/sfntfont.c font_info->font.min_width = metrics.advance / 65536; font 2528 src/sfntfont.c font_info->font.space_width font 2534 src/sfntfont.c font_info->font.average_width = total_width / num_characters; font 2584 src/sfntfont.c info->font.pixel_size, font 2937 src/sfntfont.c struct font *font; font 3046 src/sfntfont.c font = &font_info->font; font 3047 src/sfntfont.c font->pixel_size = pixel_size; font 3048 src/sfntfont.c font->driver = sfnt_font_driver; font 3049 src/sfntfont.c font->encoding_charset = font->repertory_charset = -1; font 3058 src/sfntfont.c font->encoding_charset = charset->id; font 3059 src/sfntfont.c font->repertory_charset = charset->id; font 3062 src/sfntfont.c font->ascent font 3065 src/sfntfont.c font->descent font 3068 src/sfntfont.c font->height = font->ascent + font->descent; font 3071 src/sfntfont.c font->max_width = (font_info->hhea->advance_width_max font 3107 src/sfntfont.c font_info->font.baseline_offset = 0; font 3108 src/sfntfont.c font_info->font.relative_compose = 0; font 3109 src/sfntfont.c font_info->font.default_ascent = 0; font 3110 src/sfntfont.c font_info->font.vertical_centering = 0; font 3111 src/sfntfont.c font_info->font.underline_position = -1; font 3112 src/sfntfont.c font_info->font.underline_thickness = 0; font 3183 src/sfntfont.c font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil); font 3224 src/sfntfont.c sfntfont_encode_char (struct font *font, int c) font 3229 src/sfntfont.c glyph = sfntfont_lookup_glyph ((struct sfnt_font_info *) font, c); font 3245 src/sfntfont.c sfntfont_measure_pcm (struct sfnt_font_info *font, sfnt_glyph glyph, font 3253 src/sfntfont.c outline = sfntfont_get_glyph_outline (glyph, &font->outline_cache, font 3254 src/sfntfont.c font->scale, font 3255 src/sfntfont.c &font->outline_cache_size, font 3256 src/sfntfont.c &font->blend, font 3257 src/sfntfont.c font->instance, font 3258 src/sfntfont.c font->glyf, font->head, font 3259 src/sfntfont.c font->hmtx, font->hhea, font 3260 src/sfntfont.c font->maxp, font 3261 src/sfntfont.c font->loca_short, font 3262 src/sfntfont.c font->loca_long, font 3263 src/sfntfont.c font->interpreter, &metrics, font 3264 src/sfntfont.c &font->state); font 3286 src/sfntfont.c sfntfont_text_extents (struct font *font, const unsigned int *code, font 3300 src/sfntfont.c if (!sfntfont_measure_pcm ((struct sfnt_font_info *) font, font 3329 src/sfntfont.c sfntfont_close (struct font *font) font 3336 src/sfntfont.c info = (struct sfnt_font_info *) font; font 3424 src/sfntfont.c struct font *font; font 3429 src/sfntfont.c font = s->font; font 3430 src/sfntfont.c info = (struct sfnt_font_info *) font; font 3541 src/sfntfont.c sfntfont_get_variation_glyphs (struct font *font, int c, font 3549 src/sfntfont.c info = (struct sfnt_font_info *) font; font 3742 src/sfntfont.c sfntfont_begin_hb_font (struct font *font, double *position_unit) font 3748 src/sfntfont.c info = (struct sfnt_font_info *) font; font 3758 src/sfntfont.c face = hb_face_create_for_tables (sfntfont_get_font_table, font, font 3767 src/sfntfont.c factor = font->pixel_size; font 38 src/sfntfont.h extern unsigned int sfntfont_encode_char (struct font *, int); font 39 src/sfntfont.h extern void sfntfont_text_extents (struct font *, const unsigned int *, font 41 src/sfntfont.h extern void sfntfont_close (struct font *); font 45 src/sfntfont.h extern int sfntfont_get_variation_glyphs (struct font *, int, unsigned[256]); font 75 src/sfntfont.h extern hb_font_t *sfntfont_begin_hb_font (struct font *, double *); font 5804 src/w32fns.c Lisp_Object font; font 5807 src/w32fns.c font = !NILP (font_param) ? font_param font 5811 src/w32fns.c if (!STRINGP (font)) font 5823 src/w32fns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 5824 src/w32fns.c if (! NILP (font)) font 5827 src/w32fns.c if (NILP (font)) font 5831 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 6680 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 2296 src/xdisp.c if (face->font) font 2297 src/xdisp.c height = normal_char_height (face->font, -1); font 5522 src/xdisp.c struct font *font = NULL; font 5524 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 5527 src/xdisp.c font, true, NULL); font 5998 src/xdisp.c * (normal_char_height (face->font, -1))); font 10716 src/xdisp.c struct font *face_font = face->font; font 23416 src/xdisp.c struct font *font = (default_face->font font 23417 src/xdisp.c ? default_face->font font 23419 src/xdisp.c char_width = (font->average_width font 23420 src/xdisp.c ? font->average_width font 23421 src/xdisp.c : font->space_width); font 23476 src/xdisp.c struct font *font = face->font ? face->font : FRAME_FONT (it->f); font 23481 src/xdisp.c int boff = font->baseline_offset; font 23483 src/xdisp.c if (font->vertical_centering) font 23484 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 23487 src/xdisp.c normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); font 23500 src/xdisp.c height = calc_line_height_property (it, height, font, boff, true); font 23521 src/xdisp.c spacing = calc_line_height_property (it, total_height, font, font 23526 src/xdisp.c spacing = calc_line_height_property (it, spacing, font, font 23691 src/xdisp.c struct font *font = (default_face->font font 23692 src/xdisp.c ? default_face->font font 23695 src/xdisp.c const int char_width = (font->average_width font 23696 src/xdisp.c ? font->average_width font 23697 src/xdisp.c : font->space_width); font 23715 src/xdisp.c (stretch_height * FONT_BASE (font)) / FONT_HEIGHT (font); font 23785 src/xdisp.c struct font *font = face->font ? face->font : FRAME_FONT (f); font 23812 src/xdisp.c * FONT_BASE (font)) / FONT_HEIGHT (font)); font 29239 src/xdisp.c struct font *font, bool width_p, int *align_to) font 29285 src/xdisp.c return OK_PIXELS (font font 29286 src/xdisp.c ? normal_char_height (font, -1) font 29290 src/xdisp.c return OK_PIXELS (font font 29291 src/xdisp.c ? (font->average_width font 29292 src/xdisp.c ? font->average_width font 29293 src/xdisp.c : font->space_width) font 29415 src/xdisp.c font, width_p, align_to)) font 29443 src/xdisp.c font, width_p, align_to)) font 29455 src/xdisp.c get_font_ascent_descent (struct font *font, int *ascent, int *descent) font 29458 src/xdisp.c normal_char_ascent_descent (font, -1, ascent, descent); font 29488 src/xdisp.c fprintf (stderr, " font height = %d\n", FONT_HEIGHT (s->font)); font 29609 src/xdisp.c if (face->font) font 29611 src/xdisp.c code = face->font->driver->encode_char (face->font, c); font 29649 src/xdisp.c if (face->font) font 29654 src/xdisp.c code = face->font->driver->encode_char (face->font, glyph->u.ch); font 29670 src/xdisp.c get_char_glyph_code (int c, struct font *font, unsigned *char2b) font 29677 src/xdisp.c code = font->driver->encode_char (font, c); font 29712 src/xdisp.c s->font = NULL; font 29731 src/xdisp.c s->font = s->face->font; font 29744 src/xdisp.c s->font = s->face->font; font 29771 src/xdisp.c if (s->font == NULL) font 29774 src/xdisp.c s->font = FRAME_FONT (s->f); font 29816 src/xdisp.c s->font = XFONT_OBJECT (LGSTRING_FONT (lgstring)); font 29872 src/xdisp.c s->font = s->face->font ? s->face->font : FRAME_FONT (s->f); font 29946 src/xdisp.c s->font = s->face->font; font 29968 src/xdisp.c if (s->font == NULL || glyph_not_available_p) font 29971 src/xdisp.c s->font = FRAME_FONT (s->f); font 29992 src/xdisp.c s->font = s->face->font; font 30018 src/xdisp.c s->font = s->face->font; font 30055 src/xdisp.c s->font = s->face->font; font 30090 src/xdisp.c get_per_char_metric (struct font *font, const unsigned *char2b) font 30094 src/xdisp.c if (! font) font 30099 src/xdisp.c font->driver->text_extents (font, char2b, 1, &metrics); font 30110 src/xdisp.c normal_char_ascent_descent (struct font *font, int c, int *ascent, int *descent) font 30112 src/xdisp.c *ascent = FONT_BASE (font); font 30113 src/xdisp.c *descent = FONT_DESCENT (font); font 30115 src/xdisp.c if (FONT_TOO_HIGH (font)) font 30121 src/xdisp.c if (get_char_glyph_code (c >= 0 ? c : '{', font, &char2b)) font 30123 src/xdisp.c struct font_metrics *pcm = get_per_char_metric (font, &char2b); font 30144 src/xdisp.c normal_char_height (struct font *font, int c) font 30148 src/xdisp.c normal_char_ascent_descent (font, c, &ascent, &descent); font 30167 src/xdisp.c if (face->font) font 30169 src/xdisp.c struct font_metrics *pcm = get_per_char_metric (face->font, &char2b); font 30953 src/xdisp.c struct font * font 30967 src/xdisp.c return s->font; font 30972 src/xdisp.c return FACE_FROM_ID (s->f, g[1].face_id)->font; font 31592 src/xdisp.c struct font *font = NULL; font 31602 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 31613 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, true, NULL)) font 31657 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, true, font 31706 src/xdisp.c int default_height = normal_char_height (font, ' '); font 31709 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, false, NULL)) font 31730 src/xdisp.c && calc_pixel_width_or_height (&tem, it, prop, font, false, 0)) font 31733 src/xdisp.c ascent = (height * FONT_BASE (font)) / FONT_HEIGHT (font); font 31860 src/xdisp.c struct font *font = font 31861 src/xdisp.c face->font ? face->font : FRAME_FONT (temp_it.f); font 31864 src/xdisp.c * FONT_BASE (font)) / FONT_HEIGHT (font)); font 31927 src/xdisp.c calc_line_height_property (struct it *it, Lisp_Object val, struct font *font, font 31951 src/xdisp.c font = FRAME_FONT (it->f); font 31965 src/xdisp.c if (face == NULL || ((font = face->font) == NULL)) font 31967 src/xdisp.c boff = font->baseline_offset; font 31968 src/xdisp.c if (font->vertical_centering) font 31969 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 31972 src/xdisp.c normal_char_ascent_descent (font, -1, &ascent, &descent); font 32095 src/xdisp.c struct font *font; font 32103 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 32104 src/xdisp.c normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); font 32105 src/xdisp.c it->ascent += font->baseline_offset; font 32106 src/xdisp.c it->descent -= font->baseline_offset; font 32108 src/xdisp.c base_width = font->average_width; font 32139 src/xdisp.c font = face->font ? face->font : FRAME_FONT (it->f); font 32157 src/xdisp.c code[len] = font->driver->encode_char (font, str[len]); font 32159 src/xdisp.c font->driver->text_extents (font, code, upper_len, font 32161 src/xdisp.c font->driver->text_extents (font, code + upper_len, len - upper_len, font 32262 src/xdisp.c struct font *font = face->font; font 32266 src/xdisp.c if (font == NULL) font 32279 src/xdisp.c boff = font->baseline_offset; font 32280 src/xdisp.c if (font->vertical_centering) font 32281 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 32295 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 32296 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 32299 src/xdisp.c if (get_char_glyph_code (it->char_to_display, font, &char2b)) font 32301 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32316 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32334 src/xdisp.c it->pixel_width = font->space_width; font 32385 src/xdisp.c int ascent = (((it->ascent + it->descent) * FONT_BASE (font)) font 32386 src/xdisp.c / FONT_HEIGHT (font)); font 32426 src/xdisp.c height = calc_line_height_property (it, height, font, boff, true); font 32436 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32438 src/xdisp.c it->ascent = font->pixel_size + boff - 1; font 32445 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 32446 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 32486 src/xdisp.c spacing = calc_line_height_property (it, total_height, font, font 32491 src/xdisp.c spacing = calc_line_height_property (it, spacing, font, font 32504 src/xdisp.c if (font->space_width > 0) font 32506 src/xdisp.c int tab_width = it->tab_width * font->space_width; font 32523 src/xdisp.c if (next_tab_x - x < font->space_width) font 32541 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32543 src/xdisp.c if (get_char_glyph_code (' ', font, &char2b)) font 32545 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32558 src/xdisp.c it->ascent = font->pixel_size + boff - 1; font 32568 src/xdisp.c it->ascent = FONT_BASE (font) + boff; font 32569 src/xdisp.c it->descent = FONT_DESCENT (font) - boff; font 32587 src/xdisp.c if (FONT_TOO_HIGH (font)) font 32598 src/xdisp.c normal_char_ascent_descent (font, -1, &font_ascent, &font_descent); font 32622 src/xdisp.c struct font *font = face->font; font 32633 src/xdisp.c if (! cmp->font || cmp->font != font) font 32667 src/xdisp.c bool font_not_found_p = font == NULL; font 32671 src/xdisp.c font = face->font; font 32673 src/xdisp.c boff = font->baseline_offset; font 32674 src/xdisp.c if (font->vertical_centering) font 32675 src/xdisp.c boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; font 32676 src/xdisp.c normal_char_ascent_descent (font, -1, &font_ascent, &font_descent); font 32681 src/xdisp.c cmp->font = font; font 32688 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32702 src/xdisp.c width = cmp->glyph_len > 0 ? font->space_width : 0; font 32703 src/xdisp.c ascent = FONT_BASE (font); font 32704 src/xdisp.c descent = FONT_DESCENT (font); font 32715 src/xdisp.c && font->default_ascent font 32719 src/xdisp.c highest = font->default_ascent + boff; font 32741 src/xdisp.c font = this_face->font; font 32743 src/xdisp.c if (font == NULL) font 32749 src/xdisp.c pcm = get_per_char_metric (font, &char2b); font 32766 src/xdisp.c if (font->relative_compose font 32772 src/xdisp.c if (- descent >= font->relative_compose) font 32925 src/xdisp.c it->pixel_width = face->font->space_width; font 1613 src/xfaces.c Lisp_Object font = AREF (vec, i); font 1614 src/xfaces.c int point = PIXEL_TO_POINT (XFIXNUM (AREF (font, FONT_SIZE_INDEX)) * 10, font 1616 src/xfaces.c Lisp_Object spacing = Ffont_get (font, QCspacing); font 1618 src/xfaces.c AREF (font, FONT_FAMILY_INDEX), font 1619 src/xfaces.c FONT_WIDTH_SYMBOLIC (font), font 1621 src/xfaces.c FONT_WEIGHT_SYMBOLIC (font), font 1622 src/xfaces.c FONT_SLANT_SYMBOLIC (font), font 1632 src/xfaces.c Ffont_xlfd_name (font, Qnil), font 1633 src/xfaces.c AREF (font, FONT_REGISTRY_INDEX)); font 1702 src/xfaces.c if (width_face && width_face->font) font 1704 src/xfaces.c size = width_face->font->pixel_size; font 1705 src/xfaces.c avgwidth = width_face->font->average_width; font 2154 src/xfaces.c struct font *font = XFONT_OBJECT (font_object); font 2176 src/xfaces.c int pt = PIXEL_TO_POINT (font->pixel_size * 10, FRAME_RES (f)); font 2261 src/xfaces.c Lisp_Object font = Qnil; font 2277 src/xfaces.c font = merge_font_spec (from[LFACE_FONT_INDEX], to[LFACE_FONT_INDEX]); font 2279 src/xfaces.c font = copy_font_spec (from[LFACE_FONT_INDEX]); font 2280 src/xfaces.c to[LFACE_FONT_INDEX] = font; font 2309 src/xfaces.c if (!NILP (font)) font 2311 src/xfaces.c if (! NILP (AREF (font, FONT_FOUNDRY_INDEX))) font 2312 src/xfaces.c to[LFACE_FOUNDRY_INDEX] = SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX)); font 2313 src/xfaces.c if (! NILP (AREF (font, FONT_FAMILY_INDEX))) font 2314 src/xfaces.c to[LFACE_FAMILY_INDEX] = SYMBOL_NAME (AREF (font, FONT_FAMILY_INDEX)); font 2315 src/xfaces.c if (! NILP (AREF (font, FONT_WEIGHT_INDEX))) font 2316 src/xfaces.c to[LFACE_WEIGHT_INDEX] = FONT_WEIGHT_FOR_FACE (font); font 2317 src/xfaces.c if (! NILP (AREF (font, FONT_SLANT_INDEX))) font 2318 src/xfaces.c to[LFACE_SLANT_INDEX] = FONT_SLANT_FOR_FACE (font); font 2319 src/xfaces.c if (! NILP (AREF (font, FONT_WIDTH_INDEX))) font 2320 src/xfaces.c to[LFACE_SWIDTH_INDEX] = FONT_WIDTH_FOR_FACE (font); font 2321 src/xfaces.c ASET (font, FONT_SIZE_INDEX, Qnil); font 3832 src/xfaces.c Lisp_Object font; font 3837 src/xfaces.c && (font = LFACE_FONT (lface), font 3838 src/xfaces.c ! UNSPECIFIEDP (font))) font 3840 src/xfaces.c if (FONT_SPEC_P (font)) font 3842 src/xfaces.c font = font_load_for_lface (f, XVECTOR (lface)->contents, font); font 3843 src/xfaces.c if (NILP (font)) font 3845 src/xfaces.c ASET (lface, LFACE_FONT_INDEX, font); font 3848 src/xfaces.c AUTO_LIST2 (arg, AUTO_CONS_EXPR (Qfont, font), font 4009 src/xfaces.c if (face->font font 4249 src/xfaces.c && newface->font) font 4251 src/xfaces.c Lisp_Object name = newface->font->props[FONT_NAME_INDEX]; font 4333 src/xfaces.c return ((fface && fface->font) font 4334 src/xfaces.c ? fface->font->props[FONT_NAME_INDEX] font 4550 src/xfaces.c if (face->font) font 4608 src/xfaces.c if (face->font) font 4722 src/xfaces.c if (face->font) font 4977 src/xfaces.c && face->font == (NILP (font_object) ? NULL font 5112 src/xfaces.c last_height = FONT_HEIGHT (face->font); font 5126 src/xfaces.c if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height) font 5127 src/xfaces.c || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height)) font 5130 src/xfaces.c last_height = FONT_HEIGHT (new_face->font); font 5317 src/xfaces.c if (face->font == def_face->font font 5318 src/xfaces.c || ! face->font) font 5321 src/xfaces.c if (! EQ (face->font->props[i], def_face->font->props[i])) font 5326 src/xfaces.c || face->font->driver->case_sensitive) font 5328 src/xfaces.c s1 = SYMBOL_NAME (face->font->props[i]); font 5329 src/xfaces.c s2 = SYMBOL_NAME (def_face->font->props[i]); font 5921 src/xfaces.c if (FRAME_X_P (f) && face->font != FRAME_FONT (f)) font 5925 src/xfaces.c if (!face->font) font 6046 src/xfaces.c face->font = NILP (font_object) ? NULL : XFONT_OBJECT (font_object); font 6103 src/xfaces.c face->font = default_face->font; font 6173 src/xfaces.c face->font = XFONT_OBJECT (attrs[LFACE_FONT_INDEX]); font 6178 src/xfaces.c face->font = NULL; font 6183 src/xfaces.c if (face->font font 7036 src/xfaces.c if (face->font) font 7038 src/xfaces.c SDATA (face->font->props[FONT_NAME_INDEX]), font 7041 src/xfaces.c fprintf (stderr, "font = %p\n", face->font); font 2896 src/xfns.c struct font *font = FRAME_FONT (f); font 2897 src/xfns.c int pixel_size = font->pixel_size; font 4794 src/xfns.c Lisp_Object font = Qnil; font 4805 src/xfns.c font = font_open_by_name (f, build_unibyte_string (system_font)); font 4808 src/xfns.c if (NILP (font)) font 4809 src/xfns.c font = (!NILP (font_param) font 4815 src/xfns.c if (! FONTP (font) && ! STRINGP (font)) font 4838 src/xfns.c font = font_open_by_name (f, build_unibyte_string (names[i])); font 4839 src/xfns.c if (! NILP (font)) font 4842 src/xfns.c if (NILP (font)) font 4847 src/xfns.c gui_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); font 9689 src/xfns.c Lisp_Object font; font 9705 src/xfns.c XSETFONT (font, FRAME_FONT (f)); font 9706 src/xfns.c font_param = Ffont_get (font, QCname); font 9716 src/xfns.c font = xg_get_font (f, default_name); font 9721 src/xfns.c if (NILP (font)) font 9724 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 730 src/xftfont.c xfthbfont_begin_hb_font (struct font *font, double *position_unit) font 732 src/xftfont.c struct font_info *xftfont_info = (struct font_info *) font; font 737 src/xftfont.c return fthbfont_begin_hb_font (font, position_unit); font 741 src/xftfont.c xfthbfont_end_hb_font (struct font *font, hb_font_t *hb_font) font 743 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 7962 src/xterm.c static void x_check_font (struct frame *, struct font *); font 8209 src/xterm.c if (s->font == FRAME_FONT (s->f) font 8240 src/xterm.c IF_DEBUG (x_check_font (s->f, s->font)); font 8264 src/xterm.c if (s->font == s->face->font) font 8399 src/xterm.c struct font *font = s->font; font 8400 src/xterm.c font->driver->text_extents (font, s->char2b, s->nchars, &metrics); font 8483 src/xterm.c else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width font 8488 src/xterm.c || FONT_TOO_HIGH (s->font) font 8532 src/xterm.c struct font *font = s->font; font 8534 src/xterm.c if (!EQ (font->driver->type, Qx) font 8538 src/xterm.c int boff = font->baseline_offset; font 8541 src/xterm.c if (font->vertical_centering) font 8542 src/xterm.c boff = VCENTER_BASELINE_OFFSET (font, s->f) - boff; font 8547 src/xterm.c font->driver->draw (s, 0, s->nchars, x, y, false); font 8549 src/xterm.c font->driver->draw (s, 0, s->nchars, x, y, true); font 8551 src/xterm.c font->driver->draw (s, 0, s->nchars, x + 1, y, false); font 8553 src/xterm.c if (EQ (font->driver->type, Qx)) font 8602 src/xterm.c struct font *font = s->font; font 8627 src/xterm.c if (!EQ (font->driver->type, Qx) font 8643 src/xterm.c font->driver->draw (s, j, j + 1, xx, yy, false); font 8645 src/xterm.c font->driver->draw (s, j, j + 1, xx + 1, yy, false); font 8666 src/xterm.c font->driver->draw (s, j, i, x, y, false); font 8668 src/xterm.c font->driver->draw (s, j, i, x + 1, y, false); font 8674 src/xterm.c font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false); font 8676 src/xterm.c font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, font 8685 src/xterm.c font->driver->draw (s, j, i, x, y, false); font 8687 src/xterm.c font->driver->draw (s, j, i, x + 1, y, false); font 8691 src/xterm.c if (EQ (font->driver->type, Qx)) font 8768 src/xterm.c char2b[j] = s->font->driver->encode_char (s->font, str[j]) & 0xFFFF; font 8769 src/xterm.c s->font->driver->draw (s, 0, upper_len, font 8773 src/xterm.c s->font->driver->draw (s, upper_len, len, font 10899 src/xterm.c struct font *font = font_for_underline_metrics (s); font 10923 src/xterm.c if (font && font->underline_thickness > 0) font 10924 src/xterm.c thickness = font->underline_thickness; font 10943 src/xterm.c && font && font->underline_position >= 0) font 10944 src/xterm.c position = font->underline_position; font 10945 src/xterm.c else if (font) font 10946 src/xterm.c position = (font->descent + 1) / 2; font 26723 src/xterm.c struct font *font = XFONT_OBJECT (font_object); font 26729 src/xterm.c if (FRAME_FONT (f) == font) font 26734 src/xterm.c FRAME_FONT (f) = font; font 26735 src/xterm.c FRAME_BASELINE_OFFSET (f) = font->baseline_offset; font 26736 src/xterm.c FRAME_COLUMN_WIDTH (f) = font->average_width; font 26737 src/xterm.c get_font_ascent_descent (font, &font_ascent, &font_descent); font 29863 src/xterm.c x_check_font (struct frame *f, struct font *font) font 29865 src/xterm.c eassert (font != NULL && ! NILP (font->props[FONT_TYPE_INDEX])); font 29866 src/xterm.c if (font->driver->check) font 29867 src/xterm.c eassert (font->driver->check (f, font) == 0); font 31038 src/xterm.c Font font; font 31047 src/xterm.c to.addr = (XPointer) &font; font 31051 src/xterm.c query_result = XQueryFont (dpy, font); font 31055 src/xterm.c if (x_had_errors_p (dpy) || !font) font 1124 src/xterm.h struct font *font; font 1460 src/xterm.h #define FRAME_FONT(f) ((f)->output_data.x->font)