diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2012-09-23 17:16:23 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2012-09-23 17:16:23 +0000 |
| commit | 232af17364d232f01139e834bb27be16555b42e9 (patch) | |
| tree | 25c81b7948265e4a02b9a82115fc52bf606751c5 /src/libunicode-convert/unicode-convert.h | |
| parent | Fixes bug #1002351: configure.ac warnings on newer autoconf (diff) | |
| download | inkscape-232af17364d232f01139e834bb27be16555b42e9.tar.gz inkscape-232af17364d232f01139e834bb27be16555b42e9.zip | |
Add libunicode-convert: routines for converting between Unicode and nonunicode fonts
(bzr r11668.1.7)
Diffstat (limited to 'src/libunicode-convert/unicode-convert.h')
| -rw-r--r-- | src/libunicode-convert/unicode-convert.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/libunicode-convert/unicode-convert.h b/src/libunicode-convert/unicode-convert.h new file mode 100644 index 000000000..ac1795092 --- /dev/null +++ b/src/libunicode-convert/unicode-convert.h @@ -0,0 +1,51 @@ +/** @file + * @brief Enhanced Metafile Input/Output + */ +/* Authors: + * David Mathog <mathog@caltech.edu> + * + * Copyright (C) 2012 Authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef SEEN_UNICODE_CONVERT_H +#define SEEN_UNICODE_CONVERT_H +#include <stdlib.h> +#include <stdbool.h> +#include <stdint.h> + + enum cvt_to_font {CVTNON, CVTSYM, CVTZDG, CVTWDG}; + + void msdepua(uint32_t *text); //translate down from Microsoft Private Use Area + void msrepua(uint16_t *text); //translate up to Microsoft Private Use Area + int isNon(char *font); //returns one of the cvt_to_font enum values + char *FontName(int code); //returns the font name (or NULL) given the enum code + int NonToUnicode(uint32_t *text, char *font); //nonunicode to Unicode translation + int CanUTN(void); // 1 if tables exist for UnicodeToNon translation + int SingleUnicodeToNon(uint16_t text); //retuns the enum value for this translation + void UnicodeToNon(uint16_t *text, int *ecount, int *edest); //translate Unicode to NonUnicode + void TableGen(bool symb, bool wing, bool zdng, bool pua); + +#ifdef __cplusplus +} +#endif + +#endif /* SEEN_UNICODE_CONVERT_H */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : + + |
