#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)) cout << '@'; |
if(bf.get(x,y)) os << '@'; |
else cout << '.'; |
else os << '.'; |
} |
} |
cout << "\n"; |
os << "\n"; |
} |
} |
return cout; |
#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; |
} |
} |