Font changes, Text (harfbuzz) and sample project added
This commit is contained in:
35
project/include/graphics/Text.h
Normal file
35
project/include/graphics/Text.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef LIME_GRAPHICS_TEXT_H
|
||||
#define LIME_GRAPHICS_TEXT_H
|
||||
|
||||
|
||||
#include <hb.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Font;
|
||||
|
||||
|
||||
class Text {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Text (hb_tag_t direction, const char *script, const char *language);
|
||||
~Text ();
|
||||
|
||||
void fromString (Font *font, const char *text);
|
||||
|
||||
private:
|
||||
|
||||
hb_buffer_t *buffer;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user