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.
Dependents: TouchScreenGUIDemo
Font/UGFont/UGFontRenderer.h
- Committer:
- duncanFrance
- Date:
- 2016-05-28
- Revision:
- 18:d849f3ada858
- Parent:
- 8:a460cabc85ac
File content as of revision 18:d849f3ada858:
#ifndef SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H
#define SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H
#include "FontRenderer.h"
#include "UGFont.h"
#include "GraphicsDisplay.h"
/**
* Provides two means to render a font
* - windowed: uses the same wrap-around algorithm as UniGraphic
* - clipped: does not wrap. Only shows pixels within the clipping window
**/
class UGFontRenderer : public FontRenderer
{
public:
UGFontRenderer();
virtual void putc(const char c, GraphicsDisplay* display, Font* font);
virtual void puts(const char* s, GraphicsDisplay* display, Font* font);
//virtual void setFont(UGFont* font);
private:
UGFont* _font;
};
#endif