aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* (font_score): Even if the PIXEL_SIZE is the same, checkKenichi Handa2008-06-241-3/+2
| | | | | DPI too. (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
* (font_find_for_lface): Try the adstyle specified in the property ofKenichi Handa2008-06-221-5/+29
| | | | LFACE_FONT of LFACE (if any).
* (Ffont_face_attributes): Omit key-attribute pairs not defined by theChong Yidong2008-06-201-15/+30
| | | | font.
* (font_parse_xlfd): Fix previous change.Kenichi Handa2008-06-191-45/+32
| | | | | | | (font_parse_fcname): Don't use :fc-unknown-spec. (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height. (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA. (font_add_log): Prepend the driver name to the resulting fonts.
* (Ffont_face_attributes): Only define ifAndreas Schwab2008-06-181-0/+6
| | | | | HAVE_WINDOW_SYSTEM. (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
* (font_parse_fcname): For known key symbols, intern using correctChong Yidong2008-06-171-13/+11
| | | | symbol name.
* (font_parse_fcname): Store divider characters for unknown-spec list.Chong Yidong2008-06-171-3/+3
|
* (font_unparse_gtkname): Use EQ to compare Lisp_Objects.Stefan Monnier2008-06-161-2/+2
|
* (font_parse_fcname): Fix handling of unknown-spec string.Chong Yidong2008-06-161-7/+12
|
* (Ffont_face_attributes): Doc fix.Juanma Barranquero2008-06-161-5/+4
|
* (Ffont_spec): Fix usage in docstring.Juanma Barranquero2008-06-161-2/+2
|
* (Ffont_face_attributes): Fix definition.Andreas Schwab2008-06-161-2/+2
|
* (Ffont_get): Return a symbol for :weight, :slant, and :width.Kenichi Handa2008-06-161-1/+7
|
* Fix crashing bug in use of bold fonts from x-select-font on W32.Jason Rumney2008-06-161-12/+3
| | | | | | | | | | * 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_check_object): Delete it.Kenichi Handa2008-06-161-45/+17
| | | | | | | | (font_clear_cache): Check if a font-object is alive. (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a font-object to nil. (font_close_object): Don't check FONT_CLOSE_OBJECT. (font_at): Don't call font_check_object.
* Tweak last change.Chong Yidong2008-06-161-3/+4
|
* (font_parse_fcname): Correctly parse KEY=VAL values.Chong Yidong2008-06-161-2/+2
|
* (font_parse_fcname): Only only one decimal point.Chong Yidong2008-06-151-14/+194
| | | | | | (font_unparse_fcname): Handle data in family and foundry indices as symbols, not strings. (font_unparse_gtkname, Ffont_face_attributes): New functions.
* (font_update_drivers): Fix crash when no drivers match.Andreas Schwab2008-06-151-7/+5
|
* * w32fns.c (Fw32_select_font): Removed old font API function.Jason Rumney2008-06-131-4/+13
| | | | | | | | | | | * 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_find_for_lface): Fix typo of the previous change.Kenichi Handa2008-06-131-1/+1
|
* (font_find_for_lface): If registry is NULL, try iso8859-1 and ascii-0.Kenichi Handa2008-06-131-13/+25
|
* (syms_of_font) <font-weight-table, font-slant-table, font-width-table>:Juanma Barranquero2008-06-131-6/+6
| | | | Fix typos in docstrings.
* (font_score): Ignore the diffference of alias style symbols.Kenichi Handa2008-06-131-3/+2
|
* (font_update_sort_order): Setting of sort_shift_bits adjusted for theKenichi Handa2008-06-131-1/+1
| | | | change of font_score and font_sort_entites.
* (font_score): Delete arg alternate_families. Check onlyKenichi Handa2008-06-131-239/+213
| | | | | | | | | | | | | | | | | weight, slant, width, and size. (font_sort_entites): Adjusted for the above change. Reflect the order of font-driver to scores. (font_list_entities): Don't check alternate_familes here. (font_clear_prop): Handle foundry. (font_update_lface): Don't parse "foundry-family" form here. Handle FONT_FOUNDRY_INDEX. (font_find_for_lface): Likewise. Handle alternate families here. (font_open_for_lface): Pay attention to size in ENTITY. (font_open_by_name): Simplified by calling font_load_for_lface. (free_font_driver_list): Delete it. (font_update_drivers): Preserve the order of backends. (syms_of_font): Setting of sort_shift_bits adjusted for the change of font_score and font_sort_entites.
* (font_parse_fcname): Fix last change; accept decimal points in fontChong Yidong2008-06-111-1/+1
| | | | size.
* (font_parse_fcname): Accept GTK-style font names too.Chong Yidong2008-06-101-86/+217
|
* (font_intern_prop): New arg force_symbol.Kenichi Handa2008-06-101-19/+23
| | | | | | (font_parse_xlfd): Adjusted for the change of font_intern_prop. (font_parse_fcname): Likewise. (font_parse_family_registry): Likewise.
* (Qascii_0): New variable.Kenichi Handa2008-06-091-4/+11
| | | | | | (syms_of_font): DEFSYM it. (font_open_by_name): If the registry "iso8859-1" fails, try also "ascii-0".
* (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.