Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
UGFontRenderer.h
00001 #ifndef SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H 00002 #define SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H 00003 00004 #include "FontRenderer.h" 00005 #include "UGFont.h" 00006 #include "GraphicsDisplay.h" 00007 /** 00008 * Provides two means to render a font 00009 * - windowed: uses the same wrap-around algorithm as UniGraphic 00010 * - clipped: does not wrap. Only shows pixels within the clipping window 00011 **/ 00012 00013 class UGFontRenderer : public FontRenderer 00014 { 00015 00016 public: 00017 00018 UGFontRenderer(); 00019 00020 virtual void putc(const char c, GraphicsDisplay* display, Font* font); 00021 virtual void puts(const char* s, GraphicsDisplay* display, Font* font); 00022 //virtual void setFont(UGFont* font); 00023 00024 private: 00025 00026 UGFont* _font; 00027 00028 }; 00029 00030 #endif
Generated on Tue Jul 12 2022 22:27:14 by
