(index ("init!" 0) ("was-init?" 226) ("quit!" 393) ("compiled-version" 539) ("current-version" 539) ("open-font" 1626) ("open-font*" 1626) ("open-font-rw" 2572) ("open-font-rw*" 2572) ("font?" 3937) ("close-font!" 4048) ("font-style" 4520) ("set!" 4520) ("font-style-set!" 4520) ("font-outline" 5508) ("set!" 5508) ("font-outline-set!" 5508) ("font-hinting" 6000) ("set!" 6000) ("font-hinting-set!" 6000) ("font-kerning?" 6563) ("set!" 6563) ("font-kerning-set!" 6563) ("font-height" 7094) ("font-ascent" 7094) ("font-descent" 7094) ("font-line-skip" 7094) ("font-faces" 7814) ("font-face-fixed-width?" 8063) ("font-face-family-name" 8389) ("font-face-style-name" 8663) ("glyph-provided" 8933) ("glyph-metrics" 9538) ("size-text" 10432) ("render-text-solid" 11029) ("render-text-solid*" 11029) ("render-text-shaded" 12188) ("render-text-shaded*" 12188) ("render-text-blended" 13420) ("render-text-blended*" 13420) ("size-utf8" 14595) ("render-utf8-solid" 15176) ("render-utf8-solid*" 15176) ("render-utf8-shaded" 16303) ("render-utf8-shaded*" 16303) ("render-utf8-blended" 17516) ("render-utf8-blended*" 17516) ("byte-swapped-unicode-set!" 18659) ("UNICODE_BOM_NATIVE" 18659) ("UNICODE_BOM_SWAPPED" 18659) ("size-unicode" 19601) ("render-unicode-solid" 20512) ("render-unicode-solid*" 20512) ("render-unicode-shaded" 21896) ("render-unicode-shaded*" 21896) ("render-unicode-blended" 23366) ("render-unicode-blended*" 23366) ("render-glyph-solid" 24766) ("render-glyph-solid*" 24766) ("render-glyph-shaded" 26013) ("render-glyph-shaded*" 26013) ("render-glyph-blended" 27346) ("render-glyph-blended*" 27346))
(def (sig (procedure "(init!)" (id init!))) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_8.html#SEC8" "TTF_Init") ".") (p "Signals an exception of kind " (tt "(exn sdl2)") " if initialization fails."))
(def (sig (procedure "(was-init?) → boolean" (id was-init?))) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_9.html#SEC9" "TTF_WasInit") "."))
(def (sig (procedure "(quit!)" (id quit!))) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_10.html#SEC10" "TTF_Quit") "."))
(def (sig (procedure "(compiled-version) → list of integers" (id compiled-version)) (procedure "(current-version)  → list of integers" (id current-version))) (p "Returns a list of three nonnegative integers, indicating a version number of SDL_ttf. For example, the list " (tt "(2 0 0)") " indicates SDL_ttf 2.0.0.") (ul (li (tt "compiled-version") " returns the version of SDL_ttf that the sdl2-ttf egg was compiled with.") (li (tt "current-version") " returns the version of SDL_ttf that the sdl2-ttf egg is currently using.")) (p "For example, the user may have compiled the sdl2-ttf egg with SDL_ttf 2.0.0, then later upgraded SDL_ttf to 2.1.0, but not yet recompiled the sdl2-ttf egg with the new version. In such a case, " (tt "compiled-version") " would return " (tt "(2 0 0)") ", and " (tt "current-version") " would return " (tt "(2 1 0)") ". But, features from the new version would not be available until the user recompiles the sdl2-ttf egg.") (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC7" "SDL_TTF_VERSION and TTF_Linked_Version") "."))
(def (sig (procedure "(open-font  filepath ptsize #!optional index) → ttf:font" (id open-font)) (procedure "(open-font* filepath ptsize #!optional index) → ttf:font" (id open-font*))) (p "Attempts to load the TTF or FON font file at the given filepath (a string). See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_16.html#SEC16" "TTF_OpenFontIndex") ".") (p (tt "ptsize") " is the point size (based on 72DPI) to load the font as. This basically translates to pixel height.") (p (tt "index") " allows you to choose a font face from a file containing multiple font faces. It defaults to 0, the first face.") (p "Returns a ttf:font with the font data. Signals an exception of kind " (tt "(exn sdl2)") " if the font could not be loaded.") (ul (li (tt "open-font") " returns a managed ttf:font.") (li (tt "open-font*") " returns an unmanaged ttf:font, which must be closed with " (tt "close-font!") " when you are done with it.")))
(def (sig (procedure "(open-font-rw  rwops close? ptsize #!optional index) → ttf:font" (id open-font-rw)) (procedure "(open-font-rw* rwops close? ptsize #!optional index) → ttf:font" (id open-font-rw*))) (p "Attempts a TTF or FON font from an " (int-link "/egg/sdl2#rwops" "sdl2:rwops") ". This procedure allows you to load a font from a variety of sources, such as a " (int-link "/man/4/Unit library#blobs" "blob") ", string, memory pointer, or file. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_17.html#SEC17" "TTF_OpenFontIndexRW") ".") (p "If " (tt "close?") " is #t, the sdl2:rwops will be automatically closed after the font is loaded. See " (tt "rw-close!") " in the sdl2 egg. If " (tt "close?") " is #f (the default), the sdl2:rwops will not be closed.") (p (tt "ptsize") " is the point size (based on 72DPI) to load the font as. This basically translates to pixel height.") (p (tt "index") " allows you to choose a font face from a file containing multiple font faces. It defaults to 0, the first face.") (p "Returns a ttf:font with the font data. Signals an exception of kind " (tt "(exn sdl2)") " if the font could not be loaded.") (ul (li (tt "open-font-rw") " returns a managed ttf:font.") (li (tt "open-font-rw*") " returns an unmanaged ttf:font, which must be closed with " (tt "close-font!") " when you are done with it.")))
(def (sig (procedure "(font? obj) → boolean" (id font?))) (p "Returns #t if " (tt "obj") " is a ttf:font."))
(def (sig (procedure "(close-font! font)" (id close-font!))) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_18.html#SEC18" "TTF_CloseFont") ".") (p "Close and free the memory of the ttf:font's underlying struct. " (tt "font") "'s pointer will be set to null (see " (tt "struct-null?") " in the sdl2 egg). It is safe to call this procedure with managed or unmanaged ttf:fonts. It is safe (but has no effect) to free a struct record multiple times."))
(def (sig (procedure "(font-style font) → list of symbols" (id font-style)) (setter "(set! (font-style font) style)" (id set!)) (setter "(font-style-set! font style)" (id font-style-set!))) (p "Get or set the ttf:font's style, as a list of zero or more of the following symbols:") (ul (li (tt "bold")) (li (tt "italic")) (li (tt "underline")) (li (tt "strikethrough"))) (p "Returns an empty list if the font has no style. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_21.html#SEC21" "TTF_FontGetStyle") " and " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_22.html#SEC22" "TTF_FontSetStyle") ".") (p "The setters accept either a list of symbols or an integer, representing bitwise-or'd integer constants.") (p (b "NOTE:") " Bold and italic styles perform automatic adjustment of the font. The results sometimes do not look very good. For better-looking results, you should instead load the bold or italic versions of your font as a separate ttf:font."))
(def (sig (procedure "(font-outline font) → integer" (id font-outline)) (setter "(set! (font-outline font) outline)" (id set!)) (setter "(font-outline-set! font outline)" (id font-outline-set!))) (p "Get or set the ttf:font's outline, as a nonnegative integer number of pixels. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_23.html#SEC23" "TTF_GetFontOutline") " and " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_24.html#SEC24" "TTF_SetFontOutline") "."))
(def (sig (procedure "(font-hinting font) → symbol" (id font-hinting)) (setter "(set! (font-hinting font) hinting)" (id set!)) (setter "(font-hinting-set! font hinting)" (id font-hinting-set!))) (p "Get or set the ttf:font's hinting, as one of the following symbols:") (ul (li (tt "normal")) (li (tt "light")) (li (tt "mono")) (li (tt "none"))) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_25.html#SEC25" "TTF_GetFontHinting") " and " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_26.html#SEC26" "TTF_SetFontHinting") "."))
(def (sig (procedure "(font-kerning? font) → boolean" (id font-kerning?)) (setter "(set! (font-kerning? font) kerning)" (id set!)) (setter "(font-kerning-set! font kerning)" (id font-kerning-set!))) (p "Get or set the ttf:font's kerning, as a boolean. #t means kerning is enabled, #f means kerning is disabled.") (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_27.html#SEC27" "TTF_GetFontKerning") " and " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_28.html#SEC28" "TTF_SetFontKerning") "."))
(def (sig (procedure "(font-height font) → integer" (id font-height)) (procedure "(font-ascent font) → integer" (id font-ascent)) (procedure "(font-descent font) → integer" (id font-descent)) (procedure "(font-line-skip font) → integer" (id font-line-skip))) (p "Return various measurements of the ttf:font.") (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_29.html#SEC29" "TTF_FontHeight") ", " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_30.html#SEC30" "TTF_FontAscent") ", " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_31.html#SEC31" "TTF_FontDescent") ", " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_32.html#SEC32" "TTF_FontLineSkip") "."))
(def (sig (procedure "(font-faces font) → integer" (id font-faces))) (p "Returns the number of faces (\"sub-fonts\") available in the ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_33.html#SEC33" "TTF_FontFaces") "."))
(def (sig (procedure "(font-face-fixed-width? font) → boolean" (id font-face-fixed-width?))) (p "Returns #t if the current face of the given ttf:font is a fixed width font (i.e. every glyph is the same width). See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_34.html#SEC34" "TTF_FontFaceIsFixedWidth") "."))
(def (sig (procedure "(font-face-family-name font) → string" (id font-face-family-name))) (p "Returns the current font face family name for the given ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_35.html#SEC35" "TTF_FontFaceFamilyName") "."))
(def (sig (procedure "(font-face-style-name font) → string" (id font-face-style-name))) (p "Returns the current font face style name for the given ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_36.html#SEC36" "TTF_FontFaceStyleName") "."))
(def (sig (procedure "(glyph-provided font glyph) → integer or #f" (id glyph-provided))) (p "If the glyph is provided by the font, this procedure returns a positive integer, indicating the glyph's index position in the font. If the glyph is not provided by the font, this procedure returns #f. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_37.html#SEC37" "TTF_GlyphIsProvided") ".") (p (tt "glyph") " may be an integer (representing a 16-bit Unicode character) or a Scheme character in the ASCII range. Results may be incorrect if given a Scheme character outside the ASCII range."))
(def (sig (procedure "(glyph-metrics font glyph) → [min-x max-x min-y max-y advance]" (id glyph-metrics))) (p "Return various metrics about the given glyph. This procedure returns multiple values:") (dl (dt "min-x") (dd "the glyph's minimum X offset") (dt "max-x") (dd "the glyph's maximum X offset") (dt "min-y") (dd "the glyph's minimum Y offset") (dt "max-y") (dd "the glyph's maximum Y offset") (dt "advance") (dd "the glyph's advance offset")) (p "See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_38.html#SEC38" "TTF_GlyphMetrics") ". There is a diagram which shows what these metrics mean.") (p (tt "glyph") " may be an integer (representing a 16-bit Unicode character) or a Scheme character in the ASCII range. Results may be incorrect if given a Scheme character outside the ASCII range.") (p "Signals an exception of kind " (tt "(exn sdl2)") " if an error occurs."))
(def (sig (procedure "(size-text font text) → [w h]" (id size-text))) (p "Calculate the size of the surface that " (i "would be created") " if you rendered the given Latin-1 (ISO 8859-1) text using the ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_39.html#SEC39" "TTF_SizeText") ".") (p "Returns two values, the calculated width and the height, as integers.") (p "This is much faster than actually rendering the text, so you can use this to quickly predict how much space would be needed. This is useful for calculating word wrapping, alignment, truncation, etc."))
(def (sig (procedure "(render-text-solid  font text fg) → sdl2:surface" (id render-text-solid)) (procedure "(render-text-solid* font text fg) → sdl2:surface" (id render-text-solid*))) (p "Render the given Latin-1 (ISO 8859-1) encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"solid\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_43.html#SEC43" "TTF_RenderText_Solid") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a Latin-1 (ISO 8859-1) encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-text-solid") " returns a managed sdl2:surface.") (li (tt "render-text-solid*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-text-shaded  font text fg bg) → sdl2:surface" (id render-text-shaded)) (procedure "(render-text-shaded* font text fg bg) → sdl2:surface" (id render-text-shaded*))) (p "Render the given Latin-1-encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"shaded\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_47.html#SEC47" "TTF_RenderText_Shaded") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a Latin-1 (ISO 8859-1) encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.") (li (tt "bg") " must be a sdl2:color specifying the background color.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-text-shaded") " returns a managed sdl2:surface.") (li (tt "render-text-shaded*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-text-blended  font text fg) → sdl2:surface" (id render-text-blended)) (procedure "(render-text-blended* font text fg) → sdl2:surface" (id render-text-blended*))) (p "Render the given Latin-1 (ISO 8859-1) encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"blended\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_51.html#SEC51" "TTF_RenderText_Blended") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a Latin-1 (ISO 8859-1) encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-text-blended") " returns a managed sdl2:surface.") (li (tt "render-text-blended*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(size-utf8 font text) → [w h]" (id size-utf8))) (p "Calculate the size of the surface that " (i "would be created") " if you rendered the given UTF8 text using the ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_40.html#SEC40" "TTF_SizeUTF8") ".") (p "Returns two values, the calculated width and the height, as integers.") (p "This is much faster than actually rendering the text, so you can use this to quickly predict how much space would be needed. This is useful for calculating word wrapping, alignment, truncation, etc."))
(def (sig (procedure "(render-utf8-solid  font text fg) → sdl2:surface" (id render-utf8-solid)) (procedure "(render-utf8-solid* font text fg) → sdl2:surface" (id render-utf8-solid*))) (p "Render the given UTF8 encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"solid\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_44.html#SEC44" "TTF_RenderUTF8_Solid") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a UTF8 encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-utf8-solid") " returns a managed sdl2:surface.") (li (tt "render-utf8-solid*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-utf8-shaded  font text fg bg) → sdl2:surface" (id render-utf8-shaded)) (procedure "(render-utf8-shaded* font text fg bg) → sdl2:surface" (id render-utf8-shaded*))) (p "Render the given UTF8 encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"shaded\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_48.html#SEC48" "TTF_RenderUTF8_Shaded") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a UTF8 encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.") (li (tt "bg") " must be a sdl2:color specifying the background color.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-utf8-shaded") " returns a managed sdl2:surface.") (li (tt "render-utf8-shaded*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-utf8-blended  font text fg) → sdl2:surface" (id render-utf8-blended)) (procedure "(render-utf8-blended* font text fg) → sdl2:surface" (id render-utf8-blended*))) (p "Render the given UTF8 encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"blended\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_52.html#SEC52" "TTF_RenderUTF8_Blended") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "text") " must be a UTF8 encoded string specifying the text to render.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-utf8-blended") " returns a managed sdl2:surface.") (li (tt "render-utf8-blended*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(byte-swapped-unicode-set! swapped?)" (id byte-swapped-unicode-set!)) (constant "UNICODE_BOM_NATIVE" (id UNICODE_BOM_NATIVE)) (constant "UNICODE_BOM_SWAPPED" (id UNICODE_BOM_SWAPPED))) (p (tt "byte-swapped-unicode-set!") " sets the default byte order of Unicode chars. If " (tt "swapped?") " is #t, this sets the default byte order to swapped. If " (tt "swapped?") " is #f, this sets the default byte order to native. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_20.html#SEC20" "TTF_ByteSwappedUNICODE") ".") (p "UNICODE_BOM_NATIVE and UNICODE_BOM_SWAPPED are special Unicode characters (unsigned 16-bit integers). When used in a Unicode string, they temporarily (for the remainder of the string) override whether the byte order of Unicode chars is native or swapped. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_57.html#SEC57" "UNICODE_BOM_NATIVE and UNICODE_BOM_SWAPPED") "."))
(def (sig (procedure "(size-unicode font unicode) → [w h]" (id size-unicode))) (p "Calculate the size of the surface that " (i "would be created") " if you rendered the given 16-bit Unicode encoded text using the ttf:font. See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_41.html#SEC41" "TTF_SizeUNICODE") ".") (p (tt "unicode") " must be a pointer or locative to a null-terminated C array of 16-bit unsigned integers, representing Unicode text. (" (int-link "/manual/Unit srfi-4" "SRFI-4") " u16vectors can be wrapped in a locative using " (int-link "/manual/Unit lolevel#make-locative" "make-locative") ".)") (p "Returns two values, the calculated width and the height, as integers.") (p "This is much faster than actually rendering the text, so you can use this to quickly predict how much space would be needed. This is useful for calculating word wrapping, alignment, truncation, etc."))
(def (sig (procedure "(render-unicode-solid  font unicode fg) → sdl2:surface" (id render-unicode-solid)) (procedure "(render-unicode-solid* font unicode fg) → sdl2:surface" (id render-unicode-solid*))) (p "Render the given 16-bit Unicode encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"solid\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_45.html#SEC45" "TTF_RenderUNICODE_Solid") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "unicode") " must be a pointer or locative to a null-terminated C array of 16-bit unsigned integers, representing Unicode text. (" (int-link "/manual/Unit srfi-4" "SRFI-4") " u16vectors can be wrapped in a locative using " (int-link "/manual/Unit lolevel#make-locative" "make-locative") ".)") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-unicode-solid") " returns a managed sdl2:surface.") (li (tt "render-unicode-solid*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-unicode-shaded  font unicode fg bg) → sdl2:surface" (id render-unicode-shaded)) (procedure "(render-unicode-shaded* font unicode fg bg) → sdl2:surface" (id render-unicode-shaded*))) (p "Render the given 16-bit Unicode encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"shaded\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_49.html#SEC49" "TTF_RenderUNICODE_Shaded") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "unicode") " must be a pointer or locative to a null-terminated C array of 16-bit unsigned integers, representing Unicode text. (" (int-link "/manual/Unit srfi-4" "SRFI-4") " u16vectors can be wrapped in a locative using " (int-link "/manual/Unit lolevel#make-locative" "make-locative") ".)") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.") (li (tt "bg") " must be a sdl2:color specifying the background color.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-unicode-shaded") " returns a managed sdl2:surface.") (li (tt "render-unicode-shaded*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-unicode-blended  font unicode fg) → sdl2:surface" (id render-unicode-blended)) (procedure "(render-unicode-blended* font unicode fg) → sdl2:surface" (id render-unicode-blended*))) (p "Render the given 16-bit Unicode encoded text using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"blended\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_53.html#SEC53" "TTF_RenderUNICODE_Blended") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "unicode") " must be a pointer or locative to a null-terminated C array of 16-bit unsigned integers, representing Unicode text. (" (int-link "/manual/Unit srfi-4" "SRFI-4") " u16vectors can be wrapped in a locative using " (int-link "/manual/Unit lolevel#make-locative" "make-locative") ".)") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered text. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-unicode-blended") " returns a managed sdl2:surface.") (li (tt "render-unicode-blended*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-glyph-solid  font glyph fg) → sdl2:surface" (id render-glyph-solid)) (procedure "(render-glyph-solid* font glyph fg) → sdl2:surface" (id render-glyph-solid*))) (p "Render the given glyph using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"solid\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_46.html#SEC46" "TTF_RenderGlyph_Solid") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "glyph") " must be an integer (representing a 16-bit Unicode character) or a Scheme character in the ASCII range. Results may be incorrect if given a Scheme character outside the ASCII range.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the glyph itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered glyph. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-glyph-solid") " returns a managed sdl2:surface.") (li (tt "render-glyph-solid*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-glyph-shaded  font glyph fg bg) → sdl2:surface" (id render-glyph-shaded)) (procedure "(render-glyph-shaded* font glyph fg bg) → sdl2:surface" (id render-glyph-shaded*))) (p "Render the given glyph using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"shaded\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_50.html#SEC50" "TTF_RenderGlyph_Shaded") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "glyph") " must be an integer (representing a 16-bit Unicode character) or a Scheme character in the ASCII range. Results may be incorrect if given a Scheme character outside the ASCII range.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the glyph itself.") (li (tt "bg") " must be a sdl2:color specifying the background color.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered glyph. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-glyph-shaded") " returns a managed sdl2:surface.") (li (tt "render-glyph-shaded*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
(def (sig (procedure "(render-glyph-blended  font glyph fg) → sdl2:surface" (id render-glyph-blended)) (procedure "(render-glyph-blended* font glyph fg) → sdl2:surface" (id render-glyph-blended*))) (p "Render the given glyph using " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_42.html#SEC42" "\"blended\" rendering mode.") " See " (link "http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_54.html#SEC54" "TTF_RenderGlyph_Blended") ".") (ul (li (tt "font") " must be a ttf:font specifying the font to render with.") (li (tt "glyph") " must be an integer (representing a 16-bit Unicode character) or a Scheme character in the ASCII range. Results may be incorrect if given a Scheme character outside the ASCII range.") (li (tt "fg") " must be a sdl2:color specifying the foreground color, i.e. the color of the glyph itself.")) (p "Returns a " (int-link "/egg/sdl2#sdl2surface" "sdl2:surface") " containing the rendered glyph. Signals an exception of kind " (tt "(exn sdl2)") " if an error occurred.") (ul (li (tt "render-glyph-blended") " returns a managed sdl2:surface.") (li (tt "render-glyph-blended*") " returns an unmanaged sdl2:surface, which must be freed with " (tt "free-surface!") " (from the sdl2 egg) when you are done with it.")))
