Gjsify LogoGjsify Logo

Index

Functions

  • Returns the PangoXftFontMap for the given display and screen. The fontmap is owned by Pango and will be valid until the display is closed.

    Parameters

    • display: xlib.Display

      an X display

    • screen: number

      the screen number of a screen within display

    Returns Pango.FontMap

  • Renders a PangoGlyphString onto an Xrender Picture object.

    Parameters

    • display: xlib.Display

      an X display

    • src_picture: number

      the source picture to draw the string with

    • dest_picture: number

      the destination picture to draw the string onto

    • font: Pango.Font

      the font in which to draw the string

    • glyphs: GlyphString

      the glyph string to draw

    • x: number

      the x position of start of string (in pixels)

    • y: number

      the y position of baseline (in pixels)

    Returns void

  • Renders a PangoGlyphString onto an XftDraw object wrapping an X drawable.

    Parameters

    • draw: Draw

      the XftDraw object.

    • color: xft.Color

      the color in which to draw the string

    • font: Pango.Font

      the font in which to draw the string

    • glyphs: GlyphString

      the glyph string to draw

    • x: number

      the x position of start of string (in pixels)

    • y: number

      the y position of baseline (in pixels)

    Returns void

  • Render a PangoLayout onto a XftDraw

    Parameters

    • draw: Draw

      an XftDraw

    • color: xft.Color

      the foreground color in which to draw the layout (may be overridden by color attributes)

    • layout: Pango.Layout

      a PangoLayout

    • x: number

      the X position of the left of the layout (in Pango units)

    • y: number

      the Y position of the top of the layout (in Pango units)

    Returns void

  • Render a PangoLayoutLine onto a XftDraw

    Parameters

    • draw: Draw

      an XftDraw

    • color: xft.Color

      the foreground color in which to draw the layout line (may be overridden by color attributes)

    • line: LayoutLine

      a PangoLayoutLine

    • x: number

      the x position of start of string (in Pango units)

    • y: number

      the y position of baseline (in Pango units)

    Returns void

  • Renders a PangoGlyphString onto a XftDraw, possibly transforming the layed-out coordinates through a transformation matrix.

    Note that the transformation matrix for font is not changed, so to produce correct rendering results, the font must have been loaded using a PangoContext with an identical transformation matrix to that passed in to this function.

    Parameters

    • draw: Draw

      an XftDraw

    • color: xft.Color

      the color in which to draw the glyphs

    • matrix: Pango.Matrix

      a PangoMatrix

    • font: Pango.Font

      the font in which to draw the string

    • glyphs: GlyphString

      the glyph string to draw

    • x: number

      the x position of the start of the string (in Pango units in user space coordinates)

    • y: number

      the y position of the baseline (in Pango units in user space coordinates)

    Returns void

  • Sets a function that will be called to do final configuration substitution on a #FcPattern before it is used to load the font. This function can be used to do things like set hinting and antialiasing options.

    Parameters

    • display: xlib.Display

      an X Display

    • screen: number

      the screen number of a screen within display

    • func: PangoXft.SubstituteFunc

      function to call to to do final config tweaking on #FcPattern objects.

    Returns void

  • shutdown_display(display: xlib.Display, screen: number): void
  • Release any resources that have been cached for the combination of display and screen. Note that when the X display is closed, resources are released automatically, without needing to call this function.

    Parameters

    • display: xlib.Display

      an X display

    • screen: number

      the screen number of a screen within display

    Returns void

  • substitute_changed(display: xlib.Display, screen: number): void
  • Call this function any time the results of the default substitution function set with pango_xft_set_default_substitute() change. That is, if your substitution function will return different results for the same input pattern, you must call this function.

    Parameters

    • display: xlib.Display

      an X Display

    • screen: number

      the screen number of a screen within display

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method