summaryrefslogtreecommitdiff
path: root/src/xftfont.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-1/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-2/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-2/+2
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-2/+2
| |
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-10-191-0/+21
|\ \ | |/
| * Fix incorrect font metrics when the same font is opened with different ↵Kenichi Handa2010-10-151-0/+21
| | | | | | | | pixelsizes.
| * Check FC_DUAL too. For such fonts, check width one by one (Bug#4129).Naohiro Aota2010-06-301-1/+1
| | | | | | | | | | | | | | * xftfont.c (xftfont_open): Check font width one by one also when spacing is dual. * ftfont.c (ftfont_open): Ditto.
* | Remove extern declarations in .c files, .h files have them.Dan Nicolaescu2010-08-051-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/data.c: * src/dired.c: * src/editfns.c: * src/filelock.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/ftfont.c: * src/gtkutil.c: * src/indent.c: * src/keyboard.c: * src/keymap.c: * src/lread.c: * src/menu.c: * src/print.c: * src/search.c: * src/sound.c: * src/window.c: * src/xdisp.c: * src/xfaces.c: * src/xfns.c: * src/xfont.c: * src/xftfont.c: * src/xmenu.c: * src/xterm.c: Remove declarations.
* | Convert (most) functions in src to standard C.Dan Nicolaescu2010-07-041-54/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c: Convert function definitions to standard C. * src/atimer.c: * src/bidi.c: * src/bytecode.c: * src/callint.c: * src/callproc.c: * src/casefiddle.c: * src/casetab.c: * src/category.c: * src/ccl.c: * src/character.c: * src/charset.c: * src/chartab.c: * src/cmds.c: * src/coding.c: * src/composite.c: * src/data.c: * src/dbusbind.c: * src/dired.c: * src/dispnew.c: * src/doc.c: * src/doprnt.c: * src/ecrt0.c: * src/editfns.c: * src/fileio.c: * src/filelock.c: * src/filemode.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/ftfont.c: * src/ftxfont.c: * src/gtkutil.c: * src/indent.c: * src/insdel.c: * src/intervals.c: * src/keymap.c: * src/lread.c: * src/macros.c: * src/marker.c: * src/md5.c: * src/menu.c: * src/minibuf.c: * src/prefix-args.c: * src/print.c: * src/ralloc.c: * src/regex.c: * src/region-cache.c: * src/scroll.c: * src/search.c: * src/sound.c: * src/strftime.c: * src/syntax.c: * src/sysdep.c: * src/termcap.c: * src/terminal.c: * src/terminfo.c: * src/textprop.c: * src/tparam.c: * src/undo.c: * src/unexelf.c: * src/window.c: * src/xfaces.c: * src/xfns.c: * src/xfont.c: * src/xftfont.c: * src/xgselect.c: * src/xmenu.c: * src/xrdb.c: * src/xselect.c: * src/xsettings.c: * src/xsmfns.c: * src/xterm.c: Likewise.
* | Remove __P and P_ from .c and .m files and definition of P_Jan D2010-07-021-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h: * atimer.h: Remove define for P_. * alloc.c: Remove __P and P_ from .c and .m files. * atimer.c: * buffer.c: * callint.c: * category.c: * charset.c: * chartab.c: * cm.c: * coding.c: * composite.c: * data.c: * dired.c: * dispnew.c: * doc.c: * editfns.c: * emacs.c: * eval.c: * fileio.c: * filelock.c: * fns.c: * font.c: * fontset.c: * frame.c: * ftfont.c: * ftxfont.c: * gmalloc.c: * gtkutil.c: * image.c: * indent.c: * intervals.c: * keyboard.c: * keymap.c: * lread.c: * marker.c: * menu.c: * minibuf.c: * print.c: * process.c: * scroll.c: * search.c: * sound.c: * strftime.c: * syntax.c: * sysdep.c: * term.c: * terminal.c: * textprop.c: * unexalpha.c: * w32console.c: * w32fns.c: * w32font.c: * w32menu.c: * w32term.c: * w32uniscribe.c: * window.c: * xdisp.c: * xfaces.c: * xfns.c: * xfont.c: * xftfont.c: * xmenu.c: * xselect.c: * xterm.c: Likewise. * ebrowse.c: Remove P_ and __P. * etags.c: * movemail.c: * pop.c: * update-game-score.c: Likewise.
* | Check FC_DUAL too. For such fonts, check width one by one.Kenichi Handa2010-06-301-1/+1
|/
* Add 2010 to copyright years.Glenn Morris2010-01-131-2/+2
|
* Fix slowdown and wrong font choosed by XSETTINGS changes. bug #5157.Jan Djärv2010-01-061-42/+101
| | | | | | | | | | | | | | | | | | | * font.c (font_open_entity): Enable chache and call cached_font_ok for the driver if defined. (QCuser_spec): New symbol. (font_spec_from_name): Save name as user-spec. (font_load_for_lface): Keep user-spec instead of name. (font_open_by_name): Save name as user-spec. (syms_of_font): Initialize QCuser_spec. * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters. (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New. (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok. * font.h (struct font_driver): Add cached_font_ok. * font-setting.el (font-setting-change-default-font): Use user-spec instead of name.
* xftfont.c: Parse symbolic names for constants also.Jan Djärv2009-12-131-3/+19
| | | | | | (QClcdfilter): New variable. (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER. (syms_of_xftfont): Initialize QClcdfilter.
* (struct xftfont_info): New member matrix.Kenichi Handa2009-12-121-1/+13
| | | | (xftfont_open): Setup xftfont_info->matrix.
* Don't crash if an X terminal is deleted with force == t.Jan Djärv2009-11-271-1/+6
| | | | | | | | | | | * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display is NULL. * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL. * frame.c (frame_make_pointer_invisible) (frame_make_pointer_visible): Just return if there isn't any selected frame.
* * xftfont.c (xftfont_fix_match): Older versions of fontconfig doesJan Djärv2009-11-171-2/+3
| | | | not have FC_LCD_*. #define them if not there.
* #ifdef on FC_LCD_FILTER.Jan Djärv2009-11-171-0/+3
| | | | | | | | | | | * xftfont.c (xftfont_fix_match): Older versions of fontconfig does not have FC_LCD_FILTER. #ifdef it. * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto * xftfont.c (xftfont_fix_match): New function. (xftfont_open): Call XftDefaultSubstitute before XftFontMatch. Call xftfont_fix_match after XftFontMatch.
* Handle system default font and changing font parameters.Jan Djärv2009-11-171-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xterm.h (struct x_display_info): Add atoms and Window for xsettings. * xterm.c (handle_one_xevent): Call xft_settings_event for ClientMessage, PropertyNotify and DestroyNotify. (x_term_init): If we have XFT, get DPI from Xft.dpi. Call xsettings_initialize. * xftfont.c (xftfont_fix_match): New function. (xftfont_open): Call XftDefaultSubstitute before XftFontMatch. Call xftfont_fix_match after XftFontMatch. * xfont.c (xfont_driver): Initialize all members. * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font. Do not get font from x_default_parameter if we got one from Ffont_get_system_font. (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f). * w32font.c (w32font_driver): Initialize all members. * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new. * lisp.h: Declare syms_of_xsettings. * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle CONFIG_CHANGED_EVENT. * ftfont.c (ftfont_filter_properties): New function. * frame.c (x_set_font): Remove unused variable lval. * font.h (struct font_driver): filter_properties is new. * font.c (font_put_extra): Don't return if val is nil, it means boolean option is off. (font_parse_fcname): Collect all extra properties in extra_props and call filter_properties for all drivers with extra_props and font as parameter. (font_open_entity): Do not use cache, it does not pick up new fontconfig settings like hinting. (font_load_for_lface): If spec had a name in it, store it in entity. * emacs.c (main): Call syms_of_xsettings * config.in: HAVE_GCONF is new. * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF. xsettings.o is new. * menu-bar.el: Put "Use system font" in Option-menu. * loadup.el: If feature system-font-setting or font-render-setting is there, load font-setting. * Makefile.in (ELCFILES): font-settings.el is new. * font-setting.el: New file. * NEWS: Mention dynamic font changes (font-use-system-font). * configure.in: New option: --with(out)-gconf. Set HAVE_GCONF if we find gconf.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.Kenichi Handa2009-07-101-4/+3
|
* * xftfont.c (xftfont_open): Avoid passing NULL argument toChong Yidong2009-06-301-4/+5
| | | | XftLockFace.
* (xftfont_open): Make sure that Xrender extension is addedYAMAMOTO Mitsuharu2009-05-111-0/+10
| | | | before Xft one (Bug#1696).
* (xftfont_has_char): Special handling of `ja' and `ko' adstyle.Kenichi Handa2009-04-161-0/+12
|
* (xftfont_open): Fix setting font->underline_thickness.Kenichi Handa2009-04-061-1/+1
|
* Remove spurious semicolons.Juanma Barranquero2009-02-111-6/+6
|
* (xftfont_has_char): New function.Kenichi Handa2009-01-291-0/+17
| | | | (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
* (struct xftfont_info): New member `index'.Kenichi Handa2009-01-271-1/+2
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-2/+2
|
* (xftfont_open): Genarate a multibyte string if give names are utf-8.Kenichi Handa2008-12-191-2/+2
|
* (xftfont_open): Free Xft font pattern if XftFontOpenPattern fails.Chong Yidong2008-12-151-1/+4
|
* (syms_of_xftfont): Fix typo.Chong Yidong2008-12-091-1/+1
|
* (struct xftfont_info): New member ft_size. Make theKenichi Handa2008-07-091-85/+36
| | | | | | | | | | | member order compatible with struct ftfont_info. (xftfont_open): Add FC_CHARSET to the pattern. Set xftfont_info->ft_size. Don't unlock the face. Check BDF properties if appropriate. (xftfont_close): Unlock the face. (xftfont_anchor_point, xftfont_shape): Deleted. (syms_of_xftfont): Don't set members anchor_point and shape of xftfont_driver.
* (xftfont_open): Don't call FcConfigSubstitute andKenichi Handa2008-06-301-5/+4
| | | | | XftDefaultSubstitute (they are called in XftFontMatch). (xftfont_open): Fix args to ftfont_font_format.
* (xftfont_open): Handle QCembolden only when FC_EMBOLDEN is defined.Kenichi Handa2008-06-211-0/+2
|
* (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to the pattern.Kenichi Handa2008-06-201-0/+17
|
* (QChinting , QCautohint, QChintstyle, QCrgba)Kenichi Handa2008-06-191-8/+53
| | | | | | | (QCembolden): New variables. (syms_of_xftfont): DEFSYM them. (xftfont_open): Call XftFontMatch. Don't trust the result of XftTextExtents8 if the pixel_size is less than 5.
* (xftfont_open): Delete unused variable. IfKenichi Handa2008-05-251-1/+3
| | | | underline_thickness is not 1, adjust underline_position.
* (xftfont_open): Ajusted for the change of extra infoKenichi Handa2008-05-191-21/+12
| | | | set by ftfont_list.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* (xftfont_list): Adjusted for the change of `list'Kenichi Handa2008-05-141-119/+80
| | | | | | | | | | | | | callback function. (xftfont_match): Adjusted for the fontmat change of font-entity. (xftfont_open): Adjusted for the format change of font-entity and font-object. Adjusted for the change of struct font. Return a font-object. Don't update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width. (xftfont_close): Block input while calling XftFontClose. (xftfont_prepare_face): Don't block input while calling xftfont_get_colors. Adjusted for the change of struct font. (xftfont_shape): Return value of error case fixed.
* (xftfont_draw): Pay attention to s->padding_p.Kenichi Handa2008-02-251-2/+7
|
* (xftfont_default_fid): Delete it.Kenichi Handa2008-02-171-27/+1
| | | | (xftfont_open): Set xfont->fid to 0.
* Update copyright years and GPL version.Glenn Morris2008-02-061-3/+3
|
* (xftfont_encode_char): Use the macro FONT_INVALID_CODE.Kenichi Handa2007-12-251-1/+1
|
* (xftfont_start_for_frame): Delete prototype.Kenichi Handa2007-12-181-1/+0
|
* (struct xftfont_info): Delete the member ft_face.Kenichi Handa2007-12-101-16/+26
| | | | | | | (xftfont_open): Don't keep locking face. (xftfont_close): Don't unlock face. (xftfont_anchor_point): Lock and unlock face. (xftfont_shape): Likewise.
* *** empty log message ***Kenichi Handa2007-12-031-2/+2
|
* Include "ftfont.h".Kenichi Handa2007-12-011-2/+53
| | | | | | | | | | (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf. (xftfont_open) [HAVE_LIBOTF]: Initialize the above members. (xftfont_close) [HAVE_LIBOTF]: Close otf. (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function. (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]: Set xftfont_driver.shape to xftfont_shape.
* (struct xftface_info): Delete the member xft_draw.Kenichi Handa2007-11-191-21/+42
| | | | | | | | | (xftfont_prepare_face): Adjusted for the above change. (xftfont_done_face): Likewise. (xftfont_get_xft_draw): New function. (xftfont_draw): Get XftDraw by xftfont_get_xft_draw. (xftfont_end_for_frame): New function. (syms_of_xftfont): Set xftfont_driver.end_for_frame.