all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Multilingual Font  Control
@ 2018-01-25  8:26 Richard Wordingham
  2018-01-25 17:05 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Wordingham @ 2018-01-25  8:26 UTC (permalink / raw)
  To: help-gnu-emacs

I don't use Thai in Emacs very often at the moment, and I hit a display
problem when I had to use it urgently the other night.  I used
describe-char to identify the immediate cause - Emacs was using the
barely readable 'handwritten' font Purisa instead of the usual
default, Kinnari.

I've fixed the problem for many purposes by simply adding the line

(set-fontset-font "fontset-default" 'thai "Kinnari") ;; Def. not Purisa

to my .emacs.  However, this command looks as though it may not work
well with font-locking, which may select other font sets.  Is there
some other method I should use?  I need to specify a font for other
character ranges, so I currently have:

(set-fontset-font "fontset-default" '(#x1a20 . #x1aad) "Da Lekh")
(set-fontset-font "fontset-default" '(#x13000 . #x1342f) "NewGardiner")
(set-fontset-font "fontset-default" 'thai "Kinnari") ;; Def. not Purisa

Richard.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multilingual Font  Control
  2018-01-25  8:26 Multilingual Font Control Richard Wordingham
@ 2018-01-25 17:05 ` Eli Zaretskii
  2018-01-25 19:37   ` Richard Wordingham
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2018-01-25 17:05 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Thu, 25 Jan 2018 08:26:06 +0000
> From: Richard Wordingham <richard.wordingham@ntlworld.com>
> 
> I don't use Thai in Emacs very often at the moment, and I hit a display
> problem when I had to use it urgently the other night.  I used
> describe-char to identify the immediate cause - Emacs was using the
> barely readable 'handwritten' font Purisa instead of the usual
> default, Kinnari.

What Emacs version was that, and on what OS?

> I've fixed the problem for many purposes by simply adding the line
> 
> (set-fontset-font "fontset-default" 'thai "Kinnari") ;; Def. not Purisa
> 
> to my .emacs.  However, this command looks as though it may not work
> well with font-locking, which may select other font sets.

Why do you think it will not work with font-lock?  I see no reason why
it shouldn't.

> Is there some other method I should use?

No (but do try Emacs 25.2 or later first).  If the default fontset is
not to your liking for some script or range of codepoints, you should
customize your fontset as you did.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multilingual Font  Control
  2018-01-25 17:05 ` Eli Zaretskii
@ 2018-01-25 19:37   ` Richard Wordingham
  2018-01-26  7:47     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Wordingham @ 2018-01-25 19:37 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 25 Jan 2018 19:05:03 +0200
Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 25 Jan 2018 08:26:06 +0000
> > From: Richard Wordingham <richard.wordingham@ntlworld.com>
> > 
> > I don't use Thai in Emacs very often at the moment, and I hit a
> > display problem when I had to use it urgently the other night.  I
> > used describe-char to identify the immediate cause - Emacs was
> > using the barely readable 'handwritten' font Purisa instead of the
> > usual default, Kinnari.  
> 
> What Emacs version was that, and on what OS?
OS is Ubuntu 16.04.3, Emacs versions 24.4 and 25.3.

> 
> > I've fixed the problem for many purposes by simply adding the line
> > 
> > (set-fontset-font "fontset-default" 'thai "Kinnari") ;; Def. not
> > Purisa
> > 
> > to my .emacs.  However, this command looks as though it may not work
> > well with font-locking, which may select other font sets.  
> 
> Why do you think it will not work with font-lock?  I see no reason why
> it shouldn't.

I thought that other faces would be defined by the time .emacs executed
the expression.  Looking closer, it does seem that they are defined
later, and presumably based on fontset-default by default.

Richard.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multilingual Font  Control
  2018-01-25 19:37   ` Richard Wordingham
@ 2018-01-26  7:47     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2018-01-26  7:47 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Thu, 25 Jan 2018 19:37:41 +0000
> From: Richard Wordingham <richard.wordingham@ntlworld.com>
> 
> > Why do you think it will not work with font-lock?  I see no reason why
> > it shouldn't.
> 
> I thought that other faces would be defined by the time .emacs executed
> the expression.  Looking closer, it does seem that they are defined
> later, and presumably based on fontset-default by default.

Yes, of course.  Because that's the only thing that would make sense.

In general, Emacs will never change a font unless the default one
fails to support some feature (or explicitly told to do so by the
user), and with faces normally used by font-lock, that should never
happen.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-26  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-25  8:26 Multilingual Font Control Richard Wordingham
2018-01-25 17:05 ` Eli Zaretskii
2018-01-25 19:37   ` Richard Wordingham
2018-01-26  7:47     ` Eli Zaretskii

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.