pango: minor cleanups

db4
Slava Pestov 2010-08-06 00:16:18 -07:00
parent 72dfb3339f
commit c34f88e5e5
2 changed files with 2 additions and 7 deletions

View File

@ -106,8 +106,6 @@ SYMBOL: dpi
swap cache-font-description pango_layout_set_font_description ; swap cache-font-description pango_layout_set_font_description ;
: set-layout-text ( str layout -- ) : set-layout-text ( str layout -- )
#! Replace nulls with something else since Pango uses null-terminated
#! strings
swap -1 pango_layout_set_text ; swap -1 pango_layout_set_text ;
: layout-extents ( layout -- ink-rect logical-rect ) : layout-extents ( layout -- ink-rect logical-rect )

View File

@ -1,11 +1,8 @@
! Copyright (C) 2008 Matthew Willis. ! Copyright (C) 2008 Matthew Willis.
! Copyright (C) 2009 Slava Pestov. ! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: arrays sequences alien alien.c-types alien.destructors USING: alien.c-types alien.destructors alien.syntax glib pango
alien.syntax math math.functions math.vectors destructors combinators pango.fonts ;
colors fonts accessors assocs namespaces kernel pango pango.fonts
glib unicode.data images cache init
math.rectangles fry memoize io.encodings.utf8 classes.struct ;
IN: pango.layouts IN: pango.layouts
LIBRARY: pango LIBRARY: pango