unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs fonts and unicode
@ 2008-05-02 17:10 Paulo J. Matos
  2008-05-02 23:28 ` Peter Dyballa
  2008-05-04  9:58 ` Neal Becker
  0 siblings, 2 replies; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-02 17:10 UTC (permalink / raw)
  To: emacs list

Hello all,

I grabbed emacs-cvs from gentoo package system portage. Current
version is then:
GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9)

I am trying to view a couple unicode characters and have smooth characters.
I have tried with Shift-leftmousebutton several configurations but all
have something wrong. They don't look nice or they don't display the
unicode characters. I want both.
I have took a couple of screenshots:
Misc Fixed: http://users.ecs.soton.ac.uk/pocm06r/emacs-misc-fixed.png
Fontset startup 10dotmedium:
http://users.ecs.soton.ac.uk/pocm06r/emacs-fontset-startup-10dotmedium.png
Fontset standard 16dotmedium:
http://users.ecs.soton.ac.uk/pocm06r/emacs-fontset-standard16dotmedium.png

The first is ok but doesn't display unicode (see the boxes)?
The second is terrible but displays unicode.
The third is perfect (except letters are probably too big) but no unicode.

How can I have the best of both worlds?

Cheers,

-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

* Re: Emacs fonts and unicode
  2008-05-02 17:10 Emacs fonts and unicode Paulo J. Matos
@ 2008-05-02 23:28 ` Peter Dyballa
  2008-05-06 14:53   ` Paulo J. Matos
  2008-05-04  9:58 ` Neal Becker
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Dyballa @ 2008-05-02 23:28 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: emacs list


Am 02.05.2008 um 19:10 schrieb Paulo J. Matos:

> How can I have the best of both worlds?

Try to extend the fontset(s) you use with something like this:

   (set-fontset-font "fontset-default" (cons (decode-char 'ucs #x2000)
   					 (decode-char 'ucs #x206f)) '("dejavu sans" .  
"iso10646-1"))	; General Punctuation

Before you do so (for every fontset and each of its sizes) you should  
check which fonts have the characters you see as boxes. You are not  
restricted to iso10646-1 encoded fonts, you could also use CJK fonts,  
they just need to provide these glyphs. To determine their Unicode  
value, position the mouse cursor on each of them and type:

	C-u C-x =

You don't need to specify a whole Unicode character block, you can  
use an arbitrary range or even just one code point you want to specify.

--
Greetings

   Pete

Programming today is a race between software engineers striving to  
build bigger and better idiot-proof programs, and the Universe trying  
to produce bigger and better idiots. So far, the Universe is winning.
				– Rich Cook







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

* Re: Emacs fonts and unicode
  2008-05-02 17:10 Emacs fonts and unicode Paulo J. Matos
  2008-05-02 23:28 ` Peter Dyballa
@ 2008-05-04  9:58 ` Neal Becker
  2008-05-06 14:53   ` Paulo J. Matos
  1 sibling, 1 reply; 12+ messages in thread
From: Neal Becker @ 2008-05-04  9:58 UTC (permalink / raw)
  To: help-gnu-emacs

Paulo J. Matos wrote:

> Hello all,
> 
> I grabbed emacs-cvs from gentoo package system portage. Current
> version is then:
> GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9)
> 
> I am trying to view a couple unicode characters and have smooth
> characters. I have tried with Shift-leftmousebutton several configurations
> but all have something wrong. They don't look nice or they don't display
> the unicode characters. I want both.
> I have took a couple of screenshots:
> Misc Fixed: http://users.ecs.soton.ac.uk/pocm06r/emacs-misc-fixed.png
> Fontset startup 10dotmedium:
> http://users.ecs.soton.ac.uk/pocm06r/emacs-fontset-startup-10dotmedium.png
> Fontset standard 16dotmedium:
> http://users.ecs.soton.ac.uk/pocm06r/emacs-fontset-standard16dotmedium.png
> 
> The first is ok but doesn't display unicode (see the boxes)?
> The second is terrible but displays unicode.
> The third is perfect (except letters are probably too big) but no unicode.
> 
> How can I have the best of both worlds?
> 
> Cheers,
> 
I'm happy (so far) using:
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))

Haven't played much with unicode, though.





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

