pango.global

Global functions for pango1 library

Functions 65

fnpango.attribute.Attribute attrAllowBreaksNew(bool allowBreaks)Create a new allow-breaks attribute.
fnpango.attribute.Attribute attrBackgroundAlphaNew(ushort alpha)Create a new background alpha attribute.
fnpango.attribute.Attribute attrBackgroundNew(ushort red, ushort green, ushort blue)Create a new background color attribute.
fnpango.attribute.Attribute attrBaselineShiftNew(int shift)Create a new baseline displacement attribute.
fnvoid attrBreak(string text, pango.attr_list.AttrList attrList, int offset, pango.types.LogAttr[] attrs)Apply customization from attributes to the breaks in attrs.
fnpango.attribute.Attribute attrFallbackNew(bool enableFallback)Create a new font fallback attribute.
fnpango.attribute.Attribute attrFamilyNew(string family)Create a new font family attribute.
fnpango.attribute.Attribute attrFontScaleNew(pango.types.FontScale scale)Create a new font scale attribute.
fnpango.attribute.Attribute attrForegroundAlphaNew(ushort alpha)Create a new foreground alpha attribute.
fnpango.attribute.Attribute attrForegroundNew(ushort red, ushort green, ushort blue)Create a new foreground color attribute.
fnpango.attribute.Attribute attrGravityHintNew(pango.types.GravityHint hint)Create a new gravity hint attribute.
fnpango.attribute.Attribute attrGravityNew(pango.types.Gravity gravity)Create a new gravity attribute.
fnpango.attribute.Attribute attrInsertHyphensNew(bool insertHyphens)Create a new insert-hyphens attribute.
fnpango.attribute.Attribute attrLetterSpacingNew(int letterSpacing)Create a new letter-spacing attribute.
fnpango.attribute.Attribute attrLineHeightNew(double factor)Modify the height of logical line extents by a factor.
fnpango.attribute.Attribute attrLineHeightNewAbsolute(int height)Override the height of logical line extents to be height.
fnpango.attribute.Attribute attrOverlineColorNew(ushort red, ushort green, ushort blue)Create a new overline color attribute.
fnpango.attribute.Attribute attrOverlineNew(pango.types.Overline overline)Create a new overline-style attribute.
fnpango.attribute.Attribute attrRiseNew(int rise)Create a new baseline displacement attribute.
fnpango.attribute.Attribute attrScaleNew(double scaleFactor)Create a new font size scale attribute.
fnpango.attribute.Attribute attrSentenceNew()Marks the range of the attribute as a single sentence.
fnpango.attribute.Attribute attrShowNew(pango.types.ShowFlags flags)Create a new attribute that influences how invisible characters are rendered.
fnpango.attribute.Attribute attrStretchNew(pango.types.Stretch stretch)Create a new font stretch attribute.
fnpango.attribute.Attribute attrStrikethroughColorNew(ushort red, ushort green, ushort blue)Create a new strikethrough color attribute.
fnpango.attribute.Attribute attrStrikethroughNew(bool strikethrough)Create a new strike-through attribute.
fnpango.attribute.Attribute attrStyleNew(pango.types.Style style)Create a new font slant style attribute.
fnpango.attribute.Attribute attrTextTransformNew(pango.types.TextTransform transform)Create a new attribute that influences how characters are transformed during shaping.
fnpango.attribute.Attribute attrUnderlineColorNew(ushort red, ushort green, ushort blue)Create a new underline color attribute.
fnpango.attribute.Attribute attrUnderlineNew(pango.types.Underline underline)Create a new underline-style attribute.
fnpango.attribute.Attribute attrVariantNew(pango.types.Variant variant)Create a new font variant attribute (normal or small caps).
fnpango.attribute.Attribute attrWeightNew(pango.types.Weight weight)Create a new font weight attribute.
fnpango.attribute.Attribute attrWordNew()Marks the range of the attribute as a single word.
fnvoid 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.
fnvoid defaultBreak(string text, pango.analysis.Analysis analysis, pango.types.LogAttr attrs, int attrsLen)This is the default break algorithm.
fnvoid extentsToPixels(pango.types.Rectangle inclusive, pango.types.Rectangle nearest)Converts extents from Pango units to device units.
fnpango.types.Direction findBaseDir(string text)Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm.
fnvoid findParagraphBoundary(string text, out int paragraphDelimiterIndex, out int nextParagraphStart)Locates a paragraph boundary in text.
fnvoid getLogAttrs(string text, int level, pango.language.Language language, pango.types.LogAttr[] attrs)Computes a [pango.types.LogAttr] for each character in text.
fnbool isZeroWidth(dchar ch)Checks if a character that should not be normally rendered.
fnpango.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.
fnpango.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.
fnbool markupParserFinish(glib.markup_parse_context.MarkupParseContext context, out pango.attr_list.AttrList attrList, out string text, out dchar accelChar)Finishes parsing markup.
fnglib.markup_parse_context.MarkupParseContext markupParserNew(dchar accelMarker)Incrementally parses marked-up text to create a plain-text string and an attribute list.
fnbool 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.
fnbool 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.
fnbool parseStretch(string str, out pango.types.Stretch stretch, bool warn)Parses a font stretch.
fnbool parseStyle(string str, out pango.types.Style style, bool warn)Parses a font style.
fnbool parseVariant(string str, out pango.types.Variant variant, bool warn)Parses a font variant.
fnbool parseWeight(string str, out pango.types.Weight weight, bool warn)Parses a font weight.
fnvoid quantizeLineGeometry(ref int thickness, ref int position)Quantizes the thickness and position of a line to whole device pixels.
fnint readLine(void * stream, glib.string_.String str)Reads an entire line from a file into a buffer.
fnpango.item.Item[] reorderItems(pango.item.Item[] items)Reorder items from logical order to visual order.
fnvoid shape(string text, pango.analysis.Analysis analysis, pango.glyph_string.GlyphString glyphs)Convert the characters in text into glyphs.
fnvoid shapeFull(string itemText, string paragraphText, pango.analysis.Analysis analysis, pango.glyph_string.GlyphString glyphs)Convert the characters in text into glyphs.
fnvoid 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.
fnvoid 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.
fnstring[] splitFileList(string str)Splits a [glib.types.SEARCHPATH_SEPARATOR]-separated list of files, stripping white space and substituting ~/ with $HOME/.
fnvoid tailorBreak(string text, pango.analysis.Analysis analysis, int offset, pango.types.LogAttr[] attrs)Apply language-specific tailoring to the breaks in attrs.
fnstring trimString(string str)Trims leading and trailing whitespace from a string.
fnpango.types.Direction unicharDirection(dchar ch)Determines the inherent direction of a character.
fnint unitsFromDouble(double d)Converts a floating-point number to Pango units.
fndouble unitsToDouble(int i)Converts a number in Pango units to floating-point.
fnint version_()Returns the encoded version of Pango available at run-time.
fnstring versionCheck(int requiredMajor, int requiredMinor, int requiredMicro)Checks that the Pango library in use is compatible with the given version.
fnstring versionString()Returns the version of Pango available at run-time.