summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c')
-rw-r--r--Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c b/Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c
new file mode 100644
index 00000000000..5a8b50ff2c3
--- /dev/null
+++ b/Build/source/libs/freetype2/freetype-2.3.8/src/base/ftcid.c
@@ -0,0 +1,63 @@
+/***************************************************************************/
+/* */
+/* ftcid.c */
+/* */
+/* FreeType API for accessing CID font information. */
+/* */
+/* Copyright 2007 by Derek Clegg. */
+/* */
+/* This file is part of the FreeType project, and may only be used, */
+/* modified, and distributed under the terms of the FreeType project */
+/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
+/* this file you indicate that you have read the license and */
+/* understand and accept it fully. */
+/* */
+/***************************************************************************/
+
+
+#include <ft2build.h>
+#include FT_INTERNAL_OBJECTS_H
+#include FT_SERVICE_CID_H
+
+
+ /* documentation is in ftcid.h */
+
+ FT_EXPORT_DEF( FT_Error )
+ FT_Get_CID_Registry_Ordering_Supplement( FT_Face face,
+ const char* *registry,
+ const char* *ordering,
+ FT_Int *supplement)
+ {
+ FT_Error error;
+ const char* r = NULL;
+ const char* o = NULL;
+ FT_Int s = 0;
+
+
+ error = FT_Err_Invalid_Argument;
+
+ if ( face )
+ {
+ FT_Service_CID service;
+
+
+ FT_FACE_FIND_SERVICE( face, service, CID );
+
+ if ( service && service->get_ros )
+ error = service->get_ros( face, &r, &o, &s );
+ }
+
+ if ( registry )
+ *registry = r;
+
+ if ( ordering )
+ *ordering = o;
+
+ if ( supplement )
+ *supplement = s;
+
+ return error;
+ }
+
+
+/* END */