hb-version

hb-version — Information about the version of HarfBuzz in use

Functions

Types and Values

Includes

#include <hb.h>

Description

These functions and macros allow accessing version of the HarfBuzz library used at compile- as well as run-time, and to direct code conditionally based on those versions, again, at compile- or run-time.

Functions

HB_VERSION_ATLEAST()

#define             HB_VERSION_ATLEAST(major,minor,micro)

hb_version ()

void
hb_version (unsigned int *major,
            unsigned int *minor,
            unsigned int *micro);

Returns library version as three integer components.

Parameters

major

Library major version component.

[out]

minor

Library minor version component.

[out]

micro

Library micro version component.

[out]

Since: 0.9.2


hb_version_atleast ()

hb_bool_t
hb_version_atleast (unsigned int major,
                    unsigned int minor,
                    unsigned int micro);

Tests the library version against a minimum value, as three integer components.

Parameters

major

Library major version component

 

minor

Library minor version component

 

micro

Library micro version component

 

Returns

True if the library is equal to or greater than the test value, false otherwise

Since: 0.9.30


hb_version_string ()

const char *
hb_version_string (void);

Returns library version as a string with three components.

Returns

Library version string

Since: 0.9.2

Types and Values

HB_VERSION_MAJOR

#define HB_VERSION_MAJOR 2

HB_VERSION_MICRO

#define HB_VERSION_MICRO 4

HB_VERSION_MINOR

#define HB_VERSION_MINOR 7

HB_VERSION_STRING

#define HB_VERSION_STRING "2.7.4"