Skip to content

Commit 840cb98

Browse files
GLFont: Remove unused constructor with hard-coded font.
1 parent 176ffde commit 840cb98

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

components/pango_opengl/include/pangolin/gl/glfont.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class PANGOLIN_EXPORT GlFont
4141
// Load GL Font data. Delay uploading as texture until first use.
4242
GlFont(const unsigned char* ttf_buffer, float pixel_height, int tex_w=512, int tex_h=512);
4343
GlFont(const std::string& filename, float pixel_height, int tex_w=512, int tex_h=512);
44-
GlFont(float pixel_height, int tex_w=512, int tex_h=512);
4544

4645
virtual ~GlFont();
4746

components/pango_opengl/src/glfont.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252

5353
#define MAX_TEXT_LENGTH 500
5454

55-
// Embedded fonts:
56-
PANGOLIN_EXPORT extern const unsigned char AnonymousPro_ttf[];
57-
5855
namespace pangolin
5956
{
6057

@@ -141,12 +138,6 @@ std::string format(const char * format, ...)
141138
return s;
142139
}
143140

144-
145-
GlFont::GlFont(float pixel_height, int tex_w, int tex_h)
146-
{
147-
InitialiseFont( AnonymousPro_ttf, pixel_height, tex_w, tex_h );
148-
}
149-
150141
GlFont::GlFont(const unsigned char* truetype_data, float pixel_height, int tex_w, int tex_h)
151142
{
152143
InitialiseFont(truetype_data, pixel_height, tex_w, tex_h);

0 commit comments

Comments
 (0)