aseprite/src/ui/font.h

41 lines
974 B
C
Raw Normal View History

// Aseprite UI Library
2013-01-27 15:13:13 +00:00
// Copyright (C) 2001-2013 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
2012-06-18 01:49:58 +00:00
#ifndef UI_FONT_H_INCLUDED
#define UI_FONT_H_INCLUDED
2014-03-29 22:40:17 +00:00
#pragma once
2007-09-18 23:57:02 +00:00
2012-06-18 01:49:58 +00:00
#include "ui/base.h"
2007-09-18 23:57:02 +00:00
struct FONT;
namespace ui {
2007-09-18 23:57:02 +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
int ji_font_get_size(FONT* f);
int ji_font_set_size(FONT* f, int height);
2007-09-18 23:57:02 +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
bool ji_font_is_fixed(FONT* f);
bool ji_font_is_scalable(FONT* f);
2007-09-18 23:57:02 +00:00
const int *ji_font_get_available_fixed_sizes(FONT* f, int* n);
2007-09-18 23:57:02 +00:00
int ji_font_get_char_extra_spacing(FONT* f);
void ji_font_set_char_extra_spacing(FONT* f, int spacing);
int ji_font_char_len(FONT* f, int chr);
int ji_font_text_len(FONT* f, const char* text);
} // namespace ui
2007-09-18 23:57:02 +00:00
2009-08-17 21:38:00 +00:00
#endif