1 ;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
4 Celtk -- Cells
, Tcl
, and Tk
6 Copyright
(C) 2006 by Kenneth Tilton
8 This library is free software
; you can redistribute it and/or
9 modify it under the terms of the Lisp Lesser GNU Public License
10 (http://opensource.franz.com
/preamble.html
), known as the LLGPL.
12 This library is distributed WITHOUT ANY WARRANTY
; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 See the Lisp Lesser GNU Public License for more details.
22 (deftk text-item
(tkfontified item
)
41 :l-coords
'(0 0) ;; the p-offset will positon the text
42 :coords-tweak
(c_?
(eko (nil "coords tweak" self
)
43 (list 0 0 #+not
(- (* (tk-scaling .tkw
) (^tkfont-ascent
))))))))