Utilities

Utilities — A collection of the utility functions

Synopsis

#define             EZFC_DEPRECATED
#define             EZFC_DEPRECATED_FOR                 (f)
void                ezfc_finalize                       (void);
GList *             ezfc_get_fonts_list                 (const gchar *language,
                                                         const gchar *alias_name);
GList *             ezfc_get_fonts_pattern_list         (const gchar *language,
                                                         const gchar *alias_name);
void                ezfc_init                           (void);
gboolean            ezfc_is_alias_font                  (const gchar *alias_name);
const gchar *       ezfc_version                        (void);

Description

This collects some utility functions.

Details

EZFC_DEPRECATED

#define EZFC_DEPRECATED		G_GNUC_DEPRECATED


EZFC_DEPRECATED_FOR()

#define EZFC_DEPRECATED_FOR(f) G_GNUC_DEPRECATED_FOR(f)


ezfc_finalize ()

void                ezfc_finalize                       (void);

Finalize the library.


ezfc_get_fonts_list ()

GList *             ezfc_get_fonts_list                 (const gchar *language,
                                                         const gchar *alias_name);

Warning

ezfc_get_fonts_list has been deprecated since version 0.7 and should not be used in newly-written code. Use ezfc_font_get_list().

Obtains the fonts list being assigned to alias_name for language.

language :

the language name fontconfig can deal with. [allow-none]

alias_name :

the alias name to obtain the fonts list for. [allow-none]

Returns :

a GList contains the font family name. if no valid families, NULL then. [element-type utf8][transfer full]

ezfc_get_fonts_pattern_list ()

GList *             ezfc_get_fonts_pattern_list         (const gchar *language,
                                                         const gchar *alias_name);

Warning

ezfc_get_fonts_pattern_list has been deprecated since version 0.7 and should not be used in newly-written code. Use ezfc_font_get_pattern_list().

Obtains FcPattern list being assigned to alias_name for language.

language :

the language name fontconfig can deal with. [allow-none]

alias_name :

the alias name to obtain the fonts pettern list for. [allow-none]

Returns :

a GList contains FcPattern, otherwise NULL. [element-type FcPattern][transfer full]

ezfc_init ()

void                ezfc_init                           (void);

Initialize the library.


ezfc_is_alias_font ()

gboolean            ezfc_is_alias_font                  (const gchar *alias_name);

Warning

ezfc_is_alias_font has been deprecated since version 0.7 and should not be used in newly-written code. Use ezfc_font_is_alias_font().

Checks if alias_name is one of sans-serif, serif, monospace, cursive or fantasy.

alias_name :

the alias font name

Returns :

TRUE if alias_name is an alias font name, otherwise FALSE.

ezfc_version ()

const gchar *       ezfc_version                        (void);

Obtain the version of libeasyfc.

Returns :

a version string.