1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

72 commits

Author SHA1 Message Date
Juanma Barranquero
f83d92b2f8 (Fset_fontset_font): Fix spacing. 2002-09-06 09:03:22 +00:00
Ken Raeburn
637ddd3204 (font_family_registry, fs_query_fontset):
(list_fontsets): Use const for pointer to lisp string data.
2002-07-16 19:48:21 +00:00
Ken Raeburn
20cddf4e9f (Fset_fontset_font): Use SDATA instead of XSTRING()->data. 2002-07-16 16:35:27 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Andrew Choi
f00691a3e4 In src/:
2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
        Vdefault_fontset to Monaco with mac-roman coding.

        * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
        init_process before and after inclusion of Carbon/Carbon.h, resp.

        * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
        cursor_gc.
        (add_font_name_table_entry): New function.
        (init_font_name_table): Use add_font_name_table_entry; add italic,
        bold, and bold-italic entries for truetype fonts.

        * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
        for Mac too.
        (try_font_list) [MAC_OS]: If no font matches given registry, try
        fonts with any registry matching face_family.
        (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font
        here.

        * s/darwin.h: If autoconf detects the Ncurses library, define
        LIBS_TERMCAP to -lncurses to use it.

In lisp/:

2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * term/mac-win.el (scalable-fonts-allowed): Set to t.
2002-06-16 23:08:57 +00:00
Ken Raeburn
7c2379772d * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
instead of XSYMBOL and name field.
2002-05-20 08:05:48 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Pavel Janík
fc8865fc5a Fix typos, remove unnecessary space. 2001-12-12 20:06:10 +00:00
Pavel Janík
2dc42b12c1 Remove variables Vhighlight_wrong_size_font' and Vclip_large_size_font'. 2001-11-14 13:38:51 +00:00
Pavel Janík
335c5470b5 Change doc-string comments to new style' [w/doc:' keyword]. 2001-11-13 07:48:37 +00:00
Pavel Janík
17893c65bd (fontset_font_pattern): Remove unused variable `family_registry'. 2001-11-06 13:19:01 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Andrew Innes
97f4db8c94 (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
optimization.  The fontp->encoding array was not being initialized
correctly when compiled with optimizations by MSVC.
2001-10-18 16:23:14 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
dbcf3c03ca (Ffontset_info): Check that face is non-null
before accessing its fields.
2001-05-16 10:18:36 +00:00
Kenichi Handa
e521c67d55 (syms_of_fontset): Describe highlight-wrong-size-font
and clip-large-size-font as obsolete.
2001-03-13 08:14:35 +00:00
Kenichi Handa
41d79f4d2b (Fnew_fontset): Fix handling of the case that an
element of FONTLIST is a cons of family and registry.
2001-02-24 02:45:00 +00:00
Andrew Choi
5604ec34e4 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
regex for '^', '$', and '\0'.
2001-01-28 15:41:57 +00:00
Kenichi Handa
8d04974a78 (font_family_registry): Even if FONTNAME conform to
XLFD, if it specifies other fields than family and registry,
return FONTANME.  New argument FORCE if nonzero cancel that
feature.
(fontset_font_pattern): Call font_family_registry with FORCE 1 for
a signle byte character.  Don't set FAMILY part to nil here.  It
is handled by the caller choose_face_font.
(Fnew_fontset): Call font_family_registry with FORCE 0.
(Fset_fontset_font): Likewise.
2001-01-28 01:12:01 +00:00
Eli Zaretskii
1337ac7772 (fontset_ref): Remove unused variable `i'.
(fontset_set): Remove unused variables `j' and `tmp'.
(make_fontset): Remove unused variables `i', `j', `elt' and
`base_elt'.
(make_fontset_for_ascii_face): Remove unused variable `name'.
(fs_load_font): Remove unused variable `font_idx'.
(fs_query_fontset): Remove unused function-local variable
`fontset'.
(list_fontsets): Remove unused variable `tail'.
(Fnew_fontset): Remove unused variables `family' and `registry'.
(accumulate_font_info): Remove unused variable `tmp'.
(Ffontset_font): Remove unused variable `id'.
(syms_of_fontset): Remove unused variable `i'.
2001-01-02 14:11:36 +00:00
Jason Rumney
842c80a36f (syms_of_fontset) [WINDOWSNT]: Make default fontsize on w32 10
point, as Windows has oversized fonts.
2000-10-27 18:57:17 +00:00
Jason Rumney
82d9a3b9c5 (syms_of_fontset) [WINDOWSNT]: Special case for ASCII font of default
fontset on Windows.
2000-10-23 22:10:00 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Andrew Innes
2538fae4f8 Include keyboard.h before frame.h. 2000-08-22 22:41:00 +00:00
Kenichi Handa
851ab85e39 (Finternal_char_font): Search only the selected frame for a window of
the current buffer.
2000-08-18 05:05:39 +00:00
Kenichi Handa
afe93d01f2 (fontset_ref): Remove INLINE declaration.
(fontset_ref_via_base): Likewise.
(Fset_fontset_font): Convert FAMILY and REGISTRY specifications
to downcase.
2000-07-24 11:07:23 +00:00
Gerd Moellmann
90d36cb174 (AREF, ASIZE): Remove definitions. 2000-07-13 14:06:27 +00:00
Kenichi Handa
a921395d87 (Ffontset_info): Make the return value more compatible
with that of Emacs 20.
2000-07-10 04:01:01 +00:00
Kenichi Handa
11d9bd93ed (FONTSET_ASCII): Use the first element of char table
for an ASCII font, not defalt slot.
(fontset_ref_via_base): If FONTSET doesn't contain information for
C, try the default fontset.
(make_fontset): Don't copy the default fontset.
(fontset_font_pattern): Likewise.
(accumulate_font_info): If ELT is nil, use the corresponding
element in the default fontset.
2000-06-20 11:22:32 +00:00
Kenichi Handa
0890801bd5 (Fset_fontset_font): The arg CHARACTER may be a charset. 2000-06-08 01:23:19 +00:00
Kenichi Handa
8a9be3ac66 (check_registry_encoding): This function deleted.
(Fset_fontset_font): Remove the adhoc condition for the default
fontset.  Allow cons in FONTNAME.
2000-05-26 07:27:30 +00:00
Kenichi Handa
afc125e1e9 (syms_of_fontset): Adjust the font name for ascii of
the default fontset to what Emacs uses by default.
2000-05-26 05:11:15 +00:00
Kenichi Handa
f55d03b19b (fontset_ref): Use SPLIT_CHAR instead of
SPLIT_NON_ASCII_CHAR.
(fontset_ref_via_base, fontset_set): Likewise
2000-05-20 00:00:49 +00:00
Dave Love
63dffd51db (Ffontset_info): ...and another. 2000-05-18 14:44:57 +00:00
Dave Love
06e6aef0f7 (Ffontset_info): Fix newline in doc. 2000-05-18 13:53:25 +00:00
Kenichi Handa
1ff005e1ed Include "buffer.h".
(fs_load_font): If the face has fontset, record the face ID in
that fontset.
(Finternal_char_font): New function.
(accumulate_font_info): New function.
(Ffontset_info): Rewritten for the new fontset implementation.
(syms_of_fontset): Register Vdefault_fontset in the first element
of Vfontset_table.  Include Vdefault_fontset in
Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
function.
2000-05-17 23:30:30 +00:00
Kenichi Handa
40292c8a39 (fs_load_font): By default, use 0x00..0x7f for ASCII.
Check Vfont_encoding_alist against the full name of the opened
font.
2000-05-01 00:57:23 +00:00
Kenichi Handa
4ea5775bc6 (Fset_fontset_font): Fix docstring. Local variable
name change: ch -> character.
2000-04-20 23:52:05 +00:00
Ken Raeburn
f32318377b (make_fontset_for_ascii_face): Use XINT on return value.
(Fset_fontset_font): Use EQ to compare lisp objects.
2000-04-08 19:33:36 +00:00
Dave Love
755f47fed9 (Fset_fontset_font, Ffontset_font): Fix newlines in doc string. 2000-03-21 17:31:48 +00:00
Kenichi Handa
0d407d7782 All codes rewritten or adjusted for the change of
fontset implementation.  Now fontset is represented by char table.
(Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
removed.
(my_strcasecmp): Function removed.
(Vfontset_table, next_fontset_id, Vdefault_fontset): New
variables.
(AREF, ASIZE): New macros.
(FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
(fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
fontset_id_valid_p, font_family_registry, fontset_name,
fontset_ascii, free_face_fontset, face_suitable_for_char_p,
face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
New functions.
(fs_load_font): New arg FACE.  Caller changed.
(fs_query_fontset): Argument changed.  Caller changed.
(Fquery_fontset): call fs_query_fontset.
(fs_register_fontset, alloc_fontset_data, free_fontset_data):
Functions removed.
(clear_fontset_elements, check_registry_encoding,
check_fontset_name): New functions.
(syms_of_fontset): Set char-table-extra-slots property of fontset
to 3.  Staticpro and initialize Vfontset_table and
Vdefault_fontset.  Defsubr fontset_font and fontset_list.
2000-03-21 00:38:14 +00:00
Kenichi Handa
810abb8758 (Vvertical_centering_font_regexp): New variable.
(syms_of_fontset): Declare it as a Lisp variable and initialize.
Set Vignore_relative_composition to nil.
(fs_load_font): Initialize `vertical_centering' of struct
font_info.
1999-12-15 00:12:47 +00:00
Ken Raeburn
7539e11fca more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engine 1999-10-25 04:58:18 +00:00
Gerd Moellmann
18f39d0e20 (Ffont_info): Change for Lisp_Object selected_frame.
(Ffontset_info): DItto.
1999-09-13 11:13:31 +00:00
Kenichi Handa
b550eb05f7 (Fset_fontset_font): Fix previous change. 1999-04-12 01:26:06 +00:00
Kenichi Handa
79091e9c64 (Fquery_fontset): Check for fontset aliases here.
(Fnew_fontset, Fset_fontset_font): Don't check for them here.
1999-04-10 02:21:00 +00:00
Richard M. Stallman
9af3dc479f (Fquery_fontset): Don't check for fontset aliases here.
(Fnew_fontset, Fset_fontset_font): Check for them here.
(Ffontset_info, Fnew_fontset, Fset_fontset_font):
Fix error message syntax.
1999-04-07 23:35:12 +00:00
Kenichi Handa
3541bb8faa Include frame.h before fontset.h.
(list_fonts_func): Fix prototype.
1998-10-21 11:50:56 +00:00
Kenichi Handa
e3ae549a3b (fs_load_font): Typo in comments fixed. 1998-07-09 02:02:33 +00:00
Kenichi Handa
727fb7903d (find_ccl_program_func): New variable.
(fs_load_font): Call a function pointed by find_ccl_program_func
instead of finding CCL program to encode a character by itself.
(Fquery_fontset): New optional 2nd arg REGEXPP.  Callers changed.
1998-04-15 07:12:49 +00:00