diff mde/font/font.d @ 74:cee261eba249

Minor tweaks.
author Diggory Hardy <diggory.hardy@gmail.com>
date Mon, 07 Jul 2008 15:54:47 +0100
parents 7fc0a8295c83
children 65780e0e48e6
line wrap: on
line diff
--- a/mde/font/font.d	Mon Jul 07 15:53:58 2008 +0100
+++ b/mde/font/font.d	Mon Jul 07 15:54:47 2008 +0100
@@ -56,7 +56,8 @@
                 fontTex.drawTexture;
         }
         
-        /** Load the freetype library. */
+        /** Load the freetype library from the file fileName. */
+        private const fileName = "fonts";
         void initialize () {
             if (!confDir.exists (fileName))
                 throw new fontException ("No font settings file (fonts.[mtt|mtb])");
@@ -105,7 +106,7 @@
                 reader.read;
                 
                 // get fallback name
-                char[]* p = "fallback" in reader.dataset.header.Arg!(char[]).Arg;
+                char[]* p = "fallback" in reader.dataset.header.Arg!(char[]);
                 if (p is null)
                     throw new fontException ("No fallback font style specified");
                 fallbackName = *p;
@@ -123,7 +124,6 @@
             // Also note that get() doesn't make sure the fallback is loaded before returning it.
             fallback.load;
         }
-        private const fileName = "fonts";
         
         //FIXME: don't use GC for FontStyle resources
         /** Cleanup: delete all fonts. */