25 Drawing Functions
Returns a list of font face names available on the current system. If
kind is 'mono, then only faces that are known to
correspond to monospace fonts are included in the list.
If all-variants? is #f (the default), then the
result is in more standard terminology a list of font
family names, which are combined with style and weight options to
arrive at a face; if all-variants? is true, then the result
includes a string for each available face in the family.
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 | | | | | | | #:underlined? underlined? | | | | | | | #:smoothing smoothing | | | | | | | #:size-in-pixels? size-in-pixels?]) | | → | | (is-a?/c font%) |
|
size : (integer-in 1 1024) = 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 |
underlined? : 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.