unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: alkibiades@gmx.de
Subject: Re: Customizing fontsets
Date: Fri, 2 May 2003 15:32:57 +0900 (JST)	[thread overview]
Message-ID: <200305020632.PAA16368@etlken.m17n.org> (raw)
In-Reply-To: <87llxqorkr.fsf@gnu.org> (message from Alex Schroeder on Fri, 02 May 2003 07:17:24 +0200)

In article <87llxqorkr.fsf@gnu.org>, Alex Schroeder <alex@gnu.org> writes:
> Oliver Scholz <alkibiades@gmx.de> writes:
>>  But wouldn't it be an option to add a `custom-set-fontsets' besides
>>  `custom-set-faces' and `custom-set-variables'? 
>>  In fact I started to work on it.

> I am happy to see somebody work on it!

Me too!!!

>>  Currently I wonder what the default values should be that a
>>  "fontset-widget" should present to the user. The return-value of
>>  `fontset-info' is simply to large, I think. It seems weird that a user
>>  should specify a fontset covering two or three charsets in her .emacs
>>  or in .Xresources -- and is confronted with a list of dozens of
>>  charsets then, when she wants to customize it later.

> I don't understand.  When you run M-x customize-fontset RET
> fontset-default RET, you expect to see a widget that explains the
> value of "fontset-default", and offer a way to change it.  Thus, all
> the info returned by (fontset-info "fontset-default") must be visible
> and editable at some point.

But, it is true that the value of fontset-info is very hard
to customize.  A fontset is created by new-fontset, and is
modified by the sequence of set-fontset-font.  In the
resulting fontset, the specified data are scattered around
in the char-table of the fontset.

I think the following idea will solve this problem.

The arguemnt FONTLIST of new-fontset is a list of this form:
    ((TARGET . FONT-SPEC) ...)
TARGET is a character, a cons (FROM-CHAR . TO-CHAR), or a
charset.  FONT-SPEC is (FAMILY . REGISTRY) or FONT-NAME.

The function set-fontset-font also takes the arguments
TARGET and FONT-SPEC.

In other words, a fontset can be re-created by the sequence
of (TARGET . FONT-SPEC).  So how about recording that
sequence as a list in each fontset (the order is important).
I think it's far user-friendly to customize that list than
to customize char-table elements.  In addition, we can use
the normal customization facility for a list (INS, DEL) at
the top level.

---
Ken'ichi HANDA
handa@m17n.org

  reply	other threads:[~2003-05-02  6:32 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 16:12 Cyrillic vs UTF-8 Simon Josefsson
2003-04-25 16:40 ` Eli Zaretskii
2003-04-25 17:09   ` Simon Josefsson
2003-04-25 22:39     ` Eli Zaretskii
2003-04-26  8:11     ` Kenichi Handa
2003-04-26 12:25       ` Simon Josefsson
2003-04-28  9:18         ` Kenichi Handa
2003-04-28 11:11           ` Simon Josefsson
2003-04-26 16:21       ` Benjamin Riefenstahl
2003-04-26 16:27         ` Benjamin Riefenstahl
2003-04-28  4:38       ` Richard Stallman
2003-05-01  8:27         ` Kenichi Handa
2003-05-02  7:06           ` Richard Stallman
2003-05-02 21:51             ` Eli Zaretskii
2003-05-03 13:37               ` Juanma Barranquero
2003-05-03 19:04                 ` Eli Zaretskii
2003-05-04 13:03               ` Richard Stallman
2003-05-04 11:04           ` Dave Love
2003-05-04 12:01             ` Simon Josefsson
2003-05-04 17:13               ` Dave Love
2003-05-04 18:03                 ` Simon Josefsson
2003-05-05  8:47             ` Kenichi Handa
2003-04-26 13:44     ` Richard Stallman
2003-04-26 14:10       ` Simon Josefsson
2003-04-28 21:49     ` Stefan Monnier
2003-04-28 22:29       ` Simon Josefsson
2003-04-29 13:49         ` Stefan Monnier
2003-04-29 14:27           ` Simon Josefsson
2003-04-30  4:42             ` Stephen J. Turnbull
2003-04-30  5:43           ` Richard Stallman
2003-05-19  0:40       ` Kenichi Handa
2003-05-19  0:52         ` Stefan Monnier
2003-05-19  2:31           ` Kenichi Handa
2003-05-19 13:28             ` Stefan Monnier
2003-05-19 13:49               ` Stefan Monnier
2003-04-25 16:54 ` Simon Josefsson
2003-04-26  3:55   ` Implementing charset-aware X font names [was: Cyrillic vs UTF-8] Stephen J. Turnbull
2003-04-28 11:09     ` Kenichi Handa
2003-04-28 12:27       ` Implementing charset-aware X font names Stephen J. Turnbull
2003-05-01 11:13         ` Kenichi Handa
2003-05-01 14:14           ` Alex Schroeder
2003-05-01 23:16             ` Kenichi Handa
2003-04-26  7:59   ` Cyrillic vs UTF-8 Kenichi Handa
2003-04-26 12:14     ` Simon Josefsson
2003-05-01  7:20       ` Kenichi Handa
2003-05-01 14:06         ` Alex Schroeder
2003-05-01 18:03         ` Customizing fontsets (was: Cyrillic vs UTF-8) Oliver Scholz
2003-05-02  5:17           ` Customizing fontsets Alex Schroeder
2003-05-02  6:32             ` Kenichi Handa [this message]
2003-05-02 13:25               ` Stefan Monnier
2003-05-03  0:40               ` Oliver Scholz
2003-05-03  1:50                 ` Kenichi Handa
2003-05-03 12:08                   ` Oliver Scholz
2003-05-07  1:22                     ` Kenichi Handa
2003-05-03  0:33             ` Oliver Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305020632.PAA16368@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).