2012-01-06 04:12:57 +00:00
|
|
|
// ASEPRITE gui library
|
2012-01-06 03:52:11 +00:00
|
|
|
// Copyright (C) 2001-2012 David Capello
|
2010-09-27 22:18:17 +00:00
|
|
|
//
|
|
|
|
// This source file is ditributed under a BSD-like license, please
|
|
|
|
// read LICENSE.txt for more information.
|
|
|
|
|
2011-01-30 22:12:10 +00:00
|
|
|
#ifndef GUI_FONT_H_INCLUDED
|
|
|
|
#define GUI_FONT_H_INCLUDED
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-01-30 22:12:10 +00:00
|
|
|
#include "gui/base.h"
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
struct FONT;
|
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
FONT* ji_font_load(const char* filepathname);
|
|
|
|
FONT* ji_font_load_bmp(const char* filepathname);
|
|
|
|
FONT* ji_font_load_ttf(const char* filepathname);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
int ji_font_get_size(FONT* f);
|
|
|
|
int ji_font_set_size(FONT* f, int height);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
int ji_font_get_aa_mode(FONT* f);
|
|
|
|
int ji_font_set_aa_mode(FONT* f, int mode);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
bool ji_font_is_fixed(FONT* f);
|
|
|
|
bool ji_font_is_scalable(FONT* f);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
const int *ji_font_get_available_fixed_sizes(FONT* f, int* n);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
int ji_font_get_char_extra_spacing(FONT* f);
|
|
|
|
void ji_font_set_char_extra_spacing(FONT* f, int spacing);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2011-02-02 03:42:19 +00:00
|
|
|
int ji_font_char_len(FONT* f, int chr);
|
|
|
|
int ji_font_text_len(FONT* f, const char* text);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2009-08-17 21:38:00 +00:00
|
|
|
#endif
|