See also OTF_get_table() and OTF_close(). */
-extern OTF *OTF_open (char *name);
+extern OTF *OTF_open (const char *name);
#include <ft2build.h>
#include FT_FREETYPE_H
See also OTF_open(). */
-extern int OTF_get_table (OTF *otf, char *name);
+extern int OTF_get_table (OTF *otf, const char *name);
/*** (2-4) OTF_check_table () */
See also OTF_open(). */
-extern int OTF_check_table (OTF *otf, char *name);
+extern int OTF_check_table (OTF *otf, const char *name);
/*** (2-5) OTF_get_scripts () */
extern int OTF_check_features (OTF *otf, int gsubp,
OTF_Tag script, OTF_Tag language,
- OTF_Tag *features, int n_features);
+ const OTF_Tag *features, int n_features);
/*** (3) API for driving OTF */
use OTF_drive_gsub_alternate(). */
extern int OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring,
- char *script, char *language, char *features);
+ const char *script, const char *language,
+ const char *features);
/*** (3-5) OTF_drive_gpos() */
$GSTRING. $FEATURES is a list of features to apply. */
extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
- char *script, char *language, char *features);
+ const char *script, const char *language,
+ const char *features);
/*** (3-6) OTF_drive_tables() */
order, and update the glyphs string GSTRING. */
extern int OTF_drive_tables (OTF *otf, OTF_GlyphString *gstring,
- char *script, char *language,
- char *gsub_features, char *gpos_features);
+ const char *script, const char *language,
+ const char *gsub_features,
+ const char *gpos_features);
/*** (3-7) OTF_get_unicode() */
(Alternate Substituion). */
extern int OTF_drive_gsub_alternate (OTF *otf, OTF_GlyphString *gstring,
- char *script, char *language,
- char *features);
+ const char *script, const char *language,
+ const char *features);
/*** (4) API for error handling ***/
first, followed by a colon and a blank. Then the message and a
newline. */
-extern void OTF_perror (char *prefix);
+extern void OTF_perror (const char *prefix);
/*** (5) API miscellaneous ***/
NULL, return 0. Otherwise, $NAME must be at least 4-byte length.
Only the first 4 characters are took into an account. */
-extern OTF_Tag OTF_tag (char *name);
+extern OTF_Tag OTF_tag (const char *name);
/***
Convert OTF tag to name string.