Top | ![]() |
![]() |
![]() |
![]() |
gboolean
ezfc_font_is_alias_font (const gchar *alias_name
);
Checks if alias_name
is one of sans-serif, serif, monospace, cursive, fantasy,
emoji or math.
GList * ezfc_font_get_list (const gchar *language
,const gchar *alias_name
,gboolean localized_font_name
);
Obtains the fonts list being assigned to alias_name
for language
.
Note that localized_font_name
doesn't take effect yet. this is just
a reservation for future improvement.
GList * ezfc_font_get_pattern_list (const gchar *language
,const gchar *alias_name
);
Obtains FcPattern list being assigned to alias_name
for language
.
GList *
ezfc_font_get_alias_name_from_pattern (const FcPattern *pattern
);
Analize pattern
and returns a alias name string according to the result.
ezfc_font_t *
ezfc_font_ref (ezfc_font_t *font
);
Increases the reference count of font
.
void
ezfc_font_unref (ezfc_font_t *font
);
Decreases the reference count of font
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
FcPattern *
ezfc_font_get_pattern (ezfc_font_t *font
);
Obtains FcPattern in ezfc_font_t.
gboolean ezfc_font_set_pattern (ezfc_font_t *font
,const FcPattern *pattern
,GError **error
);
Set pattern
as the font pattern. font
keeps a duplicate instance of
pattern
.
const gchar *
ezfc_font_get_family (ezfc_font_t *font
);
Obtains the font family name in first place in font
.
GList *
ezfc_font_get_families (ezfc_font_t *font
);
Obtains font family names in font
.
a GList containing the static string of font family names.
[transfer container][element-type utf8]
Since: 0.11
gboolean ezfc_font_find (ezfc_font_t *font
,const gchar *font_name
);
Check if font
contains font_name
.
Since: 0.11
gboolean ezfc_font_add_family (ezfc_font_t *font
,const gchar *font_name
,GError **error
);
Add font_name
as the font family name used for the font font.
Since: 0.11
gboolean ezfc_font_remove (ezfc_font_t *font
,GError **error
);
Removes all of families in font
.
Since: 0.11
gboolean ezfc_font_remove_family (ezfc_font_t *font
,const gchar *font_name
,GError **error
);
Removes font_name
from font
.
Since: 0.11
void ezfc_font_check_existence (ezfc_font_t *font
,gboolean flag
);
Set a flag whether checking the font existence when invoking
ezfc_font_set_family()
.
gboolean
ezfc_font_get_check_existence (ezfc_font_t *font
);
Obtain a flag in font
if it's supposed to check the font existence when invoking
void ezfc_font_set_hinting (ezfc_font_t *font
,gboolean flag
);
Set a flag whether the font use the own hints for rendering
gboolean
ezfc_font_get_hinting (ezfc_font_t *font
);
Obtain a boolean value about the hinting usage in font
.
void ezfc_font_set_autohinting (ezfc_font_t *font
,gboolean flag
);
Set a flag whether the font use the auto-hinting for rendering
gboolean
ezfc_font_get_autohinting (ezfc_font_t *font
);
Obtain a boolean value about the auto-hinting usage in font
.
void ezfc_font_set_antialiasing (ezfc_font_t *font
,gboolean flag
);
Set a flag whether the font use the antialiasing.
gboolean
ezfc_font_get_antialiasing (ezfc_font_t *font
);
Obtain a boolean value about the anti-aliasing usage in font
.
void ezfc_font_set_hintstyle (ezfc_font_t *font
,ezfc_font_hintstyle_t hintstyle
);
Set a hintstyle for font
.
ezfc_font_hintstyle_t
ezfc_font_get_hintstyle (ezfc_font_t *font
);
Obtain the hintstyle in font
.
void ezfc_font_set_embedded_bitmap (ezfc_font_t *font
,gboolean flag
);
Set a flag whether the font use the embedded bitmap. Note that Enabling the embedded bitmap may causes disabling the antialias.
gboolean
ezfc_font_get_embedded_bitmap (ezfc_font_t *font
);
Obtain a boolean value about the embedded bitmap usage in font
.
void ezfc_font_set_rgba (ezfc_font_t *font
,gint val
);
Set val
as the sub-pixel ordering
gint
ezfc_font_get_rgba (ezfc_font_t *font
);
Obtains current sub-pixel ordering in font
.
gboolean ezfc_font_set_subpixel_rendering (ezfc_font_t *font
,ezfc_font_subpixel_render_t mode
);
This is just convenient to change the several configuration for subpixel rendering.
ezfc_font_subpixel_render_t
ezfc_font_get_subpixel_rendering (ezfc_font_t *font
);
Obtain current status about the sub-pixel rendering in font
.
gboolean ezfc_font_add_feature (ezfc_font_t *font
,const gchar *feature
);
Add feature
font feature to font
.
Since: 0.12
gboolean ezfc_font_remove_feature (ezfc_font_t *font
,const gchar *feature
);
Remove feature
from font
if available.
Since: 0.12
GList *
ezfc_font_get_features (ezfc_font_t *font
);
Obtains font features list that font
has.
a GList containing the static string of feature name.
[transfer container][element-type utf8]
Since: 0.12
GList *
ezfc_font_get_available_features (ezfc_font_t *font
);
Obtains available font features in font
.
a GList containing
memory-allocated string of feature name that is available
in font
. strings in GList has to be freed when it isn't
needed anymore.
[transfer full][element-type utf8]
Since: 0.12
GList * ezfc_font_canonicalize (ezfc_font_t *font
,GError **error
);
Split up font
to ezfc_font_t that has one family name only.
Since: 0.11
gboolean ezfc_font_set_family (ezfc_font_t *font
,const gchar *font_name
,GError **error
);
ezfc_font_set_family
has been deprecated since version 0.11. and should not be used in newly-written code.
Set font_name
as the font family name used for the font font.
The sub-pixel rendering option to be used in ezfc_font_set_subpixel_rendering()
.
unknown state on using the sub-pixel rendering. |
||
no use of the sub-pixel rendering |
||
Use the gray-scaled sub-pixel rendering |
||
Use the sub-pixel rendering with the sub-pixel geometry RGB. |
||
Use the sub-pixel rendering with the sub-pixel geometry BGR. |
||
Use the sub-pixel rendering with the sub-pixel geometry VRGB. |
||
Use the sub-pixel rendering with the sub-pixel geometry VBGR. |
||
No real value, but just a terminator. |
The hintstyle option to be used for ezfc_font_set_hintstyle()
.
typedef struct _ezfc_font_t ezfc_font_t;
All the fields in the ezfc_font_t structure are private to the ezfc_font_t implementation.