diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-10 21:26:21 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-10 21:26:21 +0000 |
commit | dd0245c7629630c52a33f301ce5ba687ec353cff (patch) | |
tree | fefc5c8f24a7ad1fd4db35a1e33fe4fcce78a276 /pango/pango-ot.h | |
parent | f20dc94b7ed3bcf37f5bfc8bc5d8bf8596954a60 (diff) | |
download | pango-dd0245c7629630c52a33f301ce5ba687ec353cff.tar.gz |
New public API:
2007-05-10 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am:
* pango/pango-ot.h:
* pango/pango-ot-tag.c (pango_ot_tag_from_script),
(pango_ot_tag_to_script), (lang_compare_first_component),
(pango_ot_tag_from_language), (pango_ot_tag_to_language):
New public API:
PANGO_OT_DEFAULT_SCRIPT
pango_ot_tag_from_script()
pango_ot_tag_to_script()
pango_ot_tag_from_language()
pango_ot_tag_to_language()
* tests/Makefile.am:
* tests/test-ot-tags.c:
Test case for new functions.
* pango/pangoft2.def:
* docs/pango-docs.sgml:
* docs/pango-sections.txt:
* docs/tmpl/main.sgml:
* docs/tmpl/opentype.sgml:
Updated.
svn path=/trunk/; revision=2274
Diffstat (limited to 'pango/pango-ot.h')
-rw-r--r-- | pango/pango-ot.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pango/pango-ot.h b/pango/pango-ot.h index 3d6c4f1f..ce8778f3 100644 --- a/pango/pango-ot.h +++ b/pango/pango-ot.h @@ -1,7 +1,7 @@ /* Pango * pango-ot.h: * - * Copyright (C) 2000 Red Hat Software + * Copyright (C) 2000,2007 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -25,12 +25,14 @@ #include <pango/pangofc-font.h> #include <pango/pango-glyph.h> #include <pango/pango-font.h> +#include <pango/pango-script.h> +#include <pango/pango-language.h> G_BEGIN_DECLS #ifdef PANGO_ENABLE_ENGINE -typedef guint32 PangoOTTag; +typedef guint32 PangoOTTag; typedef struct _PangoOTInfo PangoOTInfo; typedef struct _PangoOTBuffer PangoOTBuffer; @@ -44,8 +46,9 @@ typedef enum } PangoOTTableType; -#define PANGO_OT_ALL_GLYPHS ((guint)0xFFFF) -#define PANGO_OT_DEFAULT_LANGUAGE ((guint)0xFFFF) +#define PANGO_OT_ALL_GLYPHS ((guint) 0xFFFF) +#define PANGO_OT_DEFAULT_LANGUAGE ((PangoOTTag) 0xFFFF) +#define PANGO_OT_DEFAULT_SCRIPT ((PangoOTTag) FT_MAKE_TAG ('D', 'F', 'L', 'T')) /* Note that this must match HB_GlyphItem */ struct _PangoOTGlyph @@ -118,6 +121,11 @@ void pango_ot_ruleset_substitute (PangoOTRuleset *ruleset, void pango_ot_ruleset_position (PangoOTRuleset *ruleset, PangoOTBuffer *buffer); +PangoScript pango_ot_tag_to_script (PangoOTTag script_tag); +PangoOTTag pango_ot_tag_from_script (PangoScript script); +PangoLanguage* pango_ot_tag_to_language (PangoOTTag language_tag); +PangoOTTag pango_ot_tag_from_language (PangoLanguage *language); + #endif /* PANGO_ENABLE_ENGINE */ G_END_DECLS |