New font definition files for qMax <qwiglydee@gmail.com>'s font patch
[supertux.git] / data / fonts / README
diff --git a/data/fonts/README b/data/fonts/README
new file mode 100644 (file)
index 0000000..e4b61ef
--- /dev/null
@@ -0,0 +1,80 @@
+These files describes glyphs, contained on images 
+at data/images/engine/fonts/ 
+(or any subdirectory)
+
+Each file describes separate font.
+When extended fotns put in addon, names should be prefixed, like 
+addonname-foo.stf to be added to font foo.stf
+
+(supertux-font
+  ; height of font and glyph on images
+  (glyph-height $h)    
+  
+  ; default width of glyph on images and width of fixed-font
+  (glyph-width $w)   
+
+  ; one or more surfaces, containing glyph images
+  (surface              
+    ; may override default width
+    (glyph-width $w)    
+
+    ; may prevent to form variable-width glyphs from this surface
+    (monospace #t)      
+
+    ; filename containing glyph images,
+    ; related to data/images/engine/fonts/
+    ; any dimentions, RGBS pixel format
+    (glyphs $filename)   
+    
+    ; filename containing shadow images, 
+    ; should fit glyph image
+    (shadows $filename)  
+
+    ; charset definition
+    ; each string represent separate row of glyphs on image
+    ; spaces may be put to skip glyph (not drawn)
+    (chars 
+      $strings)
+  )
+)
+These files describes glyphs, contained on images 
+at data/images/engine/fonts/ 
+(or any subdirectory)
+
+Each file describes separate font.
+When extended fotns put in addon, names should be prefixed, like 
+addonname-foo.stf to be added to font foo.stf
+
+(supertux-font
+  ; height of font and glyph on images
+  (glyph-height $h)    
+  
+  ; default width of glyph on images and width of fixed-font
+  (glyph-width $w)   
+
+  ; one or more surfaces, containing glyph images
+  (surface              
+    ; may override default width
+    (glyph-width $w)    
+
+    ; may prevent to form variable-width glyphs from this surface
+    (monospace #t)      
+
+    ; filename containing glyph images,
+    ; related to data/images/engine/fonts/
+    ; any dimentions, RGBS pixel format
+    (glyphs $filename)   
+    
+    ; filename containing shadow images, 
+    ; should fit glyph image
+    (shadows $filename)  
+
+    ; charset definition
+    ; each string represent separate row of glyphs on image
+    ; spaces may be put to skip glyph (not drawn)
+    (chars 
+      $strings)
+  )
+)