Documentation
¶
Index ¶
- func FontGetCoverage(font *pango.Font, language *pango.Language) *pango.Coverage
- func FontGetFace(font *pango.Font) freetype2.Face
- func FontGetKerning(font *pango.Font, left pango.Glyph, right pango.Glyph) int32
- func FontMapForDisplay() *pango.FontMap
- func GetContext(dpiX float64, dpiY float64) *pango.Context
- func GetUnknownGlyph(font *pango.Font) pango.Glyph
- func RenderLayout(bitmap *freetype2.Bitmap, layout *pango.Layout, x int32, y int32)
- func RenderLayoutLine(bitmap *freetype2.Bitmap, line *pango.LayoutLine, x int32, y int32)
- func RenderLayoutLineSubpixel(bitmap *freetype2.Bitmap, line *pango.LayoutLine, x int32, y int32)
- func RenderLayoutSubpixel(bitmap *freetype2.Bitmap, layout *pango.Layout, x int32, y int32)
- func ShutdownDisplay()
- type FontMap
- func (recv *FontMap) CreateContext() *pango.Context
- func (recv *FontMap) Equals(other *FontMap) bool
- func (recv *FontMap) FontMap() *pango.FontMap
- func (recv *FontMap) Object() *gobject.Object
- func (recv *FontMap) SetResolution(dpiX float64, dpiY float64)
- func (recv *FontMap) SubstituteChanged()
- func (recv *FontMap) ToC() unsafe.Pointer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FontGetCoverage ¶
FontGetCoverage is a wrapper around the C function pango_ft2_font_get_coverage.
func FontGetFace ¶
FontGetFace is a wrapper around the C function pango_ft2_font_get_face.
func FontGetKerning ¶
FontGetKerning is a wrapper around the C function pango_ft2_font_get_kerning.
func FontMapForDisplay ¶
FontMapForDisplay is a wrapper around the C function pango_ft2_font_map_for_display.
func GetContext ¶
GetContext is a wrapper around the C function pango_ft2_get_context.
func GetUnknownGlyph ¶
GetUnknownGlyph is a wrapper around the C function pango_ft2_get_unknown_glyph.
func RenderLayout ¶
RenderLayout is a wrapper around the C function pango_ft2_render_layout.
func RenderLayoutLine ¶
RenderLayoutLine is a wrapper around the C function pango_ft2_render_layout_line.
func RenderLayoutLineSubpixel ¶
RenderLayoutLineSubpixel is a wrapper around the C function pango_ft2_render_layout_line_subpixel.
func RenderLayoutSubpixel ¶
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 ¶
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 (*FontMap) CreateContext ¶
CreateContext is a wrapper around the C function pango_ft2_font_map_create_context.
func (*FontMap) Equals ¶
Equals compares this FontMap with another FontMap, and returns true if they represent the same GObject.
func (*FontMap) SetResolution ¶
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.