ui.text.pango vocabulary
Factor handbook > Vocabulary index


Summary
UI text rendering implementation using cross-platform Pango library

Meta-data
Authors:Slava Pestov
Platforms:linux


Words

Tuple classes
ClassSuperclassSlots
layout disposablefont string selection layout metrics ink-rect logical-rect image


Singleton classes
pango-renderer


Symbol words
cached-layouts
dpi


Ordinary words
WordStack effect
(cache-font-description)( name size bold? italic? -- description )
<PangoLayout>( text font -- layout )
<layout>( font string -- line )
PangoRectangle>rect( PangoRectangle -- rect )
cache-font-description( font -- description )
cached-layout( font string -- layout )
cached-line( font string -- line )
draw-layout( layout -- image )
escape-nulls( str -- str' )
fill-background( cr font dim -- )
fill-selection-background( cr layout -- )
first-line( layout -- line )
float>pango( x -- n )
glyph-height( font string -- y )
layout-baseline( layout -- baseline )
layout-extents( layout -- ink-rect logical-rect )
layout-metrics( layout -- metrics )
layout>image( layout -- image )
line-offset>x( layout n -- x )
missing-font-metrics( font -- metrics )
pango>float( n -- x )
rect-translate-x( rect x -- rect' )
selection-rect( layout -- rect )
selection-start/end( selection -- start end )
set-foreground( cr font -- )
set-layout-font( font layout -- )
set-layout-resolution( layout -- )
set-layout-text( str layout -- )
set-text-position( cr loc -- )
text-position( layout -- loc )
unpack-selection( layout string/selection -- layout )
x>line-offset( layout x -- n )


Class predicate words
WordStack effect
layout?( object -- ? )
pango-renderer?( object -- ? )


Files