[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode support for GNU Emacs, II




 > Not on my machine. Some ugly font with extrem serifs is used. :(

The default fontset doesn't specify any foundry, so it depends
completely on the fonts installed on your system which one you get. (I
get a Sony font.)

That's why I recommand creating a new fontset, where you have complete
freedom to select exactly the fonts you prefer.

 > Otfried Cheong's package chooses a Japanese font for some Chinese
 > characters.  Is it possible to force it to prefer the Simplified
 > Chinese ones instead?

You can modify the priorities of the various CJK fonts by editing
"charset_priorities" in "utf2mule.c".  This is discussed under "Some
technical details" at the bottom of the webpage.  The default
definition is this:

static int charset_priorities[] = {
  0x81, 0xa4, 0xa5, 0xe0, 0xf5, 0x85, 0xa7, 0xf2, 0x92, 
  0x93, 0x91, 0x98, 0x99, 0x97, 0x95, 0x96, 0xf6, 0x94,
  0x82, 0x83, 0x84, 0x8c, 0x87, 0x86, 0x88, 0x8d, 0x89, 0x8a,
  0xa2, 0xa3, 0xa1, 0xa0,
};

If you want to use a GB font for all CJK chars that are covered by GB,
you would have to move GB (code 0x91) ahead of JIS (0x92), like this:

static int charset_priorities[] = {
  0x81, 0xa4, 0xa5, 0xe0, 0xf5, 0x85, 0xa7, 0xf2, 0x91, 0x92, 
  0x93, 0x98, 0x99, 0x97, 0x95, 0x96, 0xf6, 0x94,
  0x82, 0x83, 0x84, 0x8c, 0x87, 0x86, 0x88, 0x8d, 0x89, 0x8a,
  0xa2, 0xa3, 0xa1, 0xa0,
};

Of course this will NOT turn traditional characters into simplified
ones, it will only select a different font for some chars (and if you
are editing simplified Chinese you'll find it more pleasing to see all
chars from the same font).

Otfried


-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/