pango.global
Global functions for pango1 library
fn attrAllowBreaksNew attrBackgroundAlphaNew attrBackgroundNew attrBaselineShiftNew attrBreak attrFallbackNew attrFamilyNew attrFontScaleNew attrForegroundAlphaNew attrForegroundNew attrGravityHintNew attrGravityNew attrInsertHyphensNew attrLetterSpacingNew attrLineHeightNew attrLineHeightNewAbsolute attrOverlineColorNew attrOverlineNew attrRiseNew attrScaleNew attrSentenceNew attrShowNew attrStretchNew attrStrikethroughColorNew attrStrikethroughNew attrStyleNew attrTextTransformNew attrUnderlineColorNew attrUnderlineNew attrVariantNew attrWeightNew attrWordNew break_ defaultBreak extentsToPixels findBaseDir findParagraphBoundary getLogAttrs isZeroWidth itemize itemizeWithBaseDir markupParserFinish markupParserNew parseEnum parseMarkup parseStretch parseStyle parseVariant parseWeight quantizeLineGeometry readLine reorderItems shape shapeFull shapeItem shapeWithFlags splitFileList tailorBreak trimString unicharDirection unitsFromDouble unitsToDouble version_ versionCheck versionString
Functions 65
fn
pango.attribute.Attribute attrAllowBreaksNew(bool allowBreaks)Create a new allow-breaks attribute.fn
pango.attribute.Attribute attrBackgroundAlphaNew(ushort alpha)Create a new background alpha attribute.fn
pango.attribute.Attribute attrBackgroundNew(ushort red, ushort green, ushort blue)Create a new background color attribute.fn
pango.attribute.Attribute attrBaselineShiftNew(int shift)Create a new baseline displacement attribute.fn
void attrBreak(string text, pango.attr_list.AttrList attrList, int offset, pango.types.LogAttr[] attrs)Apply customization from attributes to the breaks in attrs.fn
pango.attribute.Attribute attrFallbackNew(bool enableFallback)Create a new font fallback attribute.fn
pango.attribute.Attribute attrFontScaleNew(pango.types.FontScale scale)Create a new font scale attribute.fn
pango.attribute.Attribute attrForegroundAlphaNew(ushort alpha)Create a new foreground alpha attribute.fn
pango.attribute.Attribute attrForegroundNew(ushort red, ushort green, ushort blue)Create a new foreground color attribute.fn
pango.attribute.Attribute attrGravityHintNew(pango.types.GravityHint hint)Create a new gravity hint attribute.fn
pango.attribute.Attribute attrGravityNew(pango.types.Gravity gravity)Create a new gravity attribute.fn
pango.attribute.Attribute attrInsertHyphensNew(bool insertHyphens)Create a new insert-hyphens attribute.fn
pango.attribute.Attribute attrLetterSpacingNew(int letterSpacing)Create a new letter-spacing attribute.fn
pango.attribute.Attribute attrLineHeightNew(double factor)Modify the height of logical line extents by a factor.fn
pango.attribute.Attribute attrLineHeightNewAbsolute(int height)Override the height of logical line extents to be height.fn
pango.attribute.Attribute attrOverlineColorNew(ushort red, ushort green, ushort blue)Create a new overline color attribute.fn
pango.attribute.Attribute attrOverlineNew(pango.types.Overline overline)Create a new overline-style attribute.fn
pango.attribute.Attribute attrShowNew(pango.types.ShowFlags flags)Create a new attribute that influences how invisible characters are rendered.fn
pango.attribute.Attribute attrStretchNew(pango.types.Stretch stretch)Create a new font stretch attribute.fn
pango.attribute.Attribute attrStrikethroughColorNew(ushort red, ushort green, ushort blue)Create a new strikethrough color attribute.fn
pango.attribute.Attribute attrStrikethroughNew(bool strikethrough)Create a new strike-through attribute.fn
pango.attribute.Attribute attrStyleNew(pango.types.Style style)Create a new font slant style attribute.fn
pango.attribute.Attribute attrTextTransformNew(pango.types.TextTransform transform)Create a new attribute that influences how characters are transformed during shaping.fn
pango.attribute.Attribute attrUnderlineColorNew(ushort red, ushort green, ushort blue)Create a new underline color attribute.fn
pango.attribute.Attribute attrUnderlineNew(pango.types.Underline underline)Create a new underline-style attribute.fn
pango.attribute.Attribute attrVariantNew(pango.types.Variant variant)Create a new font variant attribute (normal or small caps).fn
pango.attribute.Attribute attrWeightNew(pango.types.Weight weight)Create a new font weight attribute.fn
void break_(string text, pango.analysis.Analysis analysis, pango.types.LogAttr[] attrs)Determines possible line, word, and character breaks for a string of Unicode text with a single analysis.fn
void defaultBreak(string text, pango.analysis.Analysis analysis, pango.types.LogAttr attrs, int attrsLen)This is the default break algorithm.fn
void extentsToPixels(pango.types.Rectangle inclusive, pango.types.Rectangle nearest)Converts extents from Pango units to device units.fn
pango.types.Direction findBaseDir(string text)Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm.fn
void findParagraphBoundary(string text, out int paragraphDelimiterIndex, out int nextParagraphStart)Locates a paragraph boundary in text.fn
void getLogAttrs(string text, int level, pango.language.Language language, pango.types.LogAttr[] attrs)Computes a [pango.types.LogAttr] for each character in text.fn
pango.item.Item[] itemize(pango.context.Context context, string text, int startIndex, int length, pango.attr_list.AttrList attrs, pango.attr_iterator.AttrIterator cachedIter = null)Breaks a piece of text into segments with consistent directional level and font.fn
pango.item.Item[] itemizeWithBaseDir(pango.context.Context context, pango.types.Direction baseDir, string text, int startIndex, int length, pango.attr_list.AttrList attrs, pango.attr_iterator.AttrIterator cachedIter = null)Like `[pango.global.itemize]`, but with an explicitly specified base direction.fn
bool markupParserFinish(glib.markup_parse_context.MarkupParseContext context, out pango.attr_list.AttrList attrList, out string text, out dchar accelChar)Finishes parsing markup.fn
glib.markup_parse_context.MarkupParseContext markupParserNew(dchar accelMarker)Incrementally parses marked-up text to create a plain-text string and an attribute list.fn
bool parseEnum(gobject.types.GType type, string str, out int value, bool warn, out string possibleValues)Parses an enum type and stores the result in value.fn
bool parseMarkup(string markupText, dchar accelMarker, out pango.attr_list.AttrList attrList, out string text, out dchar accelChar)Parses marked-up text to create a plain-text string and an attribute list.fn
void quantizeLineGeometry(ref int thickness, ref int position)Quantizes the thickness and position of a line to whole device pixels.fn
int readLine(void * stream, glib.string_.String str)Reads an entire line from a file into a buffer.fn
pango.item.Item[] reorderItems(pango.item.Item[] items)Reorder items from logical order to visual order.fn
void shape(string text, pango.analysis.Analysis analysis, pango.glyph_string.GlyphString glyphs)Convert the characters in text into glyphs.fn
void shapeFull(string itemText, string paragraphText, pango.analysis.Analysis analysis, pango.glyph_string.GlyphString glyphs)Convert the characters in text into glyphs.fn
void shapeItem(pango.item.Item item, string paragraphText, pango.types.LogAttr logAttrs, pango.glyph_string.GlyphString glyphs, pango.types.ShapeFlags flags)Convert the characters in item into glyphs.fn
void shapeWithFlags(string itemText, string paragraphText, pango.analysis.Analysis analysis, pango.glyph_string.GlyphString glyphs, pango.types.ShapeFlags flags)Convert the characters in text into glyphs.fn
string[] splitFileList(string str)Splits a [glib.types.SEARCHPATH_SEPARATOR]-separated list of files, stripping white space and substituting ~/ with $HOME/.fn
void tailorBreak(string text, pango.analysis.Analysis analysis, int offset, pango.types.LogAttr[] attrs)Apply language-specific tailoring to the breaks in attrs.fn
string versionCheck(int requiredMajor, int requiredMinor, int requiredMicro)Checks that the Pango library in use is compatible with the given version.