00001 00002 00003 00004 #ifndef GOSU_TEXT_HPP 00005 #define GOSU_TEXT_HPP 00006 00007 #include <Gosu/Fwd.hpp> 00008 #include <Gosu/Color.hpp> 00009 #include <Gosu/GraphicsBase.hpp> 00010 #include <string> 00011 00012 namespace Gosu 00013 { 00016 std::wstring defaultFontName(); 00017 00021 unsigned textWidth(const std::wstring& text, 00022 const std::wstring& fontName, unsigned fontHeight, 00023 unsigned fontFlags = 0); 00024 00030 void drawText(Bitmap& bitmap, const std::wstring& text, int x, int y, 00031 Color c, const std::wstring& fontName, unsigned fontHeight, 00032 unsigned fontFlags = 0); 00033 00040 Bitmap createText(const std::wstring& text, 00041 const std::wstring& fontName, unsigned fontHeight, 00042 unsigned fontFlags = 0); 00043 00054 Bitmap createText(const std::wstring& text, 00055 const std::wstring& fontName, unsigned fontHeight, 00056 unsigned lineSpacing, unsigned maxWidth, TextAlign align, 00057 unsigned fontFlags = 0); 00058 } 00059 00060 #endif
Documentation not clear enough? Please go to one of the places listed on http://www.libgosu.org/ and leave feedback. Thanks!