Browse Source

Implement naive bold font printing.

legacy
Sam Hocevar sam 14 years ago
parent
commit
372d18bde6
2 changed files with 8 additions and 0 deletions
  1. +7
    -0
      src/font.cpp
  2. +1
    -0
      src/font.h

+ 7
- 0
src/font.cpp View File

@@ -118,3 +118,10 @@ void Font::Print(int x, int y, char const *str)
glEnd(); glEnd();
} }


void Font::PrintBold(int x, int y, char const *str)
{
Print(x, y, str);
Print(x + 1, y, str);
Print(x, y + 1, str);
}


+ 1
- 0
src/font.h View File

@@ -31,6 +31,7 @@ public:
char const *GetName(); char const *GetName();


void Print(int x, int y, char const *str); void Print(int x, int y, char const *str);
void PrintBold(int x, int y, char const *str);


private: private:
FontData *data; FontData *data;


Loading…
Cancel
Save