Kazuhiko <[EMAIL PROTECTED]> writes:

[...]

> I am a maintainer of efont unicode bdf font.
> (http://openlab.ring.gr.jp/efont/unicode/)
>
> At Wed, 14 Nov 2001 02:12:19 +0100 (CET),
> Markus Kuhn wrote:
>
>> xterm is not suited for proportional or bi-width fonts. Split the font
>> up into a 8x16/16x16 pair, and there will be no problems. Just like
>> you have to do with Unifont.
>
> You can make full-width only fonts by
>
> $ make f10.bdf f12.bdf f14.bdf f16.bdf f24.bdf

> with efont unicode bdf source archive:
> http://openlab.ring.gr.jp/efont/dist/unicode-bdf/efont-unicode-bdf-0.4.0-src.tar.bz2
>
> NOTICE: these f??.bdf still have '-*-biwidth-*-*-*--*-*-*-*-p-*-'
> properties. so if you find problem with them, please change propeties to
> '-*-fixed-*-*-*--*-*-*-*-c-*-'.

I build a new package from your sources enabling the full-width fonts
and changing the XLFD according to your suggestion:

--- efont-unicode-bdf-0.4.0-src/Makefile.in.orig	Wed Nov 14 20:07:01 2001
+++ efont-unicode-bdf-0.4.0-src/Makefile.in	Wed Nov 14 20:09:27 2001
@@ -36,7 +36,8 @@
 	      $(H10SOURCES) $(F10SOURCES)
 
 BDFFILES = h24.bdf b24.bdf h16.bdf b16.bdf h14.bdf b14.bdf h12.bdf b12.bdf \
-	   h10.bdf b10.bdf
+	   h10.bdf b10.bdf \
+	   f10.bdf f12.bdf f14.bdf f16.bdf f24.bdf 
 
 HEXFILES = $(BDFFILES:.bdf=.hex)
 PCFFILES = $(BDFFILES:.bdf=.pcf.gz)
--- efont-unicode-bdf-0.4.0-src/tools/hex2bdf.in.orig	Thu Nov 15 12:46:48 2001
+++ efont-unicode-bdf-0.4.0-src/tools/hex2bdf.in	Thu Nov 15 12:47:59 2001
@@ -19,7 +19,12 @@
 
 print "STARTFONT 2.1\n";
 if ($pxlsz_x == $pxlsz_y) {
-  print "FONT -Efont-Biwidth-Medium-R-Normal--$pxlsz_y-$ptSz-75-75-P-$avgWdth-ISO10646-1\n";
+  if ($ARGV =~ /^f/) {
+    $avgWdth = $avgWdth * 2;
+    print "FONT -Efont-Fixed-Medium-R-Normal--$pxlsz_y-$ptSz-75-75-C-$avgWdth-ISO10646-1\n";
+  } else {
+    print "FONT -Efont-Biwidth-Medium-R-Normal--$pxlsz_y-$ptSz-75-75-P-$avgWdth-ISO10646-1\n";
+  }
   $default_char = 0x3000; # IDEOGRAPHIC SPACE
 } else {
   print "FONT -Efont-Fixed-Medium-R-Normal--$pxlsz_y-$ptSz-75-75-C-$avgWdth-ISO10646-1\n";
(It also seemed to be necessary to use twice the
average width for the full-width fonts, otherwise the XLFD of the
full-with font and the half-width font would be identical).

RPMs are here:

ftp://ftp.suse.com/pub/people/mfabian/7.3-noarch/efont-unicode-0.4.0-0.noarch.rpm
ftp://ftp.suse.com/pub/people/mfabian/7.3-src/efont-unicode-0.4.0-0.src.rpm

Then I added the following lines to my ~/.Xresources

    UXTerm*font:     -misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1
    UXTerm*wideFont: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1

    UXTerm*font1:     -efont-fixed-medium-r-normal-*-12-120-75-75-c-60-iso10646-1
    UXTerm*wideFont1: -efont-fixed-medium-r-normal-*-12-120-75-75-c-120-iso10646-1
    UXTerm*font2:     -misc-fixed-medium-r-normal-*-13-120-75-75-c-70-iso10646-1
    UXTerm*wideFont2: -misc-fixed-medium-r-normal-*-13-120-75-75-c-120-iso10646-1
    UXTerm*font3:     -efont-fixed-medium-r-normal-*-14-140-75-75-c-70-iso10646-1
    UXTerm*wideFont3: -efont-fixed-medium-r-normal-*-14-140-75-75-c-140-iso10646-1
    UXTerm*font4:     -efont-fixed-medium-r-normal-*-16-160-75-75-c-80-iso10646-1
    UXTerm*wideFont4: -efont-fixed-medium-r-normal-*-16-160-75-75-c-160-iso10646-1
    UXTerm*font5:     -misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1
    UXTerm*wideFont5: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1
    UXTerm*font6:     -efont-fixed-medium-r-normal-*-24-240-75-75-c-120-iso10646-1
    UXTerm*wideFont6: -efont-fixed-medium-r-normal-*-24-240-75-75-c-240-iso10646-1

started xterm like

    ~$ LANG=ja_JP.UTF-8 xterm -class UXTerm

and found that your fonts work fine now with xterm.
Thank you very much Kazuhiko. Great work!

But surprisingly the 13 pixel fonts from Markus Kuhn didn't seem to
work (CJK glyphs from Markus Kuhn's example file
18x18ja.repertoire-utf8 didn't display correctly) when set via
~/.Xresources, although they work fine when specified on the command
line:

    ~$ LANG=ja_JP.UTF-8 xterm \
        -fn -misc-fixed-medium-r-normal-*-13-120-75-75-c-70-iso10646-1 \
        -fw -misc-fixed-medium-r-normal-*-13-120-75-75-c-120-iso10646-1

That's weird. Why does it behave differently when specified via the
~/.Xresources. And why isn't the average width of hte 'wide' font
twice the average width of the 'normal' font in case of the 13 pixel
font?

-- 
Mike Fabian   <[EMAIL PROTECTED]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

Reply via email to