Merge pull request #10 from scymtym/fix-post20-reading-again
[zpb-ttf.git] / package.lisp
blobd4443e2d9fff474241321d0cb097149c089745b7
1 ;;; Copyright (c) 2006 Zachary Beane, All Rights Reserved
2 ;;;
3 ;;; Redistribution and use in source and binary forms, with or without
4 ;;; modification, are permitted provided that the following conditions
5 ;;; are met:
6 ;;;
7 ;;; * Redistributions of source code must retain the above copyright
8 ;;; notice, this list of conditions and the following disclaimer.
9 ;;;
10 ;;; * Redistributions in binary form must reproduce the above
11 ;;; copyright notice, this list of conditions and the following
12 ;;; disclaimer in the documentation and/or other materials
13 ;;; provided with the distribution.
14 ;;;
15 ;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
16 ;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19 ;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 ;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21 ;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 ;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ;;;
27 ;;; $Id: package.lisp,v 1.22 2006/03/27 21:57:37 xach Exp $
29 (defpackage #:zpb-ttf
30 (:use #:cl)
31 (:export
32 ;; font loader
33 #:open-font-loader
34 #:close-font-loader
35 #:with-font-loader
36 #:glyph-count
37 #:name-entry-value
38 #:find-name-entry
39 #:value
40 #:collection-font-count
41 #:collection-font-index
42 ;; font typographic
43 #:italic-angle
44 #:underline-thickness
45 #:underline-position
46 #:fixed-pitch-p
47 #:units/em
48 #:ascender
49 #:descender
50 #:line-gap
51 ;; other font attributes
52 #:postscript-name
53 #:full-name
54 #:family-name
55 #:subfamily-name
56 #:all-kerning-pairs
57 #:glyph-exists-p
58 #:index-glyph
59 #:find-glyph
60 ;; shared between font-loader and glyph
61 #:bounding-box
62 #:xmin
63 #:ymin
64 #:xmax
65 #:ymax
66 ;; control points
67 #:x
68 #:y
69 #:on-curve-p
70 ;; glyph contours
71 #:contour-count
72 #:contour
73 #:contours
74 #:do-contours
75 #:explicit-contour-points
76 #:do-contour-segments
77 #:do-contour-segments*
78 ;; glyph other
79 #:code-point
80 #:font-index
81 ;; glyph typographic
82 #:advance-width
83 #:left-side-bearing
84 #:right-side-bearing
85 #:kerning-offset
86 #:string-bounding-box))