pango-sharp2.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Represents the description of an ideal font.This class is used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.GLib.OpaqueMethodPango.FontDescriptionCreates a new font description from a string representation.
The string representation of the font description.
The object of type created.The form of the string representation is "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where:
FAMILY-LIST is a comma separated list of families optionally terminated by a comma.STYLE-OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch.SIZE is a decimal number (size in points)
Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to NULL. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.
MethodPango.FontDescriptionMake a copy of an object of type MethodSystem.BooleanDetermines which better matches the current instance.
a object
a object
if new_match is a better match.Determines if the style attributes of new_match are a closer match for the current instance than old_match, or if old_match is , determines if new_match is a match at all. Approximate matching is done for weight and style; other attributes must match exactly.MethodSystem.VoidFrees a font description.MethodSystem.VoidMerges the fields of a font description into the current instance without copying the field data (shallow copy).
an object of type
an object of type Like , but only a shallow copy is made of the family name and other allocated fields. desc can only be used until is modified or freed. This is meant to be used when the merged font description is only needed temporarily.MethodSystem.StringCreates a filename representation of a font description.an object of type The filename created is identical to the result from calling , but with underscores instead of characters that are untypical in filenames, and in lower case only.MethodSystem.VoidMerges the fields of a font description into the current instance.
The to merge from.
If , replace fields in current instance with the corresponding values from , even if they are already exist.
MethodPango.FontDescriptionMake a copy of an object of type Like , but only a shallow copy is made of the family name and other allocated fields. The result can only be used until it is modified or freed. This is meant to be used when the copy is only needed temporarily.MethodSystem.BooleanCompares two font descriptions for equality.
an object of type to test for equality
an object of type if the two font descriptions are proveably identical. (Two font descriptions may result in identical fonts being loaded, but still compare .)MethodSystem.VoidUnsets some of the fields in the .
an object of type
(bitmask of fields in the desc to unset).
This merely marks the fields cleared, it does not clear the settings for those fields. To clear a family name set with so that it won't be returned by , you must actually set to .ConstructorInternal constructor
Pointer to the C object.
This is an internal constructor, and should not be used by user code.ConstructorDefault constructorPropertyPango.StyleThe style of the font.
the style for the font description
the style for the font descriptionMost fonts will either have a italic style or an oblique style, but not both, and font matching in Pango will match italic specifications with oblique fonts and vice-versa if an exact match is not found.PropertyPango.StretchThe stretch of the font.
the stretch for the font description
the stretch field for the font description.The stretch property specifies how narrow or wide the font should be.PropertyPango.FontMaskDetermines which fields in the font description have been set.a corresponding to the fields that have been set.PropertySystem.Int32The size of the font in pango units.
the size for the font description in pango units.
the size field for the font description in pango units. Returns 0 if the stretch field has not previously been set. Use to find out if the field was explicitly set or not.There are pango units in one device unit - for fonts, font points are the device unit. Therefore, the size of the font in points is / .PropertySystem.StringSets the family name of the font without copying the string.
a string representing the family name.
The family name represents a family of related font styles, and will resolve to a particular . In some uses of , it is also possible to use a comma separated list of family names for this property.PropertyPango.VariantThe variant of the font.
the variant type for the font description.
the variant type for the font description.PropertyPango.WeightThe weight (boldness) of the font.
the weight for the font description.
the weight for the font description.The weight property specifies how bold or light the font should be. In addition to the values of the enumeration, other intermediate numeric values are possible.PropertySystem.StringThe family name of the font.
a string representing the family name.
The family name field. (Will be if not previously set.)The family name represents a family of related font styles, and will resolve to a particular . In some uses of , it is also possible to use a comma separated list of family names for this property.MethodSystem.StringCreates a string representation of a font description.a See for a description of the format of the string representation. The family list in the string description will only have a terminating comma if the last word of the list is a valid style option.PropertySystem.UInt32Computes a hash of a structure suitable to be used. the hash value.PropertyGLib.GTypeGType Property.a Returns the native value for .PropertySystem.BooleanTo be addeda To be addedPropertySystem.DoubleTo be addeda To be added