From b968a310699595ff139278440ae278aebf112c1f Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Mon, 31 May 2004 19:56:56 +0000 Subject: - "Background" may be initialized with a color now - fixed channel name/number display - added parameter type (to store logo's filetype) - "Timebar", "Progressbar" and "Volumebar": Background is only drawn if bg is specified - fixed timebar (was running backwards) - renamed "Progressbar" to "Replaybar" for more consistency - renamed "Logo" to "ChannelLogo" - introduced items "Language" (for audio language texts or symbols) and "Image" (foreground images) - adopted SKINS document (SKINS.de is not up-to-date yet) - introduced item "MenuTitle" - introduced items "MenuRed", "MenuGreen", "MenuYellow" and "MenuBlue" - activated message items for display in menu - introcuded parameter "arc" and item "Slope" - fixed possible segfault in Item=Message - implemented items "SymbolReplaying" and "SymbolRadio" - added "text" parameter for all text like Items (explanation follows) - added "SymbolPlay", "SymbolPause", "SymbolFastFwd", "SymbolFastRew", "SymbolSlowFwd", "SymbolSlowRew" items. --- font.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 font.h (limited to 'font.h') diff --git a/font.h b/font.h new file mode 100644 index 0000000..327c6ac --- /dev/null +++ b/font.h @@ -0,0 +1,41 @@ +/* + * $Id: font.h,v 1.3 2004/05/29 00:27:22 lordjaxom Exp $ + */ + +#ifndef VDR_TEXT2SKIN_FREETYPE_H +#define VDR_TEXT2SKIN_FREETYPE_H + +#include +#include FT_FREETYPE_H + +#include +using std::string; + +#include "data.h" + +// kannst noch einbauen, dass er die fonts "fontOsd" "fontSml" und "fontFix" aus VDR statt aus freetype nimmt + +// ================================== +/* cText2SkinFont + + Adds interface to FreeTpye font lib. +*/ +class cText2SkinFont +{ +public: + cText2SkinFont(); + ~cText2SkinFont(); + + // font handling + bool LoadFontFile(string Filename); + void SetFontSize(int size); + void DrawTextTransparent(cOsd *Osd, int x, int y, const char *s, tColor ColorFg, int Width, int Height, int Alignment); + +private: + FT_Library m_library; + FT_Face m_face; + FT_GlyphSlot m_slot; + +}; + +#endif /*VDR_TEXT2SKIN_FREETYPE_H*/ -- cgit v1.2.3