-
public Attribute attr_background_new (
uint16 red, uint16 green, uint16 blue)
Create a new background color attribute.
-
public Attribute attr_fallback_new (
bool enable_fallback)
Create a new font fallback attribute.
-
public Attribute attr_family_new (
string family)
Create a new font family attribute.
-
public Attribute attr_foreground_new (
uint16 red, uint16 green, uint16 blue)
Create a new foreground color attribute.
-
public Attribute attr_gravity_hint_new (GravityHint hint)
Create a new gravity hint attribute.
-
public Attribute attr_gravity_new (Gravity gravity)
Create a new gravity attribute.
-
public Attribute attr_letter_spacing_new (
int letter_spacing)
Create a new letter-spacing attribute.
-
public Attribute attr_rise_new (
int rise)
Create a new baseline displacement attribute.
-
public Attribute attr_scale_new (
double scale_factor)
Create a new font size scale attribute.
-
public Attribute attr_stretch_new (Stretch stretch)
Create a new font stretch attribute freed with pango_attribute_destroy.
-
public Attribute attr_strikethrough_color_new (
uint16 red, uint16 green, uint16 blue)
Create a new strikethrough color attribute.
-
public Attribute attr_strikethrough_new (
bool strikethrough)
Create a new strike-through attribute.
-
public Attribute attr_style_new (Style style)
Create a new font slant style attribute.
-
public unowned
string attr_type_get_name (AttrType type)
Fetches the attribute type name passed in when registering the type using
attr_type_register.
-
public AttrType attr_type_register (
string name)
Allocate a new attribute type ID.
-
public Attribute attr_underline_color_new (
uint16 red, uint16 green, uint16 blue)
Create a new underline color attribute.
-
public Attribute attr_underline_new (Underline underline)
Create a new underline-style attribute.
-
public Attribute attr_variant_new (Variant variant)
Create a new font variant attribute (normal or small caps) freed with pango_attribute_destroy.
-
public Attribute attr_weight_new (Weight weight)
Create a new font weight attribute.
-
public BidiType bidi_type_for_unichar (
unichar ch)
-
public void break (
string text, int length, Analysis analysis, LogAttr[] attrs, int attrs_len)
Determines possible line, word, and character breaks for a string of Unicode text with a single analysis.
-
public void extents_to_pixels (ref Rectangle inclusive, ref Rectangle nearest)
Converts extents from Pango units to device units, dividing by the
SCALE factor and performing rounding.
-
public Direction find_base_dir (
string text, int length)
Searches a string the first character that has a strong direction, according to the Unicode bidirectional
algorithm.
-
public void find_paragraph_boundary (
string text, int length, int paragraph_delimiter_index, int next_paragraph_start)
Locates a paragraph boundary in text.
-
public void get_log_attrs (
string text, int length, int level, Language language, LogAttr[] log_attrs, int attrs_len)
Computes a LogAttr for each character in text.
-
public Gravity gravity_get_for_matrix (Matrix matrix)
Finds the gravity that best matches the rotation component in a
Matrix.
-
public Gravity gravity_get_for_script (Script script, Gravity base_gravity, GravityHint hint)
Based on the script, base gravity, and hint, returns actual gravity to use in laying out a single
Item.
-
public Gravity gravity_get_for_script_and_width (Script script,
bool wide, Gravity base_gravity, GravityHint hint)
Based on the script, East Asian width, base gravity, and hint, returns actual gravity to use in laying out a
single character or Item.
-
public
double gravity_to_rotation (Gravity gravity)
Converts a Gravity value to its natural rotation in radians.
-
public
bool is_zero_width (unichar ch)
Checks ch to see if it is a character that should not be normally rendered on the screen.
-
public unowned
List itemize (Context context, string text, int start_index, int length, AttrList attrs, AttrIterator cached_iter)
-
public unowned
List itemize_with_base_dir (Context context, Direction base_dir, string text, int start_index, int length, AttrList attrs, AttrIterator cached_iter)
-
public
uchar log2vis_get_embedding_levels (string text, int length, Direction pbase_dir)
This will return the bidirectional embedding levels of the input paragraph as defined by the Unicode
Bidirectional Algorithm available at: http://www.
-
public
bool parse_enum (Type type, string str, int value, bool warn, out string possible_values)
Parses an enum type and stores the result in value.
-
public
bool parse_markup (string markup_text, int length, unichar accel_marker, out AttrList attr_list, out string text, unichar accel_char) throws Error
Parses marked-up text (see markup format) to create a plain-text string and an attribute list.
-
public
bool parse_stretch (string str, Stretch stretch, bool warn)
Parses a font stretch.
-
public
bool parse_style (string str, Style style, bool warn)
Parses a font style.
-
public
bool parse_variant (string str, Variant variant, bool warn)
Parses a font variant.
-
public
bool parse_weight (string str, Weight weight, bool warn)
Parses a font weight.
-
public void quantize_line_geometry (
int thickness, int position)
Quantizes the thickness and position of a line, typically an underline or strikethrough, to whole device
pixels, that is integer multiples of SCALE.
-
public
int read_line (FileStream stream, StringBuilder str)
-
public unowned
List reorder_items (List logical_items)
-
public
bool scan_int (out string pos, int out)
Scans an integer.
-
public
bool scan_string (out string pos, StringBuilder out)
Scans a string into a GString buffer.
-
public
bool scan_word (out string pos, StringBuilder out)
Scans a word into a GString buffer.
-
public Script script_for_unichar (
unichar ch)
Looks up the Script for a particular character (as defined by
Unicode Standard Annex #24).
-
public unowned Language script_get_sample_language (Script script)
Given a script, finds a language tag that is reasonably representative of that script.
-
public void shape (
string text, int length, Analysis analysis, GlyphString glyphs)
Given a segment of text and the corresponding Analysis
structure returned from itemize, convert the characters into glyphs.
-
public
bool skip_space (out string pos)
Skips 0 or more characters of white space.
-
public unowned
string split_file_list (string str)
Splits a G_SEARCHPATH_SEPARATOR-separated list of files, stripping white space and substituting
~/ with $HOME/.
-
public unowned
string trim_string (string str)
Trims leading and trailing whitespace from a string.
-
public Direction unichar_direction (
unichar ch)
Determines the inherent direction of a character; either
LTR, RTL, or
NEUTRAL.
-
public
int units_from_double (double d)
it by SCALE and rounds to nearest integer.
-
public
double units_to_double (int i)
-
public
int version ()
This is similar to the macro PANGO_VERSION except that it returns the encoded version of Pango
available at run-time, as opposed to the version available at compile-time.
-
public unowned
string version_check (int required_major, int required_minor, int required_micro)
Checks that the Pango library in use is compatible with the given version.
-
public unowned
string version_string ()
This is similar to the macro VERSION_STRING except
that it returns the version of Pango available at run-time, as opposed to the version available at compile-time.