Added variables to build SDL2_ttf with HarfBuzz and added functions to
the engine to support defining the text direction and script name
This commit is contained in:
1 parent
e04effec37
commit
79944cfa13
3 files changed
+37
No files matched your search
@@ -14,6 +14,13 @@
|
||||
extern "C" {
|
||||
#endif // !__cplusplus
|
||||
|
||||
typedef enum {
|
||||
FONT_DIRECTION_LTR = TTF_DIRECTION_LTR,
|
||||
FONT_DIRECTION_RTL = TTF_DIRECTION_RTL,
|
||||
FONT_DIRECTION_TTB = TTF_DIRECTION_TTB,
|
||||
FONT_DIRECTION_BTT = TTF_DIRECTION_BTT,
|
||||
} FontDirection;
|
||||
|
||||
// GENERAL ENGINE API
|
||||
|
||||
/**
|
||||
@@ -80,6 +87,8 @@ TextSize get_text_size_from_font_asset(AssetID id, const char *text);
|
||||
void render_text_with_font_asset(AssetID id, const char *text, f32 x, f32 y,
|
||||
SDL_Color color);
|
||||
void set_font_asset_size(AssetID id, u32 size);
|
||||
i32 set_font_direction(AssetID id, FontDirection direction);
|
||||
i32 set_font_script_name(AssetID id, const char *script);
|
||||
// END RENDERING API
|
||||
|
||||
// AUDIO API
|
||||
|
||||
Reference in new issue
Block a user