25 Drawing Functions
Returns a list of font face names available on the current system. If
'mono is provided as the argument, then only faces that are
known to correspond to monospace fonts are included in the list.
Returns the built-in default face mapping for a particular font
family.
See font% for information about family.
Returns
(make-object bitmap% width height #f alpha?), but
this procedure is preferred because it defaults
alpha? in a
more useful way.
(make-font | [ | #:size size | | | | | | | #:face face | | | | | | | #:family family | | | | | | | #:style style | | | | | | | #:weight weight | | | | | | | #:underline? underline? | | | | | | | #:smoothing smoothing | | | | | | | #:size-in-pixels? size-in-pixels?]) | | → | | (is-a?/c font%) |
|
size : (integer-in 1 255) = 12 |
face : (or/c string? #f) = #f |
| family | | : | | (one-of/c 'default 'decorative 'roman 'script | 'swiss 'modern 'symbol 'system) |
| | | | = | | 'default |
|
style : (one-of/c 'normal 'italic 'slant) = 'normal |
weight : (one-of/c 'normal 'bold 'light) = 'normal |
underline? : any/c = #f |
| smoothing | | : | | (one-of/c 'default 'partly-smoothed | 'smoothed 'unsmoothed) |
| | = | | 'default |
|
size-in-pixels? : any/c = #f |
Creates a
font% instance. This procedure provides an
equivalent but more convenient interface compared to using
make-object with
font%.
Returns
(make-object bitmap% in kind bg-color complain-on-failure?), but this procedure is preferred because it
defaults
kind and
complain-on-failure? in a more
useful way.