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: a starting list of what font formats might be 
 supported by which platforms.
why (author)
Mon Oct 06 09:50:16 -0700 2008
commit  8c6ffff5265ad5da4d0d60ae709eeac09c2ef1c8
tree    64698ff49cff55a172ccfd7421a27de162e30dd9
parent  4d450e1ee1e9a6e27742b033d29b9527967c2ff8
...
506
507
508
509
 
 
 
 
 
 
 
 
 
 
 
 
 
510
511
512
...
769
770
771
772
 
773
774
775
...
777
778
779
780
 
781
782
783
...
506
507
508
 
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
...
781
782
783
 
784
785
786
787
...
789
790
791
 
792
793
794
795
0
@@ -506,7 +506,19 @@ Stops your program. Call this anytime you want to suddenly call it quits.
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
+Here's a rough idea of what fonts work on which platforms:
0
+
0
+ * Bitmap fonts (.bdf, .pcf, .snf) - Linux
0
+ * Font resource (.fon) - Windows
0
+ * Windows bitmap font file (.fnt) - Linux, Windows
0
+ * PostScript OpenType font (.otf) - Mac OS X, Linux, Windows
0
+ * Type1 multiple master (.mmm) - Windows
0
+ * Type1 font bits (.pfb) - Linux, Windows
0
+ * Type1 font metrics (.pfm) - Linux, Windows
0
+ * TrueType font (.ttf) - Mac OS X, Linux, Windows
0
+ * TrueType collection (.ttc) - Mac OS X, Linux, Windows
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
@@ -769,7 +781,7 @@ Shoes also borrows some animation ideas from Processing and will continue to clo
0
 
0
 === arc(left, top, width, height, angle1, angle2) » Shoes::Shape ===
0
 
0
-Draws an arc shape (a section of an oval) at coordinates (left, top). This method just give you a bit more control than [[oval]], by offering the @:angle1@ and @:angle2@ styles. (In fact, you can mimick the @oval@ method by setting @:angle1@ to 0 and @:angle2@ to @Shoes::TWO_PI@.)
0
+Draws an arc shape (a section of an oval) at coordinates (left, top). This method just give you a bit more control than [[oval]], by offering the `:angle1` and `:angle2` styles. (In fact, you can mimick the `oval` method by setting `:angle1` to 0 and `:angle2` to `Shoes::TWO_PI`.)
0
 
0
 === arrow(left, top, width) » Shoes::Shape ===
0
 
0
@@ -777,7 +789,7 @@ Draws an arrow at coordinates (left, top) with a pixel `width`.
0
 
0
 === cap(:curve or :rect or :project) » self ===
0
 
0
-Sets the line cap, which is the shape at the end of every line you draw. If set to @:curve@, the end is rounded. The default is @:rect@, a line which ends abruptly flat. The @:project@ cap is also fat, but sticks out a bit longer.
0
+Sets the line cap, which is the shape at the end of every line you draw. If set to `:curve`, the end is rounded. The default is `:rect`, a line which ends abruptly flat. The `:project` cap is also fat, but sticks out a bit longer.
0
 
0
 === fill(pattern) » pattern ===
0
 

Comments

    No one has commented yet.