aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Ffont_put): Don't use font_parse_family_registry forKenichi Handa2008-06-051-7/+1
| | | | family name.
* (Ffont_spec): Don't use font_parse_family_registry forKenichi Handa2008-06-051-5/+0
| | | | family name.
* (font_prop_validate_spacing): Fix last change.Andreas Schwab2008-06-031-1/+1
|
* (font_parse_fcname): Fix handling of unknown key.Kenichi Handa2008-06-031-2/+4
|
* (font_prop_validate_spacing): Handle uppercase symbols.Kenichi Handa2008-06-031-8/+13
|
* (font_pixel_size): Don't take cdr of an integer.Chong Yidong2008-06-021-1/+1
|
* (font_find_for_lface): Handle float font size.Kenichi Handa2008-06-021-12/+11
| | | | (font_open_for_lface): Likewise.
* (font_list_entities): Fix the car part of data to beKenichi Handa2008-05-311-0/+3
| | | | stored in the cache.
* (Ffont_info): Define only if HAVE_WINDOW_SYSTEM isKenichi Handa2008-05-301-0/+5
| | | | | | defined. (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is defined.
* (font_style_to_value, font_score): Delete casting of theKenichi Handa2008-05-301-9/+80
| | | | | | | | args to xstcasecmp. (register_font_driver): Increment num_font_drivers only when registering the driver globally. (Ffont_info): Moved from fontset.c. Handle a font object too. (syms_of_font): Defsubr Sfont_info.
* (font_parse_family_registry): Use Ffont_put to validateKenichi Handa2008-05-281-9/+4
| | | | | | foundry and family. (font_delete_unmatched): Don't check spacing. (font_list_entities): Add spacing to the spec to list fonts.
* (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)Kenichi Handa2008-05-251-4/+11
| | | | | | | | | (check_gstring, check_otf_features, otf_list, otf_tag_symbol) (otf_open, font_otf_capability, generate_otf_features) (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): Commented out by surrounding "#if 0" and "#endif" for the moment. (Ffont_drive_otf, Ffont_otf_alternates): Likewise. (syms_of_font): Codes for accessing above commented out.
* Don't include strings.h.Jason Rumney2008-05-221-1/+0
|
* * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.Jason Rumney2008-05-221-4/+5
| | | | | | * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: * xfns.c, xfont.c: Callers changed.
* (font_style_to_value, font_score): Use xstricmp.Jason Rumney2008-05-221-4/+4
|
* (font_prop_validate_style): Adjusted for the formatKenichi Handa2008-05-221-3/+6
| | | | change of font_style_table.
* *** empty log message ***Kenichi Handa2008-05-221-1/+1
|
* Checking of FONT_DEBUG is moved to font.h. All calls ofKenichi Handa2008-05-221-161/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | xassert are changed to font_assert. Many unused variables deleted. (Vfont_weight_table, Vfont_slant_table, Vfont_width_table): New variables. (struct table_entry): Moved from xfaces.c and modified. (weight_table, slant_table, width_table): Moved from xfaces.c and contents adjusted for the change of struct table_entry. (font_style_to_value, font_style_symbolic): Adjuted for the format change of font_style_table. (font_parse_family_registry): Don't overwrite existing foundry and family of font_spec. (font_score): Fix calculation of diff for sizes. (font_sort_entites): Call font_add_log. (font_delete_unmatched): Return a newly created list. (font_list_entities): Fix previous change. Call font_add_log. (font_matching_entity, font_open_entity, font_close_entity): Call font_add_log. (Ffont_xlfd_name): New arg FOLD-WILDCARDS. (Finternal_set_font_style_table): Deleted. (BUILD_STYLE_TABLE): New macro. (build_style_table): New function. (Vfont_log, font_log_env_checked): New variables. (font_add_log): New function. (syms_of_font): Delete defsubr Sinternal_set_font_style_table. Declare Lisp variables "font-weight-table", "font-slant-table", "font-width-table", and "font-log". Initialize font_style_table.
* (syms-of-font) <font-encoding-alist>:Juanma Barranquero2008-05-201-18/+18
| | | | | | (Ffontp, Ffont_make_gstring): Fix typos in docstrings. (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font, Ffont_otf_alternates): Doc fixes.
* (Vfont_encoding_alist, find_font_encoding): Moved fromKenichi Handa2008-05-201-2/+63
| | | | | | | | | | fontset.c. (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1. (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts, FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f) only when HAVE_WINDOW_SYSTEM is defined. (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only when HAVE_WINDOW_SYSTEM is defined.
* (font_list_entities): Fix handling of cache.Kenichi Handa2008-05-191-5/+7
| | | | (font_matching_entity): Likewise.
* (font_find_for_lface): Reflect LFACE_FONT in the fontKenichi Handa2008-05-151-0/+8
| | | | preference.
* (font_clear_cache): Check if the cached vector of entities is nilKenichi Handa2008-05-141-1/+1
| | | | or not.
* (font_prop_validate): Make nil a valid value.Kenichi Handa2008-05-141-0/+2
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* Include <strings.h>.Kenichi Handa2008-05-141-1089/+1265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (enable_font_backend): Delete it. (Qfont_spec, Qfont_entity, Qfont_object): New variables. (CHECK_VALIDATE_FONT_SPEC): Delete it. (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h. (null_string): Delete it. (null_vector): Make it static. (font_family_alist): Delete it. (Qnormal): Extern it. (QCextra, QClanguage): Delete it. (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables. (font_make_spec, font_make_entity, font_make_object) (font_intern_prop): Renamed from intern_downcase. Don't downcase the string. Callers changed. (font_pixel_size): Adjusted for the format change of font-related objects. (prop_name_to_numeric, prop_numeric_to_name): Delete them. (font_style_to_value, font_style_symbolic): New function. (build_font_family_alist): Delete it. (font_registry_charsets): Use Fassoc_string instead of assq_no_quit. (font_prop_validate_symbol): Don't return null_string. (font_prop_validate_style): Adjusted for the change of style-related values in a font vector. (font_property_table): Delete entries for QClangauge and QCantialias, add entries for QCavgwidth. (get_font_prop_index): Delete the 2nd argument FROM. (font_prop_validate): Arguments changed. (font_put_extra): Adjusted for the change of font-related objects. (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd) (font_parse_fcname, font_unparse_fcname) (font_prepare_composition): Likewise. (font_parse_family_registry): Renamed from font_merge_old_spec. (otf_open): Delete the 1st arg entity. (font_otf_capability): Adjusted for the above change. (font_score): New arg alternate_families. Adjusted for the change of font-related objects. (font_sort_entites): New arg best_only. (font_symbolic_weight, font_symbolic_slant, font_symbolic_width): Delete them. (font_match_p): Check alternate families. (font_find_object): Delete it. (font_check_object): New function. (font_clear_cache): Adjusted for the change of font-related objects. (font_delete_unmatched): New arg. (font_list_entities): Call font_driver->list with a spec that doesn't specify style-related properties. (font_matching_entity): Arguments changed. Caller changed. (font_open_entity): Adjusted for the change of font-related objects. (font_close_object, font_has_char, font_encode_char) (font_get_name, font_get_spec): Likewise. (font_spec_from_name, font_clear_prop, font_update_lface): New functions. (font_find_for_lface, font_open_for_lface, font_load_for_lface): (font_prepare_for_face, font_done_for_face, font_open_by_name) (font_at): Adjusted for the change of font-related objects. (font_range): New function. (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts) (Ffont_xlfd_name): Adjusted for the change of font-related objects. (Fcopy_font_spec, Fmerge_font_spec): New function. (Ffont_family_list): Renamed from list-families. (Finternal_set_font_style_table): Arguments changed. (Ffont_fill_gstring, Ffont_shape_text, Fopen_font) (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the change of font-related objects. (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symboles.
* (Ffont_match_p): Don't use `iff' in docstring.Juanma Barranquero2008-05-081-1/+1
|
* (font_prop_validate): Signal `error' instead of `font'.Kenichi Handa2008-04-271-2/+1
|
* (font_unparse_fcname): Increase len when style is a symbol.Jason Rumney2008-03-011-2/+3
|
* * dispextern.h (face_at_buffer_position, face_for_overlay_string)Stefan Monnier2008-02-261-1/+1
| | | | | | | | | | (face_at_string_position): * xfaces.c (face_at_buffer_position, face_for_overlay_string) (face_at_string_position): * xdisp.c (display_string, next_overlay_change): * buffer.h (overlays_at): * buffer.c (overlays_at): Use EMACS_INT for buffer positions. Update callers.
* (Ffont_spec, Ffont_at): Fix typos in docstrings.Juanma Barranquero2008-02-261-31/+31
| | | | | (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf, Ffont_otf_alternates, Fquery_font): Doc fixes.
* If the font driver doesn't have `shape' function, return Qnil.Kenichi Handa2008-02-251-40/+6
|
* (font_match_xlfd, font_check_xlfd_parse): New funs.Stefan Monnier2008-02-221-4/+40
| | | | | (font_parse_xlfd): Use them for sanity check. (Finternal_set_font_style_table): Make sure the table is bijiective.
* (font_unparse_xlfd): Don't ignore integer pixel size specs.Stefan Monnier2008-02-181-8/+11
|
* Include xterm.h.Kenichi Handa2008-02-171-31/+60
| | | | | | | | | | | | [HAVE_NTGUI]: Include w32term.h. [MAC_OS]: Include macterm.ch. (font_otf_ValueRecord): Use make_number. (font_finish_cache): Fix handling of reference count. (font_clear_cache): Update num_fonts. (font_open_entity): Update smallest_char_width and smallest_font_height of the frame. (font_close_object): Update num_fonts. (Fclear_font_cache): Fix finding the target cache data.
* (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation warnings.Eli Zaretskii2008-02-161-6/+13
|
* Update copyright years.Glenn Morris2008-02-061-2/+2
|
* (check_gstring): Use them and AREF to access the vector beforeStefan Monnier2008-02-061-27/+27
| | | | | | we know it's really a gstring. (Ffont_shape_text): Fix typo. (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
* (font_find_for_lface): Fix previous change. Be sure toKenichi Handa2008-01-281-0/+4
| | | | | | close a font-object. (Ffont_shape_text): If FONT_OBJECT is not a font-object, just return TO.
* (font_find_for_lface): Check if the character C isKenichi Handa2008-01-281-22/+18
| | | | supported or not only for the first font.
* (font_load_for_face): Handle the case that the font inKenichi Handa2008-01-251-0/+4
| | | | face->lface is a string.
* *** empty log message ***Kenichi Handa2008-01-141-2/+5
|
* (Ffont_shape_text): Fix setting of `to' field of glyphs.Kenichi Handa2008-01-071-1/+1
|
* (Ffont_shape_text): If the font driver doesn't have aKenichi Handa2008-01-071-4/+40
| | | | | shaper function, make zero-width glyphs to have at least one-pixel width.
* (Ffont_fill_gstring): Stop filling when a character notKenichi Handa2007-12-251-14/+30
| | | | | | | | supported by the font is found. (Ffont_shape_text): When a shape callback function returns nil, try at most two more times with larger gstring. (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
* (Ffont_shape_text): Avoid unnecessary composition.Kenichi Handa2007-12-211-14/+26
|
* (font_parse_fcname): Default weight and slant to normal.Jason Rumney2007-12-201-2/+37
| | | | | | (font_score): Prefer normal fonts if weight or slant unspecified. (font_score) [WINDOWSNT]: Scale weight difference down to closer match freetype scores.
* (font_prepare_cache, font_finish_cache, font_get_cache): NewKenichi Handa2007-12-181-65/+169
| | | | | | | | | functions. (font_clear_cache): New function. (font_list_entities): Use font_get_cache. (font_matching_entity): Likewise. (font_update_drivers): Call font_clear_cache when finishing a driver.
* (Ffont_get): Fix arguments to Fassoc.Kenichi Handa2007-12-181-1/+1
|
* (font_at): Handle the case that the arg C is negative.Kenichi Handa2007-12-141-20/+50
| | | | | Handle the unibyte case. (Ffont_at): Call font_at with the arg C -1.