[wadalabfont-kit] / jis2prim / BitmapFont.cc  

Annotation of /jis2prim/BitmapFont.cc

Parent Directory | Revision Log

Revision: 1.3 - (view) (download) (as text)

1 : ktanaka 1.1 #include "BitmapFont.h"
2 :     ostream& operator<<(ostream &os,const BitmapFont &bf){
3 : ktanaka 1.3 #if 0
4 : ktanaka 1.1 os << "width= " << bf.getWidth() <<",height=" << bf.getHeight() <<"\n";
5 : ktanaka 1.3 #endif
6 : ktanaka 1.1 for(int y=0;y<bf.getHeight();y++){
7 :     for(int x=0;x<bf.getWidth();x++){
8 : ktanaka 1.2 if(bf.get(x,y)) os << '@';
9 :     else os << '.';
10 : ktanaka 1.1 }
11 : ktanaka 1.2 os << "\n";
12 : ktanaka 1.1 }
13 : ktanaka 1.3 #if 0
14 : ktanaka 1.2 vector<pixel>::iterator it;
15 :     for(it=bf.pixels.begin();it!=bf.pixels.end();it++)
16 :     os << '(' << (*it).first << ',' << (*it).second << ')';
17 :     os << "\n";
18 : ktanaka 1.3 #endif
19 : ktanaka 1.2 return os;
20 : ktanaka 1.1 }

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help