Fixes for Robby's change to tooltip.rkt.
* Add `get-size` to `Font%`. * Relax types on `find-or-create-font` in line with docs. * Add `basic-style` to `Style-List%`.
This commit is contained in:
parent
d1e17b04e8
commit
d20c74e22a
|
@ -19,4 +19,4 @@
|
|||
|
||||
(define pkg-authors '(samth stamourv))
|
||||
|
||||
(define version "1.1")
|
||||
(define version "1.2")
|
||||
|
|
|
@ -533,12 +533,12 @@
|
|||
(define-type Font-List%
|
||||
(Class
|
||||
[find-or-create-font
|
||||
(case-> (Integer (U Symbol String) Symbol Symbol -> (Instance Font%))
|
||||
(Integer (U Symbol String) Symbol Symbol Any -> (Instance Font%))
|
||||
(Integer (U Symbol String) Symbol Symbol Any Any -> (Instance Font%))
|
||||
(Integer (U Symbol String) Symbol Symbol Any Any Any -> (Instance Font%))
|
||||
(Integer (U Symbol String) Symbol Symbol Any Any Any Any -> (Instance Font%))
|
||||
(Integer (U Symbol String) Symbol Symbol Any Any Any Any Font-Hinting -> (Instance Font%)))]))
|
||||
(case-> (Real (U Symbol String) Symbol Symbol -> (Instance Font%))
|
||||
(Real (U Symbol String) Symbol Symbol Any -> (Instance Font%))
|
||||
(Real (U Symbol String) Symbol Symbol Any Any -> (Instance Font%))
|
||||
(Real (U Symbol String) Symbol Symbol Any Any Any -> (Instance Font%))
|
||||
(Real (U Symbol String) Symbol Symbol Any Any Any Any -> (Instance Font%))
|
||||
(Real (U Symbol String) Symbol Symbol Any Any Any Any Font-Hinting -> (Instance Font%)))]))
|
||||
|
||||
(define-type Font-Family
|
||||
(U 'default 'decorative 'roman 'script 'swiss
|
||||
|
@ -580,6 +580,7 @@
|
|||
[get-hinting (-> Font-Hinting)]
|
||||
[get-point-size (-> Positive-Integer)]
|
||||
[get-size-in-pixels (-> Boolean)]
|
||||
[get-size (-> Nonnegative-Real)]
|
||||
[get-smoothing (-> Font-Smoothing)]
|
||||
[get-style (-> Font-Style)]
|
||||
[get-underlined (-> Boolean)]
|
||||
|
@ -2708,7 +2709,7 @@
|
|||
|
||||
(define-type Style-List%
|
||||
(Class ; FIXME: this is a final method
|
||||
; [basic-style (-> (Instance Style<%>))]
|
||||
[basic-style (-> (Instance Style<%>))]
|
||||
[convert ((Instance Style<%>) -> (Instance Style<%>))]
|
||||
[find-named-style
|
||||
(String -> (Option (Instance Style<%>)))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user