From 25c5eac5e6ca1035db1eddd7bea9ac78531da57e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 28 Dec 2023 11:23:49 -0500 Subject: Delete manuals! Good riddance! These are hosted on files.dthompson.us now! --- manuals/chickadee/Fonts.html | 184 ------------------------------------------- 1 file changed, 184 deletions(-) delete mode 100644 manuals/chickadee/Fonts.html (limited to 'manuals/chickadee/Fonts.html') diff --git a/manuals/chickadee/Fonts.html b/manuals/chickadee/Fonts.html deleted file mode 100644 index 9383789..0000000 --- a/manuals/chickadee/Fonts.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - -Fonts (The Chickadee Game Toolkit) - - - - - - - - - - - - - - - - - - - -
-

-Next: , Previous: , Up: Graphics   [Contents][Index]

-
-
-

5.3.4 Fonts

- -

Printing text to the screen is quite easy: -

-
-
(draw-text "Hello, world" (vec2 100.0 100.0))
-
- -

Chickadee supports OpenType/TrueType fonts (via the FreeType library), -bitmap fonts in Angel Code bmfont format, and simple sprite sheet -bitmap fonts. A default font named Inconsolata is used for all text -rendering operations where a font is not specified, as is the case in -the above example. -

-

The following procedures can be found in the (chickadee graphics -text) module: -

-
-
Procedure: load-font file-name point-size [#:char-set] [#:smooth? #t]
-

Load the scalable (OpenType, TrueType, etc.) font in the file -file-name and display it at the given point-size. By -default, all the characters in the ASCII character set are loaded. -This can be changed by passing a different character set -(see Character Sets in GNU Guile Reference Manual) using -the char-set keyword argument. -

-

If smooth? is #t (the default), text rendered with this -font will have a smoother appearance when text is rotated or scaled, -otherwise non-smooth scaling will be used. -

- -
-
Procedure: load-bitmap-font file
-

Load the Angel Code font (in either XML or FNT format) in file -and return a new font object. -

- -
-
Procedure: font? obj
-

Return #t if obj is a font object. -

- -
-
Procedure: font-face font
-

Return the name of font. -

- -
-
Procedure: font-line-height font
-

Return the line height of font. -

- -
-
Procedure: font-line-height font
-

Return the line height of font. -

- -
-
Procedure: font-bold? font
-

Return #t if font is a bold font. -

- -
-
Procedure: font-italic? font
-

Return #t if font is an italicized font. -

- -
-
Procedure: draw-text text position
-

[#:font] [#:color] [#:origin] [#:scale] [#:rotation] [#:blend-mode] - [#:start 0] [#:end (string-length text)] -

-

Draw the string text with the first character starting at -position using font. If font is not specified, a -built-in font is used. -

-
-
(draw-text "Hello, world!" (vec2 128.0 128.0))
-
- -

To render a substring of text, use the start and end -arguments. -

-

Refer to draw-sprite (see Sprites) for information about -the other arguments. -

- -
-
-

-Next: , Previous: , Up: Graphics   [Contents][Index]

-
- - - - - -- cgit v1.2.3