GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
 * static/manual.txt: describe the new `font` method.
why (author)
Sun Oct 05 23:57:47 -0700 2008
commit  213fae3923d490fe06114b0ae4b010f9f2d99ce7
tree    fae0295714c8c4358f0547402b56f2e610cb84a6
parent  26ea246df394d9689806bc3a50713b3790416db9
...
417
418
419
420
 
421
422
423
...
428
429
430
431
 
432
433
434
...
502
503
504
 
 
 
 
 
 
505
506
507
...
417
418
419
 
420
421
422
423
...
428
429
430
 
431
432
433
434
...
502
503
504
505
506
507
508
509
510
511
512
513
0
@@ -417,7 +417,7 @@ Shoes also has a handful of built-in constants which may prove useful if you are
0
 
0
 '''Shoes::REVISION''' is the Subversion revision number for this build.
0
 
0
-=== alert( message ) » nil ===
0
+=== alert(message: a string) » nil ===
0
 
0
 Pops up a window containing a short message.
0
 
0
@@ -428,7 +428,7 @@ Pops up a window containing a short message.
0
 
0
 Please use alerts sparingly, as they are incredibly annoying! If you are using alerts to show messages to help you debug your program, try checking out the [[Built-in.debug]] or [[Built-in.info]] methods.
0
 
0
-=== ask( message ) » a string ===
0
+=== ask(message: a string) » a string ===
0
 
0
 Pops up a window and asks a question. For example, you may want to ask someone their name.
0
 
0
@@ -502,6 +502,12 @@ Oh, and, rather than a string, you may also hand exceptions directly to this met
0
 
0
 Stops your program. Call this anytime you want to suddenly call it quits.
0
 
0
+=== font(message: a string) » an array of font family names ===
0
+
0
+Loads a TrueType (or other type of font) from a file. While TrueType is supported by all platforms, your platform may support other types of fonts. Shoes uses each operating system's built-in font system to make this work.
0
+
0
+If the font is properly loaded, you'll get back an array of font names found in the file. Otherwise, @nil@ is returned if no fonts were found in the file.
0
+
0
 === gradient(color1, color2) » Shoes::Pattern ===
0
 
0
 Builds a linear gradient from two colors. For each color, you may pass in a Shoes::Color object or a string describing the color.

Comments

    No one has commented yet.