Utilities

Utilities — A collection of the utility functions

Functions

const gchar * ezfc_version ()
void ezfc_init ()
void ezfc_finalize ()
#define EZFC_DEPRECATED_FOR()
gboolean ezfc_is_alias_font ()
GList * ezfc_get_fonts_list ()
GList * ezfc_get_fonts_pattern_list ()

Types and Values

#define EZFC_DEPRECATED

Description

This collects some utility functions.

Functions

ezfc_version ()

const gchar *
ezfc_version (void);

Obtain the version of libeasyfc.

Returns

a version string.


ezfc_init ()

void
ezfc_init (void);

Initialize the library.


ezfc_finalize ()

void
ezfc_finalize (void);

Finalize the library.


EZFC_DEPRECATED_FOR()

#define EZFC_DEPRECATED_FOR(f) G_GNUC_DEPRECATED_FOR(f)

ezfc_is_alias_font ()

gboolean
ezfc_is_alias_font (const gchar *alias_name);

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, fantasy, emoji or math.

Parameters

alias_name

the alias font name

 

Returns

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


ezfc_get_fonts_list ()

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

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 .

Parameters

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);

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 .

Parameters

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]

Types and Values

EZFC_DEPRECATED

#define EZFC_DEPRECATED		G_GNUC_DEPRECATED