From f16fed3d50fd3d56deb46a3d4641a81460e389de Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 12 Dec 2018 09:20:10 -0500 Subject: Update Chickadee manual and home page for 0.3.0. Better late than never! --- manuals/chickadee/Fonts.html | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'manuals/chickadee/Fonts.html') diff --git a/manuals/chickadee/Fonts.html b/manuals/chickadee/Fonts.html index 198bddb..a4ed5c6 100644 --- a/manuals/chickadee/Fonts.html +++ b/manuals/chickadee/Fonts.html @@ -16,16 +16,16 @@ Foundation Web site at http://www.gnu.org/licenses/fdl.html. The document was typeset with http://www.texinfo.org/ (GNU Texinfo). --> - + -The Chickadee Game Toolkit: Fonts + +Fonts (The Chickadee Game Toolkit) - - + + - @@ -94,7 +94,7 @@ Next:
-

2.4.5 Fonts

+

2.3.6 Fonts

Unlike the traditional TrueType font format that many are accustomed to, Chickadee loads and renders bitmap fonts in the @@ -122,9 +122,7 @@ each font size needed. This is where the “signed distance field” rendering technique comes in. Introduced by Valve in 2007, signed distance field fonts can be efficiently stored in a bitmap and be rendered at arbitrary scale factors with good -results. Chickadee can render both traditional bitmap fonts and -signed distance field fonts. Signed distance field font -rendering is not yet available, so be patient. +results.

While Chickadee does not yet offer a tool for converting TTF fonts into FNT fonts, tools such as @@ -135,44 +133,45 @@ in the meantime. font) module.

-
Scheme Procedure: load-font file
+
Procedure: load-font file

Load the Angel Code formatted XML document in file and return a new font object.

-
Scheme Procedure: font? obj
+
Procedure: font? obj

Return #t if obj is a font object.

-
Scheme Procedure: font-face font
+
Procedure: font-face font

Return the name of font.

-
Scheme Procedure: font-line-height font
+
Procedure: font-line-height font

Return the line height of font.

-
Scheme Procedure: font-line-height font
+
Procedure: font-line-height font

Return the line height of font.

-
Scheme Procedure: font-bold? font
+
Procedure: font-bold? font

Return #t if font is a bold font.

-
Scheme Procedure: font-italic? font
+
Procedure: font-italic? font

Return #t if font is an italicized font.

-
Scheme Procedure: draw-text font text position
-

[#:scale] [#:rotation] [#:blend-mode] +

Procedure: draw-text font text position
+

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

Draw the string text with the first character starting at position using font. @@ -181,6 +180,9 @@ new font object.

(draw-text font "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.

-- cgit v1.2.3