2008-08-10 13:57:41 +04:00
|
|
|
/*
|
2009-01-16 23:05:21 +03:00
|
|
|
* Copyright 2008,2009 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
2008-08-10 13:57:41 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AMIGA_FONT_H
|
|
|
|
#define AMIGA_FONT_H
|
|
|
|
|
|
|
|
#include "css/css.h"
|
2008-08-17 20:22:40 +04:00
|
|
|
#include <graphics/text.h>
|
2008-08-10 13:57:41 +04:00
|
|
|
|
2009-01-20 19:53:06 +03:00
|
|
|
#define NSA_NORMAL 0
|
|
|
|
#define NSA_ITALIC 1
|
|
|
|
#define NSA_BOLD 2
|
|
|
|
#define NSA_BOLDITALIC 3
|
|
|
|
|
2008-08-17 20:22:40 +04:00
|
|
|
struct TextFont *ami_open_font(struct css_style *);
|
|
|
|
void ami_close_font(struct TextFont *tfont);
|
2009-04-18 20:56:22 +04:00
|
|
|
ULONG ami_unicode_text(struct RastPort *rp,const char *string,ULONG length,const struct css_style *style,ULONG x,ULONG y,ULONG c);
|
2009-01-16 23:05:21 +03:00
|
|
|
|
|
|
|
void ami_init_fonts(void);
|
|
|
|
void ami_close_fonts(void);
|
2008-08-10 13:57:41 +04:00
|
|
|
#endif
|