diff --git a/headers/private/servers/app/ServerFont.h b/headers/private/servers/app/ServerFont.h index 1882a78492..d3ad3c8219 100644 --- a/headers/private/servers/app/ServerFont.h +++ b/headers/private/servers/app/ServerFont.h @@ -35,7 +35,7 @@ class FontStyle; class ServerFont { public: - ServerFont(){ ServerFont(NULL); } + ServerFont(void); ServerFont(FontStyle *fstyle, float fsize=12.0, float frotation=0.0, float fshear=90.0, uint16 flags=0, uint8 spacing=B_CHAR_SPACING); ServerFont(const ServerFont &font); diff --git a/src/servers/app/server/ServerFont.cpp b/src/servers/app/server/ServerFont.cpp index 9aeadf8e16..7d10bc7fec 100644 --- a/src/servers/app/server/ServerFont.cpp +++ b/src/servers/app/server/ServerFont.cpp @@ -55,6 +55,21 @@ ServerFont::ServerFont(FontStyle *style, float size, float rotation, float shear fstyle->AddDependent(); } +ServerFont::ServerFont(void) +{ + fstyle=NULL; + fsize=0.0; + frotation=0.0; + fshear=90.0; + fflags=0; + fspacing=B_STRING_SPACING; + fdirection=B_FONT_LEFT_TO_RIGHT; + fface=B_REGULAR_FACE; + ftruncate=B_TRUNCATE_END; + fencoding=B_UNICODE_UTF8; + fbounds.Set(0,0,0,0); +} + /*! \brief Copy Constructor \param font ServerFont to copy