alias in pangox.alias



Hi experts,


I have quality issues about Japanese fonts in Pango. 
When we choose small size fonts in GNOME2.0.2 (pango 1.0.5) 
+ Solaris 9, The rendering in Japanese fonts are very ugly. 

I have one remedy to add some alias to pangox.alias. 
However I don't have an explicit answer that it is no problem 
for pango specification. I would like to ask you it.

Do you have any ideas to add gothic and mincho as aliases to 
pangox.alias below?

gothic normal normal normal normal \
  "-ricoh-hg gothic b-medium-r-normal--*-*-*-*-c-*-jisx0201.1976-0,\
   -ricoh-hg gothic b-medium-r-normal--*-*-*-*-c-*-jisx0208.1983-0,\
   -ricoh-gothic-medium-r-normal--*-*-*-*-*-*-jisx0212.1990-0,\
   -ricoh-gothic-medium-r-normal--*-*-*-*-*-*-jisx0213.2000-1,\
   -ricoh-gothic-medium-r-normal--*-*-*-*-*-*-jisx0213.2000-2,\
   -adobe-helvetica-medium-r-normal--*-*-*-*-*-*-iso8859-1"

mincho normal normal normal normal \
  "-ricoh-hg mincho l-medium-r-normal--*-*-*-*-c-*-jisx0201.1976-0,\
   -ricoh-hg mincho l-medium-r-normal--*-*-*-*-c-*-jisx0208.1983-0,\
   -ricoh-mincho-medium-r-normal--*-*-*-*-*-*-jisx0212.1990-0,\
   -ricoh-mincho-medium-r-normal--*-*-*-*-*-*-jisx0213.2000-1,\
   -ricoh-mincho-medium-r-normal--*-*-*-*-*-*-jisx0213.2000-2,\
   -adobe-utopia-medium-r-normal--*-*-*-*-*-*-iso8859-1"

This remedy can fix problems that characters are very ugly 
in small Japanese fonts when gtk applications(Mozilla, etc) 
choose any fonts beside sans, serif, and monospace.
I think that the issue occurs because 'gothic' in jisx0208 
does not have small point size but 'hg gothic b' in jisx0208 has 
small point size.

% xlsfonts -fn '-sun-minchou-bold-r-normal--*-*-*-*-c-*-jisx0208.1983-0'
-sun-gothic-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
-sun-gothic-medium-r-normal--14-120-75-75-c-120-jisx0208.1983-0   <----
-sun-gothic-medium-r-normal--16-140-75-75-c-140-jisx0208.1983-0
-sun-gothic-medium-r-normal--18-160-75-75-c-160-jisx0208.1983-0
-sun-gothic-medium-r-normal--22-200-75-75-c-200-jisx0208.1983-0
-sun-gothic-medium-r-normal--26-240-75-75-c-240-jisx0208.1983-0

% xlsfonts -fn '-ricoh-hg gothic b-medium-r-normal--*-*-*-*-c-*-jisx0208.1983-0'
-ricoh-hg gothic b-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--0-0-72-72-c-0-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--10-100-72-72-c-100-jisx0208.1983-0  <----
-ricoh-hg gothic b-medium-r-normal--12-120-72-72-c-0-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--12-120-72-72-c-0-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--12-120-72-72-c-120-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--14-140-72-72-c-140-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--16-160-72-72-c-160-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--18-180-72-72-c-180-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--20-200-72-72-c-200-jisx0208.1983-0
-ricoh-hg gothic b-medium-r-normal--24-240-72-72-c-240-jisx0208.1983-0

Sans, serif, and monospace have similar problems. If sans has 
only sun-gothic as jisx0208 font, pango renders ugly glyph. 
But If sans has ricoh-hg gothic b as jisx0208 font, pago renders 
fine glyph.

So when pango refers 'gothic', I would like to point 'hg gothic b' 
in jisx0208/0201 against 'gothic', and when pango refers 'mincho', 
I would like to point 'hg mincho l' in jisx0208/0201 against 'mincho'.
pangox.alias in Solaris has distinct directory(/etc/pango/$locale/pangox.alias) 
by locale, so pangox.alias can be set in each locale.

I think this remedy has a pretty pit, i.e. 
If set 'gothic bold normal normal normal' in pangox.alias, 
user can see duplicated  'Bold' fonts in gnome-font-properties.
It is no problem in 'gothic normal normal normal normal' because 
gothic fonts originally have 'medium' style but not 'normal' style.

I do not join this mail alias, so please mail to me directly.
Thanks in advance,

Sun Microsystems
Software Engineer
Tokyo Software Center
Takao Fujiwara
E-Mail: Takao Fujiwara Sun COM
Tel: +81-45-227-9287(direct)/Fax: +81-45-225-5295




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