Global Variables

The following global variables are available globally.

  • Whether the segment should be shifted to center around the baseline.

    This is mainly used in vertical writing directions.

    Declaration

    Swift

    public let ANALYSIS_FLAG_CENTERED_BASELINE: Int32
  • Whether this run holds ellipsized text.

    Declaration

    Swift

    public let ANALYSIS_FLAG_IS_ELLIPSIS: Int32
  • Whether to add a hyphen at the end of the run during shaping.

    Declaration

    Swift

    public let ANALYSIS_FLAG_NEED_HYPHEN: Int32
  • Value for start_index in PangoAttribute that indicates the beginning of the text.

    Declaration

    Swift

    public let ATTR_INDEX_FROM_TEXT_BEGINNING: guint
  • Value for end_index in PangoAttribute that indicates the end of the text.

    Declaration

    Swift

    public let ATTR_INDEX_TO_TEXT_END: Int
  • A PangoGlyph value that indicates a zero-width empty glpyh.

    This is useful for example in shaper modules, to use as the glyph for various zero-width Unicode characters (those passing [funcis_zero_width]).

    Declaration

    Swift

    public let GLYPH_EMPTY: Int
  • A PangoGlyph value for invalid input.

    PangoLayout produces one such glyph per invalid input UTF-8 byte and such a glyph is rendered as a crossed box.

    Note that this value is defined such that it has the PANGO_GLYPH_UNKNOWN_FLAG set.

    Declaration

    Swift

    public let GLYPH_INVALID_INPUT: Int
  • Flag used in PangoGlyph to turn a gunichar value of a valid Unicode character into an unknown-character glyph for that gunichar.

    Such unknown-character glyphs may be rendered as a ‘hex box’.

    Declaration

    Swift

    public let GLYPH_UNKNOWN_FLAG: Int
  • The scale between dimensions used for Pango distances and device units.

    The definition of device units is dependent on the output device; it will typically be pixels for a screen, and points for a printer. PANGO_SCALE is currently 1024, but this may be changed in the future.

    When setting font sizes, device units are always considered to be points (as in “12 point font”), rather than pixels.

    Declaration

    Swift

    public let SCALE: Int32
  • The major component of the version of Pango available at compile-time.

    Declaration

    Swift

    public let VERSION_MAJOR: Int32
  • The micro component of the version of Pango available at compile-time.

    Declaration

    Swift

    public let VERSION_MICRO: Int32
  • The minor component of the version of Pango available at compile-time.

    Declaration

    Swift

    public let VERSION_MINOR: Int32
  • A string literal containing the version of Pango available at compile-time.

    Declaration

    Swift

    public let VERSION_STRING: String