summaryrefslogtreecommitdiff
path: root/src/font.h
Commit message (Collapse)AuthorAgeFilesLines
* Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-2/+2
|
* Fix handling of font properties on Windows (bug#6303).Damyan Pepper2010-10-131-0/+5
| | | | | | | | | | * src/font.c (font_filter_properties): New function, refactored from ftfont_filter_properties. * src/font.h (font_filter_properties): Declare. * src/ftfont.c (ftfont_filter_properties): Use font_filter_properties. * src/w32font.c (w32font_booleans, w32font_non_booleans): New variables. (w32font_filter_properties): New function. (w32font_driver): Add w32font_filter_properties.
* Fix typos in docstrings, comments and ChangeLogs.Juanma Barranquero2010-10-121-1/+1
| | | | | * lisp/composite.el (compose-region): * src/ccl.c (Fccl_execute_on_string): Fix typo in docstring.
* 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-0/+8
| | | | | | | | | | | | | | | | | | | * 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.
* Handle system default font and changing font parameters.Jan Djärv2009-11-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (Vfont_log): Extern it.Kenichi Handa2009-06-231-0/+13
| | | | (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
* * font.c (Qja, Qko): Move definitions here from ftfont.c.Chong Yidong2009-04-171-0/+3
| | | | | | * font.h (Qja, Qko): Extern them. * ftfont.c (Qja, Qko): Remove declarations. * xfont.c (Qja, Qko): Remove declarations.
* (font_open_by_spec): Extern it.Kenichi Handa2009-03-111-0/+1
|
* Fix comment.Juanma Barranquero2009-02-241-5/+5
|
* correct minor typo in commentsAdrian Robert2009-02-241-1/+1
|
* *** empty log message ***Kenichi Handa2009-02-241-6/+5
|
* (struct font_driver): Fix typo.Kenichi Handa2009-02-181-3/+3
|
* *** empty log message ***Kenichi Handa2009-02-181-5/+25
|
* (struct font_driver): Fix comment for has_char.Kenichi Handa2009-01-271-4/+4
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-2/+2
|
* (struct font_driver): New member get_variation_glyphs.Kenichi Handa2008-12-301-1/+11
|
* * font.h (font_range):Stefan Monnier2008-08-311-3/+3
| | | | | * fileio.c (report_file_error): * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
* * font.h (enum lgstring_indices): Delete it.Kenichi Handa2008-08-291-86/+14
| | | | | | | (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h. (enum lglyph_indices): Likewise. (font_range): Extern adjusted. (font_fill_lglyph_metrics): Extern it.
* (font_deferred_log): Extern it.Kenichi Handa2008-08-191-0/+1
|
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
* merging Emacs.app (NeXTstep port)Adrian Robert2008-07-151-0/+3
|
* (font_make_object, font_match_p): Adjust prototypes.Kenichi Handa2008-07-091-2/+2
|
* (PIXEL_TO_POINT): Clarify usage in comment.Jason Rumney2008-06-241-2/+5
|
* Fix crashing bug in use of bold fonts from x-select-font on W32.Jason Rumney2008-06-161-4/+0
| | | | | | | | | | * w32font.c (w32_to_fc_weight): New function. (w32font_full_name, logfont_to_fcname): Use it. * font.h (font_style_symbolic_from_value): Remove. * font.c (font_style_symbolic_from_value): Remove. (font_style_symbolic): Revert to pre 2008-06-13 version.
* (font_unparse_gtkname): Add prototype.Chong Yidong2008-06-151-0/+1
|
* * w32fns.c (Fw32_select_font): Removed old font API function.Jason Rumney2008-06-131-1/+5
| | | | | | | | | | | * w32font.c (logfont_to_fcname): New function. (Fx_select_font): New font dialog function compatible with GTK/fontconfig version. * font.c (font_style_symbolic_from_value): New function. (font_style_symbolic): Use it. * font.h (font_style_symbolic_from_value): Declare new function.
* (font_intern_prop): Prototype adjusted.Kenichi Handa2008-06-101-1/+1
|
* (Qascii_0): Extern it.Kenichi Handa2008-06-091-0/+1
|
* (Ffont_xlfd_name): EXFUN adjusted.Kenichi Handa2008-05-221-1/+13
| | | | | | (FONT_DEBUG): Define it. (font_add_log): Extern it. (font_assert): Renamed from xassert.
* (find_font_encoding): Extern it.Kenichi Handa2008-05-201-0/+2
|
* *** empty log message ***Kenichi Handa2008-05-191-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-151-6/+4
|
* (Qfont_spec, Qfont_entity, Qfont_object): Extern them.Kenichi Handa2008-05-141-94/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (enum font_property_index): New members FONT_DPI_INDEX, FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX, FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX, FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX. (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC) (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC) (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE) (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC) (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros. (struct font_spec, struct font_entity): New structs. (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h. (struct font): Many members from old "struct font_info" moved to here. Members font and entity deleted. (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for the new font-related objects. (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT) (CHECK_FONT_GET_OBJECT): Likewise. (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros. (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h. (struct font_driver): New members case_sensitive anc check. Type of the member list and open changed. (enable_font_backend, font_symbolic_weight, font_symbolic_slant) (font_symbolic_width, font_find_object, font_get_spec) (font_set_lface_from_name): Delete extern. (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
* (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.Jason Rumney2008-04-031-0/+1
|
* (smerge-auto-combine-max-separation): New var.Stefan Monnier2008-02-131-5/+5
| | | | (smerge-auto-combine): New fun.
* Update copyright years.Glenn Morris2008-02-061-2/+2
|
* (enum lgstring_indices, enum lglyph_indices): New enums.Stefan Monnier2008-02-061-36/+52
| | | | (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
* (FONTP): Make it return 1 also for a font-object.Kenichi Handa2008-01-281-2/+4
|
* (struct font_driver): Docstring of member `shape' is improved.Kenichi Handa2007-12-271-1/+12
|
* (LGLYPH_SIZE): New macro.Kenichi Handa2007-12-251-0/+2
|
* (font_property_index): Doc changeJason Rumney2007-12-191-2/+3
|
* (struct font_driver): Change argument type of get_cache.Kenichi Handa2007-12-181-2/+2
|
* (FONT_ENTITY_NOT_LOADABLE)Kenichi Handa2007-12-011-38/+57
| | | | | | | | | | | (FONT_ENTITY_SET_NOT_LOADABLE): New macros. (LGSTRING_XXXX, LGLYPH_XXX): Adjusted for the change of lispy gstring. (struct font_driver): New member shape. (font_registry_charsets): Extern. it. (font_find_for_lface): Prototype adjusted. (font_prepare_composition): Likewise. (font_otf_capability, font_drive_otf): Delete their externs.
* (struct font_bitmap): New member bits_per_pixel.Kenichi Handa2007-11-191-1/+41
| | | | | | (struct font_driver): New members start_for_frame and end_for_frame. (struct font_data_list): New struct. (font_put_frame_data, font_get_frame_data): Extern them.
* (struct font_driver): Docstring of text_extents improved.Kenichi Handa2007-09-161-3/+3
|
* * font.h (font_put_extra): Moved declaration from font.c.Jason Rumney2007-05-311-0/+2
|
* Fix typo in commentJason Rumney2007-05-311-1/+1
|
* (font_open_for_lface): Adjust prototype.Kenichi Handa2007-04-251-3/+3
| | | | | | | (struct font_driver): Delete members otf_gsub and otf_gpos, add member otf_drive. (font_otf_gsub, font_otf_gpos): Delete externs. (font_drive_otf): Extern it.
* *** empty log message ***Kenichi Handa2007-04-251-36/+11
|