* Re: Emacs fonts and unicode
  2008-05-02 23:28 ` Peter Dyballa
@ 2008-05-06 14:53   ` Paulo J. Matos
  2008-05-06 17:52     ` Peter Dyballa
  0 siblings, 1 reply; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-06 14:53 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs list

On Sat, May 3, 2008 at 12:28 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
>  Am 02.05.2008 um 19:10 schrieb Paulo J. Matos:
>
>
>
> > How can I have the best of both worlds?
> >
>
>  Try to extend the fontset(s) you use with something like this:
>
>   (set-fontset-font "fontset-default" (cons (decode-char 'ucs #x2000)
>                                          (decode-char 'ucs #x206f))
> '("dejavu sans" . "iso10646-1"))  ; General Punctuation
>

Nothing seems to change by adding this .emacs.
Am I missing something? Font is of good size but still aliased and
without unicode.

>  Before you do so (for every fontset and each of its sizes) you should check
> which fonts have the characters you see as boxes. You are not restricted to
> iso10646-1 encoded fonts, you could also use CJK fonts, they just need to
> provide these glyphs. To determine their Unicode value, position the mouse
> cursor on each of them and type:
>
>         C-u C-x =
>
>  You don't need to specify a whole Unicode character block, you can use an
> arbitrary range or even just one code point you want to specify.
>
>  --
>  Greetings
>
>   Pete
>
>  Programming today is a race between software engineers striving to build
> bigger and better idiot-proof programs, and the Universe trying to produce
> bigger and better idiots. So far, the Universe is winning.
>                                 – Rich Cook
>
>
>
>
>
>



-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

* Re: Emacs fonts and unicode
  2008-05-04  9:58 ` Neal Becker
@ 2008-05-06 14:53   ` Paulo J. Matos
  2008-05-06 14:59     ` Neal Becker
  2008-05-06 17:54     ` Peter Dyballa
  0 siblings, 2 replies; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-06 14:53 UTC (permalink / raw)
  To: Neal Becker; +Cc: help-gnu-emacs

On Sun, May 4, 2008 at 10:58 AM, Neal Becker <ndbecker2@gmail.com> wrote:
>
>  I'm happy (so far) using:
>  (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
>
>  Haven't played much with unicode, though.
>

Should I notice any change? I added this to my .emacs but without any
noticeable change...

-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

* Re: Emacs fonts and unicode
  2008-05-06 14:53   ` Paulo J. Matos
@ 2008-05-06 14:59     ` Neal Becker
  2008-05-07  9:34       ` Paulo J. Matos
  2008-05-06 17:54     ` Peter Dyballa
  1 sibling, 1 reply; 12+ messages in thread
From: Neal Becker @ 2008-05-06 14:59 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: help-gnu-emacs

On Tuesday 06 May 2008, Paulo J. Matos wrote:
> On Sun, May 4, 2008 at 10:58 AM, Neal Becker <ndbecker2@gmail.com> wrote:
> >  I'm happy (so far) using:
> >  (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
> >
> >  Haven't played much with unicode, though.
>
> Should I notice any change? I added this to my .emacs but without any
> noticeable change...


My configure has: --enable-font-backend --with-xft --with-freetype 




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

* Re: Emacs fonts and unicode
  2008-05-06 14:53   ` Paulo J. Matos
@ 2008-05-06 17:52     ` Peter Dyballa
  2008-05-07  9:38       ` Paulo J. Matos
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Dyballa @ 2008-05-06 17:52 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: emacs list


Am 06.05.2008 um 16:53 schrieb Paulo J. Matos:

