Skip to content

Commit b1f9ced

Browse files
authored
typed/racket/draw: update make-font type (#1264)
add the two keyword args from: racket/racket@cca0deb
1 parent fc191d4 commit b1f9ced

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

typed-racket-more/typed/racket/draw.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
#:smoothing -Font-Smoothing #f
143143
#:size-in-pixels? Univ #f
144144
#:hinting -Font-Hinting #f
145+
#:feature-settings (-Immutable-HT -String -Integer) #f
146+
#:font-list (-opt (-inst (parse-type #'Font-List%))) #f
145147
(-inst (parse-type #'Font%)))]
146148
[make-monochrome-bitmap
147149
(->* (list -Integer -Integer) (-opt -Bytes) (-inst -Bitmap%))]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#lang typed/racket/base
2+
3+
(require typed/racket/class typed/racket/draw)
4+
5+
(: get-cached-font (-> String Font-Weight Font-Style (Instance Font%)))
6+
(define (get-cached-font font weight style)
7+
(make-font #:size 1024.0 #:style style #:weight weight #:face font))
8+

0 commit comments

Comments
 (0)