[wadalabfont-kit] / jis2prim / BitmapFont.cc  

Diff of /jis2prim/BitmapFont.cc

Parent Directory | Revision Log

version 1.2, Fri Feb 22 12:03:48 2002 UTC version 1.3, Tue Mar 19 00:33:14 2002 UTC
Line 1 
Line 1 
 #include "BitmapFont.h"  #include "BitmapFont.h"
 ostream& operator<<(ostream &os,const BitmapFont &bf){  ostream& operator<<(ostream &os,const BitmapFont &bf){
   #if 0
   os << "width= " << bf.getWidth()  <<",height=" << bf.getHeight() <<"\n";    os << "width= " << bf.getWidth()  <<",height=" << bf.getHeight() <<"\n";
   #endif
   for(int y=0;y<bf.getHeight();y++){    for(int y=0;y<bf.getHeight();y++){
     for(int x=0;x<bf.getWidth();x++){      for(int x=0;x<bf.getWidth();x++){
       if(bf.get(x,y)) os << '@';        if(bf.get(x,y)) os << '@';
Line 8 
Line 10 
     }      }
     os << "\n";      os << "\n";
   }    }
   #if 0
   vector<pixel>::iterator it;    vector<pixel>::iterator it;
   for(it=bf.pixels.begin();it!=bf.pixels.end();it++)    for(it=bf.pixels.begin();it!=bf.pixels.end();it++)
     os << '(' << (*it).first << ',' << (*it).second << ')';      os << '(' << (*it).first << ',' << (*it).second << ')';
   os << "\n";    os << "\n";
   #endif
   return os;    return os;
 }  }


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help