[wadalabfont-kit] / jis2prim / BitmapFont.cc  

Annotation of /jis2prim/BitmapFont.cc

Parent Directory | Revision Log

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

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

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help