1 ! Copyright (C) 2008 Matthew Willis.
2 ! See http://factorcode.org/license.txt for BSD license
3 USING: system alien.destructors alien.c-types alien.syntax alien
7 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 ! Helpful functions from other parts of pango
9 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12 { [ os winnt? ] [ "libpango-1.0-0.dll" ] }
13 { [ os macosx? ] [ "/opt/local/lib/libpango-1.0.0.dylib" ] }
14 { [ os unix? ] [ "libpango-1.0.so" ] }
15 } cond "cdecl" add-library >>
19 CONSTANT: PANGO_SCALE 1024
21 FUNCTION: PangoContext*
22 pango_context_new ( ) ;
24 : dummy-pango-context ( -- context )
25 \ dummy-pango-context [ pango_context_new ] initialize-alien ;