all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@etl.go.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Fontset problem
Date: Fri, 6 Sep 2002 22:01:28 +0900 (JST)	[thread overview]
Message-ID: <200209061301.WAA16358@etlken.m17n.org> (raw)
In-Reply-To: <jer8gb192m.fsf@sykes.suse.de> (message from Andreas Schwab on Tue, 03 Sep 2002 15:44:49 +0200)

In article <jer8gb192m.fsf@sykes.suse.de>, Andreas Schwab <schwab@suse.de> writes:
> I'd like to define a fontset that uses courier as the main font, but
> substitutes fixed for the three mule-unicode coding systems (because they
> are much more complete).  Thus I defined the following fontset:

> Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\
> 		 mule-unicode-2500-33ff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1,\
> 		 mule-unicode-e000-ffff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1,\
> 		 mule-unicode-0100-24ff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1

> The problem is that characters in the mule-unicode coding systems are
> always using medium-r-normal style, even if they are supposed to be, say,
> bold.  On the other hand, if I define the fontset in this way:

> Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\
> 		 mule-unicode-2500-33ff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1,\
> 		 mule-unicode-e000-ffff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1,\
> 		 mule-unicode-0100-24ff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1

> Emacs uses the first font that matches
> -*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1, which may not be the
> medium-r-normal style.  What is the right way to define the fontset so
> that Emacs uses the right style?

If you specify an XLFD field other than FOUNDRY, FAMILY,
CHARSET_REGISTRY, CHARSET_ENCODING in each font name, Emacs
tries to use the specified font name as is (i.e. the same
font X server will find from that name).  In your case, you
specify ADSTYLE as NULL and POINT_SIZE as 140.  If you put
`*' in those fields, Emacs's normal font selection mechanism
should work also for those charsets.

So, please try this:

Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\
	mule-unicode-2500-33ff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,\
	mule-unicode-e000-ffff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,\
	mule-unicode-0100-24ff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1

---
Ken'ichi HANDA
handa@etl.go.jp

  reply	other threads:[~2002-09-06 13:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 13:44 Fontset problem Andreas Schwab
2002-09-06 13:01 ` Kenichi Handa [this message]
2002-09-06 13:43   ` Andreas Schwab
2002-09-26  8:10     ` Kenichi Handa
2002-09-26 13:35       ` Andreas Schwab
2002-09-26 14:06       ` Stefan Monnier
2002-09-26 14:20         ` Andreas Schwab
2002-09-26 14:32           ` Stefan Monnier
2002-09-26 14:39             ` Andreas Schwab
2002-09-26 14:40               ` Stefan Monnier
2002-09-26 14:42                 ` Andreas Schwab
2002-09-26 14:48                   ` Stefan Monnier
2002-09-27  1:46                     ` Kenichi Handa

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

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

  git send-email \
    --in-reply-to=200209061301.WAA16358@etlken.m17n.org \
    --to=handa@etl.go.jp \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.