Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / freetype2 / src / base / ftcid.c
blob5a8b50ff2c3f714bd39248906be1a68ffa24b539
1 /***************************************************************************/
2 /* */
3 /* ftcid.c */
4 /* */
5 /* FreeType API for accessing CID font information. */
6 /* */
7 /* Copyright 2007 by Derek Clegg. */
8 /* */
9 /* This file is part of the FreeType project, and may only be used, */
10 /* modified, and distributed under the terms of the FreeType project */
11 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
12 /* this file you indicate that you have read the license and */
13 /* understand and accept it fully. */
14 /* */
15 /***************************************************************************/
18 #include <ft2build.h>
19 #include FT_INTERNAL_OBJECTS_H
20 #include FT_SERVICE_CID_H
23 /* documentation is in ftcid.h */
25 FT_EXPORT_DEF( FT_Error )
26 FT_Get_CID_Registry_Ordering_Supplement( FT_Face face,
27 const char* *registry,
28 const char* *ordering,
29 FT_Int *supplement)
31 FT_Error error;
32 const char* r = NULL;
33 const char* o = NULL;
34 FT_Int s = 0;
37 error = FT_Err_Invalid_Argument;
39 if ( face )
41 FT_Service_CID service;
44 FT_FACE_FIND_SERVICE( face, service, CID );
46 if ( service && service->get_ros )
47 error = service->get_ros( face, &r, &o, &s );
50 if ( registry )
51 *registry = r;
53 if ( ordering )
54 *ordering = o;
56 if ( supplement )
57 *supplement = s;
59 return error;
63 /* END */