[wadalabfont-kit] / jis2prim / BitmapFont.cc  

View of /jis2prim/BitmapFont.cc

Parent Directory | Revision Log
Revision: 1.3 - (download) (as text) (annotate)
Tue Mar 19 00:33:14 2002 UTC (22 years, 3 months ago) by ktanaka
Branch: MAIN
Changes since 1.2: +4 -0 lines
*** empty log message ***
#include "BitmapFont.h"
ostream& operator<<(ostream &os,const BitmapFont &bf){
#if 0
  os << "width= " << bf.getWidth()  <<",height=" << bf.getHeight() <<"\n";
#endif
  for(int y=0;y<bf.getHeight();y++){
    for(int x=0;x<bf.getWidth();x++){
      if(bf.get(x,y)) os << '@';
      else os << '.';
    }
    os << "\n";
  }
#if 0
  vector<pixel>::iterator it;
  for(it=bf.pixels.begin();it!=bf.pixels.end();it++)
    os << '(' << (*it).first << ',' << (*it).second << ')';
  os << "\n";
#endif
  return os;
}

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help