| Top |
| ezfc_alias_t * | ezfc_alias_new () |
| ezfc_alias_t * | ezfc_alias_ref () |
| void | ezfc_alias_unref () |
| const gchar * | ezfc_alias_get_name () |
| FcPattern * | ezfc_alias_get_font_pattern () |
| gboolean | ezfc_alias_set_font_pattern () |
| const gchar * | ezfc_alias_get_font () |
| gboolean | ezfc_alias_set_font () |
| void | ezfc_alias_check_font_existence () |
This class provides an easy access to the alias font name and the font that actually being assigned to it.
ezfc_alias_t *
ezfc_alias_new (const gchar *alias_name);
Create an instance of ezfc_alias_t.
alias_name |
the alias font name like sans-serif, serif and monospace.
This can be the usual font name. in this case, the font added by
|
ezfc_alias_t *
ezfc_alias_ref (ezfc_alias_t *alias);
Increases the reference count of alias
.
void
ezfc_alias_unref (ezfc_alias_t *alias);
Decreases the reference count of alias
. When its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
const gchar *
ezfc_alias_get_name (ezfc_alias_t *alias);
Obtains the alias font name in alias
object.
FcPattern *
ezfc_alias_get_font_pattern (ezfc_alias_t *alias);
Obtains FcPattern in ezfc_alias_t.
gboolean ezfc_alias_set_font_pattern (ezfc_alias_t *alias,const FcPattern *pattern,GError **error);
Set pattern
as the font pattern. alias
keeps a duplicate instance of
pattern
.
const gchar *
ezfc_alias_get_font (ezfc_alias_t *alias);
Obtains the font that is set as the alias font for alias
.
gboolean ezfc_alias_set_font (ezfc_alias_t *alias,const gchar *font_name,GError **error);
Set font_name
as the font family name used for the alias font.
void ezfc_alias_check_font_existence (ezfc_alias_t *alias,gboolean flag);
Set a flag whether checking the font existence when invoking
ezfc_alias_set_font().
typedef struct _ezfc_alias_t ezfc_alias_t;
All the fields in the ezfc_alias_t structure are private to the ezfc_alias_t implementation.