From 372d18bde6280f6c335079763c395d818784c369 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 15 Aug 2010 16:56:08 +0000 Subject: [PATCH] Implement naive bold font printing. --- src/font.cpp | 7 +++++++ src/font.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/font.cpp b/src/font.cpp index 72d28383..62373ae6 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -118,3 +118,10 @@ void Font::Print(int x, int y, char const *str) 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); +} + diff --git a/src/font.h b/src/font.h index 18f59bf3..04e1d026 100644 --- a/src/font.h +++ b/src/font.h @@ -31,6 +31,7 @@ public: char const *GetName(); void Print(int x, int y, char const *str); + void PrintBold(int x, int y, char const *str); private: FontData *data;