summaryrefslogtreecommitdiff
path: root/windows/font.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
commit8525c857da966580c57aa595ec44ba1c4fc2326a (patch)
tree952b61909ac17ad4666f82c005e4470ea20ff3f4 /windows/font.h
parenta487f7e611550b0058a780cf673480eb8de6f799 (diff)
downloadnetsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.gz
netsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.bz2
Clean up more windows frontend issues and split out more functionality
Diffstat (limited to 'windows/font.h')
-rw-r--r--windows/font.h13
1 files changed, 13 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * \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 */