pangoft2

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FontGetCoverage

func FontGetCoverage(font *pango.Font, language *pango.Language) *pango.Coverage

FontGetCoverage is a wrapper around the C function pango_ft2_font_get_coverage.

func FontGetFace

func FontGetFace(font *pango.Font) freetype2.Face

FontGetFace is a wrapper around the C function pango_ft2_font_get_face.

func FontGetKerning

func FontGetKerning(font *pango.Font, left pango.Glyph, right pango.Glyph) int32

FontGetKerning is a wrapper around the C function pango_ft2_font_get_kerning.

func FontMapForDisplay

func FontMapForDisplay() *pango.FontMap

FontMapForDisplay is a wrapper around the C function pango_ft2_font_map_for_display.

func GetContext

func GetContext(dpiX float64, dpiY float64) *pango.Context

GetContext is a wrapper around the C function pango_ft2_get_context.

func GetUnknownGlyph

func GetUnknownGlyph(font *pango.Font) pango.Glyph

GetUnknownGlyph is a wrapper around the C function pango_ft2_get_unknown_glyph.

func RenderLayout

func RenderLayout(bitmap *freetype2.Bitmap, layout *pango.Layout, x int32, y int32)

RenderLayout is a wrapper around the C function pango_ft2_render_layout.

func RenderLayoutLine

func RenderLayoutLine(bitmap *freetype2.Bitmap, line *pango.LayoutLine, x int32, y int32)

RenderLayoutLine is a wrapper around the C function pango_ft2_render_layout_line.

func RenderLayoutLineSubpixel

func RenderLayoutLineSubpixel(bitmap *freetype2.Bitmap, line *pango.LayoutLine, x int32, y int32)

RenderLayoutLineSubpixel is a wrapper around the C function pango_ft2_render_layout_line_subpixel.

func RenderLayoutSubpixel

func RenderLayoutSubpixel(bitmap *freetype2.Bitmap, layout *pango.Layout, x int32, y int32)

RenderLayoutSubpixel is a wrapper around the C function pango_ft2_render_layout_subpixel.

func ShutdownDisplay

func ShutdownDisplay()

ShutdownDisplay is a wrapper around the C function pango_ft2_shutdown_display.

Types

type FontMap

type FontMap struct {
	// contains filtered or unexported fields
}

FontMap is a wrapper around the C record PangoFT2FontMap.

func CastToFontMap

func CastToFontMap(object *gobject.Object) *FontMap

CastToWidget down casts any arbitrary Object to FontMap. Exercise care, as this is a potentially dangerous function if the Object is not a FontMap.

func FontMapNew

func FontMapNew() *FontMap

FontMapNew is a wrapper around the C function pango_ft2_font_map_new.

func FontMapNewFromC

func FontMapNewFromC(u unsafe.Pointer) *FontMap

func (*FontMap) CreateContext

func (recv *FontMap) CreateContext() *pango.Context

CreateContext is a wrapper around the C function pango_ft2_font_map_create_context.

func (*FontMap) Equals

func (recv *FontMap) Equals(other *FontMap) bool

Equals compares this FontMap with another FontMap, and returns true if they represent the same GObject.

func (*FontMap) FontMap

func (recv *FontMap) FontMap() *pango.FontMap

FontMap upcasts to *FontMap

func (*FontMap) Object

func (recv *FontMap) Object() *gobject.Object

Object upcasts to *Object

func (*FontMap) SetResolution

func (recv *FontMap) SetResolution(dpiX float64, dpiY float64)

SetResolution is a wrapper around the C function pango_ft2_font_map_set_resolution.

func (*FontMap) SubstituteChanged

func (recv *FontMap) SubstituteChanged()

SubstituteChanged is a wrapper around the C function pango_ft2_font_map_substitute_changed.

func (*FontMap) ToC

func (recv *FontMap) ToC() unsafe.Pointer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL