From c046af8126e386d3296c6bcd880038ce426d0efd Mon Sep 17 00:00:00 2001 From: espen Date: Wed, 17 Oct 2007 18:07:32 +0000 Subject: [PATCH] Added new function DEVICE-TO-PANGO-UNITS and fixed a minor typo --- pango/pango.lisp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pango/pango.lisp b/pango/pango.lisp index bd522cf..7a3b8d3 100644 --- a/pango/pango.lisp +++ b/pango/pango.lisp @@ -20,10 +20,15 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: pango.lisp,v 1.15 2007/09/07 07:39:59 espen Exp $ +;; $Id: pango.lisp,v 1.16 2007/10/17 18:07:32 espen Exp $ (in-package "PANGO") +(defconstant +pango-scale+ 1024) + +(defun device-to-pango-units (device-units) + (round (* device-units +pango-scale+))) + (eval-when (:compile-toplevel :load-toplevel :execute) (init-types-in-library pango "libpango-1.0" :prefix "pango_") (init-types-in-library pango "libpangoxft-1.0" :prefix "pango_xft") @@ -153,7 +158,7 @@ :allocation :virtual :initarg :indent :getter "pango_layout_get_indent" - :setter "pango_layout_set_indetn" + :setter "pango_layout_set_indent" :accessor layout-indent :type int) (spacing -- 2.11.0