pango-Text-Processing {RGtk2} | R Documentation |
Functions to run the rendering pipeline
pangoItemize(context, text, start.index, length, attrs, cached.iter = NULL)
pangoItemizeWithBaseDir(context, base.dir, text, start.index, length, attrs, cached.iter = NULL)
pangoItemCopy(item)
pangoItemNew()
pangoItemSplit(orig, split.index, split.offset)
pangoReorderItems(logical.items)
pangoContextSetFontMap(object, font.map)
pangoContextGetFontMap(object)
pangoContextGetFontDescription(object)
pangoContextSetFontDescription(object, desc)
pangoContextGetLanguage(object)
pangoContextSetLanguage(object, language)
pangoContextGetBaseDir(object)
pangoContextSetBaseDir(object, direction)
pangoContextGetBaseGravity(object)
pangoContextSetBaseGravity(object, gravity)
pangoContextGetGravity(object)
pangoContextGetGravityHint(object)
pangoContextSetGravityHint(object, hint)
pangoContextGetMatrix(object)
pangoContextSetMatrix(object, matrix)
pangoContextLoadFont(object, desc)
pangoContextLoadFontset(object, desc, language)
pangoContextGetMetrics(object, desc, language = NULL)
pangoContextListFamilies(object)
pangoGetMirrorChar(ch)
pangoUnicharDirection(ch)
pangoFindBaseDir(text, length = -1)
pangoGravityToRotation(base.gravity)
pangoBreak(text, analysis)
pangoGetLogAttrs(text, level, language)
pangoFindParagraphBoundary(text, length = -1)
pangoShape(text, analysis, glyphs)
GObject +----PangoContext
The Pango rendering pipeline takes a string of Unicode characters and converts it into glyphs. The functions described in this section accomplish various steps of this process.
PangoContext
PangoContext
structure stores global information
used to control the itemization process.
PangoItem
PangoItem
structure stores information about
a segment of text. It contains the following fields:
offset
length
numChars
analysis
PangoAnalysis
] the properties of the segment.
PangoAnalysis
PangoAnalysis
structure stores information about
the properties of a segment of text. It has the following
fields:
font
PangoFont
] the engine for doing rendering-system-dependent processing.level
language
PangoLanguage
] the font for this segment.extraAttrs
PangoLogAttr
PangoLogAttr
structure stores information
about the attributes of a single character.
isLineBreak
isMandatoryBreak
isCharBreak
isWhite
isCursorPosition
isWordStart
isWordEnd
is.word.start
and is.word.end
set for some character.isSentenceBoundary
is.sentence.boundary
denotes
the boundaries there. The second way doesn't assign
between-sentence spaces, etc. to any sentence, so
is.sentence.start
/is.sentence.end
mark the boundaries
of those sentences.isSentenceStart
isSentenceEnd
is.sentence.start
and is.sentence.end
set for some character. (e.g. no space after a
period, so the next sentence starts right away)backspaceDeletesCharacter
is.cursor.position
is
set). In some languages, the full grapheme
(e.g. letter + diacritics) is considered a
unit, while in others, each decomposed
character in the grapheme is a unit. In the
default implementation of pangoBreak
, this
bit is set on all grapheme boundaries except
those following Latin, Cyrillic or Greek base
characters.
PangoDirection
PangoDirection
type represents a direction in the
Unicode bidirectional algorithm; not every value in this
enumeration makes sense for every usage of PangoDirection
;
for example, the return value of pangoUnicharDirection
and pangoFindBaseDir
cannot be PANGO_DIRECTION_WEAK_LTR
or PANGO_DIRECTION_WEAK_RTL
, since every character is either
neutral or has a strong direction; on the other hand
PANGO_DIRECTION_NEUTRAL
doesn't make sense to pass
to pangoItemizeWithBaseDir
.
The PANGO_DIRECTION_TTB_LTR
, PANGO_DIRECTION_TTB_RTL
values come from an earlier interpretation of this
enumeration as the writing direction of a block of
text and are no longer used; See PangoGravity
for how
vertical text is handled in Pango.
ltr
rtl
ttb-ltr
PANGO_DIRECTION_RTL
.ttb-rtl
PANGO_DIRECTION_LTR
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/pango/pango-Text-Processing.html