3030
3131#define GR2_VERSION_MAJOR 1
3232#define GR2_VERSION_MINOR 3
33- #define GR2_VERSION_BUGFIX 2
33+ #define GR2_VERSION_BUGFIX 13
3434
3535#ifdef __cplusplus
3636extern "C"
@@ -51,12 +51,12 @@ GR2_API void gr_engine_version(int *nMajor, int *nMinor, int *nBugFix);
5151* The Face Options allow the application to require that certain tables are
5252* read during face construction. This may be of concern if the appFaceHandle
5353* used in the gr_get_table_fn may change.
54- * The values can be combined
54+ * The values can be combined
5555*/
5656enum gr_face_options {
5757 /** No preload, no cmap caching, fail if the graphite tables are invalid */
5858 gr_face_default = 0 ,
59- /** Dumb rendering will be enabled if the graphite tables are invalid */
59+ /** Dumb rendering will be enabled if the graphite tables are invalid. @deprecated Since 1.311 */
6060 gr_face_dumbRendering = 1 ,
6161 /** preload glyphs at construction time */
6262 gr_face_preloadGlyphs = 2 ,
@@ -113,7 +113,7 @@ struct gr_face_ops
113113 gr_get_table_fn get_table ;
114114 /** is a pointer to a function to notify the client the a table can be released.
115115 * This can be NULL to signify that the client does not wish to do any release handling. */
116- gr_release_table_fn release_table ;
116+ gr_release_table_fn release_table ;
117117};
118118typedef struct gr_face_ops gr_face_ops ;
119119
@@ -130,8 +130,8 @@ typedef struct gr_face_ops gr_face_ops;
130130 */
131131GR2_API gr_face * gr_make_face_with_ops (const void * appFaceHandle /*non-NULL*/ , const gr_face_ops * face_ops , unsigned int faceOptions );
132132
133- /** Create a gr_face object given application information and a getTable function. This function is deprecated as of v1.2.0 in
134- * favour of gr_make_face_with_ops .
133+ /** @ deprecated Since v1.2.0 in favour of gr_make_face_with_ops.
134+ * Create a gr_face object given application information and a getTable function .
135135 *
136136 * @return gr_face or NULL if the font fails to load for some reason.
137137 * @param appFaceHandle This is application specific information that is passed
@@ -140,22 +140,25 @@ GR2_API gr_face* gr_make_face_with_ops(const void* appFaceHandle/*non-NULL*/, co
140140 * @param getTable Callback function to get table data.
141141 * @param faceOptions Bitfield describing various options. See enum gr_face_options for details.
142142 */
143- GR2_API gr_face * gr_make_face (const void * appFaceHandle /*non-NULL*/ , gr_get_table_fn getTable , unsigned int faceOptions );
143+ GR2_DEPRECATED_API gr_face * gr_make_face (const void * appFaceHandle /*non-NULL*/ , gr_get_table_fn getTable , unsigned int faceOptions );
144144
145- //#ifndef GRAPHITE2_NSEGCACHE
146- /** Create a gr_face object given application information, with subsegmental caching support
145+ /** @deprecated Since 1.3.7 this function is now an alias for gr_make_face_with_ops().
146+ *
147+ * Create a gr_face object given application information, with subsegmental caching support
147148 *
148149 * @return gr_face or NULL if the font fails to load.
149150 * @param appFaceHandle is a pointer to application specific information that is passed to getTable.
150151 * This may not be NULL and must stay alive as long as the gr_face is alive.
151152 * @param face_ops Pointer to face specific callback structure for table management. Must stay
152153 * alive for the duration of the call only.
153- * @param segCacheMaxSize How large the segment cache is .
154+ * @param segCacheMaxSize Unused .
154155 * @param faceOptions Bitfield of values from enum gr_face_options
155156 */
156- GR2_API gr_face * gr_make_face_with_seg_cache_and_ops (const void * appFaceHandle , const gr_face_ops * face_ops , unsigned int segCacheMaxSize , unsigned int faceOptions );
157+ GR2_DEPRECATED_API gr_face * gr_make_face_with_seg_cache_and_ops (const void * appFaceHandle , const gr_face_ops * face_ops , unsigned int segCacheMaxSize , unsigned int faceOptions );
157158
158- /** Create a gr_face object given application information, with subsegmental caching support.
159+ /** @deprecated Since 1.3.7 this function is now an alias for gr_make_face().
160+ *
161+ * Create a gr_face object given application information, with subsegmental caching support.
159162 * This function is deprecated as of v1.2.0 in favour of gr_make_face_with_seg_cache_and_ops.
160163 *
161164 * @return gr_face or NULL if the font fails to load.
@@ -165,8 +168,7 @@ GR2_API gr_face* gr_make_face_with_seg_cache_and_ops(const void* appFaceHandle,
165168 * @param segCacheMaxSize How large the segment cache is.
166169 * @param faceOptions Bitfield of values from enum gr_face_options
167170 */
168- GR2_API gr_face * gr_make_face_with_seg_cache (const void * appFaceHandle , gr_get_table_fn getTable , unsigned int segCacheMaxSize , unsigned int faceOptions );
169- //#endif
171+ GR2_DEPRECATED_API gr_face * gr_make_face_with_seg_cache (const void * appFaceHandle , gr_get_table_fn getTable , unsigned int segCacheMaxSize , unsigned int faceOptions );
170172
171173/** Convert a tag in a string into a gr_uint32
172174 *
@@ -243,16 +245,16 @@ GR2_API int gr_face_is_char_supported(const gr_face *pFace, gr_uint32 usv, gr_ui
243245 */
244246GR2_API gr_face * gr_make_file_face (const char * filename , unsigned int faceOptions );
245247
246- //#ifndef GRAPHITE2_NSEGCACHE
247- /** Create gr_face from a font file, with subsegment caching support.
248+ /** @deprecated Since 1.3.7. This function is now an alias for gr_make_file_face().
249+ *
250+ * Create gr_face from a font file, with subsegment caching support.
248251 *
249252 * @return gr_face that accesses a font file directly. Returns NULL on failure.
250253 * @param filename Full path and filename to font file
251254 * @param segCacheMaxSize Specifies how big to make the cache in segments.
252255 * @param faceOptions Bitfield from enum gr_face_options to control face options.
253256 */
254- GR2_API gr_face * gr_make_file_face_with_seg_cache (const char * filename , unsigned int segCacheMaxSize , unsigned int faceOptions );
255- //#endif
257+ GR2_DEPRECATED_API gr_face * gr_make_file_face_with_seg_cache (const char * filename , unsigned int segCacheMaxSize , unsigned int faceOptions );
256258#endif // !GRAPHITE2_NFILEFACE
257259
258260/** Create a font from a face
@@ -347,7 +349,7 @@ GR2_API gr_uint16 gr_fref_n_values(const gr_feature_ref* pfeatureref);
347349 * @param pfeatureref gr_feature_ref of the feature of interest
348350 * @param settingno Index up to the return value of gr_fref_n_values() of the value
349351 */
350- GR2_API gr_int16 gr_fref_value (const gr_feature_ref * pfeatureref , gr_uint16 settingno );
352+ GR2_API gr_int16 gr_fref_value (const gr_feature_ref * pfeatureref , gr_uint16 settingno );
351353
352354/** Returns a string of the UI name of a feature
353355 *
@@ -385,4 +387,3 @@ GR2_API void gr_featureval_destroy(gr_feature_val *pfeatures);
385387#ifdef __cplusplus
386388}
387389#endif
388-
0 commit comments