Skip to content

Commit

Permalink
add in fonts for displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
mckennapsean committed Jan 1, 2015
1 parent 97d1dd0 commit b80ba7c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added inst/DejaVuSans.ttf
Binary file not shown.
20 changes: 20 additions & 0 deletions src/Font.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef FONT_H
#define FONT_H


class Font{
protected:
double size;
public:
Font(){
size = 12;
};

virtual void renderString(std::string text, int x, int y, int z=0, bool vertical=false) = 0;

void setSize(double s){
size = s;
};
};

#endif

0 comments on commit b80ba7c

Please sign in to comment.