>>  Try to extend the fontset(s) you use with something like this:
>>
>>   (set-fontset-font "fontset-default" (cons (decode-char 'ucs #x2000)
>>                                          (decode-char 'ucs #x206f))
>> '("dejavu sans" . "iso10646-1"))  ; General Punctuation
>>
>
> Nothing seems to change by adding this .emacs.
> Am I missing something? Font is of good size but still aliased and
> without unicode.

Are you using the "fontset-default" fontset? If not, then augment the  
one you are using.

The HELLO buffer (C-h H) shows the changes for me – otherwise I would  
not have written a theoretical contribution. Another, more complete  
test, is the utf8.txt in Kermit.

--
Greetings

   Pete

We are usually convinced more easily by reasons we have found  
ourselves than by those which have occurred to others.
				– Blaise Pascal







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

* Re: Emacs fonts and unicode
  2008-05-06 14:53   ` Paulo J. Matos
  2008-05-06 14:59     ` Neal Becker
@ 2008-05-06 17:54     ` Peter Dyballa
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Dyballa @ 2008-05-06 17:54 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: emacs list


Am 06.05.2008 um 16:53 schrieb Paulo J. Matos:

>>  I'm happy (so far) using:
>>  (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
>>
>>  Haven't played much with unicode, though.
>>
>
> Should I notice any change? I added this to my .emacs but without any
> noticeable change...


In a second or third frame too? You might need to apply this for  
initial-frame-alist too and best remove the X resource that sets GNU  
Emacs' default font.

--
Greetings

   Pete

 From error to error, one discovers the entire truth.
				- Sigmund Freud







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

* Re: Emacs fonts and unicode
  2008-05-06 14:59     ` Neal Becker
@ 2008-05-07  9:34       ` Paulo J. Matos
  0 siblings, 0 replies; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-07  9:34 UTC (permalink / raw)
  To: Neal Becker; +Cc: help-gnu-emacs

On Tue, May 6, 2008 at 3:59 PM, Neal Becker <ndbecker2@gmail.com> wrote:
> On Tuesday 06 May 2008, Paulo J. Matos wrote:
>  > On Sun, May 4, 2008 at 10:58 AM, Neal Becker <ndbecker2@gmail.com> wrote:
>  > >  I'm happy (so far) using:
>  > >  (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
>  > >
>  > >  Haven't played much with unicode, though.
>  >
>  > Should I notice any change? I added this to my .emacs but without any
>  > noticeable change...
>
>
>  My configure has: --enable-font-backend --with-xft --with-freetype
>

I am using gentoo with emerge emacs-cvs so I think I am compiling with
--with-xft but not sure about the other two.
Are you also using emacs 23 from cvs?

>
>



-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

* Re: Emacs fonts and unicode
  2008-05-06 17:52     ` Peter Dyballa
@ 2008-05-07  9:38       ` Paulo J. Matos
  2008-05-07 10:31         ` Peter Dyballa
  0 siblings, 1 reply; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-07  9:38 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs list

On Tue, May 6, 2008 at 6:52 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
>  Am 06.05.2008 um 16:53 schrieb Paulo J. Matos:
>
>
>
> >
> > >  Try to extend the fontset(s) you use with something like this:
> > >
> > >  (set-fontset-font "fontset-default" (cons (decode-char 'ucs #x2000)
> > >                                         (decode-char 'ucs #x206f))
> > > '("dejavu sans" . "iso10646-1"))  ; General Punctuation
> > >
> > >
> >
> > Nothing seems to change by adding this .emacs.
> > Am I missing something? Font is of good size but still aliased and
> > without unicode.
> >
>
>  Are you using the "fontset-default" fontset? If not, then augment the one
> you are using.
>

How do I know if I am using the fontset-default? Moreover, in the
fontset menu with shift left mouse button I don't get any default
option. Instead I get standard 16dotmedium and startup 12dotmedium.

>  The HELLO buffer (C-h H) shows the changes for me – otherwise I would not
> have written a theoretical contribution. Another, more complete test, is the
> utf8.txt in Kermit.

Nope... :( HELLO buffer doesn't change.

>
>  --
>  Greetings
>
>   Pete
>
>  We are usually convinced more easily by reasons we have found ourselves
> than by those which have occurred to others.
>                                 – Blaise Pascal
>
>
>
>
>
>



-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

* Re: Emacs fonts and unicode
  2008-05-07  9:38       ` Paulo J. Matos
@ 2008-05-07 10:31         ` Peter Dyballa
  2008-05-09 11:12           ` Paulo J. Matos
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Dyballa @ 2008-05-07 10:31 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: emacs list


Am 07.05.2008 um 11:38 schrieb Paulo J. Matos:

> How do I know if I am using the fontset-default?

By questioning GNU Emacs: M-x describe-fontset RET RET

(I think it also has the name *-fontset-startup.)

> Moreover, in the
> fontset menu with shift left mouse button I don't get any default
> option. Instead I get standard 16dotmedium and startup 12dotmedium.


So change these! They're some debian gifts.

--
Greetings

   Pete

The box said "Use Windows 95 or better," so I got a Macintosh.






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

* Re: Emacs fonts and unicode
  2008-05-07 10:31         ` Peter Dyballa
@ 2008-05-09 11:12           ` Paulo J. Matos
  0 siblings, 0 replies; 12+ messages in thread
From: Paulo J. Matos @ 2008-05-09 11:12 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs list

On Wed, May 7, 2008 at 11:31 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 07.05.2008 um 11:38 schrieb Paulo J. Matos:
>
>> How do I know if I am using the fontset-default?
>
> By questioning GNU Emacs: M-x describe-fontset RET RET
>
> (I think it also has the name *-fontset-startup.)
>
>> Moreover, in the
>> fontset menu with shift left mouse button I don't get any default
>> option. Instead I get standard 16dotmedium and startup 12dotmedium.
>
>
> So change these! They're some debian gifts.
>

Thank you for all the suggestions. It's great now. I found the
problem. I had a .emacs.elc which was being used but the new .emacs
was not being recompiled so everything I added to the files was not
changing anything.

Cheers,
-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Sponsor ECS runners - Action against Hunger:
http://www.justgiving.com/ecsrunslikethewind




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

end of thread, other threads:[~2008-05-09 11:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 17:10 Emacs fonts and unicode Paulo J. Matos
2008-05-02 23:28 ` Peter Dyballa
2008-05-06 14:53   ` Paulo J. Matos
2008-05-06 17:52     ` Peter Dyballa
2008-05-07  9:38       ` Paulo J. Matos
2008-05-07 10:31         ` Peter Dyballa
2008-05-09 11:12           ` Paulo J. Matos
2008-05-04  9:58 ` Neal Becker
2008-05-06 14:53   ` Paulo J. Matos
2008-05-06 14:59     ` Neal Becker
2008-05-07  9:34       ` Paulo J. Matos
2008-05-06 17:54     ` Peter Dyballa

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).