| pango-Text-Attributes {RGtk2} | R Documentation |
Font and other attributes for annotating text
pangoParseMarkup(markup.text, accel.marker, .errwarn = TRUE)
pangoAttrTypeRegister(name)
pangoAttributeInit(attr, klass)
pangoAttributeCopy(object)
pangoAttributeEqual(object, attr2)
pangoAttrLanguageNew(language)
pangoAttrFamilyNew(family)
pangoAttrStyleNew(style)
pangoAttrVariantNew(variant)
pangoAttrStretchNew(stretch)
pangoAttrWeightNew(weight)
pangoAttrSizeNew(size)
pangoAttrSizeNewAbsolute(size)
pangoAttrFontDescNew(desc)
pangoAttrForegroundNew(red, green, blue)
pangoAttrBackgroundNew(red, green, blue)
pangoAttrStrikethroughNew(strikethrough)
pangoAttrStrikethroughColorNew(red, green, blue)
pangoAttrUnderlineNew(underline)
pangoAttrUnderlineColorNew(red, green, blue)
pangoAttrShapeNew(ink.rect, logical.rect)
pangoAttrShapeNewWithData(ink.rect, logical.rect, data)
pangoAttrScaleNew(scale.factor)
pangoAttrRiseNew(rise)
pangoAttrLetterSpacingNew(letter.spacing)
pangoAttrFallbackNew(fallback)
pangoAttrGravityNew(gravity)
pangoAttrGravityHintNew(hint)
pangoColorParse(spec)
pangoColorCopy(object)
pangoColorFree(object)
pangoColorToString(object)
pangoLanguageFromString(language)
pangoLanguageMatches(object, range.list)
pangoAttrListNew()
pangoAttrListCopy(object)
pangoAttrListInsert(object, attr)
pangoAttrListInsertBefore(object, attr)
pangoAttrListChange(object, attr)
pangoAttrListSplice(object, other, pos, len)
pangoAttrListFilter(object, func, data)
pangoAttrListGetIterator(object)
pangoAttrIteratorCopy(object)
pangoAttrIteratorNext(object)
pangoAttrIteratorRange(object)
pangoAttrIteratorGet(object, type)
pangoAttrIteratorGetFont(object)
pangoAttrIteratorGetAttrs(object)
Attributed text is used in a number of places in Pango. It
is used as the input to the itemization process and also when
creating a PangoLayout. The data types and functions in
this section are used to represent and manipulate sets
of attributes applied to a portion of text.
PangoAttrClassPangoAttrClass structure stores the type and operations for
a particular type of attribute. The functions in this structure should
not be called directly. Instead, one should use the wrapper functions
provided for PangoAttribute.
typePangoAttrType] the type ID for this attribute
PangoAttributePangoAttribute structure represents the common portions of all
attributes. Particular types of attributes include this structure
as their initial portion. The common portion of the attribute holds
the range to which the value in the type-specific part of the attribute
applies and should be initialized using pangoAttributeInit.
By default an attribute will have an all-inclusive range of [0,G_MAXUINT].
klassPangoAttrClass] the class structure holding information about the type of the attributestartIndexendIndex
PangoAttrStringPangoAttrString structure is used to represent attributes with
a string value.
value
PangoAttrLanguagePangoAttrLanguage structure is used to represent attributes that
are languages.
valuePangoLanguage] the common portion of the attribute
PangoAttrColorPangoAttrColor structure is used to represent attributes that
are colors.
colorPangoColor] the common portion of the attribute
PangoAttrIntPangoAttrInt structure is used to represent attributes with
an integer or enumeration value.
value
PangoAttrFloatPangoAttrFloat structure is used to represent attributes with
a float or double value.
value
PangoAttrFontDescPangoAttrFontDesc structure is used to store an attribute that
sets all aspects of the font description at once.
descPangoFontDescription] the common portion of the attribute
PangoAttrShapePangoAttrShape structure is used to represent attributes which
impose shape restrictions.
inkRectPangoRectangle] the common portion of the attributelogicalRectPangoRectangle] the ink rectangle to restrict to
PangoAttrSizePangoAttrShape structure is used to represent attributes which
set font size.
sizeabsolutePANGO_SCALE of a point (for
PANGO_ATTR_SIZE) or of a device uni (for PANGO_ATTR_ABSOLUTE_SIZE)
PangoColorPangoColor structure is used to
represent a color in an uncalibrated RGB color-space.
redgreenblue
PangoLanguagePangoLanguage structure is used to
represent a language.
PangoLanguage pointers can be efficiently
copied and compared with each other.
PangoAttrListPangoAttrList structure represents a list of attributes
that apply to a section of text. The attributes are, in general,
allowed to overlap in an arbitrary fashion, however, if the
attributes are manipulated only through pangoAttrListChange,
the overlap between properties will meet stricter criteria.
Since the PangoAttrList structure is stored as a linear list,
it is not suitable for storing attributes for large amounts
of text. In general, you should not use a single PangoAttrList
for more than one paragraph of text.
PangoAttrIteratorPangoAttrIterator structure is used to represent an
iterator through a PangoAttrList. A new iterator is created
with pangoAttrListGetIterator. Once the iterator
is created, it can be advanced through the style changes
in the text using pangoAttrIteratorNext. At each
style change, the range of the current style segment and the
attributes currently in effect can be queried.
PangoAttrTypePangoAttrType
distinguishes between different types of attributes. Along with the
predefined values, it is possible to allocate additional values
for custom attributes using pangoAttrTypeRegister. The predefined
values are given below. The type of structure used to store the
attribute is listed in parentheses after the description.
invalidlanguagePangoAttrLanguage)familyPangoAttrString)stylePangoAttrInt)weightPangoAttrInt)variantPangoAttrInt)stretchPangoAttrInt)sizePANGO_SCALE (PangoAttrInt)font-descPangoAttrFontDesc)foregroundPangoAttrColor)backgroundPangoAttrColor)underlinePangoAttrInt)strikethroughPangoAttrInt)risePangoAttrInt)shapePangoAttrShape)scalePangoAttrFloat)fallbackPangoAttrInt)letter-spacingPangoAttrInt)underline-colorPangoAttrColor)strikethrough-colorPangoAttrColor)absolute-sizePANGO_SCALE (PangoAttrInt)gravityPangoAttrInt)gravity-hintPangoAttrInt)
PangoUnderlinePangoUnderline enumeration is used to specify
whether text should be underlined, and if so, the type
of underlining.
nonesingledoublelowPANGO_UNDERLINE_SINGLE should
be used for extended portions of text.
PangoAttrDataCopyFunc(data)data
Returns: [R object] a new copy of data.
PangoAttrFilterFunc(attribute, data)pangoAttrListFilter
to filter out a subset of attributes for a list.
attributePangoAttribute] a PangoAttributedatapangoAttrListFilter
Returns: [logical] TRUE if the attribute should be filtered out
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/pango/pango-Text-Attributes.html