Changeset 792


Ignore:
Timestamp:
Apr 30, 2004, 5:49:42 PM (21 years ago)
Author:
Gary Byers
Message:

Synthesize obliqueness/boldness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/cocoa-window.lisp

    r761 r792  
    348348(defun create-text-attributes (&key (font (default-font))
    349349                                    (line-break-mode :char)
    350                                     (color nil))
     350                                    (color nil)
     351                                    (obliqueness nil)
     352                                    (stroke-width nil))
    351353  (let* ((dict (make-objc-instance
    352354                'ns-mutable-dictionary
     
    359361    (when color
    360362      (send dict :set-object color :for-key #@"NSColor"))
     363    (when stroke-width
     364      (send dict :set-object (make-objc-instance 'ns:ns-number
     365                                                :with-float (float stroke-width))
     366            :for-key #@"NSStrokeWidth"))
     367    (when obliqueness
     368      (send dict :set-object (make-objc-instance 'ns:ns-number
     369                                                :with-float (float obliqueness))
     370            :for-key #@"NSObliqueness"))
    361371    dict))
    362372
Note: See TracChangeset for help on using the changeset viewer.