![]() |
![]() |
![]() |
libeasyfc Documentation | ![]() |
---|---|---|---|---|
Top | Description |
void ezfc_alias_check_font_existence (ezfc_alias_t *alias
,gboolean flag
); const gchar * ezfc_alias_get_font (ezfc_alias_t *alias
); FcPattern * ezfc_alias_get_font_pattern (ezfc_alias_t *alias
); const gchar * ezfc_alias_get_name (ezfc_alias_t *alias
); ezfc_alias_t * ezfc_alias_new (const gchar *alias_name
); ezfc_alias_t * ezfc_alias_ref (ezfc_alias_t *alias
); gboolean ezfc_alias_set_font (ezfc_alias_t *alias
,const gchar *font_name
,GError **error
); gboolean ezfc_alias_set_font_pattern (ezfc_alias_t *alias
,const FcPattern *pattern
,GError **error
); ezfc_alias_t; void ezfc_alias_unref (ezfc_alias_t *alias
);
This class provides an easy access to the alias font name and the font that actually being assigned to it.
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()
.
|
a ezfc_alias_t. |
|
a boolean value. |
const gchar * ezfc_alias_get_font (ezfc_alias_t *alias
);
Obtains the font that is set as the alias font for alias
.
|
a ezfc_alias_t. |
Returns : |
the font name. |
FcPattern * ezfc_alias_get_font_pattern (ezfc_alias_t *alias
);
Obtains FcPattern in ezfc_alias_t.
|
a ezfc_alias_t. |
Returns : |
a duplicate of FcPattern in the instance. it has to be freed.
NULL if alias doesn't have any font pattern. |
const gchar * ezfc_alias_get_name (ezfc_alias_t *alias
);
Obtains the alias font name in alias
object.
|
a ezfc_alias_t. |
Returns : |
the alias font name. |
ezfc_alias_t * ezfc_alias_new (const gchar *alias_name
);
Create an instance of ezfc_alias_t.
|
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_set_font() behaves as the substitution font of it. |
Returns : |
a ezfc_alias_t. |
ezfc_alias_t * ezfc_alias_ref (ezfc_alias_t *alias
);
Increases the reference count of alias
.
|
a ezfc_alias_t. |
Returns : |
the same alias . [transfer none]
|
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.
|
a ezfc_alias_t. |
|
a font name. |
|
a GError. [allow-none] |
Returns : |
TRUE if it successfully is set. otherwise FALSE . |
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
.
|
a ezfc_alias_t. |
|
a FcPattern. |
|
a GError. [allow-none] |
Returns : |
TRUE if it successfully is set. otherwise FALSE . |
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.
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).
|
a ezfc_alias_t. |