chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
470805d
)
Added new function DEVICE-TO-PANGO-UNITS and fixed a minor typo
author
espen
<espen>
Wed, 17 Oct 2007 18:07:32 +0000
(18:07 +0000)
committer
espen
<espen>
Wed, 17 Oct 2007 18:07:32 +0000
(18:07 +0000)
pango/pango.lisp
patch
|
blob
|
blame
|
history
diff --git
a/pango/pango.lisp
b/pango/pango.lisp
index 52b75d426f719fc6967a7e0ec36d943c28ad9602..4b8bc759be4a055437eaa050078dc87baf1db91e 100644
(file)
--- 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.
;; 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.1
5 2007-09-07 07:39:59
espen Exp $
+;; $Id: pango.lisp,v 1.1
6 2007-10-17 18:07:32
espen Exp $
(in-package "PANGO")
(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")
(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
@@
(defclass layout (gobject)
:allocation :virtual
:initarg :indent
:getter "pango_layout_get_indent"
:allocation :virtual
:initarg :indent
:getter "pango_layout_get_indent"
- :setter "pango_layout_set_inde
tn
"
+ :setter "pango_layout_set_inde
nt
"
:accessor layout-indent
:type int)
(spacing
:accessor layout-indent
:type int)
(spacing