Gjsify LogoGjsify Logo

Index

Functions

  • font_get_kerning(font: Pango.Font, left: number, right: number): number
  • Retrieves kerning information for a combination of two glyphs.

    Use pango_fc_font_kern_glyphs() instead.

    Parameters

    • font: Pango.Font

      a PangoFont

    • left: number

      the left PangoGlyph

    • right: number

      the right PangoGlyph

    Returns number

  • Return the index of a glyph suitable for drawing unknown characters with font, or %PANGO_GLYPH_EMPTY if no suitable glyph found.

    If you want to draw an unknown-box for a character that is not covered by the font, use PANGO_GET_UNKNOWN_GLYPH() instead.

    Parameters

    Returns Pango.Glyph

  • Renders a PangoGlyphString onto a FreeType2 bitmap.

    Parameters

    • bitmap: freetype2.Bitmap

      the FreeType2 bitmap onto 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 the start of the string (in pixels)

    • y: number

      the y position of the baseline (in pixels)

    Returns void

  • Render a PangoLayout onto a FreeType2 bitmap

    Parameters

    • bitmap: freetype2.Bitmap

      a FT_Bitmap to render the layout onto

    • layout: Pango.Layout

      a PangoLayout

    • x: number

      the X position of the left of the layout (in pixels)

    • y: number

      the Y position of the top of the layout (in pixels)

    Returns void

  • Render a PangoLayoutLine onto a FreeType2 bitmap

    Parameters

    • bitmap: freetype2.Bitmap

      a FT_Bitmap to render the line onto

    • line: LayoutLine

      a PangoLayoutLine

    • x: number

      the x position of start of string (in pixels)

    • y: number

      the y position of baseline (in pixels)

    Returns void

  • Render a PangoLayoutLine onto a FreeType2 bitmap, with he location specified in fixed-point Pango units rather than pixels.

    (Using this will avoid extra inaccuracies from rounding to integer pixels multiple times, even if the final glyph positions are integers.)

    Parameters

    • bitmap: freetype2.Bitmap

      a FT_Bitmap to render the line onto

    • 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

  • Render a PangoLayout onto a FreeType2 bitmap, with he location specified in fixed-point Pango units rather than pixels.

    (Using this will avoid extra inaccuracies from rounding to integer pixels multiple times, even if the final glyph positions are integers.)

    Parameters

    • bitmap: freetype2.Bitmap

      a FT_Bitmap to render the layout onto

    • 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

  • Renders a PangoGlyphString onto a FreeType2 bitmap, 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

    • bitmap: freetype2.Bitmap

      the FreeType2 bitmap onto which to draw the string

    • 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

  • shutdown_display(): void
  • Free the global fontmap. (See pango_ft2_font_map_for_display()) Use of the global PangoFT2 fontmap is deprecated.

    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