From 8525c857da966580c57aa595ec44ba1c4fc2326a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 13 Mar 2015 14:32:06 +0000 Subject: Clean up more windows frontend issues and split out more functionality --- windows/font.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'windows/font.h') diff --git a/windows/font.h b/windows/font.h index 263d005af..ec596f384 100644 --- a/windows/font.h +++ b/windows/font.h @@ -17,6 +17,11 @@ * along with this program. If not, see . */ +/** + * \file + * The interface to the win32 font and utf8 handling. + */ + #ifndef _NETSURF_WINDOWS_FONT_H_ #define _NETSURF_WINDOWS_FONT_H_ @@ -28,11 +33,19 @@ struct font_desc { const char *encoding; }; +struct gui_utf8_table *win32_utf8_table; + extern nserror utf8_to_font_encoding(const struct font_desc* font, const char *string, size_t len, char **result); +/** + * generate a win32 font handle from a generic font style + * + * \param style The font style. + * \return The win32 font handle + */ HFONT get_font(const plot_font_style_t *style); #endif /* NETSURF_WINDOWS_FONT_H */ -- cgit v1.2.3