Skip to content

Commit

Permalink
fix font class bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
filonenko-mikhail committed Aug 30, 2012
1 parent 3235774 commit d306766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions clx-truetype.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 11,9 @@
(overline :type boolean :initarg :overline :initform nil :accessor font-overline :documentation "Draw line over text string.")
(background :initarg :background :initform nil :accessor font-background :documentation "Background color.")
(foreground :initarg :foreground :initform nil :accessor font-foreground :documentation "Foreground color.")
(overwrite-gcontext :type boolean :initarg overwrite-gcontext :initform nil
(overwrite-gcontext :type boolean :initarg :overwrite-gcontext :initform nil
:accessor font-overwrite-gcontext :documentation "Use font values for background and foreground colors.")
(antialias :type boolean :initarg antialias :initform t :accessor font-antialias :documentation "Antialias text string.")
(antialias :type boolean :initarg :antialias :initform t :accessor font-antialias :documentation "Antialias text string.")
(string-bboxes :type hash-table :initform (make-hash-table :test 'equal) :accessor font-string-bboxes
:documentation "Cache for bboxes")
(string-line-bboxes :type hash-table :initform (make-hash-table :test 'equal) :accessor font-string-line-bboxes
Expand Down Expand Up @@ -48,7 48,6 @@
(clrhash (font-string-bboxes font))
(clrhash (font-string-line-bboxes font)))


(defmethod (setf font-size) :after (value (font font))
(clrhash (font-string-bboxes font))
(clrhash (font-string-line-bboxes font)))
Expand Down
2 changes: 1 addition & 1 deletion package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 12,7 @@
:font-strikethrough
:font-overline
:font-background
:font-foregroung
:font-foreground
:font-overwrite-gcontext
:cache-font-file
:*font-dirs*
Expand Down

0 comments on commit d306766

Please sign in to comment.