Mailing List Archive

Support open source code!


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

(fwd) Re: Kanji patch for Ghostscript 4.0




Path: misc.twics.com!news.sprintlink.net!news-dc-2.sprintlink.net!www.nntp.primenet.com!nntp.primenet.com!cpk-news-hub1.bbnplanet.com!nntp-hub2.barrnet.net!venus.sun.com!wnoc-sfc-news!wnoc-kyo-news!aist-nara!newspost!chen
From: chen@example.com (Chen Qian)
Newsgroups: fj.sources,fj.os.linux,fj.lang.postscript
Subject: Re:  Kanji patch for Ghostscript 4.0
Followup-To: fj.sources
Date: 16 Oct 1996 00:15:38 GMT
Organization: Nara Institute of Science and Technology
Lines: 88
Distribution: world
Message-ID: <CHEN.96Oct16091538@example.com>
NNTP-Posting-Host: axp43.aist-nara.ac.jp
Xref: misc.twics.com fj.sources:680 fj.os.linux:5814 fj.lang.postscript:366


$BDD!wF`NI@example.com<Bg$G$9!#(B

$B0JA0!"$3$N%K%e!<%9%0%k!<%W$KEj9F$7$?(BGS4.0$B$N4A;z%Q%C%A$K$OF~$lK:$l$?$b(B
$B$N$O0l$D$"$j$^$9!#(B($B:4F#!w%j%`%M%C%H$5$s!"$I$&$b$"$j$,$H$&!#(B)

$B<B$O(BGNU fontutils-0.6$B$K$O%P%0$,$"$j!"4A;z%U%)%s%H$NA43Q%9%Z!<%9!"$D$^(B
$B$j!"?^7A$N$J$$J8;z$r=hM}$G$-$J$$$h$&$G$9!#$=$N$?$a!"(B min-21ku.gsf $B$H(B 
goth-21ku.gsf $B$r:n@example.com$7$h$&$H$9$k$H!"(Bbzrto $B$,(B core dump $B$7$^$9!#(B

$B2<5-$N%Q%C%A$rEv$F$F$_$F2<$5$$!#(B

-------------------------Cut Here ------------------------------------------------
diff -rc orig/fontutils-0.6/bzrto/pstype1.c fontutils-0.6/bzrto/pstype1.c
*** orig/fontutils-0.6/bzrto/pstype1.c	Tue Oct 20 06:15:36 1992
--- fontutils-0.6/bzrto/pstype1.c	Wed Sep 18 15:29:20 1996
***************
*** 369,379 ****
--- 369,381 ----
  static void
  output_bzr_body (bzr_char_type c)
  {
+   int not_empty;
    unsigned this_list;
    spline_list_array_type shape = BZR_SHAPE (c);
    real_coordinate_type start = { 0.0, 0.0 };
    real_coordinate_type current = start;
  
+   not_empty = 0;
    /* Go through the list of splines, outputting the
       path-construction commands.  Since all Type 1 commands are
       relative, we also keep track of the current point.  */
***************
*** 382,389 ****
      {
        unsigned this_spline;
        spline_list_type list = SPLINE_LIST_ARRAY_ELT (shape, this_list);
!       spline_type first_spline = SPLINE_LIST_ELT (list, 0);
  
        /* Start this path.  */
        out_moveto (&current, START_POINT (first_spline));
        
--- 384,397 ----
      {
        unsigned this_spline;
        spline_list_type list = SPLINE_LIST_ARRAY_ELT (shape, this_list);
!       spline_type first_spline;
  
+       if (list.data == NULL || list.length == 0)
+ 	continue;
+ 
+       not_empty = 1;
+       first_spline = SPLINE_LIST_ELT (list, 0);
+ 
        /* Start this path.  */
        out_moveto (&current, START_POINT (first_spline));
        
***************
*** 403,409 ****
  
    /* If we're outputting a subroutine, we want to wind up back at the
       origin, I guess.  */
!   out_moveto (&current, start);
  }
  
  
--- 411,418 ----
  
    /* If we're outputting a subroutine, we want to wind up back at the
       origin, I guess.  */
!   if (not_empty)
!     out_moveto (&current, start);
  }
  
  
-------------------------Cut Here ------------------------------------------------


--
Qian CHEN

Graduate School of Information Science
Nara Institute of Science & Technology

8916-5 Takayama, Ikoma, Nara 630-01, JAPAN
Tel  : +81-7437-2-5272
FAX  : +81-7437-2-5279
Email: chen@example.com

--
-------------
Craig Oda 	craig@example.com	
TWICS - Japan's First Public-Access Internet System, 
   TWICS - IEC Building, 1-21 Yotsuya, Shinjuku-ku, Tokyo 160 JAPAN
Main Reception: 03-3351-5977	Fax: +81-3-3353-6096
Customer Service: 3351-5481   Corporate Sales/Support: 3351-8452
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links